From 24dfe8955eef36a4c90ea4181c0ec1ba0fa5ea9c Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 22 Aug 2023 12:23:59 +0300 Subject: [PATCH 01/19] test for sudo gas limit --- src/testcases/parallel/simple.test.ts | 37 +++++- .../run_in_band/interchaintx.test.ts | 113 +++++++++++++++++- 2 files changed, 146 insertions(+), 4 deletions(-) diff --git a/src/testcases/parallel/simple.test.ts b/src/testcases/parallel/simple.test.ts index 2851b9e4..0fb23d63 100644 --- a/src/testcases/parallel/simple.test.ts +++ b/src/testcases/parallel/simple.test.ts @@ -470,7 +470,7 @@ describe('Neutron / Simple', () => { await neutronAccount.executeContract( contractAddress, JSON.stringify({ - integration_tests_set_sudo_failure_mock: {}, + integration_tests_set_sudo_failure_mock: { state: 'enabled' }, }), ); @@ -552,6 +552,41 @@ describe('Neutron / Simple', () => { ); }); }); + + test('execute contract with sudo out of gas', async () => { + // Mock sudo handler to fail + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + integration_tests_set_sudo_failure_mock: { + state: 'enabled_infinite_loop', + }, + }), + ); + + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + send: { + channel: 'channel-0', + to: gaiaAccount.wallet.address.toString(), + denom: NEUTRON_DENOM, + amount: '1000', + }, + }), + ); + + await neutronChain.blockWaiter.waitBlocks(5); + + const res = await getWithAttempts( + neutronChain.blockWaiter, + async () => neutronChain.queryAckFailures(contractAddress), + // Wait until there 6 failures in the list + async (data) => data.failures.length == 6, + ); + expect(res.failures.length).toEqual(6); + }); + describe('Failures limit test', () => { test("failures with small limit doesn't return an error", async () => { const pagination: PageRequest = { diff --git a/src/testcases/run_in_band/interchaintx.test.ts b/src/testcases/run_in_band/interchaintx.test.ts index 416ae8d0..b7d08887 100644 --- a/src/testcases/run_in_band/interchaintx.test.ts +++ b/src/testcases/run_in_band/interchaintx.test.ts @@ -545,7 +545,7 @@ describe('Neutron / Interchain TXs', () => { await neutronAccount.executeContract( contractAddress, JSON.stringify({ - integration_tests_set_sudo_failure_mock: {}, + integration_tests_set_sudo_failure_mock: { state: 'enabled' }, }), ); @@ -669,12 +669,57 @@ describe('Neutron / Interchain TXs', () => { ); }); + test('ack failure during sudo out of gas', async () => { + // Mock sudo handler to fail + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + integration_tests_set_sudo_failure_mock: { + state: 'enabled_infinite_loop', + }, + }), + ); + + // Testing ACK failure + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + delegate: { + interchain_account_id: icaId1, + validator: testState.wallets.cosmos.val1.address.toString(), + amount: '10', + denom: gaiaChain.denom, + }, + }), + ); + + // wait until sudo is called and processed and failure is recorder + await getWithAttempts( + neutronChain.blockWaiter, + async () => neutronChain.queryAckFailures(contractAddress), + async (data) => data.failures.length == 4, + 100, + ); + + // make sure contract's state hasn't been changed + const acks = await getAcks(neutronChain, contractAddress); + expect(acks.length).toEqual(0); + + // Restore sudo handler's normal state + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + integration_tests_unset_sudo_failure_mock: {}, + }), + ); + }); + test('timeout failure during sudo', async () => { // Mock sudo handler to fail await neutronAccount.executeContract( contractAddress, JSON.stringify({ - integration_tests_set_sudo_failure_mock: {}, + integration_tests_set_sudo_failure_mock: { state: 'enabled' }, }), ); @@ -696,7 +741,53 @@ describe('Neutron / Interchain TXs', () => { await getWithAttempts( neutronChain.blockWaiter, async () => neutronChain.queryAckFailures(contractAddress), - async (data) => data.failures.length == 4, + async (data) => data.failures.length == 5, + 100, + ); + + // make sure contract's state hasn't been changed + const acks = await getAcks(neutronChain, contractAddress); + expect(acks.length).toEqual(0); + + // Restore sudo handler's normal state + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + integration_tests_unset_sudo_failure_mock: {}, + }), + ); + }); + + test('out of gas failure during sudo timeout', async () => { + // Mock sudo handler to fail + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + integration_tests_set_sudo_failure_mock: { + state: 'enabled_infinite_loop', + }, + }), + ); + + // Testing timeout failure + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + delegate: { + interchain_account_id: icaId2, + validator: testState.wallets.cosmos.val1.address.toString(), + amount: '10', + denom: gaiaChain.denom, + timeout: 1, + }, + }), + ); + + // wait until sudo is called and processed and failure is recorder + await getWithAttempts( + neutronChain.blockWaiter, + async () => neutronChain.queryAckFailures(contractAddress), + async (data) => data.failures.length == 6, 100, ); @@ -747,6 +838,22 @@ describe('Neutron / Interchain TXs', () => { 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '3', ack_id: '5', + ack_type: 'ack', + }, + { + channel_id: 'channel-3', + address: + 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', + id: '4', + ack_id: '6', + ack_type: 'timeout', + }, + { + channel_id: 'channel-2', + address: + 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', + id: '5', + ack_id: '3', ack_type: 'timeout', }, ]); From 067da6bb83e1bb721ad479ccd2455ddcc77bd16e Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 15:33:39 +0400 Subject: [PATCH 02/19] wip --- src/generated/proto.cjs | 79054 ++++++++++-------- src/generated/proto.d.ts | 27315 +++--- src/helpers/tokenfactory.ts | 15 +- src/testcases/parallel/tokenfactory.test.ts | 50 +- 4 files changed, 59281 insertions(+), 47153 deletions(-) diff --git a/src/generated/proto.cjs b/src/generated/proto.cjs index e809de4a..703e0e9d 100644 --- a/src/generated/proto.cjs +++ b/src/generated/proto.cjs @@ -34,143 +34,79 @@ */ var contractmanager = {}; - contractmanager.Query = (function() { + contractmanager.Msg = (function() { /** - * Constructs a new Query service. + * Constructs a new Msg service. * @memberof neutron.contractmanager - * @classdesc Represents a Query + * @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 Query(rpcImpl, requestDelimited, responseDelimited) { + function Msg(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 neutron.contractmanager.Query#params}. - * @memberof neutron.contractmanager.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.contractmanager.QueryParamsResponse} [response] QueryParamsResponse - */ - - /** - * Calls Params. - * @function params - * @memberof neutron.contractmanager.Query - * @instance - * @param {neutron.contractmanager.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.contractmanager.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.neutron.contractmanager.QueryParamsRequest, $root.neutron.contractmanager.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof neutron.contractmanager.Query - * @instance - * @param {neutron.contractmanager.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.contractmanager.Query#addressFailures}. - * @memberof neutron.contractmanager.Query - * @typedef AddressFailuresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.contractmanager.QueryFailuresResponse} [response] QueryFailuresResponse - */ - - /** - * Calls AddressFailures. - * @function addressFailures - * @memberof neutron.contractmanager.Query - * @instance - * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object - * @param {neutron.contractmanager.Query.AddressFailuresCallback} callback Node-style callback called with the error, if any, and QueryFailuresResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.addressFailures = function addressFailures(request, callback) { - return this.rpcCall(addressFailures, $root.neutron.contractmanager.QueryFailuresRequest, $root.neutron.contractmanager.QueryFailuresResponse, request, callback); - }, "name", { value: "AddressFailures" }); - - /** - * Calls AddressFailures. - * @function addressFailures - * @memberof neutron.contractmanager.Query - * @instance - * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Callback as used by {@link neutron.contractmanager.Query#failures}. - * @memberof neutron.contractmanager.Query - * @typedef FailuresCallback + * Callback as used by {@link neutron.contractmanager.Msg#updateParams}. + * @memberof neutron.contractmanager.Msg + * @typedef UpdateParamsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {neutron.contractmanager.QueryFailuresResponse} [response] QueryFailuresResponse + * @param {neutron.contractmanager.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse */ /** - * Calls Failures. - * @function failures - * @memberof neutron.contractmanager.Query + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.contractmanager.Msg * @instance - * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object - * @param {neutron.contractmanager.Query.FailuresCallback} callback Node-style callback called with the error, if any, and QueryFailuresResponse + * @param {neutron.contractmanager.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.contractmanager.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Query.prototype.failures = function failures(request, callback) { - return this.rpcCall(failures, $root.neutron.contractmanager.QueryFailuresRequest, $root.neutron.contractmanager.QueryFailuresResponse, request, callback); - }, "name", { value: "Failures" }); + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.contractmanager.MsgUpdateParams, $root.neutron.contractmanager.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); /** - * Calls Failures. - * @function failures - * @memberof neutron.contractmanager.Query + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.contractmanager.Msg * @instance - * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object - * @returns {Promise} Promise + * @param {neutron.contractmanager.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Query; + return Msg; })(); - contractmanager.QueryParamsRequest = (function() { + contractmanager.MsgUpdateParams = (function() { /** - * Properties of a QueryParamsRequest. + * Properties of a MsgUpdateParams. * @memberof neutron.contractmanager - * @interface IQueryParamsRequest + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.contractmanager.IParams|null} [params] MsgUpdateParams params */ /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgUpdateParams. * @memberof neutron.contractmanager - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams * @constructor - * @param {neutron.contractmanager.IQueryParamsRequest=} [properties] Properties to set + * @param {neutron.contractmanager.IMsgUpdateParams=} [properties] Properties to set */ - function QueryParamsRequest(properties) { + function MsgUpdateParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178,51 +114,77 @@ } /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.contractmanager.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.authority = ""; + + /** + * MsgUpdateParams params. + * @member {neutron.contractmanager.IParams|null|undefined} params + * @memberof neutron.contractmanager.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.params = null; + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.contractmanager.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static - * @param {neutron.contractmanager.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.contractmanager.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.contractmanager.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.contractmanager.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static - * @param {neutron.contractmanager.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.contractmanager.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.contractmanager.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.contractmanager.Params.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -232,94 +194,120 @@ }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.contractmanager.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @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) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.contractmanager.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.contractmanager.MsgUpdateParams} MsgUpdateParams */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.QueryParamsRequest) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.MsgUpdateParams) return object; - return new $root.neutron.contractmanager.QueryParamsRequest(); + var message = new $root.neutron.contractmanager.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.contractmanager.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.contractmanager.Params.fromObject(object.params); + } + return message; }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @static - * @param {neutron.contractmanager.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.contractmanager.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { - return {}; + MsgUpdateParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.contractmanager.Params.toObject(message.params, options); + return object; }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof neutron.contractmanager.QueryParamsRequest + * @memberof neutron.contractmanager.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return MsgUpdateParams; })(); - contractmanager.QueryParamsResponse = (function() { + contractmanager.MsgUpdateParamsResponse = (function() { /** - * Properties of a QueryParamsResponse. + * Properties of a MsgUpdateParamsResponse. * @memberof neutron.contractmanager - * @interface IQueryParamsResponse - * @property {neutron.contractmanager.IParams|null} [params] QueryParamsResponse params + * @interface IMsgUpdateParamsResponse */ /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgUpdateParamsResponse. * @memberof neutron.contractmanager - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse * @constructor - * @param {neutron.contractmanager.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.contractmanager.IMsgUpdateParamsResponse=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function MsgUpdateParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -327,64 +315,51 @@ } /** - * QueryParamsResponse params. - * @member {neutron.contractmanager.IParams|null|undefined} params - * @memberof neutron.contractmanager.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; - - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.contractmanager.MsgUpdateParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static - * @param {neutron.contractmanager.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.contractmanager.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + MsgUpdateParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.contractmanager.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.MsgUpdateParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static - * @param {neutron.contractmanager.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.contractmanager.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.contractmanager.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.MsgUpdateParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.params = $root.neutron.contractmanager.Params.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -394,113 +369,93 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.contractmanager.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgUpdateParamsResponse message. * @function verify - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.contractmanager.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. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.contractmanager.MsgUpdateParamsResponse} MsgUpdateParamsResponse */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.QueryParamsResponse) + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.MsgUpdateParamsResponse) return object; - var message = new $root.neutron.contractmanager.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.contractmanager.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.contractmanager.Params.fromObject(object.params); - } - return message; + return new $root.neutron.contractmanager.MsgUpdateParamsResponse(); }; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @static - * @param {neutron.contractmanager.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.contractmanager.MsgUpdateParamsResponse} message MsgUpdateParamsResponse * @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.neutron.contractmanager.Params.toObject(message.params, options); - return object; + MsgUpdateParamsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @function toJSON - * @memberof neutron.contractmanager.QueryParamsResponse + * @memberof neutron.contractmanager.MsgUpdateParamsResponse * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return MsgUpdateParamsResponse; })(); - contractmanager.QueryFailuresRequest = (function() { + contractmanager.Params = (function() { /** - * Properties of a QueryFailuresRequest. + * Properties of a Params. * @memberof neutron.contractmanager - * @interface IQueryFailuresRequest - * @property {string|null} [address] QueryFailuresRequest address - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFailuresRequest pagination + * @interface IParams */ /** - * Constructs a new QueryFailuresRequest. + * Constructs a new Params. * @memberof neutron.contractmanager - * @classdesc Represents a QueryFailuresRequest. - * @implements IQueryFailuresRequest + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {neutron.contractmanager.IQueryFailuresRequest=} [properties] Properties to set + * @param {neutron.contractmanager.IParams=} [properties] Properties to set */ - function QueryFailuresRequest(properties) { + function Params(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -508,77 +463,51 @@ } /** - * QueryFailuresRequest address. - * @member {string} address - * @memberof neutron.contractmanager.QueryFailuresRequest - * @instance - */ - QueryFailuresRequest.prototype.address = ""; - - /** - * QueryFailuresRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof neutron.contractmanager.QueryFailuresRequest - * @instance - */ - QueryFailuresRequest.prototype.pagination = null; - - /** - * Encodes the specified QueryFailuresRequest message. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static - * @param {neutron.contractmanager.IQueryFailuresRequest} message QueryFailuresRequest message or plain object to encode + * @param {neutron.contractmanager.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFailuresRequest.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.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 QueryFailuresRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static - * @param {neutron.contractmanager.IQueryFailuresRequest} message QueryFailuresRequest message or plain object to encode + * @param {neutron.contractmanager.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFailuresRequest.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFailuresRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest + * @returns {neutron.contractmanager.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFailuresRequest.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.neutron.contractmanager.QueryFailuresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -588,123 +517,98 @@ }; /** - * Decodes a QueryFailuresRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest + * @returns {neutron.contractmanager.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFailuresRequest.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 QueryFailuresRequest message. + * Verifies a Params message. * @function verify - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFailuresRequest.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.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 QueryFailuresRequest 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 neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest + * @returns {neutron.contractmanager.Params} Params */ - QueryFailuresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.QueryFailuresRequest) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.Params) return object; - var message = new $root.neutron.contractmanager.QueryFailuresRequest(); - if (object.address != null) - message.address = String(object.address); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.contractmanager.QueryFailuresRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } - return message; + return new $root.neutron.contractmanager.Params(); }; /** - * Creates a plain object from a QueryFailuresRequest 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 neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @static - * @param {neutron.contractmanager.QueryFailuresRequest} message QueryFailuresRequest + * @param {neutron.contractmanager.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFailuresRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.pagination = null; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - return object; + Params.toObject = function toObject() { + return {}; }; /** - * Converts this QueryFailuresRequest to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof neutron.contractmanager.QueryFailuresRequest + * @memberof neutron.contractmanager.Params * @instance * @returns {Object.} JSON object */ - QueryFailuresRequest.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFailuresRequest; + return Params; })(); - contractmanager.QueryFailuresResponse = (function() { + contractmanager.Failure = (function() { /** - * Properties of a QueryFailuresResponse. + * Properties of a Failure. * @memberof neutron.contractmanager - * @interface IQueryFailuresResponse - * @property {Array.|null} [failures] QueryFailuresResponse failures - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryFailuresResponse pagination + * @interface IFailure + * @property {string|null} [address] Failure address + * @property {Long|null} [id] Failure id + * @property {string|null} [ack_type] Failure ack_type + * @property {ibc.core.channel.v1.IPacket|null} [packet] Failure packet + * @property {ibc.core.channel.v1.IAcknowledgement|null} [ack] Failure ack */ /** - * Constructs a new QueryFailuresResponse. + * Constructs a new Failure. * @memberof neutron.contractmanager - * @classdesc Represents a QueryFailuresResponse. - * @implements IQueryFailuresResponse + * @classdesc Represents a Failure. + * @implements IFailure * @constructor - * @param {neutron.contractmanager.IQueryFailuresResponse=} [properties] Properties to set + * @param {neutron.contractmanager.IFailure=} [properties] Properties to set */ - function QueryFailuresResponse(properties) { - this.failures = []; + function Failure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -712,79 +616,115 @@ } /** - * QueryFailuresResponse failures. - * @member {Array.} failures - * @memberof neutron.contractmanager.QueryFailuresResponse + * Failure address. + * @member {string} address + * @memberof neutron.contractmanager.Failure * @instance */ - QueryFailuresResponse.prototype.failures = $util.emptyArray; + Failure.prototype.address = ""; /** - * QueryFailuresResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof neutron.contractmanager.QueryFailuresResponse + * Failure id. + * @member {Long} id + * @memberof neutron.contractmanager.Failure * @instance */ - QueryFailuresResponse.prototype.pagination = null; + Failure.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryFailuresResponse message. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. + * Failure ack_type. + * @member {string} ack_type + * @memberof neutron.contractmanager.Failure + * @instance + */ + Failure.prototype.ack_type = ""; + + /** + * Failure packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof neutron.contractmanager.Failure + * @instance + */ + Failure.prototype.packet = null; + + /** + * Failure ack. + * @member {ibc.core.channel.v1.IAcknowledgement|null|undefined} ack + * @memberof neutron.contractmanager.Failure + * @instance + */ + Failure.prototype.ack = null; + + /** + * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static - * @param {neutron.contractmanager.IQueryFailuresResponse} message QueryFailuresResponse message or plain object to encode + * @param {neutron.contractmanager.IFailure} message Failure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFailuresResponse.encode = function encode(message, writer) { + Failure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.failures != null && message.failures.length) - for (var i = 0; i < message.failures.length; ++i) - $root.neutron.contractmanager.Failure.encode(message.failures[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.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.id); + if (message.ack_type != null && Object.hasOwnProperty.call(message, "ack_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ack_type); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.ack != null && Object.hasOwnProperty.call(message, "ack")) + $root.ibc.core.channel.v1.Acknowledgement.encode(message.ack, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFailuresResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. + * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static - * @param {neutron.contractmanager.IQueryFailuresResponse} message QueryFailuresResponse message or plain object to encode + * @param {neutron.contractmanager.IFailure} message Failure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFailuresResponse.encodeDelimited = function encodeDelimited(message, writer) { + Failure.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFailuresResponse message from the specified reader or buffer. + * Decodes a Failure message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse + * @returns {neutron.contractmanager.Failure} Failure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFailuresResponse.decode = function decode(reader, length) { + Failure.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryFailuresResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.Failure(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.failures && message.failures.length)) - message.failures = []; - message.failures.push($root.neutron.contractmanager.Failure.decode(reader, reader.uint32())); + message.address = reader.string(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.id = reader.uint64(); + break; + case 3: + message.ack_type = reader.string(); + break; + case 4: + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + break; + case 5: + message.ack = $root.ibc.core.channel.v1.Acknowledgement.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -795,137 +735,283 @@ }; /** - * Decodes a QueryFailuresResponse message from the specified reader or buffer, length delimited. + * Decodes a Failure message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse + * @returns {neutron.contractmanager.Failure} Failure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFailuresResponse.decodeDelimited = function decodeDelimited(reader) { + Failure.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFailuresResponse message. + * Verifies a Failure message. * @function verify - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFailuresResponse.verify = function verify(message) { + Failure.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.failures != null && message.hasOwnProperty("failures")) { - if (!Array.isArray(message.failures)) - return "failures: array expected"; - for (var i = 0; i < message.failures.length; ++i) { - var error = $root.neutron.contractmanager.Failure.verify(message.failures[i]); - if (error) - return "failures." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: 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.ack_type != null && message.hasOwnProperty("ack_type")) + if (!$util.isString(message.ack_type)) + return "ack_type: 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.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (message.ack != null && message.hasOwnProperty("ack")) { + var error = $root.ibc.core.channel.v1.Acknowledgement.verify(message.ack); if (error) - return "pagination." + error; + return "ack." + error; } return null; }; /** - * Creates a QueryFailuresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Failure message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse + * @returns {neutron.contractmanager.Failure} Failure */ - QueryFailuresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.QueryFailuresResponse) + Failure.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.Failure) return object; - var message = new $root.neutron.contractmanager.QueryFailuresResponse(); - if (object.failures) { - if (!Array.isArray(object.failures)) - throw TypeError(".neutron.contractmanager.QueryFailuresResponse.failures: array expected"); - message.failures = []; - for (var i = 0; i < object.failures.length; ++i) { - if (typeof object.failures[i] !== "object") - throw TypeError(".neutron.contractmanager.QueryFailuresResponse.failures: object expected"); - message.failures[i] = $root.neutron.contractmanager.Failure.fromObject(object.failures[i]); - } + var message = new $root.neutron.contractmanager.Failure(); + if (object.address != null) + message.address = String(object.address); + 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.ack_type != null) + message.ack_type = String(object.ack_type); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".neutron.contractmanager.Failure.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.contractmanager.QueryFailuresResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + if (object.ack != null) { + if (typeof object.ack !== "object") + throw TypeError(".neutron.contractmanager.Failure.ack: object expected"); + message.ack = $root.ibc.core.channel.v1.Acknowledgement.fromObject(object.ack); } return message; }; /** - * Creates a plain object from a QueryFailuresResponse message. Also converts values to other types if specified. + * Creates a plain object from a Failure message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @static - * @param {neutron.contractmanager.QueryFailuresResponse} message QueryFailuresResponse + * @param {neutron.contractmanager.Failure} message Failure * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFailuresResponse.toObject = function toObject(message, options) { + Failure.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.failures = []; - if (options.defaults) - object.pagination = null; - if (message.failures && message.failures.length) { - object.failures = []; - for (var j = 0; j < message.failures.length; ++j) - object.failures[j] = $root.neutron.contractmanager.Failure.toObject(message.failures[j], options); + if (options.defaults) { + object.address = ""; + 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.ack_type = ""; + object.packet = null; + object.ack = null; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + 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.ack_type != null && message.hasOwnProperty("ack_type")) + object.ack_type = message.ack_type; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.ack != null && message.hasOwnProperty("ack")) + object.ack = $root.ibc.core.channel.v1.Acknowledgement.toObject(message.ack, options); return object; }; /** - * Converts this QueryFailuresResponse to JSON. + * Converts this Failure to JSON. * @function toJSON - * @memberof neutron.contractmanager.QueryFailuresResponse + * @memberof neutron.contractmanager.Failure * @instance * @returns {Object.} JSON object */ - QueryFailuresResponse.prototype.toJSON = function toJSON() { + Failure.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFailuresResponse; + return Failure; })(); - contractmanager.Params = (function() { + contractmanager.Query = (function() { /** - * Properties of a Params. + * Constructs a new Query service. * @memberof neutron.contractmanager - * @interface IParams + * @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 neutron.contractmanager.Query#params}. + * @memberof neutron.contractmanager.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.contractmanager.QueryParamsResponse} [response] QueryParamsResponse */ /** - * Constructs a new Params. + * Calls Params. + * @function params + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.contractmanager.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.neutron.contractmanager.QueryParamsRequest, $root.neutron.contractmanager.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); + + /** + * Calls Params. + * @function params + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.contractmanager.Query#addressFailures}. + * @memberof neutron.contractmanager.Query + * @typedef AddressFailuresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.contractmanager.QueryFailuresResponse} [response] QueryFailuresResponse + */ + + /** + * Calls AddressFailures. + * @function addressFailures + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object + * @param {neutron.contractmanager.Query.AddressFailuresCallback} callback Node-style callback called with the error, if any, and QueryFailuresResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.addressFailures = function addressFailures(request, callback) { + return this.rpcCall(addressFailures, $root.neutron.contractmanager.QueryFailuresRequest, $root.neutron.contractmanager.QueryFailuresResponse, request, callback); + }, "name", { value: "AddressFailures" }); + + /** + * Calls AddressFailures. + * @function addressFailures + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.contractmanager.Query#failures}. + * @memberof neutron.contractmanager.Query + * @typedef FailuresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.contractmanager.QueryFailuresResponse} [response] QueryFailuresResponse + */ + + /** + * Calls Failures. + * @function failures + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object + * @param {neutron.contractmanager.Query.FailuresCallback} callback Node-style callback called with the error, if any, and QueryFailuresResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.failures = function failures(request, callback) { + return this.rpcCall(failures, $root.neutron.contractmanager.QueryFailuresRequest, $root.neutron.contractmanager.QueryFailuresResponse, request, callback); + }, "name", { value: "Failures" }); + + /** + * Calls Failures. + * @function failures + * @memberof neutron.contractmanager.Query + * @instance + * @param {neutron.contractmanager.IQueryFailuresRequest} request QueryFailuresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + contractmanager.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. * @memberof neutron.contractmanager - * @classdesc Represents a Params. - * @implements IParams + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof neutron.contractmanager + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest * @constructor - * @param {neutron.contractmanager.IParams=} [properties] Properties to set + * @param {neutron.contractmanager.IQueryParamsRequest=} [properties] Properties to set */ - function Params(properties) { + function QueryParamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -933,48 +1019,48 @@ } /** - * Encodes the specified Params message. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static - * @param {neutron.contractmanager.IParams} message Params message or plain object to encode + * @param {neutron.contractmanager.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + QueryParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static - * @param {neutron.contractmanager.IParams} message Params message or plain object to encode + * @param {neutron.contractmanager.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryParamsRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.Params} Params + * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest * @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) { + 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.neutron.contractmanager.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -987,98 +1073,94 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.Params} Params + * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest * @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) { + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a QueryParamsRequest message. * @function verify - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @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) { + QueryParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a Params 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. * @function fromObject - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.Params} Params + * @returns {neutron.contractmanager.QueryParamsRequest} QueryParamsRequest */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.Params) + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.QueryParamsRequest) return object; - return new $root.neutron.contractmanager.Params(); + return new $root.neutron.contractmanager.QueryParamsRequest(); }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @static - * @param {neutron.contractmanager.Params} message Params + * @param {neutron.contractmanager.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject() { + QueryParamsRequest.toObject = function toObject() { return {}; }; /** - * Converts this Params to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof neutron.contractmanager.Params + * @memberof neutron.contractmanager.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return QueryParamsRequest; })(); - contractmanager.Failure = (function() { + contractmanager.QueryParamsResponse = (function() { /** - * Properties of a Failure. + * Properties of a QueryParamsResponse. * @memberof neutron.contractmanager - * @interface IFailure - * @property {string|null} [channel_id] Failure channel_id - * @property {string|null} [address] Failure address - * @property {Long|null} [id] Failure id - * @property {Long|null} [ack_id] Failure ack_id - * @property {string|null} [ack_type] Failure ack_type + * @interface IQueryParamsResponse + * @property {neutron.contractmanager.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new Failure. + * Constructs a new QueryParamsResponse. * @memberof neutron.contractmanager - * @classdesc Represents a Failure. - * @implements IFailure + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {neutron.contractmanager.IFailure=} [properties] Properties to set + * @param {neutron.contractmanager.IQueryParamsResponse=} [properties] Properties to set */ - function Failure(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1086,115 +1168,63 @@ } /** - * Failure channel_id. - * @member {string} channel_id - * @memberof neutron.contractmanager.Failure - * @instance - */ - Failure.prototype.channel_id = ""; - - /** - * Failure address. - * @member {string} address - * @memberof neutron.contractmanager.Failure - * @instance - */ - Failure.prototype.address = ""; - - /** - * Failure id. - * @member {Long} id - * @memberof neutron.contractmanager.Failure - * @instance - */ - Failure.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Failure ack_id. - * @member {Long} ack_id - * @memberof neutron.contractmanager.Failure - * @instance - */ - Failure.prototype.ack_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Failure ack_type. - * @member {string} ack_type - * @memberof neutron.contractmanager.Failure + * QueryParamsResponse params. + * @member {neutron.contractmanager.IParams|null|undefined} params + * @memberof neutron.contractmanager.QueryParamsResponse * @instance */ - Failure.prototype.ack_type = ""; + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static - * @param {neutron.contractmanager.IFailure} message Failure message or plain object to encode + * @param {neutron.contractmanager.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Failure.encode = function encode(message, writer) { + QueryParamsResponse.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.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.address); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.id); - if (message.ack_id != null && Object.hasOwnProperty.call(message, "ack_id")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.ack_id); - if (message.ack_type != null && Object.hasOwnProperty.call(message, "ack_type")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.ack_type); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.contractmanager.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static - * @param {neutron.contractmanager.IFailure} message Failure message or plain object to encode + * @param {neutron.contractmanager.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Failure.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Failure message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.Failure} Failure + * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Failure.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.neutron.contractmanager.Failure(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); - break; - case 2: - message.address = reader.string(); - break; - case 3: - message.id = reader.uint64(); - break; - case 4: - message.ack_id = reader.uint64(); - break; - case 5: - message.ack_type = reader.string(); + message.params = $root.neutron.contractmanager.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1205,170 +1235,113 @@ }; /** - * Decodes a Failure message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.Failure} Failure + * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Failure.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 Failure message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Failure.verify = function verify(message) { + QueryParamsResponse.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.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: 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.ack_id != null && message.hasOwnProperty("ack_id")) - if (!$util.isInteger(message.ack_id) && !(message.ack_id && $util.isInteger(message.ack_id.low) && $util.isInteger(message.ack_id.high))) - return "ack_id: integer|Long expected"; - if (message.ack_type != null && message.hasOwnProperty("ack_type")) - if (!$util.isString(message.ack_type)) - return "ack_type: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.contractmanager.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a Failure 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 neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.Failure} Failure + * @returns {neutron.contractmanager.QueryParamsResponse} QueryParamsResponse */ - Failure.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.Failure) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.QueryParamsResponse) return object; - var message = new $root.neutron.contractmanager.Failure(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.address != null) - message.address = String(object.address); - 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.ack_id != null) - if ($util.Long) - (message.ack_id = $util.Long.fromValue(object.ack_id)).unsigned = true; - else if (typeof object.ack_id === "string") - message.ack_id = parseInt(object.ack_id, 10); - else if (typeof object.ack_id === "number") - message.ack_id = object.ack_id; - else if (typeof object.ack_id === "object") - message.ack_id = new $util.LongBits(object.ack_id.low >>> 0, object.ack_id.high >>> 0).toNumber(true); - if (object.ack_type != null) - message.ack_type = String(object.ack_type); + var message = new $root.neutron.contractmanager.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.contractmanager.QueryParamsResponse.params: object expected"); + message.params = $root.neutron.contractmanager.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a Failure 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 neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @static - * @param {neutron.contractmanager.Failure} message Failure + * @param {neutron.contractmanager.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Failure.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.channel_id = ""; - object.address = ""; - 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; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.ack_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ack_id = options.longs === String ? "0" : 0; - object.ack_type = ""; - } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - 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.ack_id != null && message.hasOwnProperty("ack_id")) - if (typeof message.ack_id === "number") - object.ack_id = options.longs === String ? String(message.ack_id) : message.ack_id; - else - object.ack_id = options.longs === String ? $util.Long.prototype.toString.call(message.ack_id) : options.longs === Number ? new $util.LongBits(message.ack_id.low >>> 0, message.ack_id.high >>> 0).toNumber(true) : message.ack_id; - if (message.ack_type != null && message.hasOwnProperty("ack_type")) - object.ack_type = message.ack_type; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.contractmanager.Params.toObject(message.params, options); return object; }; /** - * Converts this Failure to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof neutron.contractmanager.Failure + * @memberof neutron.contractmanager.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - Failure.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Failure; + return QueryParamsResponse; })(); - contractmanager.GenesisState = (function() { + contractmanager.QueryFailuresRequest = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryFailuresRequest. * @memberof neutron.contractmanager - * @interface IGenesisState - * @property {neutron.contractmanager.IParams|null} [params] GenesisState params - * @property {Array.|null} [failures_list] GenesisState failures_list + * @interface IQueryFailuresRequest + * @property {string|null} [address] QueryFailuresRequest address + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFailuresRequest pagination */ /** - * Constructs a new GenesisState. + * Constructs a new QueryFailuresRequest. * @memberof neutron.contractmanager - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryFailuresRequest. + * @implements IQueryFailuresRequest * @constructor - * @param {neutron.contractmanager.IGenesisState=} [properties] Properties to set + * @param {neutron.contractmanager.IQueryFailuresRequest=} [properties] Properties to set */ - function GenesisState(properties) { - this.failures_list = []; + function QueryFailuresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1376,79 +1349,76 @@ } /** - * GenesisState params. - * @member {neutron.contractmanager.IParams|null|undefined} params - * @memberof neutron.contractmanager.GenesisState + * QueryFailuresRequest address. + * @member {string} address + * @memberof neutron.contractmanager.QueryFailuresRequest * @instance */ - GenesisState.prototype.params = null; + QueryFailuresRequest.prototype.address = ""; /** - * GenesisState failures_list. - * @member {Array.} failures_list - * @memberof neutron.contractmanager.GenesisState + * QueryFailuresRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof neutron.contractmanager.QueryFailuresRequest * @instance */ - GenesisState.prototype.failures_list = $util.emptyArray; + QueryFailuresRequest.prototype.pagination = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. + * Encodes the specified QueryFailuresRequest message. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. * @function encode - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static - * @param {neutron.contractmanager.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.contractmanager.IQueryFailuresRequest} message QueryFailuresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryFailuresRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.contractmanager.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.failures_list != null && message.failures_list.length) - for (var i = 0; i < message.failures_list.length; ++i) - $root.neutron.contractmanager.Failure.encode(message.failures_list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + 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 GenesisState message, length delimited. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. + * Encodes the specified QueryFailuresRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static - * @param {neutron.contractmanager.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.contractmanager.IQueryFailuresRequest} message QueryFailuresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryFailuresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryFailuresRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.contractmanager.GenesisState} GenesisState + * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest * @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) { + QueryFailuresRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryFailuresRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.contractmanager.Params.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - if (!(message.failures_list && message.failures_list.length)) - message.failures_list = []; - message.failures_list.push($root.neutron.contractmanager.Failure.decode(reader, reader.uint32())); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1459,175 +1429,123 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryFailuresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.contractmanager.GenesisState} GenesisState + * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest * @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) { + QueryFailuresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryFailuresRequest message. * @function verify - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @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) { + QueryFailuresRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.contractmanager.Params.verify(message.params); + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "params." + error; - } - if (message.failures_list != null && message.hasOwnProperty("failures_list")) { - if (!Array.isArray(message.failures_list)) - return "failures_list: array expected"; - for (var i = 0; i < message.failures_list.length; ++i) { - var error = $root.neutron.contractmanager.Failure.verify(message.failures_list[i]); - if (error) - return "failures_list." + error; - } + return "pagination." + error; } return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryFailuresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static * @param {Object.} object Plain object - * @returns {neutron.contractmanager.GenesisState} GenesisState + * @returns {neutron.contractmanager.QueryFailuresRequest} QueryFailuresRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.contractmanager.GenesisState) + QueryFailuresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.QueryFailuresRequest) return object; - var message = new $root.neutron.contractmanager.GenesisState(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.contractmanager.GenesisState.params: object expected"); - message.params = $root.neutron.contractmanager.Params.fromObject(object.params); - } - if (object.failures_list) { - if (!Array.isArray(object.failures_list)) - throw TypeError(".neutron.contractmanager.GenesisState.failures_list: array expected"); - message.failures_list = []; - for (var i = 0; i < object.failures_list.length; ++i) { - if (typeof object.failures_list[i] !== "object") - throw TypeError(".neutron.contractmanager.GenesisState.failures_list: object expected"); - message.failures_list[i] = $root.neutron.contractmanager.Failure.fromObject(object.failures_list[i]); - } + var message = new $root.neutron.contractmanager.QueryFailuresRequest(); + if (object.address != null) + message.address = String(object.address); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.contractmanager.QueryFailuresRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryFailuresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @static - * @param {neutron.contractmanager.GenesisState} message GenesisState + * @param {neutron.contractmanager.QueryFailuresRequest} message QueryFailuresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryFailuresRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.failures_list = []; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.contractmanager.Params.toObject(message.params, options); - if (message.failures_list && message.failures_list.length) { - object.failures_list = []; - for (var j = 0; j < message.failures_list.length; ++j) - object.failures_list[j] = $root.neutron.contractmanager.Failure.toObject(message.failures_list[j], options); + if (options.defaults) { + object.address = ""; + object.pagination = null; } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryFailuresRequest to JSON. * @function toJSON - * @memberof neutron.contractmanager.GenesisState + * @memberof neutron.contractmanager.QueryFailuresRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryFailuresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; - })(); - - return contractmanager; - })(); - - neutron.cron = (function() { - - /** - * Namespace cron. - * @memberof neutron - * @namespace - */ - var cron = {}; - - cron.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof neutron.cron - * @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; - - return Msg; + return QueryFailuresRequest; })(); - cron.Schedule = (function() { + contractmanager.QueryFailuresResponse = (function() { /** - * Properties of a Schedule. - * @memberof neutron.cron - * @interface ISchedule - * @property {string|null} [name] Schedule name - * @property {Long|null} [period] Schedule period - * @property {Array.|null} [msgs] Schedule msgs - * @property {Long|null} [last_execute_height] Schedule last_execute_height + * Properties of a QueryFailuresResponse. + * @memberof neutron.contractmanager + * @interface IQueryFailuresResponse + * @property {Array.|null} [failures] QueryFailuresResponse failures + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryFailuresResponse pagination */ /** - * Constructs a new Schedule. - * @memberof neutron.cron - * @classdesc Represents a Schedule. - * @implements ISchedule + * Constructs a new QueryFailuresResponse. + * @memberof neutron.contractmanager + * @classdesc Represents a QueryFailuresResponse. + * @implements IQueryFailuresResponse * @constructor - * @param {neutron.cron.ISchedule=} [properties] Properties to set + * @param {neutron.contractmanager.IQueryFailuresResponse=} [properties] Properties to set */ - function Schedule(properties) { - this.msgs = []; + function QueryFailuresResponse(properties) { + this.failures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1635,105 +1553,79 @@ } /** - * Schedule name. - * @member {string} name - * @memberof neutron.cron.Schedule - * @instance - */ - Schedule.prototype.name = ""; - - /** - * Schedule period. - * @member {Long} period - * @memberof neutron.cron.Schedule - * @instance - */ - Schedule.prototype.period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Schedule msgs. - * @member {Array.} msgs - * @memberof neutron.cron.Schedule + * QueryFailuresResponse failures. + * @member {Array.} failures + * @memberof neutron.contractmanager.QueryFailuresResponse * @instance */ - Schedule.prototype.msgs = $util.emptyArray; + QueryFailuresResponse.prototype.failures = $util.emptyArray; /** - * Schedule last_execute_height. - * @member {Long} last_execute_height - * @memberof neutron.cron.Schedule + * QueryFailuresResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof neutron.contractmanager.QueryFailuresResponse * @instance */ - Schedule.prototype.last_execute_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryFailuresResponse.prototype.pagination = null; /** - * Encodes the specified Schedule message. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. + * Encodes the specified QueryFailuresResponse message. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. * @function encode - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static - * @param {neutron.cron.ISchedule} message Schedule message or plain object to encode + * @param {neutron.contractmanager.IQueryFailuresResponse} message QueryFailuresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schedule.encode = function encode(message, writer) { + QueryFailuresResponse.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.period != null && Object.hasOwnProperty.call(message, "period")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.period); - if (message.msgs != null && message.msgs.length) - for (var i = 0; i < message.msgs.length; ++i) - $root.neutron.cron.MsgExecuteContract.encode(message.msgs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.last_execute_height != null && Object.hasOwnProperty.call(message, "last_execute_height")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.last_execute_height); + if (message.failures != null && message.failures.length) + for (var i = 0; i < message.failures.length; ++i) + $root.neutron.contractmanager.Failure.encode(message.failures[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 Schedule message, length delimited. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. + * Encodes the specified QueryFailuresResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static - * @param {neutron.cron.ISchedule} message Schedule message or plain object to encode + * @param {neutron.contractmanager.IQueryFailuresResponse} message QueryFailuresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schedule.encodeDelimited = function encodeDelimited(message, writer) { + QueryFailuresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Schedule message from the specified reader or buffer. + * Decodes a QueryFailuresResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.Schedule} Schedule + * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Schedule.decode = function decode(reader, length) { + QueryFailuresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.Schedule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.QueryFailuresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.failures && message.failures.length)) + message.failures = []; + message.failures.push($root.neutron.contractmanager.Failure.decode(reader, reader.uint32())); break; case 2: - message.period = reader.uint64(); - break; - case 3: - if (!(message.msgs && message.msgs.length)) - message.msgs = []; - message.msgs.push($root.neutron.cron.MsgExecuteContract.decode(reader, reader.uint32())); - break; - case 4: - message.last_execute_height = reader.uint64(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1744,179 +1636,140 @@ }; /** - * Decodes a Schedule message from the specified reader or buffer, length delimited. + * Decodes a QueryFailuresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.Schedule} Schedule + * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Schedule.decodeDelimited = function decodeDelimited(reader) { + QueryFailuresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Schedule message. + * Verifies a QueryFailuresResponse message. * @function verify - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Schedule.verify = function verify(message) { + QueryFailuresResponse.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.period != null && message.hasOwnProperty("period")) - if (!$util.isInteger(message.period) && !(message.period && $util.isInteger(message.period.low) && $util.isInteger(message.period.high))) - return "period: integer|Long expected"; - if (message.msgs != null && message.hasOwnProperty("msgs")) { - if (!Array.isArray(message.msgs)) - return "msgs: array expected"; - for (var i = 0; i < message.msgs.length; ++i) { - var error = $root.neutron.cron.MsgExecuteContract.verify(message.msgs[i]); + if (message.failures != null && message.hasOwnProperty("failures")) { + if (!Array.isArray(message.failures)) + return "failures: array expected"; + for (var i = 0; i < message.failures.length; ++i) { + var error = $root.neutron.contractmanager.Failure.verify(message.failures[i]); if (error) - return "msgs." + error; + return "failures." + error; } } - if (message.last_execute_height != null && message.hasOwnProperty("last_execute_height")) - if (!$util.isInteger(message.last_execute_height) && !(message.last_execute_height && $util.isInteger(message.last_execute_height.low) && $util.isInteger(message.last_execute_height.high))) - return "last_execute_height: integer|Long expected"; + 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 Schedule message from a plain object. Also converts values to their respective internal types. + * Creates a QueryFailuresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static * @param {Object.} object Plain object - * @returns {neutron.cron.Schedule} Schedule + * @returns {neutron.contractmanager.QueryFailuresResponse} QueryFailuresResponse */ - Schedule.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.Schedule) + QueryFailuresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.QueryFailuresResponse) return object; - var message = new $root.neutron.cron.Schedule(); - if (object.name != null) - message.name = String(object.name); - if (object.period != null) - if ($util.Long) - (message.period = $util.Long.fromValue(object.period)).unsigned = true; - else if (typeof object.period === "string") - message.period = parseInt(object.period, 10); - else if (typeof object.period === "number") - message.period = object.period; - else if (typeof object.period === "object") - message.period = new $util.LongBits(object.period.low >>> 0, object.period.high >>> 0).toNumber(true); - if (object.msgs) { - if (!Array.isArray(object.msgs)) - throw TypeError(".neutron.cron.Schedule.msgs: array expected"); - message.msgs = []; - for (var i = 0; i < object.msgs.length; ++i) { - if (typeof object.msgs[i] !== "object") - throw TypeError(".neutron.cron.Schedule.msgs: object expected"); - message.msgs[i] = $root.neutron.cron.MsgExecuteContract.fromObject(object.msgs[i]); + var message = new $root.neutron.contractmanager.QueryFailuresResponse(); + if (object.failures) { + if (!Array.isArray(object.failures)) + throw TypeError(".neutron.contractmanager.QueryFailuresResponse.failures: array expected"); + message.failures = []; + for (var i = 0; i < object.failures.length; ++i) { + if (typeof object.failures[i] !== "object") + throw TypeError(".neutron.contractmanager.QueryFailuresResponse.failures: object expected"); + message.failures[i] = $root.neutron.contractmanager.Failure.fromObject(object.failures[i]); } } - if (object.last_execute_height != null) - if ($util.Long) - (message.last_execute_height = $util.Long.fromValue(object.last_execute_height)).unsigned = true; - else if (typeof object.last_execute_height === "string") - message.last_execute_height = parseInt(object.last_execute_height, 10); - else if (typeof object.last_execute_height === "number") - message.last_execute_height = object.last_execute_height; - else if (typeof object.last_execute_height === "object") - message.last_execute_height = new $util.LongBits(object.last_execute_height.low >>> 0, object.last_execute_height.high >>> 0).toNumber(true); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.contractmanager.QueryFailuresResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a Schedule message. Also converts values to other types if specified. + * Creates a plain object from a QueryFailuresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @static - * @param {neutron.cron.Schedule} message Schedule + * @param {neutron.contractmanager.QueryFailuresResponse} message QueryFailuresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Schedule.toObject = function toObject(message, options) { + QueryFailuresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.msgs = []; - if (options.defaults) { - object.name = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.period = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.last_execute_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.last_execute_height = options.longs === String ? "0" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.period != null && message.hasOwnProperty("period")) - if (typeof message.period === "number") - object.period = options.longs === String ? String(message.period) : message.period; - else - object.period = options.longs === String ? $util.Long.prototype.toString.call(message.period) : options.longs === Number ? new $util.LongBits(message.period.low >>> 0, message.period.high >>> 0).toNumber(true) : message.period; - if (message.msgs && message.msgs.length) { - object.msgs = []; - for (var j = 0; j < message.msgs.length; ++j) - object.msgs[j] = $root.neutron.cron.MsgExecuteContract.toObject(message.msgs[j], options); + object.failures = []; + if (options.defaults) + object.pagination = null; + if (message.failures && message.failures.length) { + object.failures = []; + for (var j = 0; j < message.failures.length; ++j) + object.failures[j] = $root.neutron.contractmanager.Failure.toObject(message.failures[j], options); } - if (message.last_execute_height != null && message.hasOwnProperty("last_execute_height")) - if (typeof message.last_execute_height === "number") - object.last_execute_height = options.longs === String ? String(message.last_execute_height) : message.last_execute_height; - else - object.last_execute_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_execute_height) : options.longs === Number ? new $util.LongBits(message.last_execute_height.low >>> 0, message.last_execute_height.high >>> 0).toNumber(true) : message.last_execute_height; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this Schedule to JSON. + * Converts this QueryFailuresResponse to JSON. * @function toJSON - * @memberof neutron.cron.Schedule + * @memberof neutron.contractmanager.QueryFailuresResponse * @instance * @returns {Object.} JSON object */ - Schedule.prototype.toJSON = function toJSON() { + QueryFailuresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Schedule; + return QueryFailuresResponse; })(); - cron.MsgExecuteContract = (function() { + contractmanager.GenesisState = (function() { /** - * Properties of a MsgExecuteContract. - * @memberof neutron.cron - * @interface IMsgExecuteContract - * @property {string|null} [contract] MsgExecuteContract contract - * @property {string|null} [msg] MsgExecuteContract msg + * Properties of a GenesisState. + * @memberof neutron.contractmanager + * @interface IGenesisState + * @property {neutron.contractmanager.IParams|null} [params] GenesisState params + * @property {Array.|null} [failures_list] GenesisState failures_list */ /** - * Constructs a new MsgExecuteContract. - * @memberof neutron.cron - * @classdesc Represents a MsgExecuteContract. - * @implements IMsgExecuteContract + * Constructs a new GenesisState. + * @memberof neutron.contractmanager + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {neutron.cron.IMsgExecuteContract=} [properties] Properties to set + * @param {neutron.contractmanager.IGenesisState=} [properties] Properties to set */ - function MsgExecuteContract(properties) { + function GenesisState(properties) { + this.failures_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1924,76 +1777,79 @@ } /** - * MsgExecuteContract contract. - * @member {string} contract - * @memberof neutron.cron.MsgExecuteContract + * GenesisState params. + * @member {neutron.contractmanager.IParams|null|undefined} params + * @memberof neutron.contractmanager.GenesisState * @instance */ - MsgExecuteContract.prototype.contract = ""; + GenesisState.prototype.params = null; /** - * MsgExecuteContract msg. - * @member {string} msg - * @memberof neutron.cron.MsgExecuteContract + * GenesisState failures_list. + * @member {Array.} failures_list + * @memberof neutron.contractmanager.GenesisState * @instance */ - MsgExecuteContract.prototype.msg = ""; + GenesisState.prototype.failures_list = $util.emptyArray; /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. * @function encode - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static - * @param {neutron.cron.IMsgExecuteContract} message MsgExecuteContract message or plain object to encode + * @param {neutron.contractmanager.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgExecuteContract.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contract != null && Object.hasOwnProperty.call(message, "contract")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.contract); - if (message.msg != null && Object.hasOwnProperty.call(message, "msg")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.msg); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.contractmanager.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.failures_list != null && message.failures_list.length) + for (var i = 0; i < message.failures_list.length; ++i) + $root.neutron.contractmanager.Failure.encode(message.failures_list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgExecuteContract message, length delimited. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static - * @param {neutron.cron.IMsgExecuteContract} message MsgExecuteContract message or plain object to encode + * @param {neutron.contractmanager.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgExecuteContract.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract + * @returns {neutron.contractmanager.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgExecuteContract.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.neutron.cron.MsgExecuteContract(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.contract = reader.string(); + message.params = $root.neutron.contractmanager.Params.decode(reader, reader.uint32()); break; case 2: - message.msg = reader.string(); + if (!(message.failures_list && message.failures_list.length)) + message.failures_list = []; + message.failures_list.push($root.neutron.contractmanager.Failure.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -2004,116 +1860,509 @@ }; /** - * Decodes a MsgExecuteContract message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract + * @returns {neutron.contractmanager.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgExecuteContract.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 MsgExecuteContract message. + * Verifies a GenesisState message. * @function verify - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgExecuteContract.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contract != null && message.hasOwnProperty("contract")) - if (!$util.isString(message.contract)) - return "contract: string expected"; - if (message.msg != null && message.hasOwnProperty("msg")) - if (!$util.isString(message.msg)) - return "msg: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.contractmanager.Params.verify(message.params); + if (error) + return "params." + error; + } + if (message.failures_list != null && message.hasOwnProperty("failures_list")) { + if (!Array.isArray(message.failures_list)) + return "failures_list: array expected"; + for (var i = 0; i < message.failures_list.length; ++i) { + var error = $root.neutron.contractmanager.Failure.verify(message.failures_list[i]); + if (error) + return "failures_list." + error; + } + } return null; }; /** - * Creates a MsgExecuteContract 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 neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static * @param {Object.} object Plain object - * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract + * @returns {neutron.contractmanager.GenesisState} GenesisState */ - MsgExecuteContract.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.MsgExecuteContract) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.GenesisState) return object; - var message = new $root.neutron.cron.MsgExecuteContract(); - if (object.contract != null) - message.contract = String(object.contract); - if (object.msg != null) - message.msg = String(object.msg); + var message = new $root.neutron.contractmanager.GenesisState(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.contractmanager.GenesisState.params: object expected"); + message.params = $root.neutron.contractmanager.Params.fromObject(object.params); + } + if (object.failures_list) { + if (!Array.isArray(object.failures_list)) + throw TypeError(".neutron.contractmanager.GenesisState.failures_list: array expected"); + message.failures_list = []; + for (var i = 0; i < object.failures_list.length; ++i) { + if (typeof object.failures_list[i] !== "object") + throw TypeError(".neutron.contractmanager.GenesisState.failures_list: object expected"); + message.failures_list[i] = $root.neutron.contractmanager.Failure.fromObject(object.failures_list[i]); + } + } return message; }; /** - * Creates a plain object from a MsgExecuteContract 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 neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @static - * @param {neutron.cron.MsgExecuteContract} message MsgExecuteContract + * @param {neutron.contractmanager.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgExecuteContract.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.contract = ""; - object.msg = ""; + if (options.arrays || options.defaults) + object.failures_list = []; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.contractmanager.Params.toObject(message.params, options); + if (message.failures_list && message.failures_list.length) { + object.failures_list = []; + for (var j = 0; j < message.failures_list.length; ++j) + object.failures_list[j] = $root.neutron.contractmanager.Failure.toObject(message.failures_list[j], options); } - if (message.contract != null && message.hasOwnProperty("contract")) - object.contract = message.contract; - if (message.msg != null && message.hasOwnProperty("msg")) - object.msg = message.msg; return object; }; /** - * Converts this MsgExecuteContract to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof neutron.cron.MsgExecuteContract + * @memberof neutron.contractmanager.GenesisState * @instance * @returns {Object.} JSON object */ - MsgExecuteContract.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgExecuteContract; + return GenesisState; })(); - cron.ScheduleCount = (function() { + contractmanager.v1 = (function() { /** - * Properties of a ScheduleCount. + * Namespace v1. + * @memberof neutron.contractmanager + * @namespace + */ + var v1 = {}; + + v1.Failure = (function() { + + /** + * Properties of a Failure. + * @memberof neutron.contractmanager.v1 + * @interface IFailure + * @property {string|null} [channel_id] Failure channel_id + * @property {string|null} [address] Failure address + * @property {Long|null} [id] Failure id + * @property {Long|null} [ack_id] Failure ack_id + * @property {string|null} [ack_type] Failure ack_type + */ + + /** + * Constructs a new Failure. + * @memberof neutron.contractmanager.v1 + * @classdesc Represents a Failure. + * @implements IFailure + * @constructor + * @param {neutron.contractmanager.v1.IFailure=} [properties] Properties to set + */ + function Failure(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]]; + } + + /** + * Failure channel_id. + * @member {string} channel_id + * @memberof neutron.contractmanager.v1.Failure + * @instance + */ + Failure.prototype.channel_id = ""; + + /** + * Failure address. + * @member {string} address + * @memberof neutron.contractmanager.v1.Failure + * @instance + */ + Failure.prototype.address = ""; + + /** + * Failure id. + * @member {Long} id + * @memberof neutron.contractmanager.v1.Failure + * @instance + */ + Failure.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Failure ack_id. + * @member {Long} ack_id + * @memberof neutron.contractmanager.v1.Failure + * @instance + */ + Failure.prototype.ack_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Failure ack_type. + * @member {string} ack_type + * @memberof neutron.contractmanager.v1.Failure + * @instance + */ + Failure.prototype.ack_type = ""; + + /** + * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.v1.Failure.verify|verify} messages. + * @function encode + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {neutron.contractmanager.v1.IFailure} message Failure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Failure.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.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.address); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.id); + if (message.ack_id != null && Object.hasOwnProperty.call(message, "ack_id")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.ack_id); + if (message.ack_type != null && Object.hasOwnProperty.call(message, "ack_type")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.ack_type); + return writer; + }; + + /** + * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.v1.Failure.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {neutron.contractmanager.v1.IFailure} message Failure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Failure.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Failure message from the specified reader or buffer. + * @function decode + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.contractmanager.v1.Failure} Failure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Failure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.contractmanager.v1.Failure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel_id = reader.string(); + break; + case 2: + message.address = reader.string(); + break; + case 3: + message.id = reader.uint64(); + break; + case 4: + message.ack_id = reader.uint64(); + break; + case 5: + message.ack_type = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Failure message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.contractmanager.v1.Failure} Failure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Failure.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Failure message. + * @function verify + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Failure.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.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: 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.ack_id != null && message.hasOwnProperty("ack_id")) + if (!$util.isInteger(message.ack_id) && !(message.ack_id && $util.isInteger(message.ack_id.low) && $util.isInteger(message.ack_id.high))) + return "ack_id: integer|Long expected"; + if (message.ack_type != null && message.hasOwnProperty("ack_type")) + if (!$util.isString(message.ack_type)) + return "ack_type: string expected"; + return null; + }; + + /** + * Creates a Failure message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {Object.} object Plain object + * @returns {neutron.contractmanager.v1.Failure} Failure + */ + Failure.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.contractmanager.v1.Failure) + return object; + var message = new $root.neutron.contractmanager.v1.Failure(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.address != null) + message.address = String(object.address); + 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.ack_id != null) + if ($util.Long) + (message.ack_id = $util.Long.fromValue(object.ack_id)).unsigned = true; + else if (typeof object.ack_id === "string") + message.ack_id = parseInt(object.ack_id, 10); + else if (typeof object.ack_id === "number") + message.ack_id = object.ack_id; + else if (typeof object.ack_id === "object") + message.ack_id = new $util.LongBits(object.ack_id.low >>> 0, object.ack_id.high >>> 0).toNumber(true); + if (object.ack_type != null) + message.ack_type = String(object.ack_type); + return message; + }; + + /** + * Creates a plain object from a Failure message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.contractmanager.v1.Failure + * @static + * @param {neutron.contractmanager.v1.Failure} message Failure + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Failure.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.channel_id = ""; + object.address = ""; + 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; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.ack_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.ack_id = options.longs === String ? "0" : 0; + object.ack_type = ""; + } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + 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.ack_id != null && message.hasOwnProperty("ack_id")) + if (typeof message.ack_id === "number") + object.ack_id = options.longs === String ? String(message.ack_id) : message.ack_id; + else + object.ack_id = options.longs === String ? $util.Long.prototype.toString.call(message.ack_id) : options.longs === Number ? new $util.LongBits(message.ack_id.low >>> 0, message.ack_id.high >>> 0).toNumber(true) : message.ack_id; + if (message.ack_type != null && message.hasOwnProperty("ack_type")) + object.ack_type = message.ack_type; + return object; + }; + + /** + * Converts this Failure to JSON. + * @function toJSON + * @memberof neutron.contractmanager.v1.Failure + * @instance + * @returns {Object.} JSON object + */ + Failure.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Failure; + })(); + + return v1; + })(); + + return contractmanager; + })(); + + neutron.cron = (function() { + + /** + * Namespace cron. + * @memberof neutron + * @namespace + */ + var cron = {}; + + cron.Msg = (function() { + + /** + * Constructs a new Msg service. * @memberof neutron.cron - * @interface IScheduleCount - * @property {number|null} [count] ScheduleCount count + * @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 ScheduleCount. + * Callback as used by {@link neutron.cron.Msg#updateParams}. + * @memberof neutron.cron.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.cron.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.cron.Msg + * @instance + * @param {neutron.cron.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.cron.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.cron.MsgUpdateParams, $root.neutron.cron.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.cron.Msg + * @instance + * @param {neutron.cron.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + cron.MsgUpdateParams = (function() { + + /** + * Properties of a MsgUpdateParams. * @memberof neutron.cron - * @classdesc Represents a ScheduleCount. - * @implements IScheduleCount + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.cron.IParams|null} [params] MsgUpdateParams params + */ + + /** + * Constructs a new MsgUpdateParams. + * @memberof neutron.cron + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams * @constructor - * @param {neutron.cron.IScheduleCount=} [properties] Properties to set + * @param {neutron.cron.IMsgUpdateParams=} [properties] Properties to set */ - function ScheduleCount(properties) { + function MsgUpdateParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2121,63 +2370,76 @@ } /** - * ScheduleCount count. - * @member {number} count - * @memberof neutron.cron.ScheduleCount + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.cron.MsgUpdateParams * @instance */ - ScheduleCount.prototype.count = 0; + MsgUpdateParams.prototype.authority = ""; /** - * Encodes the specified ScheduleCount message. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. + * MsgUpdateParams params. + * @member {neutron.cron.IParams|null|undefined} params + * @memberof neutron.cron.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.params = null; + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.cron.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static - * @param {neutron.cron.IScheduleCount} message ScheduleCount message or plain object to encode + * @param {neutron.cron.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ScheduleCount.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.cron.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ScheduleCount message, length delimited. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.cron.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static - * @param {neutron.cron.IScheduleCount} message ScheduleCount message or plain object to encode + * @param {neutron.cron.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ScheduleCount.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ScheduleCount message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.ScheduleCount} ScheduleCount + * @returns {neutron.cron.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ScheduleCount.decode = function decode(reader, length) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.ScheduleCount(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.count = reader.int32(); + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.cron.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2188,375 +2450,270 @@ }; /** - * Decodes a ScheduleCount message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.ScheduleCount} ScheduleCount + * @returns {neutron.cron.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ScheduleCount.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ScheduleCount message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ScheduleCount.verify = function verify(message) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.cron.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a ScheduleCount message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {neutron.cron.ScheduleCount} ScheduleCount + * @returns {neutron.cron.MsgUpdateParams} MsgUpdateParams */ - ScheduleCount.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.ScheduleCount) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.MsgUpdateParams) return object; - var message = new $root.neutron.cron.ScheduleCount(); - if (object.count != null) - message.count = object.count | 0; + var message = new $root.neutron.cron.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.cron.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.cron.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a ScheduleCount message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @static - * @param {neutron.cron.ScheduleCount} message ScheduleCount + * @param {neutron.cron.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ScheduleCount.toObject = function toObject(message, options) { + MsgUpdateParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.count = 0; - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.cron.Params.toObject(message.params, options); return object; }; /** - * Converts this ScheduleCount to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof neutron.cron.ScheduleCount + * @memberof neutron.cron.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - ScheduleCount.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ScheduleCount; + return MsgUpdateParams; })(); - cron.Query = (function() { + cron.MsgUpdateParamsResponse = (function() { /** - * Constructs a new Query service. + * Properties of a MsgUpdateParamsResponse. * @memberof neutron.cron - * @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 + * @interface IMsgUpdateParamsResponse */ - 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 neutron.cron.Query#params}. - * @memberof neutron.cron.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.cron.QueryParamsResponse} [response] QueryParamsResponse + * Constructs a new MsgUpdateParamsResponse. + * @memberof neutron.cron + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse + * @constructor + * @param {neutron.cron.IMsgUpdateParamsResponse=} [properties] Properties to set */ + function MsgUpdateParamsResponse(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 Params. - * @function params - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.cron.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.cron.MsgUpdateParamsResponse.verify|verify} messages. + * @function encode + * @memberof neutron.cron.MsgUpdateParamsResponse + * @static + * @param {neutron.cron.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.neutron.cron.QueryParamsRequest, $root.neutron.cron.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + MsgUpdateParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls Params. - * @function params - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.MsgUpdateParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.cron.MsgUpdateParamsResponse + * @static + * @param {neutron.cron.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link neutron.cron.Query#schedule}. - * @memberof neutron.cron.Query - * @typedef ScheduleCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.cron.QueryGetScheduleResponse} [response] QueryGetScheduleResponse + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.cron.MsgUpdateParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.cron.MsgUpdateParamsResponse} MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgUpdateParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.MsgUpdateParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls Schedule. - * @function schedule - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQueryGetScheduleRequest} request QueryGetScheduleRequest message or plain object - * @param {neutron.cron.Query.ScheduleCallback} callback Node-style callback called with the error, if any, and QueryGetScheduleResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.schedule = function schedule(request, callback) { - return this.rpcCall(schedule, $root.neutron.cron.QueryGetScheduleRequest, $root.neutron.cron.QueryGetScheduleResponse, request, callback); - }, "name", { value: "Schedule" }); - - /** - * Calls Schedule. - * @function schedule - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQueryGetScheduleRequest} request QueryGetScheduleRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.cron.Query#schedules}. - * @memberof neutron.cron.Query - * @typedef SchedulesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.cron.QuerySchedulesResponse} [response] QuerySchedulesResponse - */ - - /** - * Calls Schedules. - * @function schedules - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQuerySchedulesRequest} request QuerySchedulesRequest message or plain object - * @param {neutron.cron.Query.SchedulesCallback} callback Node-style callback called with the error, if any, and QuerySchedulesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.schedules = function schedules(request, callback) { - return this.rpcCall(schedules, $root.neutron.cron.QuerySchedulesRequest, $root.neutron.cron.QuerySchedulesResponse, request, callback); - }, "name", { value: "Schedules" }); - - /** - * Calls Schedules. - * @function schedules - * @memberof neutron.cron.Query - * @instance - * @param {neutron.cron.IQuerySchedulesRequest} request QuerySchedulesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; - })(); - - cron.QueryParamsRequest = (function() { - - /** - * Properties of a QueryParamsRequest. - * @memberof neutron.cron - * @interface IQueryParamsRequest - */ - - /** - * Constructs a new QueryParamsRequest. - * @memberof neutron.cron - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {neutron.cron.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 neutron.cron.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof neutron.cron.QueryParamsRequest - * @static - * @param {neutron.cron.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 neutron.cron.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.cron.QueryParamsRequest - * @static - * @param {neutron.cron.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 neutron.cron.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.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.neutron.cron.QueryParamsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QueryParamsRequest + * @memberof neutron.cron.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.cron.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParamsResponse message. * @function verify - * @memberof neutron.cron.QueryParamsRequest + * @memberof neutron.cron.MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.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. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.QueryParamsRequest + * @memberof neutron.cron.MsgUpdateParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.cron.MsgUpdateParamsResponse} MsgUpdateParamsResponse */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QueryParamsRequest) + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.MsgUpdateParamsResponse) return object; - return new $root.neutron.cron.QueryParamsRequest(); + return new $root.neutron.cron.MsgUpdateParamsResponse(); }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.QueryParamsRequest + * @memberof neutron.cron.MsgUpdateParamsResponse * @static - * @param {neutron.cron.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.cron.MsgUpdateParamsResponse} message MsgUpdateParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { + MsgUpdateParamsResponse.toObject = function toObject() { return {}; }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @function toJSON - * @memberof neutron.cron.QueryParamsRequest + * @memberof neutron.cron.MsgUpdateParamsResponse * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return MsgUpdateParamsResponse; })(); - cron.QueryParamsResponse = (function() { + cron.Params = (function() { /** - * Properties of a QueryParamsResponse. + * Properties of a Params. * @memberof neutron.cron - * @interface IQueryParamsResponse - * @property {neutron.cron.IParams|null} [params] QueryParamsResponse params + * @interface IParams + * @property {string|null} [security_address] Params security_address + * @property {Long|null} [limit] Params limit */ /** - * Constructs a new QueryParamsResponse. + * Constructs a new Params. * @memberof neutron.cron - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {neutron.cron.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.cron.IParams=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function Params(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2564,63 +2721,76 @@ } /** - * QueryParamsResponse params. - * @member {neutron.cron.IParams|null|undefined} params - * @memberof neutron.cron.QueryParamsResponse + * Params security_address. + * @member {string} security_address + * @memberof neutron.cron.Params * @instance */ - QueryParamsResponse.prototype.params = null; + Params.prototype.security_address = ""; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. + * Params limit. + * @member {Long} limit + * @memberof neutron.cron.Params + * @instance + */ + Params.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Params message. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. * @function encode - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static - * @param {neutron.cron.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.cron.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.cron.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.security_address != null && Object.hasOwnProperty.call(message, "security_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.security_address); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.limit); return writer; }; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static - * @param {neutron.cron.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.cron.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.Params} Params * @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) { + 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.neutron.cron.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.cron.Params.decode(reader, reader.uint32()); + message.security_address = reader.string(); + break; + case 2: + message.limit = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -2631,112 +2801,134 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.Params} Params * @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) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a Params message. * @function verify - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @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) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.cron.Params.verify(message.params); - if (error) - return "params." + error; - } + if (message.security_address != null && message.hasOwnProperty("security_address")) + if (!$util.isString(message.security_address)) + return "security_address: string 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"; return 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. * @function fromObject - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.Params} Params */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QueryParamsResponse) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.Params) return object; - var message = new $root.neutron.cron.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.cron.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.cron.Params.fromObject(object.params); - } + var message = new $root.neutron.cron.Params(); + if (object.security_address != null) + message.security_address = String(object.security_address); + 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); return message; }; /** - * Creates a plain object from a QueryParamsResponse 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 neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @static - * @param {neutron.cron.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.cron.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsResponse.toObject = function toObject(message, options) { + Params.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.neutron.cron.Params.toObject(message.params, options); + if (options.defaults) { + object.security_address = ""; + 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; + } + if (message.security_address != null && message.hasOwnProperty("security_address")) + object.security_address = message.security_address; + 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; return object; }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof neutron.cron.QueryParamsResponse + * @memberof neutron.cron.Params * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return Params; })(); - cron.QueryGetScheduleRequest = (function() { + cron.Schedule = (function() { /** - * Properties of a QueryGetScheduleRequest. + * Properties of a Schedule. * @memberof neutron.cron - * @interface IQueryGetScheduleRequest - * @property {string|null} [name] QueryGetScheduleRequest name + * @interface ISchedule + * @property {string|null} [name] Schedule name + * @property {Long|null} [period] Schedule period + * @property {Array.|null} [msgs] Schedule msgs + * @property {Long|null} [last_execute_height] Schedule last_execute_height */ /** - * Constructs a new QueryGetScheduleRequest. + * Constructs a new Schedule. * @memberof neutron.cron - * @classdesc Represents a QueryGetScheduleRequest. - * @implements IQueryGetScheduleRequest + * @classdesc Represents a Schedule. + * @implements ISchedule * @constructor - * @param {neutron.cron.IQueryGetScheduleRequest=} [properties] Properties to set + * @param {neutron.cron.ISchedule=} [properties] Properties to set */ - function QueryGetScheduleRequest(properties) { + function Schedule(properties) { + this.msgs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2744,64 +2936,106 @@ } /** - * QueryGetScheduleRequest name. + * Schedule name. * @member {string} name - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @instance */ - QueryGetScheduleRequest.prototype.name = ""; + Schedule.prototype.name = ""; /** - * Encodes the specified QueryGetScheduleRequest message. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. + * Schedule period. + * @member {Long} period + * @memberof neutron.cron.Schedule + * @instance + */ + Schedule.prototype.period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Schedule msgs. + * @member {Array.} msgs + * @memberof neutron.cron.Schedule + * @instance + */ + Schedule.prototype.msgs = $util.emptyArray; + + /** + * Schedule last_execute_height. + * @member {Long} last_execute_height + * @memberof neutron.cron.Schedule + * @instance + */ + Schedule.prototype.last_execute_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. * @function encode - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static - * @param {neutron.cron.IQueryGetScheduleRequest} message QueryGetScheduleRequest message or plain object to encode + * @param {neutron.cron.ISchedule} message Schedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryGetScheduleRequest.encode = function encode(message, writer) { + Schedule.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.period != null && Object.hasOwnProperty.call(message, "period")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.period); + if (message.msgs != null && message.msgs.length) + for (var i = 0; i < message.msgs.length; ++i) + $root.neutron.cron.MsgExecuteContract.encode(message.msgs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.last_execute_height != null && Object.hasOwnProperty.call(message, "last_execute_height")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.last_execute_height); return writer; }; /** - * Encodes the specified QueryGetScheduleRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. + * Encodes the specified Schedule message, length delimited. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static - * @param {neutron.cron.IQueryGetScheduleRequest} message QueryGetScheduleRequest message or plain object to encode + * @param {neutron.cron.ISchedule} message Schedule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryGetScheduleRequest.encodeDelimited = function encodeDelimited(message, writer) { + Schedule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryGetScheduleRequest message from the specified reader or buffer. + * Decodes a Schedule message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest + * @returns {neutron.cron.Schedule} Schedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryGetScheduleRequest.decode = function decode(reader, length) { + Schedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryGetScheduleRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.Schedule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.period = reader.uint64(); + break; + case 3: + if (!(message.msgs && message.msgs.length)) + message.msgs = []; + message.msgs.push($root.neutron.cron.MsgExecuteContract.decode(reader, reader.uint32())); + break; + case 4: + message.last_execute_height = reader.uint64(); + break; default: reader.skipType(tag & 7); break; @@ -2811,107 +3045,179 @@ }; /** - * Decodes a QueryGetScheduleRequest message from the specified reader or buffer, length delimited. + * Decodes a Schedule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest + * @returns {neutron.cron.Schedule} Schedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryGetScheduleRequest.decodeDelimited = function decodeDelimited(reader) { + Schedule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryGetScheduleRequest message. + * Verifies a Schedule message. * @function verify - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryGetScheduleRequest.verify = function verify(message) { + Schedule.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.period != null && message.hasOwnProperty("period")) + if (!$util.isInteger(message.period) && !(message.period && $util.isInteger(message.period.low) && $util.isInteger(message.period.high))) + return "period: integer|Long expected"; + if (message.msgs != null && message.hasOwnProperty("msgs")) { + if (!Array.isArray(message.msgs)) + return "msgs: array expected"; + for (var i = 0; i < message.msgs.length; ++i) { + var error = $root.neutron.cron.MsgExecuteContract.verify(message.msgs[i]); + if (error) + return "msgs." + error; + } + } + if (message.last_execute_height != null && message.hasOwnProperty("last_execute_height")) + if (!$util.isInteger(message.last_execute_height) && !(message.last_execute_height && $util.isInteger(message.last_execute_height.low) && $util.isInteger(message.last_execute_height.high))) + return "last_execute_height: integer|Long expected"; return null; }; /** - * Creates a QueryGetScheduleRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Schedule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest + * @returns {neutron.cron.Schedule} Schedule */ - QueryGetScheduleRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QueryGetScheduleRequest) + Schedule.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.Schedule) return object; - var message = new $root.neutron.cron.QueryGetScheduleRequest(); + var message = new $root.neutron.cron.Schedule(); if (object.name != null) message.name = String(object.name); + if (object.period != null) + if ($util.Long) + (message.period = $util.Long.fromValue(object.period)).unsigned = true; + else if (typeof object.period === "string") + message.period = parseInt(object.period, 10); + else if (typeof object.period === "number") + message.period = object.period; + else if (typeof object.period === "object") + message.period = new $util.LongBits(object.period.low >>> 0, object.period.high >>> 0).toNumber(true); + if (object.msgs) { + if (!Array.isArray(object.msgs)) + throw TypeError(".neutron.cron.Schedule.msgs: array expected"); + message.msgs = []; + for (var i = 0; i < object.msgs.length; ++i) { + if (typeof object.msgs[i] !== "object") + throw TypeError(".neutron.cron.Schedule.msgs: object expected"); + message.msgs[i] = $root.neutron.cron.MsgExecuteContract.fromObject(object.msgs[i]); + } + } + if (object.last_execute_height != null) + if ($util.Long) + (message.last_execute_height = $util.Long.fromValue(object.last_execute_height)).unsigned = true; + else if (typeof object.last_execute_height === "string") + message.last_execute_height = parseInt(object.last_execute_height, 10); + else if (typeof object.last_execute_height === "number") + message.last_execute_height = object.last_execute_height; + else if (typeof object.last_execute_height === "object") + message.last_execute_height = new $util.LongBits(object.last_execute_height.low >>> 0, object.last_execute_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryGetScheduleRequest message. Also converts values to other types if specified. + * Creates a plain object from a Schedule message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.QueryGetScheduleRequest + * @memberof neutron.cron.Schedule * @static - * @param {neutron.cron.QueryGetScheduleRequest} message QueryGetScheduleRequest + * @param {neutron.cron.Schedule} message Schedule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryGetScheduleRequest.toObject = function toObject(message, options) { + Schedule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.msgs = []; + if (options.defaults) { object.name = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.period = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.last_execute_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.last_execute_height = options.longs === String ? "0" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - return object; - }; - - /** - * Converts this QueryGetScheduleRequest to JSON. - * @function toJSON - * @memberof neutron.cron.QueryGetScheduleRequest + if (message.period != null && message.hasOwnProperty("period")) + if (typeof message.period === "number") + object.period = options.longs === String ? String(message.period) : message.period; + else + object.period = options.longs === String ? $util.Long.prototype.toString.call(message.period) : options.longs === Number ? new $util.LongBits(message.period.low >>> 0, message.period.high >>> 0).toNumber(true) : message.period; + if (message.msgs && message.msgs.length) { + object.msgs = []; + for (var j = 0; j < message.msgs.length; ++j) + object.msgs[j] = $root.neutron.cron.MsgExecuteContract.toObject(message.msgs[j], options); + } + if (message.last_execute_height != null && message.hasOwnProperty("last_execute_height")) + if (typeof message.last_execute_height === "number") + object.last_execute_height = options.longs === String ? String(message.last_execute_height) : message.last_execute_height; + else + object.last_execute_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_execute_height) : options.longs === Number ? new $util.LongBits(message.last_execute_height.low >>> 0, message.last_execute_height.high >>> 0).toNumber(true) : message.last_execute_height; + return object; + }; + + /** + * Converts this Schedule to JSON. + * @function toJSON + * @memberof neutron.cron.Schedule * @instance * @returns {Object.} JSON object */ - QueryGetScheduleRequest.prototype.toJSON = function toJSON() { + Schedule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryGetScheduleRequest; + return Schedule; })(); - cron.QueryGetScheduleResponse = (function() { + cron.MsgExecuteContract = (function() { /** - * Properties of a QueryGetScheduleResponse. + * Properties of a MsgExecuteContract. * @memberof neutron.cron - * @interface IQueryGetScheduleResponse - * @property {neutron.cron.ISchedule|null} [schedule] QueryGetScheduleResponse schedule + * @interface IMsgExecuteContract + * @property {string|null} [contract] MsgExecuteContract contract + * @property {string|null} [msg] MsgExecuteContract msg */ /** - * Constructs a new QueryGetScheduleResponse. + * Constructs a new MsgExecuteContract. * @memberof neutron.cron - * @classdesc Represents a QueryGetScheduleResponse. - * @implements IQueryGetScheduleResponse + * @classdesc Represents a MsgExecuteContract. + * @implements IMsgExecuteContract * @constructor - * @param {neutron.cron.IQueryGetScheduleResponse=} [properties] Properties to set + * @param {neutron.cron.IMsgExecuteContract=} [properties] Properties to set */ - function QueryGetScheduleResponse(properties) { + function MsgExecuteContract(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2919,63 +3225,76 @@ } /** - * QueryGetScheduleResponse schedule. - * @member {neutron.cron.ISchedule|null|undefined} schedule - * @memberof neutron.cron.QueryGetScheduleResponse + * MsgExecuteContract contract. + * @member {string} contract + * @memberof neutron.cron.MsgExecuteContract * @instance */ - QueryGetScheduleResponse.prototype.schedule = null; + MsgExecuteContract.prototype.contract = ""; /** - * Encodes the specified QueryGetScheduleResponse message. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * MsgExecuteContract msg. + * @member {string} msg + * @memberof neutron.cron.MsgExecuteContract + * @instance + */ + MsgExecuteContract.prototype.msg = ""; + + /** + * Encodes the specified MsgExecuteContract message. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. * @function encode - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static - * @param {neutron.cron.IQueryGetScheduleResponse} message QueryGetScheduleResponse message or plain object to encode + * @param {neutron.cron.IMsgExecuteContract} message MsgExecuteContract message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryGetScheduleResponse.encode = function encode(message, writer) { + MsgExecuteContract.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - $root.neutron.cron.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.contract != null && Object.hasOwnProperty.call(message, "contract")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contract); + if (message.msg != null && Object.hasOwnProperty.call(message, "msg")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.msg); return writer; }; /** - * Encodes the specified QueryGetScheduleResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * Encodes the specified MsgExecuteContract message, length delimited. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static - * @param {neutron.cron.IQueryGetScheduleResponse} message QueryGetScheduleResponse message or plain object to encode + * @param {neutron.cron.IMsgExecuteContract} message MsgExecuteContract message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryGetScheduleResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgExecuteContract.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryGetScheduleResponse message from the specified reader or buffer. + * Decodes a MsgExecuteContract message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryGetScheduleResponse.decode = function decode(reader, length) { + MsgExecuteContract.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryGetScheduleResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.MsgExecuteContract(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schedule = $root.neutron.cron.Schedule.decode(reader, reader.uint32()); + message.contract = reader.string(); + break; + case 2: + message.msg = reader.string(); break; default: reader.skipType(tag & 7); @@ -2986,112 +3305,116 @@ }; /** - * Decodes a QueryGetScheduleResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgExecuteContract message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryGetScheduleResponse.decodeDelimited = function decodeDelimited(reader) { + MsgExecuteContract.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryGetScheduleResponse message. + * Verifies a MsgExecuteContract message. * @function verify - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryGetScheduleResponse.verify = function verify(message) { + MsgExecuteContract.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) { - var error = $root.neutron.cron.Schedule.verify(message.schedule); - if (error) - return "schedule." + error; - } + if (message.contract != null && message.hasOwnProperty("contract")) + if (!$util.isString(message.contract)) + return "contract: string expected"; + if (message.msg != null && message.hasOwnProperty("msg")) + if (!$util.isString(message.msg)) + return "msg: string expected"; return null; }; /** - * Creates a QueryGetScheduleResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgExecuteContract message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + * @returns {neutron.cron.MsgExecuteContract} MsgExecuteContract */ - QueryGetScheduleResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QueryGetScheduleResponse) + MsgExecuteContract.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.MsgExecuteContract) return object; - var message = new $root.neutron.cron.QueryGetScheduleResponse(); - if (object.schedule != null) { - if (typeof object.schedule !== "object") - throw TypeError(".neutron.cron.QueryGetScheduleResponse.schedule: object expected"); - message.schedule = $root.neutron.cron.Schedule.fromObject(object.schedule); - } + var message = new $root.neutron.cron.MsgExecuteContract(); + if (object.contract != null) + message.contract = String(object.contract); + if (object.msg != null) + message.msg = String(object.msg); return message; }; /** - * Creates a plain object from a QueryGetScheduleResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgExecuteContract message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @static - * @param {neutron.cron.QueryGetScheduleResponse} message QueryGetScheduleResponse + * @param {neutron.cron.MsgExecuteContract} message MsgExecuteContract * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryGetScheduleResponse.toObject = function toObject(message, options) { + MsgExecuteContract.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.schedule = null; - if (message.schedule != null && message.hasOwnProperty("schedule")) - object.schedule = $root.neutron.cron.Schedule.toObject(message.schedule, options); + if (options.defaults) { + object.contract = ""; + object.msg = ""; + } + if (message.contract != null && message.hasOwnProperty("contract")) + object.contract = message.contract; + if (message.msg != null && message.hasOwnProperty("msg")) + object.msg = message.msg; return object; }; /** - * Converts this QueryGetScheduleResponse to JSON. + * Converts this MsgExecuteContract to JSON. * @function toJSON - * @memberof neutron.cron.QueryGetScheduleResponse + * @memberof neutron.cron.MsgExecuteContract * @instance * @returns {Object.} JSON object */ - QueryGetScheduleResponse.prototype.toJSON = function toJSON() { + MsgExecuteContract.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryGetScheduleResponse; + return MsgExecuteContract; })(); - cron.QuerySchedulesRequest = (function() { + cron.ScheduleCount = (function() { /** - * Properties of a QuerySchedulesRequest. + * Properties of a ScheduleCount. * @memberof neutron.cron - * @interface IQuerySchedulesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QuerySchedulesRequest pagination + * @interface IScheduleCount + * @property {number|null} [count] ScheduleCount count */ /** - * Constructs a new QuerySchedulesRequest. + * Constructs a new ScheduleCount. * @memberof neutron.cron - * @classdesc Represents a QuerySchedulesRequest. - * @implements IQuerySchedulesRequest + * @classdesc Represents a ScheduleCount. + * @implements IScheduleCount * @constructor - * @param {neutron.cron.IQuerySchedulesRequest=} [properties] Properties to set + * @param {neutron.cron.IScheduleCount=} [properties] Properties to set */ - function QuerySchedulesRequest(properties) { + function ScheduleCount(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3099,63 +3422,63 @@ } /** - * QuerySchedulesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof neutron.cron.QuerySchedulesRequest + * ScheduleCount count. + * @member {number} count + * @memberof neutron.cron.ScheduleCount * @instance */ - QuerySchedulesRequest.prototype.pagination = null; + ScheduleCount.prototype.count = 0; /** - * Encodes the specified QuerySchedulesRequest message. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. + * Encodes the specified ScheduleCount message. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. * @function encode - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static - * @param {neutron.cron.IQuerySchedulesRequest} message QuerySchedulesRequest message or plain object to encode + * @param {neutron.cron.IScheduleCount} message ScheduleCount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuerySchedulesRequest.encode = function encode(message, writer) { + ScheduleCount.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.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); return writer; }; /** - * Encodes the specified QuerySchedulesRequest message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. + * Encodes the specified ScheduleCount message, length delimited. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static - * @param {neutron.cron.IQuerySchedulesRequest} message QuerySchedulesRequest message or plain object to encode + * @param {neutron.cron.IScheduleCount} message ScheduleCount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuerySchedulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ScheduleCount.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuerySchedulesRequest message from the specified reader or buffer. + * Decodes a ScheduleCount message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest + * @returns {neutron.cron.ScheduleCount} ScheduleCount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuerySchedulesRequest.decode = function decode(reader, length) { + ScheduleCount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QuerySchedulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.ScheduleCount(); 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.count = reader.int32(); break; default: reader.skipType(tag & 7); @@ -3166,195 +3489,278 @@ }; /** - * Decodes a QuerySchedulesRequest message from the specified reader or buffer, length delimited. + * Decodes a ScheduleCount message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest + * @returns {neutron.cron.ScheduleCount} ScheduleCount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuerySchedulesRequest.decodeDelimited = function decodeDelimited(reader) { + ScheduleCount.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuerySchedulesRequest message. + * Verifies a ScheduleCount message. * @function verify - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuerySchedulesRequest.verify = function verify(message) { + ScheduleCount.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.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; return null; }; /** - * Creates a QuerySchedulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ScheduleCount message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest + * @returns {neutron.cron.ScheduleCount} ScheduleCount */ - QuerySchedulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QuerySchedulesRequest) + ScheduleCount.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.ScheduleCount) return object; - var message = new $root.neutron.cron.QuerySchedulesRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.cron.QuerySchedulesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } + var message = new $root.neutron.cron.ScheduleCount(); + if (object.count != null) + message.count = object.count | 0; return message; }; /** - * Creates a plain object from a QuerySchedulesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ScheduleCount message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @static - * @param {neutron.cron.QuerySchedulesRequest} message QuerySchedulesRequest + * @param {neutron.cron.ScheduleCount} message ScheduleCount * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuerySchedulesRequest.toObject = function toObject(message, options) { + ScheduleCount.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); + object.count = 0; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; return object; }; /** - * Converts this QuerySchedulesRequest to JSON. + * Converts this ScheduleCount to JSON. * @function toJSON - * @memberof neutron.cron.QuerySchedulesRequest + * @memberof neutron.cron.ScheduleCount * @instance * @returns {Object.} JSON object */ - QuerySchedulesRequest.prototype.toJSON = function toJSON() { + ScheduleCount.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QuerySchedulesRequest; + return ScheduleCount; })(); - cron.QuerySchedulesResponse = (function() { + cron.Query = (function() { /** - * Properties of a QuerySchedulesResponse. + * Constructs a new Query service. * @memberof neutron.cron - * @interface IQuerySchedulesResponse - * @property {Array.|null} [schedules] QuerySchedulesResponse schedules - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QuerySchedulesResponse pagination + * @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 QuerySchedulesResponse. - * @memberof neutron.cron - * @classdesc Represents a QuerySchedulesResponse. - * @implements IQuerySchedulesResponse - * @constructor - * @param {neutron.cron.IQuerySchedulesResponse=} [properties] Properties to set + * Callback as used by {@link neutron.cron.Query#params}. + * @memberof neutron.cron.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.cron.QueryParamsResponse} [response] QueryParamsResponse */ - function QuerySchedulesResponse(properties) { - this.schedules = []; - 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]]; - } /** - * QuerySchedulesResponse schedules. - * @member {Array.} schedules - * @memberof neutron.cron.QuerySchedulesResponse + * Calls Params. + * @function params + * @memberof neutron.cron.Query * @instance + * @param {neutron.cron.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.cron.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 */ - QuerySchedulesResponse.prototype.schedules = $util.emptyArray; + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.neutron.cron.QueryParamsRequest, $root.neutron.cron.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); /** - * QuerySchedulesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof neutron.cron.QuerySchedulesResponse + * Calls Params. + * @function params + * @memberof neutron.cron.Query + * @instance + * @param {neutron.cron.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.cron.Query#schedule}. + * @memberof neutron.cron.Query + * @typedef ScheduleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.cron.QueryGetScheduleResponse} [response] QueryGetScheduleResponse + */ + + /** + * Calls Schedule. + * @function schedule + * @memberof neutron.cron.Query * @instance + * @param {neutron.cron.IQueryGetScheduleRequest} request QueryGetScheduleRequest message or plain object + * @param {neutron.cron.Query.ScheduleCallback} callback Node-style callback called with the error, if any, and QueryGetScheduleResponse + * @returns {undefined} + * @variation 1 */ - QuerySchedulesResponse.prototype.pagination = null; + Object.defineProperty(Query.prototype.schedule = function schedule(request, callback) { + return this.rpcCall(schedule, $root.neutron.cron.QueryGetScheduleRequest, $root.neutron.cron.QueryGetScheduleResponse, request, callback); + }, "name", { value: "Schedule" }); /** - * Encodes the specified QuerySchedulesResponse message. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. + * Calls Schedule. + * @function schedule + * @memberof neutron.cron.Query + * @instance + * @param {neutron.cron.IQueryGetScheduleRequest} request QueryGetScheduleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.cron.Query#schedules}. + * @memberof neutron.cron.Query + * @typedef SchedulesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.cron.QuerySchedulesResponse} [response] QuerySchedulesResponse + */ + + /** + * Calls Schedules. + * @function schedules + * @memberof neutron.cron.Query + * @instance + * @param {neutron.cron.IQuerySchedulesRequest} request QuerySchedulesRequest message or plain object + * @param {neutron.cron.Query.SchedulesCallback} callback Node-style callback called with the error, if any, and QuerySchedulesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.schedules = function schedules(request, callback) { + return this.rpcCall(schedules, $root.neutron.cron.QuerySchedulesRequest, $root.neutron.cron.QuerySchedulesResponse, request, callback); + }, "name", { value: "Schedules" }); + + /** + * Calls Schedules. + * @function schedules + * @memberof neutron.cron.Query + * @instance + * @param {neutron.cron.IQuerySchedulesRequest} request QuerySchedulesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + cron.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. + * @memberof neutron.cron + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof neutron.cron + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {neutron.cron.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 neutron.cron.QueryParamsRequest.verify|verify} messages. * @function encode - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static - * @param {neutron.cron.IQuerySchedulesResponse} message QuerySchedulesResponse message or plain object to encode + * @param {neutron.cron.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuerySchedulesResponse.encode = function encode(message, writer) { + QueryParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schedules != null && message.schedules.length) - for (var i = 0; i < message.schedules.length; ++i) - $root.neutron.cron.Schedule.encode(message.schedules[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 QuerySchedulesResponse message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static - * @param {neutron.cron.IQuerySchedulesResponse} message QuerySchedulesResponse message or plain object to encode + * @param {neutron.cron.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuerySchedulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuerySchedulesResponse message from the specified reader or buffer. + * Decodes a QueryParamsRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse + * @returns {neutron.cron.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuerySchedulesResponse.decode = function decode(reader, length) { + 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.neutron.cron.QuerySchedulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.schedules && message.schedules.length)) - message.schedules = []; - message.schedules.push($root.neutron.cron.Schedule.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; @@ -3364,139 +3770,94 @@ }; /** - * Decodes a QuerySchedulesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse + * @returns {neutron.cron.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuerySchedulesResponse.decodeDelimited = function decodeDelimited(reader) { + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuerySchedulesResponse message. + * Verifies a QueryParamsRequest message. * @function verify - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuerySchedulesResponse.verify = function verify(message) { + QueryParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schedules != null && message.hasOwnProperty("schedules")) { - if (!Array.isArray(message.schedules)) - return "schedules: array expected"; - for (var i = 0; i < message.schedules.length; ++i) { - var error = $root.neutron.cron.Schedule.verify(message.schedules[i]); - if (error) - return "schedules." + 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 QuerySchedulesResponse 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. * @function fromObject - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static * @param {Object.} object Plain object - * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse + * @returns {neutron.cron.QueryParamsRequest} QueryParamsRequest */ - QuerySchedulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.QuerySchedulesResponse) + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QueryParamsRequest) return object; - var message = new $root.neutron.cron.QuerySchedulesResponse(); - if (object.schedules) { - if (!Array.isArray(object.schedules)) - throw TypeError(".neutron.cron.QuerySchedulesResponse.schedules: array expected"); - message.schedules = []; - for (var i = 0; i < object.schedules.length; ++i) { - if (typeof object.schedules[i] !== "object") - throw TypeError(".neutron.cron.QuerySchedulesResponse.schedules: object expected"); - message.schedules[i] = $root.neutron.cron.Schedule.fromObject(object.schedules[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.cron.QuerySchedulesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - return message; + return new $root.neutron.cron.QueryParamsRequest(); }; /** - * Creates a plain object from a QuerySchedulesResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @static - * @param {neutron.cron.QuerySchedulesResponse} message QuerySchedulesResponse + * @param {neutron.cron.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuerySchedulesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.schedules = []; - if (options.defaults) - object.pagination = null; - if (message.schedules && message.schedules.length) { - object.schedules = []; - for (var j = 0; j < message.schedules.length; ++j) - object.schedules[j] = $root.neutron.cron.Schedule.toObject(message.schedules[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this QuerySchedulesResponse to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof neutron.cron.QuerySchedulesResponse + * @memberof neutron.cron.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - QuerySchedulesResponse.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QuerySchedulesResponse; + return QueryParamsRequest; })(); - cron.Params = (function() { + cron.QueryParamsResponse = (function() { /** - * Properties of a Params. + * Properties of a QueryParamsResponse. * @memberof neutron.cron - * @interface IParams - * @property {string|null} [security_address] Params security_address - * @property {Long|null} [limit] Params limit + * @interface IQueryParamsResponse + * @property {neutron.cron.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new Params. + * Constructs a new QueryParamsResponse. * @memberof neutron.cron - * @classdesc Represents a Params. - * @implements IParams + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {neutron.cron.IParams=} [properties] Properties to set + * @param {neutron.cron.IQueryParamsResponse=} [properties] Properties to set */ - function Params(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3504,76 +3865,63 @@ } /** - * Params security_address. - * @member {string} security_address - * @memberof neutron.cron.Params - * @instance - */ - Params.prototype.security_address = ""; - - /** - * Params limit. - * @member {Long} limit - * @memberof neutron.cron.Params + * QueryParamsResponse params. + * @member {neutron.cron.IParams|null|undefined} params + * @memberof neutron.cron.QueryParamsResponse * @instance */ - Params.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified Params message. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static - * @param {neutron.cron.IParams} message Params message or plain object to encode + * @param {neutron.cron.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.security_address != null && Object.hasOwnProperty.call(message, "security_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.security_address); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.limit); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.cron.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static - * @param {neutron.cron.IParams} message Params message or plain object to encode + * @param {neutron.cron.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.Params} Params + * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse * @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) { + 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.neutron.cron.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.security_address = reader.string(); - break; - case 2: - message.limit = reader.uint64(); + message.params = $root.neutron.cron.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3584,132 +3932,112 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.Params} Params + * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse * @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) { + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @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) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.security_address != null && message.hasOwnProperty("security_address")) - if (!$util.isString(message.security_address)) - return "security_address: string 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.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.cron.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a Params 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 neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.cron.Params} Params + * @returns {neutron.cron.QueryParamsResponse} QueryParamsResponse */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.Params) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QueryParamsResponse) return object; - var message = new $root.neutron.cron.Params(); - if (object.security_address != null) - message.security_address = String(object.security_address); - 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); + var message = new $root.neutron.cron.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.cron.QueryParamsResponse.params: object expected"); + message.params = $root.neutron.cron.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a Params 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 neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @static - * @param {neutron.cron.Params} message Params + * @param {neutron.cron.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.security_address = ""; - 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; - } - if (message.security_address != null && message.hasOwnProperty("security_address")) - object.security_address = message.security_address; - 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 (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.cron.Params.toObject(message.params, options); return object; }; /** - * Converts this Params to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof neutron.cron.Params + * @memberof neutron.cron.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return QueryParamsResponse; })(); - cron.GenesisState = (function() { + cron.QueryGetScheduleRequest = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryGetScheduleRequest. * @memberof neutron.cron - * @interface IGenesisState - * @property {Array.|null} [scheduleList] GenesisState scheduleList - * @property {neutron.cron.IParams|null} [params] GenesisState params + * @interface IQueryGetScheduleRequest + * @property {string|null} [name] QueryGetScheduleRequest name */ /** - * Constructs a new GenesisState. + * Constructs a new QueryGetScheduleRequest. * @memberof neutron.cron - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryGetScheduleRequest. + * @implements IQueryGetScheduleRequest * @constructor - * @param {neutron.cron.IGenesisState=} [properties] Properties to set + * @param {neutron.cron.IQueryGetScheduleRequest=} [properties] Properties to set */ - function GenesisState(properties) { - this.scheduleList = []; + function QueryGetScheduleRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3717,79 +4045,63 @@ } /** - * GenesisState scheduleList. - * @member {Array.} scheduleList - * @memberof neutron.cron.GenesisState - * @instance - */ - GenesisState.prototype.scheduleList = $util.emptyArray; - - /** - * GenesisState params. - * @member {neutron.cron.IParams|null|undefined} params - * @memberof neutron.cron.GenesisState + * QueryGetScheduleRequest name. + * @member {string} name + * @memberof neutron.cron.QueryGetScheduleRequest * @instance */ - GenesisState.prototype.params = null; + QueryGetScheduleRequest.prototype.name = ""; /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.cron.GenesisState.verify|verify} messages. + * Encodes the specified QueryGetScheduleRequest message. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. * @function encode - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static - * @param {neutron.cron.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.cron.IQueryGetScheduleRequest} message QueryGetScheduleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryGetScheduleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.cron.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.scheduleList != null && message.scheduleList.length) - for (var i = 0; i < message.scheduleList.length; ++i) - $root.neutron.cron.Schedule.encode(message.scheduleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.cron.GenesisState.verify|verify} messages. + * Encodes the specified QueryGetScheduleRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static - * @param {neutron.cron.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.cron.IQueryGetScheduleRequest} message QueryGetScheduleRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryGetScheduleRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryGetScheduleRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.cron.GenesisState} GenesisState + * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest * @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) { + QueryGetScheduleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryGetScheduleRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.scheduleList && message.scheduleList.length)) - message.scheduleList = []; - message.scheduleList.push($root.neutron.cron.Schedule.decode(reader, reader.uint32())); - break; case 1: - message.params = $root.neutron.cron.Params.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -3800,236 +4112,287 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryGetScheduleRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.cron.GenesisState} GenesisState + * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest * @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) { + QueryGetScheduleRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryGetScheduleRequest message. * @function verify - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @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) { + QueryGetScheduleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scheduleList != null && message.hasOwnProperty("scheduleList")) { - if (!Array.isArray(message.scheduleList)) - return "scheduleList: array expected"; - for (var i = 0; i < message.scheduleList.length; ++i) { - var error = $root.neutron.cron.Schedule.verify(message.scheduleList[i]); - if (error) - return "scheduleList." + error; - } - } - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.cron.Params.verify(message.params); - if (error) - return "params." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryGetScheduleRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static * @param {Object.} object Plain object - * @returns {neutron.cron.GenesisState} GenesisState + * @returns {neutron.cron.QueryGetScheduleRequest} QueryGetScheduleRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.cron.GenesisState) + QueryGetScheduleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QueryGetScheduleRequest) return object; - var message = new $root.neutron.cron.GenesisState(); - if (object.scheduleList) { - if (!Array.isArray(object.scheduleList)) - throw TypeError(".neutron.cron.GenesisState.scheduleList: array expected"); - message.scheduleList = []; - for (var i = 0; i < object.scheduleList.length; ++i) { - if (typeof object.scheduleList[i] !== "object") - throw TypeError(".neutron.cron.GenesisState.scheduleList: object expected"); - message.scheduleList[i] = $root.neutron.cron.Schedule.fromObject(object.scheduleList[i]); - } - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.cron.GenesisState.params: object expected"); - message.params = $root.neutron.cron.Params.fromObject(object.params); - } + var message = new $root.neutron.cron.QueryGetScheduleRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryGetScheduleRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @static - * @param {neutron.cron.GenesisState} message GenesisState + * @param {neutron.cron.QueryGetScheduleRequest} message QueryGetScheduleRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryGetScheduleRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.scheduleList = []; if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.cron.Params.toObject(message.params, options); - if (message.scheduleList && message.scheduleList.length) { - object.scheduleList = []; - for (var j = 0; j < message.scheduleList.length; ++j) - object.scheduleList[j] = $root.neutron.cron.Schedule.toObject(message.scheduleList[j], options); - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryGetScheduleRequest to JSON. * @function toJSON - * @memberof neutron.cron.GenesisState + * @memberof neutron.cron.QueryGetScheduleRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryGetScheduleRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryGetScheduleRequest; })(); - return cron; - })(); - - neutron.feeburner = (function() { - - /** - * Namespace feeburner. - * @memberof neutron - * @namespace - */ - var feeburner = {}; + cron.QueryGetScheduleResponse = (function() { - feeburner.Query = (function() { + /** + * Properties of a QueryGetScheduleResponse. + * @memberof neutron.cron + * @interface IQueryGetScheduleResponse + * @property {neutron.cron.ISchedule|null} [schedule] QueryGetScheduleResponse schedule + */ /** - * Constructs a new Query service. - * @memberof neutron.feeburner - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service + * Constructs a new QueryGetScheduleResponse. + * @memberof neutron.cron + * @classdesc Represents a QueryGetScheduleResponse. + * @implements IQueryGetScheduleResponse * @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 + * @param {neutron.cron.IQueryGetScheduleResponse=} [properties] Properties to set */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function QueryGetScheduleResponse(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]]; } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - /** - * Callback as used by {@link neutron.feeburner.Query#params}. - * @memberof neutron.feeburner.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.feeburner.QueryParamsResponse} [response] QueryParamsResponse + * QueryGetScheduleResponse schedule. + * @member {neutron.cron.ISchedule|null|undefined} schedule + * @memberof neutron.cron.QueryGetScheduleResponse + * @instance */ + QueryGetScheduleResponse.prototype.schedule = null; /** - * Calls Params. - * @function params - * @memberof neutron.feeburner.Query - * @instance - * @param {neutron.feeburner.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.feeburner.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified QueryGetScheduleResponse message. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * @function encode + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {neutron.cron.IQueryGetScheduleResponse} message QueryGetScheduleResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.neutron.feeburner.QueryParamsRequest, $root.neutron.feeburner.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + QueryGetScheduleResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) + $root.neutron.cron.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Calls Params. - * @function params - * @memberof neutron.feeburner.Query - * @instance - * @param {neutron.feeburner.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified QueryGetScheduleResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {neutron.cron.IQueryGetScheduleResponse} message QueryGetScheduleResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + QueryGetScheduleResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link neutron.feeburner.Query#totalBurnedNeutronsAmount}. - * @memberof neutron.feeburner.Query - * @typedef TotalBurnedNeutronsAmountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} [response] QueryTotalBurnedNeutronsAmountResponse + * Decodes a QueryGetScheduleResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + QueryGetScheduleResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QueryGetScheduleResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = $root.neutron.cron.Schedule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls TotalBurnedNeutronsAmount. - * @function totalBurnedNeutronsAmount - * @memberof neutron.feeburner.Query - * @instance - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} request QueryTotalBurnedNeutronsAmountRequest message or plain object - * @param {neutron.feeburner.Query.TotalBurnedNeutronsAmountCallback} callback Node-style callback called with the error, if any, and QueryTotalBurnedNeutronsAmountResponse - * @returns {undefined} - * @variation 1 + * Decodes a QueryGetScheduleResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + * @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.totalBurnedNeutronsAmount = function totalBurnedNeutronsAmount(request, callback) { - return this.rpcCall(totalBurnedNeutronsAmount, $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest, $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse, request, callback); - }, "name", { value: "TotalBurnedNeutronsAmount" }); + QueryGetScheduleResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls TotalBurnedNeutronsAmount. - * @function totalBurnedNeutronsAmount - * @memberof neutron.feeburner.Query + * Verifies a QueryGetScheduleResponse message. + * @function verify + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryGetScheduleResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) { + var error = $root.neutron.cron.Schedule.verify(message.schedule); + if (error) + return "schedule." + error; + } + return null; + }; + + /** + * Creates a QueryGetScheduleResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.cron.QueryGetScheduleResponse} QueryGetScheduleResponse + */ + QueryGetScheduleResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QueryGetScheduleResponse) + return object; + var message = new $root.neutron.cron.QueryGetScheduleResponse(); + if (object.schedule != null) { + if (typeof object.schedule !== "object") + throw TypeError(".neutron.cron.QueryGetScheduleResponse.schedule: object expected"); + message.schedule = $root.neutron.cron.Schedule.fromObject(object.schedule); + } + return message; + }; + + /** + * Creates a plain object from a QueryGetScheduleResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.cron.QueryGetScheduleResponse + * @static + * @param {neutron.cron.QueryGetScheduleResponse} message QueryGetScheduleResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryGetScheduleResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.schedule = null; + if (message.schedule != null && message.hasOwnProperty("schedule")) + object.schedule = $root.neutron.cron.Schedule.toObject(message.schedule, options); + return object; + }; + + /** + * Converts this QueryGetScheduleResponse to JSON. + * @function toJSON + * @memberof neutron.cron.QueryGetScheduleResponse * @instance - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} request QueryTotalBurnedNeutronsAmountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryGetScheduleResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return QueryGetScheduleResponse; })(); - feeburner.QueryParamsRequest = (function() { + cron.QuerySchedulesRequest = (function() { /** - * Properties of a QueryParamsRequest. - * @memberof neutron.feeburner - * @interface IQueryParamsRequest + * Properties of a QuerySchedulesRequest. + * @memberof neutron.cron + * @interface IQuerySchedulesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QuerySchedulesRequest pagination */ /** - * Constructs a new QueryParamsRequest. - * @memberof neutron.feeburner - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest + * Constructs a new QuerySchedulesRequest. + * @memberof neutron.cron + * @classdesc Represents a QuerySchedulesRequest. + * @implements IQuerySchedulesRequest * @constructor - * @param {neutron.feeburner.IQueryParamsRequest=} [properties] Properties to set + * @param {neutron.cron.IQuerySchedulesRequest=} [properties] Properties to set */ - function QueryParamsRequest(properties) { + function QuerySchedulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4037,51 +4400,64 @@ } /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. + * QuerySchedulesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof neutron.cron.QuerySchedulesRequest + * @instance + */ + QuerySchedulesRequest.prototype.pagination = null; + + /** + * Encodes the specified QuerySchedulesRequest message. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static - * @param {neutron.feeburner.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.cron.IQuerySchedulesRequest} message QuerySchedulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encode = function encode(message, writer) { + QuerySchedulesRequest.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; }; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QuerySchedulesRequest message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static - * @param {neutron.feeburner.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.cron.IQuerySchedulesRequest} message QuerySchedulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QuerySchedulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a QuerySchedulesRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest * @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) { + QuerySchedulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QuerySchedulesRequest(); 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; @@ -4091,94 +4467,114 @@ }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a QuerySchedulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest * @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) { + QuerySchedulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a QuerySchedulesRequest message. * @function verify - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @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) { + QuerySchedulesRequest.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 QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QuerySchedulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.cron.QuerySchedulesRequest} QuerySchedulesRequest */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.QueryParamsRequest) + QuerySchedulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QuerySchedulesRequest) return object; - return new $root.neutron.feeburner.QueryParamsRequest(); + var message = new $root.neutron.cron.QuerySchedulesRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.cron.QuerySchedulesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + return message; }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QuerySchedulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @static - * @param {neutron.feeburner.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.cron.QuerySchedulesRequest} message QuerySchedulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { - return {}; + QuerySchedulesRequest.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 QueryParamsRequest to JSON. + * Converts this QuerySchedulesRequest to JSON. * @function toJSON - * @memberof neutron.feeburner.QueryParamsRequest + * @memberof neutron.cron.QuerySchedulesRequest * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + QuerySchedulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return QuerySchedulesRequest; })(); - feeburner.QueryParamsResponse = (function() { + cron.QuerySchedulesResponse = (function() { /** - * Properties of a QueryParamsResponse. - * @memberof neutron.feeburner - * @interface IQueryParamsResponse - * @property {neutron.feeburner.IParams|null} [params] QueryParamsResponse params + * Properties of a QuerySchedulesResponse. + * @memberof neutron.cron + * @interface IQuerySchedulesResponse + * @property {Array.|null} [schedules] QuerySchedulesResponse schedules + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QuerySchedulesResponse pagination */ /** - * Constructs a new QueryParamsResponse. - * @memberof neutron.feeburner - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * Constructs a new QuerySchedulesResponse. + * @memberof neutron.cron + * @classdesc Represents a QuerySchedulesResponse. + * @implements IQuerySchedulesResponse * @constructor - * @param {neutron.feeburner.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.cron.IQuerySchedulesResponse=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function QuerySchedulesResponse(properties) { + this.schedules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4186,63 +4582,79 @@ } /** - * QueryParamsResponse params. - * @member {neutron.feeburner.IParams|null|undefined} params - * @memberof neutron.feeburner.QueryParamsResponse + * QuerySchedulesResponse schedules. + * @member {Array.} schedules + * @memberof neutron.cron.QuerySchedulesResponse * @instance */ - QueryParamsResponse.prototype.params = null; + QuerySchedulesResponse.prototype.schedules = $util.emptyArray; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. + * QuerySchedulesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof neutron.cron.QuerySchedulesResponse + * @instance + */ + QuerySchedulesResponse.prototype.pagination = null; + + /** + * Encodes the specified QuerySchedulesResponse message. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static - * @param {neutron.feeburner.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.cron.IQuerySchedulesResponse} message QuerySchedulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + QuerySchedulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.feeburner.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.schedules != null && message.schedules.length) + for (var i = 0; i < message.schedules.length; ++i) + $root.neutron.cron.Schedule.encode(message.schedules[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 QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QuerySchedulesResponse message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static - * @param {neutron.feeburner.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.cron.IQuerySchedulesResponse} message QuerySchedulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QuerySchedulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a QuerySchedulesResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse * @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) { + QuerySchedulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.QuerySchedulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.feeburner.Params.decode(reader, reader.uint32()); + if (!(message.schedules && message.schedules.length)) + message.schedules = []; + message.schedules.push($root.neutron.cron.Schedule.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); @@ -4253,111 +4665,140 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a QuerySchedulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse * @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) { + QuerySchedulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a QuerySchedulesResponse message. * @function verify - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @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) { + QuerySchedulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.feeburner.Params.verify(message.params); + if (message.schedules != null && message.hasOwnProperty("schedules")) { + if (!Array.isArray(message.schedules)) + return "schedules: array expected"; + for (var i = 0; i < message.schedules.length; ++i) { + var error = $root.neutron.cron.Schedule.verify(message.schedules[i]); + if (error) + return "schedules." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "params." + error; + return "pagination." + error; } return null; }; /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QuerySchedulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.cron.QuerySchedulesResponse} QuerySchedulesResponse */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.QueryParamsResponse) + QuerySchedulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.QuerySchedulesResponse) return object; - var message = new $root.neutron.feeburner.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.feeburner.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.feeburner.Params.fromObject(object.params); + var message = new $root.neutron.cron.QuerySchedulesResponse(); + if (object.schedules) { + if (!Array.isArray(object.schedules)) + throw TypeError(".neutron.cron.QuerySchedulesResponse.schedules: array expected"); + message.schedules = []; + for (var i = 0; i < object.schedules.length; ++i) { + if (typeof object.schedules[i] !== "object") + throw TypeError(".neutron.cron.QuerySchedulesResponse.schedules: object expected"); + message.schedules[i] = $root.neutron.cron.Schedule.fromObject(object.schedules[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.cron.QuerySchedulesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QuerySchedulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @static - * @param {neutron.feeburner.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.cron.QuerySchedulesResponse} message QuerySchedulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsResponse.toObject = function toObject(message, options) { + QuerySchedulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.schedules = []; if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.feeburner.Params.toObject(message.params, options); + object.pagination = null; + if (message.schedules && message.schedules.length) { + object.schedules = []; + for (var j = 0; j < message.schedules.length; ++j) + object.schedules[j] = $root.neutron.cron.Schedule.toObject(message.schedules[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 QueryParamsResponse to JSON. + * Converts this QuerySchedulesResponse to JSON. * @function toJSON - * @memberof neutron.feeburner.QueryParamsResponse + * @memberof neutron.cron.QuerySchedulesResponse * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + QuerySchedulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return QuerySchedulesResponse; })(); - feeburner.QueryTotalBurnedNeutronsAmountRequest = (function() { + cron.GenesisState = (function() { /** - * Properties of a QueryTotalBurnedNeutronsAmountRequest. - * @memberof neutron.feeburner - * @interface IQueryTotalBurnedNeutronsAmountRequest + * Properties of a GenesisState. + * @memberof neutron.cron + * @interface IGenesisState + * @property {Array.|null} [scheduleList] GenesisState scheduleList + * @property {neutron.cron.IParams|null} [params] GenesisState params */ /** - * Constructs a new QueryTotalBurnedNeutronsAmountRequest. - * @memberof neutron.feeburner - * @classdesc Represents a QueryTotalBurnedNeutronsAmountRequest. - * @implements IQueryTotalBurnedNeutronsAmountRequest + * Constructs a new GenesisState. + * @memberof neutron.cron + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest=} [properties] Properties to set + * @param {neutron.cron.IGenesisState=} [properties] Properties to set */ - function QueryTotalBurnedNeutronsAmountRequest(properties) { + function GenesisState(properties) { + this.scheduleList = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4365,51 +4806,80 @@ } /** - * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. + * GenesisState scheduleList. + * @member {Array.} scheduleList + * @memberof neutron.cron.GenesisState + * @instance + */ + GenesisState.prototype.scheduleList = $util.emptyArray; + + /** + * GenesisState params. + * @member {neutron.cron.IParams|null|undefined} params + * @memberof neutron.cron.GenesisState + * @instance + */ + GenesisState.prototype.params = null; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.cron.GenesisState.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode + * @param {neutron.cron.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalBurnedNeutronsAmountRequest.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.cron.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.scheduleList != null && message.scheduleList.length) + for (var i = 0; i < message.scheduleList.length; ++i) + $root.neutron.cron.Schedule.encode(message.scheduleList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.cron.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode + * @param {neutron.cron.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalBurnedNeutronsAmountRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest + * @returns {neutron.cron.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalBurnedNeutronsAmountRequest.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.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.cron.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 2: + if (!(message.scheduleList && message.scheduleList.length)) + message.scheduleList = []; + message.scheduleList.push($root.neutron.cron.Schedule.decode(reader, reader.uint32())); + break; + case 1: + message.params = $root.neutron.cron.Params.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -4419,94 +4889,205 @@ }; /** - * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest + * @returns {neutron.cron.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalBurnedNeutronsAmountRequest.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 QueryTotalBurnedNeutronsAmountRequest message. + * Verifies a GenesisState message. * @function verify - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalBurnedNeutronsAmountRequest.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.scheduleList != null && message.hasOwnProperty("scheduleList")) { + if (!Array.isArray(message.scheduleList)) + return "scheduleList: array expected"; + for (var i = 0; i < message.scheduleList.length; ++i) { + var error = $root.neutron.cron.Schedule.verify(message.scheduleList[i]); + if (error) + return "scheduleList." + error; + } + } + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.cron.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a QueryTotalBurnedNeutronsAmountRequest 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 neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest + * @returns {neutron.cron.GenesisState} GenesisState */ - QueryTotalBurnedNeutronsAmountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.cron.GenesisState) return object; - return new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest(); - }; - - /** - * Creates a plain object from a QueryTotalBurnedNeutronsAmountRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest - * @static - * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest + var message = new $root.neutron.cron.GenesisState(); + if (object.scheduleList) { + if (!Array.isArray(object.scheduleList)) + throw TypeError(".neutron.cron.GenesisState.scheduleList: array expected"); + message.scheduleList = []; + for (var i = 0; i < object.scheduleList.length; ++i) { + if (typeof object.scheduleList[i] !== "object") + throw TypeError(".neutron.cron.GenesisState.scheduleList: object expected"); + message.scheduleList[i] = $root.neutron.cron.Schedule.fromObject(object.scheduleList[i]); + } + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.cron.GenesisState.params: object expected"); + message.params = $root.neutron.cron.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.cron.GenesisState + * @static + * @param {neutron.cron.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalBurnedNeutronsAmountRequest.toObject = function toObject() { - return {}; + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.scheduleList = []; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.cron.Params.toObject(message.params, options); + if (message.scheduleList && message.scheduleList.length) { + object.scheduleList = []; + for (var j = 0; j < message.scheduleList.length; ++j) + object.scheduleList[j] = $root.neutron.cron.Schedule.toObject(message.scheduleList[j], options); + } + return object; }; /** - * Converts this QueryTotalBurnedNeutronsAmountRequest to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + * @memberof neutron.cron.GenesisState * @instance * @returns {Object.} JSON object */ - QueryTotalBurnedNeutronsAmountRequest.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalBurnedNeutronsAmountRequest; + return GenesisState; })(); - feeburner.QueryTotalBurnedNeutronsAmountResponse = (function() { + return cron; + })(); + + neutron.feeburner = (function() { + + /** + * Namespace feeburner. + * @memberof neutron + * @namespace + */ + var feeburner = {}; + + feeburner.Msg = (function() { /** - * Properties of a QueryTotalBurnedNeutronsAmountResponse. + * Constructs a new Msg service. * @memberof neutron.feeburner - * @interface IQueryTotalBurnedNeutronsAmountResponse - * @property {neutron.feeburner.ITotalBurnedNeutronsAmount|null} [total_burned_neutrons_amount] QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount + * @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 QueryTotalBurnedNeutronsAmountResponse. + * Callback as used by {@link neutron.feeburner.Msg#updateParams}. + * @memberof neutron.feeburner.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feeburner.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.feeburner.Msg + * @instance + * @param {neutron.feeburner.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.feeburner.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.feeburner.MsgUpdateParams, $root.neutron.feeburner.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.feeburner.Msg + * @instance + * @param {neutron.feeburner.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + feeburner.MsgUpdateParams = (function() { + + /** + * Properties of a MsgUpdateParams. * @memberof neutron.feeburner - * @classdesc Represents a QueryTotalBurnedNeutronsAmountResponse. - * @implements IQueryTotalBurnedNeutronsAmountResponse + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.feeburner.IParams|null} [params] MsgUpdateParams params + */ + + /** + * Constructs a new MsgUpdateParams. + * @memberof neutron.feeburner + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams * @constructor - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse=} [properties] Properties to set + * @param {neutron.feeburner.IMsgUpdateParams=} [properties] Properties to set */ - function QueryTotalBurnedNeutronsAmountResponse(properties) { + function MsgUpdateParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4514,63 +5095,76 @@ } /** - * QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount. - * @member {neutron.feeburner.ITotalBurnedNeutronsAmount|null|undefined} total_burned_neutrons_amount - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.feeburner.MsgUpdateParams * @instance */ - QueryTotalBurnedNeutronsAmountResponse.prototype.total_burned_neutrons_amount = null; + MsgUpdateParams.prototype.authority = ""; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. + * MsgUpdateParams params. + * @member {neutron.feeburner.IParams|null|undefined} params + * @memberof neutron.feeburner.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.params = null; + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.feeburner.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode + * @param {neutron.feeburner.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalBurnedNeutronsAmountResponse.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.total_burned_neutrons_amount != null && Object.hasOwnProperty.call(message, "total_burned_neutrons_amount")) - $root.neutron.feeburner.TotalBurnedNeutronsAmount.encode(message.total_burned_neutrons_amount, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.feeburner.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.feeburner.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static - * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode + * @param {neutron.feeburner.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalBurnedNeutronsAmountResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse + * @returns {neutron.feeburner.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalBurnedNeutronsAmountResponse.decode = function decode(reader, length) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.decode(reader, reader.uint32()); + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.feeburner.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4581,92 +5175,249 @@ }; /** - * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse + * @returns {neutron.feeburner.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalBurnedNeutronsAmountResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalBurnedNeutronsAmountResponse message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalBurnedNeutronsAmountResponse.verify = function verify(message) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) { - var error = $root.neutron.feeburner.TotalBurnedNeutronsAmount.verify(message.total_burned_neutrons_amount); + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.feeburner.Params.verify(message.params); if (error) - return "total_burned_neutrons_amount." + error; + return "params." + error; } return null; }; /** - * Creates a QueryTotalBurnedNeutronsAmountResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse + * @returns {neutron.feeburner.MsgUpdateParams} MsgUpdateParams */ - QueryTotalBurnedNeutronsAmountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.MsgUpdateParams) return object; - var message = new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse(); - if (object.total_burned_neutrons_amount != null) { - if (typeof object.total_burned_neutrons_amount !== "object") - throw TypeError(".neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.total_burned_neutrons_amount: object expected"); - message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.fromObject(object.total_burned_neutrons_amount); + var message = new $root.neutron.feeburner.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.feeburner.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.feeburner.Params.fromObject(object.params); } return message; }; /** - * Creates a plain object from a QueryTotalBurnedNeutronsAmountResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @static - * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse + * @param {neutron.feeburner.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalBurnedNeutronsAmountResponse.toObject = function toObject(message, options) { + MsgUpdateParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.total_burned_neutrons_amount = null; - if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) - object.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.toObject(message.total_burned_neutrons_amount, options); + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.feeburner.Params.toObject(message.params, options); return object; }; /** - * Converts this QueryTotalBurnedNeutronsAmountResponse to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + * @memberof neutron.feeburner.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - QueryTotalBurnedNeutronsAmountResponse.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalBurnedNeutronsAmountResponse; + return MsgUpdateParams; + })(); + + feeburner.MsgUpdateParamsResponse = (function() { + + /** + * Properties of a MsgUpdateParamsResponse. + * @memberof neutron.feeburner + * @interface IMsgUpdateParamsResponse + */ + + /** + * Constructs a new MsgUpdateParamsResponse. + * @memberof neutron.feeburner + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse + * @constructor + * @param {neutron.feeburner.IMsgUpdateParamsResponse=} [properties] Properties to set + */ + function MsgUpdateParamsResponse(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 MsgUpdateParamsResponse message. Does not implicitly {@link neutron.feeburner.MsgUpdateParamsResponse.verify|verify} messages. + * @function encode + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {neutron.feeburner.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.MsgUpdateParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {neutron.feeburner.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.feeburner.MsgUpdateParamsResponse} MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.MsgUpdateParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.feeburner.MsgUpdateParamsResponse} MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgUpdateParamsResponse message. + * @function verify + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgUpdateParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.feeburner.MsgUpdateParamsResponse} MsgUpdateParamsResponse + */ + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.MsgUpdateParamsResponse) + return object; + return new $root.neutron.feeburner.MsgUpdateParamsResponse(); + }; + + /** + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @static + * @param {neutron.feeburner.MsgUpdateParamsResponse} message MsgUpdateParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgUpdateParamsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgUpdateParamsResponse to JSON. + * @function toJSON + * @memberof neutron.feeburner.MsgUpdateParamsResponse + * @instance + * @returns {Object.} JSON object + */ + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgUpdateParamsResponse; })(); feeburner.Params = (function() { @@ -4677,6 +5428,7 @@ * @interface IParams * @property {string|null} [neutron_denom] Params neutron_denom * @property {string|null} [reserve_address] Params reserve_address + * @property {string|null} [treasury_address] Params treasury_address */ /** @@ -4710,6 +5462,14 @@ */ Params.prototype.reserve_address = ""; + /** + * Params treasury_address. + * @member {string} treasury_address + * @memberof neutron.feeburner.Params + * @instance + */ + Params.prototype.treasury_address = ""; + /** * Encodes the specified Params message. Does not implicitly {@link neutron.feeburner.Params.verify|verify} messages. * @function encode @@ -4726,6 +5486,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.neutron_denom); if (message.reserve_address != null && Object.hasOwnProperty.call(message, "reserve_address")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reserve_address); + if (message.treasury_address != null && Object.hasOwnProperty.call(message, "treasury_address")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.treasury_address); return writer; }; @@ -4766,6 +5528,9 @@ case 2: message.reserve_address = reader.string(); break; + case 3: + message.treasury_address = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -4807,6 +5572,9 @@ if (message.reserve_address != null && message.hasOwnProperty("reserve_address")) if (!$util.isString(message.reserve_address)) return "reserve_address: string expected"; + if (message.treasury_address != null && message.hasOwnProperty("treasury_address")) + if (!$util.isString(message.treasury_address)) + return "treasury_address: string expected"; return null; }; @@ -4826,6 +5594,8 @@ message.neutron_denom = String(object.neutron_denom); if (object.reserve_address != null) message.reserve_address = String(object.reserve_address); + if (object.treasury_address != null) + message.treasury_address = String(object.treasury_address); return message; }; @@ -4845,11 +5615,14 @@ if (options.defaults) { object.neutron_denom = ""; object.reserve_address = ""; + object.treasury_address = ""; } if (message.neutron_denom != null && message.hasOwnProperty("neutron_denom")) object.neutron_denom = message.neutron_denom; if (message.reserve_address != null && message.hasOwnProperty("reserve_address")) object.reserve_address = message.reserve_address; + if (message.treasury_address != null && message.hasOwnProperty("treasury_address")) + object.treasury_address = message.treasury_address; return object; }; @@ -4867,24 +5640,110 @@ return Params; })(); - feeburner.TotalBurnedNeutronsAmount = (function() { + feeburner.Query = (function() { /** - * Properties of a TotalBurnedNeutronsAmount. + * Constructs a new Query service. * @memberof neutron.feeburner - * @interface ITotalBurnedNeutronsAmount - * @property {cosmos.base.v1beta1.ICoin|null} [coin] TotalBurnedNeutronsAmount coin + * @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 TotalBurnedNeutronsAmount. + * Callback as used by {@link neutron.feeburner.Query#params}. + * @memberof neutron.feeburner.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feeburner.QueryParamsResponse} [response] QueryParamsResponse + */ + + /** + * Calls Params. + * @function params + * @memberof neutron.feeburner.Query + * @instance + * @param {neutron.feeburner.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.feeburner.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.neutron.feeburner.QueryParamsRequest, $root.neutron.feeburner.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); + + /** + * Calls Params. + * @function params + * @memberof neutron.feeburner.Query + * @instance + * @param {neutron.feeburner.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.feeburner.Query#totalBurnedNeutronsAmount}. + * @memberof neutron.feeburner.Query + * @typedef TotalBurnedNeutronsAmountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} [response] QueryTotalBurnedNeutronsAmountResponse + */ + + /** + * Calls TotalBurnedNeutronsAmount. + * @function totalBurnedNeutronsAmount + * @memberof neutron.feeburner.Query + * @instance + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} request QueryTotalBurnedNeutronsAmountRequest message or plain object + * @param {neutron.feeburner.Query.TotalBurnedNeutronsAmountCallback} callback Node-style callback called with the error, if any, and QueryTotalBurnedNeutronsAmountResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalBurnedNeutronsAmount = function totalBurnedNeutronsAmount(request, callback) { + return this.rpcCall(totalBurnedNeutronsAmount, $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest, $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse, request, callback); + }, "name", { value: "TotalBurnedNeutronsAmount" }); + + /** + * Calls TotalBurnedNeutronsAmount. + * @function totalBurnedNeutronsAmount + * @memberof neutron.feeburner.Query + * @instance + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} request QueryTotalBurnedNeutronsAmountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + feeburner.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. * @memberof neutron.feeburner - * @classdesc Represents a TotalBurnedNeutronsAmount. - * @implements ITotalBurnedNeutronsAmount + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof neutron.feeburner + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest * @constructor - * @param {neutron.feeburner.ITotalBurnedNeutronsAmount=} [properties] Properties to set + * @param {neutron.feeburner.IQueryParamsRequest=} [properties] Properties to set */ - function TotalBurnedNeutronsAmount(properties) { + function QueryParamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4892,64 +5751,51 @@ } /** - * TotalBurnedNeutronsAmount coin. - * @member {cosmos.base.v1beta1.ICoin|null|undefined} coin - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount - * @instance - */ - TotalBurnedNeutronsAmount.prototype.coin = null; - - /** - * Encodes the specified TotalBurnedNeutronsAmount message. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static - * @param {neutron.feeburner.ITotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount message or plain object to encode + * @param {neutron.feeburner.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TotalBurnedNeutronsAmount.encode = function encode(message, writer) { + QueryParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.coin != null && Object.hasOwnProperty.call(message, "coin")) - $root.cosmos.base.v1beta1.Coin.encode(message.coin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified TotalBurnedNeutronsAmount message, length delimited. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static - * @param {neutron.feeburner.ITotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount message or plain object to encode + * @param {neutron.feeburner.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TotalBurnedNeutronsAmount.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer. + * Decodes a QueryParamsRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount + * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TotalBurnedNeutronsAmount.decode = function decode(reader, length) { + 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.neutron.feeburner.TotalBurnedNeutronsAmount(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.coin = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -4959,113 +5805,94 @@ }; /** - * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount + * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TotalBurnedNeutronsAmount.decodeDelimited = function decodeDelimited(reader) { + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TotalBurnedNeutronsAmount message. + * Verifies a QueryParamsRequest message. * @function verify - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TotalBurnedNeutronsAmount.verify = function verify(message) { + QueryParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.coin != null && message.hasOwnProperty("coin")) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.coin); - if (error) - return "coin." + error; - } return null; }; /** - * Creates a TotalBurnedNeutronsAmount 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. * @function fromObject - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount + * @returns {neutron.feeburner.QueryParamsRequest} QueryParamsRequest */ - TotalBurnedNeutronsAmount.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.TotalBurnedNeutronsAmount) + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.QueryParamsRequest) return object; - var message = new $root.neutron.feeburner.TotalBurnedNeutronsAmount(); - if (object.coin != null) { - if (typeof object.coin !== "object") - throw TypeError(".neutron.feeburner.TotalBurnedNeutronsAmount.coin: object expected"); - message.coin = $root.cosmos.base.v1beta1.Coin.fromObject(object.coin); - } - return message; + return new $root.neutron.feeburner.QueryParamsRequest(); }; /** - * Creates a plain object from a TotalBurnedNeutronsAmount message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @static - * @param {neutron.feeburner.TotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount + * @param {neutron.feeburner.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TotalBurnedNeutronsAmount.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.coin = null; - if (message.coin != null && message.hasOwnProperty("coin")) - object.coin = $root.cosmos.base.v1beta1.Coin.toObject(message.coin, options); - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this TotalBurnedNeutronsAmount to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof neutron.feeburner.TotalBurnedNeutronsAmount + * @memberof neutron.feeburner.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - TotalBurnedNeutronsAmount.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TotalBurnedNeutronsAmount; + return QueryParamsRequest; })(); - feeburner.GenesisState = (function() { + feeburner.QueryParamsResponse = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryParamsResponse. * @memberof neutron.feeburner - * @interface IGenesisState - * @property {neutron.feeburner.IParams|null} [params] GenesisState params - * @property {neutron.feeburner.ITotalBurnedNeutronsAmount|null} [total_burned_neutrons_amount] GenesisState total_burned_neutrons_amount + * @interface IQueryParamsResponse + * @property {neutron.feeburner.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new GenesisState. + * Constructs a new QueryParamsResponse. * @memberof neutron.feeburner - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {neutron.feeburner.IGenesisState=} [properties] Properties to set + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {neutron.feeburner.IQueryParamsResponse=} [properties] Properties to set */ - function GenesisState(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5073,77 +5900,64 @@ } /** - * GenesisState params. + * QueryParamsResponse params. * @member {neutron.feeburner.IParams|null|undefined} params - * @memberof neutron.feeburner.GenesisState - * @instance - */ - GenesisState.prototype.params = null; - - /** - * GenesisState total_burned_neutrons_amount. - * @member {neutron.feeburner.ITotalBurnedNeutronsAmount|null|undefined} total_burned_neutrons_amount - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @instance */ - GenesisState.prototype.total_burned_neutrons_amount = null; + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static - * @param {neutron.feeburner.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.feeburner.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.params != null && Object.hasOwnProperty.call(message, "params")) $root.neutron.feeburner.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.total_burned_neutrons_amount != null && Object.hasOwnProperty.call(message, "total_burned_neutrons_amount")) - $root.neutron.feeburner.TotalBurnedNeutronsAmount.encode(message.total_burned_neutrons_amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static - * @param {neutron.feeburner.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.feeburner.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feeburner.GenesisState} GenesisState + * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse * @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) { + 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.neutron.feeburner.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.params = $root.neutron.feeburner.Params.decode(reader, reader.uint32()); break; - case 2: - message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -5153,30 +5967,30 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feeburner.GenesisState} GenesisState + * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse * @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) { + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @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) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.params != null && message.hasOwnProperty("params")) { @@ -5184,193 +5998,80 @@ if (error) return "params." + error; } - if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) { - var error = $root.neutron.feeburner.TotalBurnedNeutronsAmount.verify(message.total_burned_neutrons_amount); - if (error) - return "total_burned_neutrons_amount." + error; - } return null; }; /** - * Creates a GenesisState 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 neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.feeburner.GenesisState} GenesisState + * @returns {neutron.feeburner.QueryParamsResponse} QueryParamsResponse */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feeburner.GenesisState) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.QueryParamsResponse) return object; - var message = new $root.neutron.feeburner.GenesisState(); + var message = new $root.neutron.feeburner.QueryParamsResponse(); if (object.params != null) { if (typeof object.params !== "object") - throw TypeError(".neutron.feeburner.GenesisState.params: object expected"); + throw TypeError(".neutron.feeburner.QueryParamsResponse.params: object expected"); message.params = $root.neutron.feeburner.Params.fromObject(object.params); } - if (object.total_burned_neutrons_amount != null) { - if (typeof object.total_burned_neutrons_amount !== "object") - throw TypeError(".neutron.feeburner.GenesisState.total_burned_neutrons_amount: object expected"); - message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.fromObject(object.total_burned_neutrons_amount); - } return message; }; /** - * Creates a plain object from a GenesisState 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 neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @static - * @param {neutron.feeburner.GenesisState} message GenesisState + * @param {neutron.feeburner.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.params = null; - object.total_burned_neutrons_amount = null; - } if (message.params != null && message.hasOwnProperty("params")) object.params = $root.neutron.feeburner.Params.toObject(message.params, options); - if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) - object.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.toObject(message.total_burned_neutrons_amount, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof neutron.feeburner.GenesisState + * @memberof neutron.feeburner.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; - })(); - - return feeburner; - })(); - - neutron.feerefunder = (function() { - - /** - * Namespace feerefunder. - * @memberof neutron - * @namespace - */ - var feerefunder = {}; - - feerefunder.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof neutron.feerefunder - * @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 neutron.feerefunder.Query#params}. - * @memberof neutron.feerefunder.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.feerefunder.QueryParamsResponse} [response] QueryParamsResponse - */ - - /** - * Calls Params. - * @function params - * @memberof neutron.feerefunder.Query - * @instance - * @param {neutron.feerefunder.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.feerefunder.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.neutron.feerefunder.QueryParamsRequest, $root.neutron.feerefunder.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof neutron.feerefunder.Query - * @instance - * @param {neutron.feerefunder.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.feerefunder.Query#feeInfo}. - * @memberof neutron.feerefunder.Query - * @typedef FeeInfoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.feerefunder.FeeInfoResponse} [response] FeeInfoResponse - */ - - /** - * Calls FeeInfo. - * @function feeInfo - * @memberof neutron.feerefunder.Query - * @instance - * @param {neutron.feerefunder.IFeeInfoRequest} request FeeInfoRequest message or plain object - * @param {neutron.feerefunder.Query.FeeInfoCallback} callback Node-style callback called with the error, if any, and FeeInfoResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.feeInfo = function feeInfo(request, callback) { - return this.rpcCall(feeInfo, $root.neutron.feerefunder.FeeInfoRequest, $root.neutron.feerefunder.FeeInfoResponse, request, callback); - }, "name", { value: "FeeInfo" }); - - /** - * Calls FeeInfo. - * @function feeInfo - * @memberof neutron.feerefunder.Query - * @instance - * @param {neutron.feerefunder.IFeeInfoRequest} request FeeInfoRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; + return QueryParamsResponse; })(); - feerefunder.QueryParamsRequest = (function() { + feeburner.QueryTotalBurnedNeutronsAmountRequest = (function() { /** - * Properties of a QueryParamsRequest. - * @memberof neutron.feerefunder - * @interface IQueryParamsRequest + * Properties of a QueryTotalBurnedNeutronsAmountRequest. + * @memberof neutron.feeburner + * @interface IQueryTotalBurnedNeutronsAmountRequest */ /** - * Constructs a new QueryParamsRequest. - * @memberof neutron.feerefunder - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest + * Constructs a new QueryTotalBurnedNeutronsAmountRequest. + * @memberof neutron.feeburner + * @classdesc Represents a QueryTotalBurnedNeutronsAmountRequest. + * @implements IQueryTotalBurnedNeutronsAmountRequest * @constructor - * @param {neutron.feerefunder.IQueryParamsRequest=} [properties] Properties to set + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest=} [properties] Properties to set */ - function QueryParamsRequest(properties) { + function QueryTotalBurnedNeutronsAmountRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5378,48 +6079,48 @@ } /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feerefunder.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static - * @param {neutron.feerefunder.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encode = function encode(message, writer) { + QueryTotalBurnedNeutronsAmountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static - * @param {neutron.feerefunder.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalBurnedNeutronsAmountRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest * @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) { + QueryTotalBurnedNeutronsAmountRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.QueryParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5432,94 +6133,94 @@ }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest * @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) { + QueryTotalBurnedNeutronsAmountRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a QueryTotalBurnedNeutronsAmountRequest message. * @function verify - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @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) { + QueryTotalBurnedNeutronsAmountRequest.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. + * Creates a QueryTotalBurnedNeutronsAmountRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} QueryTotalBurnedNeutronsAmountRequest */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.QueryParamsRequest) + QueryTotalBurnedNeutronsAmountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest) return object; - return new $root.neutron.feerefunder.QueryParamsRequest(); + return new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest(); }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalBurnedNeutronsAmountRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @static - * @param {neutron.feerefunder.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest} message QueryTotalBurnedNeutronsAmountRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { + QueryTotalBurnedNeutronsAmountRequest.toObject = function toObject() { return {}; }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this QueryTotalBurnedNeutronsAmountRequest to JSON. * @function toJSON - * @memberof neutron.feerefunder.QueryParamsRequest + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + QueryTotalBurnedNeutronsAmountRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return QueryTotalBurnedNeutronsAmountRequest; })(); - feerefunder.QueryParamsResponse = (function() { + feeburner.QueryTotalBurnedNeutronsAmountResponse = (function() { /** - * Properties of a QueryParamsResponse. - * @memberof neutron.feerefunder - * @interface IQueryParamsResponse - * @property {neutron.feerefunder.IParams|null} [params] QueryParamsResponse params + * Properties of a QueryTotalBurnedNeutronsAmountResponse. + * @memberof neutron.feeburner + * @interface IQueryTotalBurnedNeutronsAmountResponse + * @property {neutron.feeburner.ITotalBurnedNeutronsAmount|null} [total_burned_neutrons_amount] QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount */ /** - * Constructs a new QueryParamsResponse. - * @memberof neutron.feerefunder - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * Constructs a new QueryTotalBurnedNeutronsAmountResponse. + * @memberof neutron.feeburner + * @classdesc Represents a QueryTotalBurnedNeutronsAmountResponse. + * @implements IQueryTotalBurnedNeutronsAmountResponse * @constructor - * @param {neutron.feerefunder.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function QueryTotalBurnedNeutronsAmountResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5527,63 +6228,63 @@ } /** - * QueryParamsResponse params. - * @member {neutron.feerefunder.IParams|null|undefined} params - * @memberof neutron.feerefunder.QueryParamsResponse + * QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount. + * @member {neutron.feeburner.ITotalBurnedNeutronsAmount|null|undefined} total_burned_neutrons_amount + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @instance */ - QueryParamsResponse.prototype.params = null; + QueryTotalBurnedNeutronsAmountResponse.prototype.total_burned_neutrons_amount = null; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static - * @param {neutron.feerefunder.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + QueryTotalBurnedNeutronsAmountResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.feerefunder.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.total_burned_neutrons_amount != null && Object.hasOwnProperty.call(message, "total_burned_neutrons_amount")) + $root.neutron.feeburner.TotalBurnedNeutronsAmount.encode(message.total_burned_neutrons_amount, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static - * @param {neutron.feerefunder.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalBurnedNeutronsAmountResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse * @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) { + QueryTotalBurnedNeutronsAmountResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.feerefunder.Params.decode(reader, reader.uint32()); + message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5594,114 +6295,112 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse * @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) { + QueryTotalBurnedNeutronsAmountResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a QueryTotalBurnedNeutronsAmountResponse message. * @function verify - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @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) { + QueryTotalBurnedNeutronsAmountResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.feerefunder.Params.verify(message.params); + if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) { + var error = $root.neutron.feeburner.TotalBurnedNeutronsAmount.verify(message.total_burned_neutrons_amount); if (error) - return "params." + error; + return "total_burned_neutrons_amount." + error; } return null; }; /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalBurnedNeutronsAmountResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} QueryTotalBurnedNeutronsAmountResponse */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.QueryParamsResponse) + QueryTotalBurnedNeutronsAmountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse) return object; - var message = new $root.neutron.feerefunder.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.feerefunder.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.feerefunder.Params.fromObject(object.params); + var message = new $root.neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse(); + if (object.total_burned_neutrons_amount != null) { + if (typeof object.total_burned_neutrons_amount !== "object") + throw TypeError(".neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.total_burned_neutrons_amount: object expected"); + message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.fromObject(object.total_burned_neutrons_amount); } return message; }; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalBurnedNeutronsAmountResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @static - * @param {neutron.feerefunder.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse} message QueryTotalBurnedNeutronsAmountResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsResponse.toObject = function toObject(message, options) { + QueryTotalBurnedNeutronsAmountResponse.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.neutron.feerefunder.Params.toObject(message.params, options); + object.total_burned_neutrons_amount = null; + if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) + object.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.toObject(message.total_burned_neutrons_amount, options); return object; }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this QueryTotalBurnedNeutronsAmountResponse to JSON. * @function toJSON - * @memberof neutron.feerefunder.QueryParamsResponse + * @memberof neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + QueryTotalBurnedNeutronsAmountResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return QueryTotalBurnedNeutronsAmountResponse; })(); - feerefunder.FeeInfoRequest = (function() { + feeburner.TotalBurnedNeutronsAmount = (function() { /** - * Properties of a FeeInfoRequest. - * @memberof neutron.feerefunder - * @interface IFeeInfoRequest - * @property {string|null} [channel_id] FeeInfoRequest channel_id - * @property {string|null} [port_id] FeeInfoRequest port_id - * @property {Long|null} [sequence] FeeInfoRequest sequence + * Properties of a TotalBurnedNeutronsAmount. + * @memberof neutron.feeburner + * @interface ITotalBurnedNeutronsAmount + * @property {cosmos.base.v1beta1.ICoin|null} [coin] TotalBurnedNeutronsAmount coin */ /** - * Constructs a new FeeInfoRequest. - * @memberof neutron.feerefunder - * @classdesc Represents a FeeInfoRequest. - * @implements IFeeInfoRequest + * Constructs a new TotalBurnedNeutronsAmount. + * @memberof neutron.feeburner + * @classdesc Represents a TotalBurnedNeutronsAmount. + * @implements ITotalBurnedNeutronsAmount * @constructor - * @param {neutron.feerefunder.IFeeInfoRequest=} [properties] Properties to set + * @param {neutron.feeburner.ITotalBurnedNeutronsAmount=} [properties] Properties to set */ - function FeeInfoRequest(properties) { + function TotalBurnedNeutronsAmount(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5709,92 +6408,66 @@ } /** - * FeeInfoRequest channel_id. - * @member {string} channel_id - * @memberof neutron.feerefunder.FeeInfoRequest - * @instance - */ - FeeInfoRequest.prototype.channel_id = ""; - - /** - * FeeInfoRequest port_id. - * @member {string} port_id - * @memberof neutron.feerefunder.FeeInfoRequest - * @instance - */ - FeeInfoRequest.prototype.port_id = ""; - - /** - * FeeInfoRequest sequence. - * @member {Long} sequence - * @memberof neutron.feerefunder.FeeInfoRequest + * TotalBurnedNeutronsAmount coin. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} coin + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @instance */ - FeeInfoRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TotalBurnedNeutronsAmount.prototype.coin = null; /** - * Encodes the specified FeeInfoRequest message. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * Encodes the specified TotalBurnedNeutronsAmount message. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static - * @param {neutron.feerefunder.IFeeInfoRequest} message FeeInfoRequest message or plain object to encode + * @param {neutron.feeburner.ITotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfoRequest.encode = function encode(message, writer) { + TotalBurnedNeutronsAmount.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); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.coin != null && Object.hasOwnProperty.call(message, "coin")) + $root.cosmos.base.v1beta1.Coin.encode(message.coin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeeInfoRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * Encodes the specified TotalBurnedNeutronsAmount message, length delimited. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static - * @param {neutron.feerefunder.IFeeInfoRequest} message FeeInfoRequest message or plain object to encode + * @param {neutron.feeburner.ITotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + TotalBurnedNeutronsAmount.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeeInfoRequest message from the specified reader or buffer. + * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest + * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfoRequest.decode = function decode(reader, length) { + TotalBurnedNeutronsAmount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.FeeInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.TotalBurnedNeutronsAmount(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); + message.coin = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); break; - case 2: - message.port_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -5802,138 +6475,113 @@ }; /** - * Decodes a FeeInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest + * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfoRequest.decodeDelimited = function decodeDelimited(reader) { + TotalBurnedNeutronsAmount.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeeInfoRequest message. + * Verifies a TotalBurnedNeutronsAmount message. * @function verify - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeeInfoRequest.verify = function verify(message) { + TotalBurnedNeutronsAmount.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"; - 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.coin != null && message.hasOwnProperty("coin")) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.coin); + if (error) + return "coin." + error; + } return null; }; /** - * Creates a FeeInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TotalBurnedNeutronsAmount message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest + * @returns {neutron.feeburner.TotalBurnedNeutronsAmount} TotalBurnedNeutronsAmount */ - FeeInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.FeeInfoRequest) + TotalBurnedNeutronsAmount.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.TotalBurnedNeutronsAmount) return object; - var message = new $root.neutron.feerefunder.FeeInfoRequest(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.port_id != null) - message.port_id = String(object.port_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.neutron.feeburner.TotalBurnedNeutronsAmount(); + if (object.coin != null) { + if (typeof object.coin !== "object") + throw TypeError(".neutron.feeburner.TotalBurnedNeutronsAmount.coin: object expected"); + message.coin = $root.cosmos.base.v1beta1.Coin.fromObject(object.coin); + } return message; }; /** - * Creates a plain object from a FeeInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a TotalBurnedNeutronsAmount message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @static - * @param {neutron.feerefunder.FeeInfoRequest} message FeeInfoRequest + * @param {neutron.feeburner.TotalBurnedNeutronsAmount} message TotalBurnedNeutronsAmount * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeeInfoRequest.toObject = function toObject(message, options) { + TotalBurnedNeutronsAmount.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.channel_id = ""; - object.port_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.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; - 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.coin = null; + if (message.coin != null && message.hasOwnProperty("coin")) + object.coin = $root.cosmos.base.v1beta1.Coin.toObject(message.coin, options); return object; }; /** - * Converts this FeeInfoRequest to JSON. + * Converts this TotalBurnedNeutronsAmount to JSON. * @function toJSON - * @memberof neutron.feerefunder.FeeInfoRequest + * @memberof neutron.feeburner.TotalBurnedNeutronsAmount * @instance * @returns {Object.} JSON object */ - FeeInfoRequest.prototype.toJSON = function toJSON() { + TotalBurnedNeutronsAmount.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeeInfoRequest; + return TotalBurnedNeutronsAmount; })(); - feerefunder.FeeInfoResponse = (function() { + feeburner.GenesisState = (function() { /** - * Properties of a FeeInfoResponse. - * @memberof neutron.feerefunder - * @interface IFeeInfoResponse - * @property {neutron.feerefunder.IFeeInfo|null} [fee_info] FeeInfoResponse fee_info + * Properties of a GenesisState. + * @memberof neutron.feeburner + * @interface IGenesisState + * @property {neutron.feeburner.IParams|null} [params] GenesisState params + * @property {neutron.feeburner.ITotalBurnedNeutronsAmount|null} [total_burned_neutrons_amount] GenesisState total_burned_neutrons_amount */ /** - * Constructs a new FeeInfoResponse. - * @memberof neutron.feerefunder - * @classdesc Represents a FeeInfoResponse. - * @implements IFeeInfoResponse + * Constructs a new GenesisState. + * @memberof neutron.feeburner + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {neutron.feerefunder.IFeeInfoResponse=} [properties] Properties to set + * @param {neutron.feeburner.IGenesisState=} [properties] Properties to set */ - function FeeInfoResponse(properties) { + function GenesisState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5941,63 +6589,76 @@ } /** - * FeeInfoResponse fee_info. - * @member {neutron.feerefunder.IFeeInfo|null|undefined} fee_info - * @memberof neutron.feerefunder.FeeInfoResponse + * GenesisState params. + * @member {neutron.feeburner.IParams|null|undefined} params + * @memberof neutron.feeburner.GenesisState * @instance */ - FeeInfoResponse.prototype.fee_info = null; + GenesisState.prototype.params = null; /** - * Encodes the specified FeeInfoResponse message. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. + * GenesisState total_burned_neutrons_amount. + * @member {neutron.feeburner.ITotalBurnedNeutronsAmount|null|undefined} total_burned_neutrons_amount + * @memberof neutron.feeburner.GenesisState + * @instance + */ + GenesisState.prototype.total_burned_neutrons_amount = null; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static - * @param {neutron.feerefunder.IFeeInfoResponse} message FeeInfoResponse message or plain object to encode + * @param {neutron.feeburner.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfoResponse.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_info != null && Object.hasOwnProperty.call(message, "fee_info")) - $root.neutron.feerefunder.FeeInfo.encode(message.fee_info, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.feeburner.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.total_burned_neutrons_amount != null && Object.hasOwnProperty.call(message, "total_burned_neutrons_amount")) + $root.neutron.feeburner.TotalBurnedNeutronsAmount.encode(message.total_burned_neutrons_amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeeInfoResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static - * @param {neutron.feerefunder.IFeeInfoResponse} message FeeInfoResponse message or plain object to encode + * @param {neutron.feeburner.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeeInfoResponse message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse + * @returns {neutron.feeburner.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfoResponse.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.neutron.feerefunder.FeeInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feeburner.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fee_info = $root.neutron.feerefunder.FeeInfo.decode(reader, reader.uint32()); + message.params = $root.neutron.feeburner.Params.decode(reader, reader.uint32()); + break; + case 2: + message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6008,112 +6669,193 @@ }; /** - * Decodes a FeeInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse + * @returns {neutron.feeburner.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfoResponse.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 FeeInfoResponse message. + * Verifies a GenesisState message. * @function verify - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeeInfoResponse.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_info != null && message.hasOwnProperty("fee_info")) { - var error = $root.neutron.feerefunder.FeeInfo.verify(message.fee_info); + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.feeburner.Params.verify(message.params); if (error) - return "fee_info." + error; + return "params." + error; + } + if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) { + var error = $root.neutron.feeburner.TotalBurnedNeutronsAmount.verify(message.total_burned_neutrons_amount); + if (error) + return "total_burned_neutrons_amount." + error; } return null; }; /** - * Creates a FeeInfoResponse 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 neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse + * @returns {neutron.feeburner.GenesisState} GenesisState */ - FeeInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.FeeInfoResponse) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feeburner.GenesisState) return object; - var message = new $root.neutron.feerefunder.FeeInfoResponse(); - if (object.fee_info != null) { - if (typeof object.fee_info !== "object") - throw TypeError(".neutron.feerefunder.FeeInfoResponse.fee_info: object expected"); - message.fee_info = $root.neutron.feerefunder.FeeInfo.fromObject(object.fee_info); + var message = new $root.neutron.feeburner.GenesisState(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.feeburner.GenesisState.params: object expected"); + message.params = $root.neutron.feeburner.Params.fromObject(object.params); + } + if (object.total_burned_neutrons_amount != null) { + if (typeof object.total_burned_neutrons_amount !== "object") + throw TypeError(".neutron.feeburner.GenesisState.total_burned_neutrons_amount: object expected"); + message.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.fromObject(object.total_burned_neutrons_amount); } return message; }; /** - * Creates a plain object from a FeeInfoResponse 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 neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @static - * @param {neutron.feerefunder.FeeInfoResponse} message FeeInfoResponse + * @param {neutron.feeburner.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeeInfoResponse.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.fee_info = null; - if (message.fee_info != null && message.hasOwnProperty("fee_info")) - object.fee_info = $root.neutron.feerefunder.FeeInfo.toObject(message.fee_info, options); + if (options.defaults) { + object.params = null; + object.total_burned_neutrons_amount = null; + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.feeburner.Params.toObject(message.params, options); + if (message.total_burned_neutrons_amount != null && message.hasOwnProperty("total_burned_neutrons_amount")) + object.total_burned_neutrons_amount = $root.neutron.feeburner.TotalBurnedNeutronsAmount.toObject(message.total_burned_neutrons_amount, options); return object; }; /** - * Converts this FeeInfoResponse to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof neutron.feerefunder.FeeInfoResponse + * @memberof neutron.feeburner.GenesisState * @instance * @returns {Object.} JSON object */ - FeeInfoResponse.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeeInfoResponse; + return GenesisState; })(); - feerefunder.Params = (function() { + return feeburner; + })(); + + neutron.feerefunder = (function() { + + /** + * Namespace feerefunder. + * @memberof neutron + * @namespace + */ + var feerefunder = {}; + + feerefunder.Msg = (function() { /** - * Properties of a Params. + * Constructs a new Msg service. * @memberof neutron.feerefunder - * @interface IParams - * @property {neutron.feerefunder.IFee|null} [min_fee] Params min_fee + * @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 Params. + * Callback as used by {@link neutron.feerefunder.Msg#updateParams}. + * @memberof neutron.feerefunder.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feerefunder.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.feerefunder.Msg + * @instance + * @param {neutron.feerefunder.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.feerefunder.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.feerefunder.MsgUpdateParams, $root.neutron.feerefunder.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.feerefunder.Msg + * @instance + * @param {neutron.feerefunder.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + feerefunder.MsgUpdateParams = (function() { + + /** + * Properties of a MsgUpdateParams. * @memberof neutron.feerefunder - * @classdesc Represents a Params. - * @implements IParams + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.feerefunder.IParams|null} [params] MsgUpdateParams params + */ + + /** + * Constructs a new MsgUpdateParams. + * @memberof neutron.feerefunder + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams * @constructor - * @param {neutron.feerefunder.IParams=} [properties] Properties to set + * @param {neutron.feerefunder.IMsgUpdateParams=} [properties] Properties to set */ - function Params(properties) { + function MsgUpdateParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6121,63 +6863,76 @@ } /** - * Params min_fee. - * @member {neutron.feerefunder.IFee|null|undefined} min_fee - * @memberof neutron.feerefunder.Params + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.feerefunder.MsgUpdateParams * @instance */ - Params.prototype.min_fee = null; + MsgUpdateParams.prototype.authority = ""; /** - * Encodes the specified Params message. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. + * MsgUpdateParams params. + * @member {neutron.feerefunder.IParams|null|undefined} params + * @memberof neutron.feerefunder.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.params = null; + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.feerefunder.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static - * @param {neutron.feerefunder.IParams} message Params message or plain object to encode + * @param {neutron.feerefunder.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.min_fee != null && Object.hasOwnProperty.call(message, "min_fee")) - $root.neutron.feerefunder.Fee.encode(message.min_fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.feerefunder.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.feerefunder.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static - * @param {neutron.feerefunder.IParams} message Params message or plain object to encode + * @param {neutron.feerefunder.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.Params} Params + * @returns {neutron.feerefunder.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.min_fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.feerefunder.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6188,117 +6943,120 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.Params} Params + * @returns {neutron.feerefunder.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @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) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.min_fee != null && message.hasOwnProperty("min_fee")) { - var error = $root.neutron.feerefunder.Fee.verify(message.min_fee); + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.feerefunder.Params.verify(message.params); if (error) - return "min_fee." + error; + return "params." + error; } return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.Params} Params + * @returns {neutron.feerefunder.MsgUpdateParams} MsgUpdateParams */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.Params) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.MsgUpdateParams) return object; - var message = new $root.neutron.feerefunder.Params(); - if (object.min_fee != null) { - if (typeof object.min_fee !== "object") - throw TypeError(".neutron.feerefunder.Params.min_fee: object expected"); - message.min_fee = $root.neutron.feerefunder.Fee.fromObject(object.min_fee); + var message = new $root.neutron.feerefunder.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.feerefunder.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.feerefunder.Params.fromObject(object.params); } return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @static - * @param {neutron.feerefunder.Params} message Params + * @param {neutron.feerefunder.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + MsgUpdateParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.min_fee = null; - if (message.min_fee != null && message.hasOwnProperty("min_fee")) - object.min_fee = $root.neutron.feerefunder.Fee.toObject(message.min_fee, options); + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.feerefunder.Params.toObject(message.params, options); return object; }; /** - * Converts this Params to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof neutron.feerefunder.Params + * @memberof neutron.feerefunder.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return MsgUpdateParams; })(); - feerefunder.Fee = (function() { + feerefunder.MsgUpdateParamsResponse = (function() { /** - * Properties of a Fee. + * Properties of a MsgUpdateParamsResponse. * @memberof neutron.feerefunder - * @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 + * @interface IMsgUpdateParamsResponse */ /** - * Constructs a new Fee. + * Constructs a new MsgUpdateParamsResponse. * @memberof neutron.feerefunder - * @classdesc Represents a Fee. - * @implements IFee + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse * @constructor - * @param {neutron.feerefunder.IFee=} [properties] Properties to set + * @param {neutron.feerefunder.IMsgUpdateParamsResponse=} [properties] Properties to set */ - function Fee(properties) { - this.recv_fee = []; - this.ack_fee = []; - this.timeout_fee = []; + function MsgUpdateParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6306,99 +7064,51 @@ } /** - * Fee recv_fee. - * @member {Array.} recv_fee - * @memberof neutron.feerefunder.Fee - * @instance - */ - Fee.prototype.recv_fee = $util.emptyArray; - - /** - * Fee ack_fee. - * @member {Array.} ack_fee - * @memberof neutron.feerefunder.Fee - * @instance - */ - Fee.prototype.ack_fee = $util.emptyArray; - - /** - * Fee timeout_fee. - * @member {Array.} timeout_fee - * @memberof neutron.feerefunder.Fee - * @instance - */ - Fee.prototype.timeout_fee = $util.emptyArray; - - /** - * Encodes the specified Fee message. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.feerefunder.MsgUpdateParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @static - * @param {neutron.feerefunder.IFee} message Fee message or plain object to encode + * @param {neutron.feerefunder.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fee.encode = function encode(message, writer) { + MsgUpdateParamsResponse.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; }; /** - * Encodes the specified Fee message, length delimited. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.MsgUpdateParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @static - * @param {neutron.feerefunder.IFee} message Fee message or plain object to encode + * @param {neutron.feerefunder.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fee.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fee message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.Fee} Fee + * @returns {neutron.feerefunder.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.Fee(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.MsgUpdateParamsResponse(); 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; @@ -6408,87 +7118,469 @@ }; /** - * Decodes a Fee message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.Fee} Fee + * @returns {neutron.feerefunder.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fee message. + * Verifies a MsgUpdateParamsResponse message. * @function verify - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.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; }; /** - * Creates a Fee message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.feerefunder.Fee + * @memberof neutron.feerefunder.MsgUpdateParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.Fee} Fee + * @returns {neutron.feerefunder.MsgUpdateParamsResponse} MsgUpdateParamsResponse */ - Fee.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.Fee) + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.MsgUpdateParamsResponse) return object; - var message = new $root.neutron.feerefunder.Fee(); - if (object.recv_fee) { - if (!Array.isArray(object.recv_fee)) - throw TypeError(".neutron.feerefunder.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(".neutron.feerefunder.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(".neutron.feerefunder.Fee.ack_fee: array expected"); + return new $root.neutron.feerefunder.MsgUpdateParamsResponse(); + }; + + /** + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.feerefunder.MsgUpdateParamsResponse + * @static + * @param {neutron.feerefunder.MsgUpdateParamsResponse} message MsgUpdateParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgUpdateParamsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgUpdateParamsResponse to JSON. + * @function toJSON + * @memberof neutron.feerefunder.MsgUpdateParamsResponse + * @instance + * @returns {Object.} JSON object + */ + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgUpdateParamsResponse; + })(); + + feerefunder.Params = (function() { + + /** + * Properties of a Params. + * @memberof neutron.feerefunder + * @interface IParams + * @property {neutron.feerefunder.IFee|null} [min_fee] Params min_fee + */ + + /** + * Constructs a new Params. + * @memberof neutron.feerefunder + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {neutron.feerefunder.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 min_fee. + * @member {neutron.feerefunder.IFee|null|undefined} min_fee + * @memberof neutron.feerefunder.Params + * @instance + */ + Params.prototype.min_fee = null; + + /** + * Encodes the specified Params message. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. + * @function encode + * @memberof neutron.feerefunder.Params + * @static + * @param {neutron.feerefunder.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.min_fee != null && Object.hasOwnProperty.call(message, "min_fee")) + $root.neutron.feerefunder.Fee.encode(message.min_fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.feerefunder.Params + * @static + * @param {neutron.feerefunder.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 neutron.feerefunder.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.feerefunder.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.neutron.feerefunder.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.min_fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.feerefunder.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.feerefunder.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 neutron.feerefunder.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.min_fee != null && message.hasOwnProperty("min_fee")) { + var error = $root.neutron.feerefunder.Fee.verify(message.min_fee); + if (error) + return "min_fee." + error; + } + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.feerefunder.Params + * @static + * @param {Object.} object Plain object + * @returns {neutron.feerefunder.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.Params) + return object; + var message = new $root.neutron.feerefunder.Params(); + if (object.min_fee != null) { + if (typeof object.min_fee !== "object") + throw TypeError(".neutron.feerefunder.Params.min_fee: object expected"); + message.min_fee = $root.neutron.feerefunder.Fee.fromObject(object.min_fee); + } + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.feerefunder.Params + * @static + * @param {neutron.feerefunder.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.min_fee = null; + if (message.min_fee != null && message.hasOwnProperty("min_fee")) + object.min_fee = $root.neutron.feerefunder.Fee.toObject(message.min_fee, options); + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof neutron.feerefunder.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + feerefunder.Fee = (function() { + + /** + * Properties of a Fee. + * @memberof neutron.feerefunder + * @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 Fee. + * @memberof neutron.feerefunder + * @classdesc Represents a Fee. + * @implements IFee + * @constructor + * @param {neutron.feerefunder.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]]; + } + + /** + * Fee recv_fee. + * @member {Array.} recv_fee + * @memberof neutron.feerefunder.Fee + * @instance + */ + Fee.prototype.recv_fee = $util.emptyArray; + + /** + * Fee ack_fee. + * @member {Array.} ack_fee + * @memberof neutron.feerefunder.Fee + * @instance + */ + Fee.prototype.ack_fee = $util.emptyArray; + + /** + * Fee timeout_fee. + * @member {Array.} timeout_fee + * @memberof neutron.feerefunder.Fee + * @instance + */ + Fee.prototype.timeout_fee = $util.emptyArray; + + /** + * Encodes the specified Fee message. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * @function encode + * @memberof neutron.feerefunder.Fee + * @static + * @param {neutron.feerefunder.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; + }; + + /** + * Encodes the specified Fee message, length delimited. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.feerefunder.Fee + * @static + * @param {neutron.feerefunder.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(); + }; + + /** + * Decodes a Fee message from the specified reader or buffer. + * @function decode + * @memberof neutron.feerefunder.Fee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.feerefunder.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.neutron.feerefunder.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; + }; + + /** + * Decodes a Fee message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.feerefunder.Fee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.feerefunder.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()); + }; + + /** + * Verifies a Fee message. + * @function verify + * @memberof neutron.feerefunder.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; + }; + + /** + * Creates a Fee message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.feerefunder.Fee + * @static + * @param {Object.} object Plain object + * @returns {neutron.feerefunder.Fee} Fee + */ + Fee.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.Fee) + return object; + var message = new $root.neutron.feerefunder.Fee(); + if (object.recv_fee) { + if (!Array.isArray(object.recv_fee)) + throw TypeError(".neutron.feerefunder.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(".neutron.feerefunder.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(".neutron.feerefunder.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") @@ -6793,107 +7885,162 @@ return PacketID; })(); - feerefunder.GenesisState = (function() { - - /** - * Properties of a GenesisState. - * @memberof neutron.feerefunder - * @interface IGenesisState - * @property {neutron.feerefunder.IParams|null} [params] GenesisState params - * @property {Array.|null} [fee_infos] GenesisState fee_infos - */ + feerefunder.Query = (function() { /** - * Constructs a new GenesisState. + * Constructs a new Query service. * @memberof neutron.feerefunder - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service * @constructor - * @param {neutron.feerefunder.IGenesisState=} [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 GenesisState(properties) { - this.fee_infos = []; - 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 Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + /** - * GenesisState params. - * @member {neutron.feerefunder.IParams|null|undefined} params - * @memberof neutron.feerefunder.GenesisState - * @instance + * Callback as used by {@link neutron.feerefunder.Query#params}. + * @memberof neutron.feerefunder.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feerefunder.QueryParamsResponse} [response] QueryParamsResponse */ - GenesisState.prototype.params = null; /** - * GenesisState fee_infos. - * @member {Array.} fee_infos - * @memberof neutron.feerefunder.GenesisState + * Calls Params. + * @function params + * @memberof neutron.feerefunder.Query * @instance + * @param {neutron.feerefunder.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.feerefunder.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 */ - GenesisState.prototype.fee_infos = $util.emptyArray; + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.neutron.feerefunder.QueryParamsRequest, $root.neutron.feerefunder.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. - * @function encode - * @memberof neutron.feerefunder.GenesisState - * @static - * @param {neutron.feerefunder.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls Params. + * @function params + * @memberof neutron.feerefunder.Query + * @instance + * @param {neutron.feerefunder.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.feerefunder.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fee_infos != null && message.fee_infos.length) - for (var i = 0; i < message.fee_infos.length; ++i) - $root.neutron.feerefunder.FeeInfo.encode(message.fee_infos[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.feerefunder.GenesisState - * @static - * @param {neutron.feerefunder.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link neutron.feerefunder.Query#feeInfo}. + * @memberof neutron.feerefunder.Query + * @typedef FeeInfoCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.feerefunder.FeeInfoResponse} [response] FeeInfoResponse */ - 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 neutron.feerefunder.GenesisState + * Calls FeeInfo. + * @function feeInfo + * @memberof neutron.feerefunder.Query + * @instance + * @param {neutron.feerefunder.IFeeInfoRequest} request FeeInfoRequest message or plain object + * @param {neutron.feerefunder.Query.FeeInfoCallback} callback Node-style callback called with the error, if any, and FeeInfoResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.feeInfo = function feeInfo(request, callback) { + return this.rpcCall(feeInfo, $root.neutron.feerefunder.FeeInfoRequest, $root.neutron.feerefunder.FeeInfoResponse, request, callback); + }, "name", { value: "FeeInfo" }); + + /** + * Calls FeeInfo. + * @function feeInfo + * @memberof neutron.feerefunder.Query + * @instance + * @param {neutron.feerefunder.IFeeInfoRequest} request FeeInfoRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + feerefunder.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. + * @memberof neutron.feerefunder + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof neutron.feerefunder + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {neutron.feerefunder.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 neutron.feerefunder.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof neutron.feerefunder.QueryParamsRequest + * @static + * @param {neutron.feerefunder.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 neutron.feerefunder.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.feerefunder.QueryParamsRequest + * @static + * @param {neutron.feerefunder.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 neutron.feerefunder.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.GenesisState} GenesisState + * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest * @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) { + 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.neutron.feerefunder.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.QueryParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.params = $root.neutron.feerefunder.Params.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.fee_infos && message.fee_infos.length)) - message.fee_infos = []; - message.fee_infos.push($root.neutron.feerefunder.FeeInfo.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -6903,140 +8050,94 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.GenesisState + * @memberof neutron.feerefunder.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.GenesisState} GenesisState + * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest * @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) { + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryParamsRequest message. * @function verify - * @memberof neutron.feerefunder.GenesisState + * @memberof neutron.feerefunder.QueryParamsRequest * @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) { + QueryParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.feerefunder.Params.verify(message.params); - if (error) - return "params." + error; - } - if (message.fee_infos != null && message.hasOwnProperty("fee_infos")) { - if (!Array.isArray(message.fee_infos)) - return "fee_infos: array expected"; - for (var i = 0; i < message.fee_infos.length; ++i) { - var error = $root.neutron.feerefunder.FeeInfo.verify(message.fee_infos[i]); - if (error) - return "fee_infos." + error; - } - } return null; }; /** - * Creates a GenesisState 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. * @function fromObject - * @memberof neutron.feerefunder.GenesisState + * @memberof neutron.feerefunder.QueryParamsRequest * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.GenesisState} GenesisState + * @returns {neutron.feerefunder.QueryParamsRequest} QueryParamsRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.GenesisState) + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.QueryParamsRequest) return object; - var message = new $root.neutron.feerefunder.GenesisState(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.feerefunder.GenesisState.params: object expected"); - message.params = $root.neutron.feerefunder.Params.fromObject(object.params); - } - if (object.fee_infos) { - if (!Array.isArray(object.fee_infos)) - throw TypeError(".neutron.feerefunder.GenesisState.fee_infos: array expected"); - message.fee_infos = []; - for (var i = 0; i < object.fee_infos.length; ++i) { - if (typeof object.fee_infos[i] !== "object") - throw TypeError(".neutron.feerefunder.GenesisState.fee_infos: object expected"); - message.fee_infos[i] = $root.neutron.feerefunder.FeeInfo.fromObject(object.fee_infos[i]); - } - } - return message; + return new $root.neutron.feerefunder.QueryParamsRequest(); }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.feerefunder.GenesisState + * @memberof neutron.feerefunder.QueryParamsRequest * @static - * @param {neutron.feerefunder.GenesisState} message GenesisState + * @param {neutron.feerefunder.QueryParamsRequest} message QueryParamsRequest * @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.fee_infos = []; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.feerefunder.Params.toObject(message.params, options); - if (message.fee_infos && message.fee_infos.length) { - object.fee_infos = []; - for (var j = 0; j < message.fee_infos.length; ++j) - object.fee_infos[j] = $root.neutron.feerefunder.FeeInfo.toObject(message.fee_infos[j], options); - } - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof neutron.feerefunder.GenesisState + * @memberof neutron.feerefunder.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryParamsRequest; })(); - feerefunder.FeeInfo = (function() { + feerefunder.QueryParamsResponse = (function() { /** - * Properties of a FeeInfo. + * Properties of a QueryParamsResponse. * @memberof neutron.feerefunder - * @interface IFeeInfo - * @property {string|null} [payer] FeeInfo payer - * @property {neutron.feerefunder.IPacketID|null} [packet_id] FeeInfo packet_id - * @property {neutron.feerefunder.IFee|null} [fee] FeeInfo fee + * @interface IQueryParamsResponse + * @property {neutron.feerefunder.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new FeeInfo. + * Constructs a new QueryParamsResponse. * @memberof neutron.feerefunder - * @classdesc Represents a FeeInfo. - * @implements IFeeInfo + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {neutron.feerefunder.IFeeInfo=} [properties] Properties to set + * @param {neutron.feerefunder.IQueryParamsResponse=} [properties] Properties to set */ - function FeeInfo(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7044,89 +8145,63 @@ } /** - * FeeInfo payer. - * @member {string} payer - * @memberof neutron.feerefunder.FeeInfo - * @instance - */ - FeeInfo.prototype.payer = ""; - - /** - * FeeInfo packet_id. - * @member {neutron.feerefunder.IPacketID|null|undefined} packet_id - * @memberof neutron.feerefunder.FeeInfo - * @instance - */ - FeeInfo.prototype.packet_id = null; - - /** - * FeeInfo fee. - * @member {neutron.feerefunder.IFee|null|undefined} fee - * @memberof neutron.feerefunder.FeeInfo + * QueryParamsResponse params. + * @member {neutron.feerefunder.IParams|null|undefined} params + * @memberof neutron.feerefunder.QueryParamsResponse * @instance */ - FeeInfo.prototype.fee = null; + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified FeeInfo message. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static - * @param {neutron.feerefunder.IFeeInfo} message FeeInfo message or plain object to encode + * @param {neutron.feerefunder.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfo.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.payer != null && Object.hasOwnProperty.call(message, "payer")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payer); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.neutron.feerefunder.PacketID.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.feerefunder.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeeInfo message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static - * @param {neutron.feerefunder.IFeeInfo} message FeeInfo message or plain object to encode + * @param {neutron.feerefunder.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeInfo.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeeInfo message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.feerefunder.FeeInfo} FeeInfo + * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfo.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.neutron.feerefunder.FeeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.payer = reader.string(); - break; - case 2: - message.packet_id = $root.neutron.feerefunder.PacketID.decode(reader, reader.uint32()); - break; - case 3: - message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); + message.params = $root.neutron.feerefunder.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7137,437 +8212,204 @@ }; /** - * Decodes a FeeInfo message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.feerefunder.FeeInfo} FeeInfo + * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeInfo.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 FeeInfo message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeeInfo.verify = function verify(message) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.payer != null && message.hasOwnProperty("payer")) - if (!$util.isString(message.payer)) - return "payer: string expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.neutron.feerefunder.PacketID.verify(message.packet_id); - if (error) - return "packet_id." + error; - } - if (message.fee != null && message.hasOwnProperty("fee")) { - var error = $root.neutron.feerefunder.Fee.verify(message.fee); + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.feerefunder.Params.verify(message.params); if (error) - return "fee." + error; + return "params." + error; } return null; }; /** - * Creates a FeeInfo 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 neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.feerefunder.FeeInfo} FeeInfo + * @returns {neutron.feerefunder.QueryParamsResponse} QueryParamsResponse */ - FeeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.feerefunder.FeeInfo) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.QueryParamsResponse) return object; - var message = new $root.neutron.feerefunder.FeeInfo(); - if (object.payer != null) - message.payer = String(object.payer); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".neutron.feerefunder.FeeInfo.packet_id: object expected"); - message.packet_id = $root.neutron.feerefunder.PacketID.fromObject(object.packet_id); - } - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".neutron.feerefunder.FeeInfo.fee: object expected"); - message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); + var message = new $root.neutron.feerefunder.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.feerefunder.QueryParamsResponse.params: object expected"); + message.params = $root.neutron.feerefunder.Params.fromObject(object.params); } return message; }; /** - * Creates a plain object from a FeeInfo 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 neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @static - * @param {neutron.feerefunder.FeeInfo} message FeeInfo + * @param {neutron.feerefunder.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeeInfo.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.payer = ""; - object.packet_id = null; - object.fee = null; - } - if (message.payer != null && message.hasOwnProperty("payer")) - object.payer = message.payer; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.neutron.feerefunder.PacketID.toObject(message.packet_id, options); - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.feerefunder.Params.toObject(message.params, options); return object; }; /** - * Converts this FeeInfo to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof neutron.feerefunder.FeeInfo + * @memberof neutron.feerefunder.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - FeeInfo.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeeInfo; + return QueryParamsResponse; })(); - return feerefunder; - })(); - - neutron.interchainqueries = (function() { - - /** - * Namespace interchainqueries. - * @memberof neutron - * @namespace - */ - var interchainqueries = {}; - - interchainqueries.Msg = (function() { + feerefunder.FeeInfoRequest = (function() { /** - * Constructs a new Msg service. - * @memberof neutron.interchainqueries - * @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 + * Properties of a FeeInfoRequest. + * @memberof neutron.feerefunder + * @interface IFeeInfoRequest + * @property {string|null} [channel_id] FeeInfoRequest channel_id + * @property {string|null} [port_id] FeeInfoRequest port_id + * @property {Long|null} [sequence] FeeInfoRequest sequence */ - 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 neutron.interchainqueries.Msg#registerInterchainQuery}. - * @memberof neutron.interchainqueries.Msg - * @typedef RegisterInterchainQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} [response] MsgRegisterInterchainQueryResponse + * Constructs a new FeeInfoRequest. + * @memberof neutron.feerefunder + * @classdesc Represents a FeeInfoRequest. + * @implements IFeeInfoRequest + * @constructor + * @param {neutron.feerefunder.IFeeInfoRequest=} [properties] Properties to set */ + function FeeInfoRequest(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 RegisterInterchainQuery. - * @function registerInterchainQuery - * @memberof neutron.interchainqueries.Msg + * FeeInfoRequest channel_id. + * @member {string} channel_id + * @memberof neutron.feerefunder.FeeInfoRequest * @instance - * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} request MsgRegisterInterchainQuery message or plain object - * @param {neutron.interchainqueries.Msg.RegisterInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgRegisterInterchainQueryResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Msg.prototype.registerInterchainQuery = function registerInterchainQuery(request, callback) { - return this.rpcCall(registerInterchainQuery, $root.neutron.interchainqueries.MsgRegisterInterchainQuery, $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse, request, callback); - }, "name", { value: "RegisterInterchainQuery" }); + FeeInfoRequest.prototype.channel_id = ""; /** - * Calls RegisterInterchainQuery. - * @function registerInterchainQuery - * @memberof neutron.interchainqueries.Msg + * FeeInfoRequest port_id. + * @member {string} port_id + * @memberof neutron.feerefunder.FeeInfoRequest * @instance - * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} request MsgRegisterInterchainQuery message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.interchainqueries.Msg#submitQueryResult}. - * @memberof neutron.interchainqueries.Msg - * @typedef SubmitQueryResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.MsgSubmitQueryResultResponse} [response] MsgSubmitQueryResultResponse */ + FeeInfoRequest.prototype.port_id = ""; /** - * Calls SubmitQueryResult. - * @function submitQueryResult - * @memberof neutron.interchainqueries.Msg + * FeeInfoRequest sequence. + * @member {Long} sequence + * @memberof neutron.feerefunder.FeeInfoRequest * @instance - * @param {neutron.interchainqueries.IMsgSubmitQueryResult} request MsgSubmitQueryResult message or plain object - * @param {neutron.interchainqueries.Msg.SubmitQueryResultCallback} callback Node-style callback called with the error, if any, and MsgSubmitQueryResultResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Msg.prototype.submitQueryResult = function submitQueryResult(request, callback) { - return this.rpcCall(submitQueryResult, $root.neutron.interchainqueries.MsgSubmitQueryResult, $root.neutron.interchainqueries.MsgSubmitQueryResultResponse, request, callback); - }, "name", { value: "SubmitQueryResult" }); + FeeInfoRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Calls SubmitQueryResult. - * @function submitQueryResult - * @memberof neutron.interchainqueries.Msg - * @instance - * @param {neutron.interchainqueries.IMsgSubmitQueryResult} request MsgSubmitQueryResult message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified FeeInfoRequest message. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * @function encode + * @memberof neutron.feerefunder.FeeInfoRequest + * @static + * @param {neutron.feerefunder.IFeeInfoRequest} message FeeInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + FeeInfoRequest.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); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + return writer; + }; /** - * Callback as used by {@link neutron.interchainqueries.Msg#removeInterchainQuery}. - * @memberof neutron.interchainqueries.Msg - * @typedef RemoveInterchainQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} [response] MsgRemoveInterchainQueryResponse + * Encodes the specified FeeInfoRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.feerefunder.FeeInfoRequest + * @static + * @param {neutron.feerefunder.IFeeInfoRequest} message FeeInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + FeeInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls RemoveInterchainQuery. - * @function removeInterchainQuery - * @memberof neutron.interchainqueries.Msg - * @instance - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} request MsgRemoveInterchainQueryRequest message or plain object - * @param {neutron.interchainqueries.Msg.RemoveInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgRemoveInterchainQueryResponse - * @returns {undefined} - * @variation 1 + * Decodes a FeeInfoRequest message from the specified reader or buffer. + * @function decode + * @memberof neutron.feerefunder.FeeInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Msg.prototype.removeInterchainQuery = function removeInterchainQuery(request, callback) { - return this.rpcCall(removeInterchainQuery, $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest, $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse, request, callback); - }, "name", { value: "RemoveInterchainQuery" }); - - /** - * Calls RemoveInterchainQuery. - * @function removeInterchainQuery - * @memberof neutron.interchainqueries.Msg - * @instance - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} request MsgRemoveInterchainQueryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.interchainqueries.Msg#updateInterchainQuery}. - * @memberof neutron.interchainqueries.Msg - * @typedef UpdateInterchainQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} [response] MsgUpdateInterchainQueryResponse - */ - - /** - * Calls UpdateInterchainQuery. - * @function updateInterchainQuery - * @memberof neutron.interchainqueries.Msg - * @instance - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} request MsgUpdateInterchainQueryRequest message or plain object - * @param {neutron.interchainqueries.Msg.UpdateInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgUpdateInterchainQueryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.updateInterchainQuery = function updateInterchainQuery(request, callback) { - return this.rpcCall(updateInterchainQuery, $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest, $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse, request, callback); - }, "name", { value: "UpdateInterchainQuery" }); - - /** - * Calls UpdateInterchainQuery. - * @function updateInterchainQuery - * @memberof neutron.interchainqueries.Msg - * @instance - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} request MsgUpdateInterchainQueryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; - })(); - - interchainqueries.MsgRegisterInterchainQuery = (function() { - - /** - * Properties of a MsgRegisterInterchainQuery. - * @memberof neutron.interchainqueries - * @interface IMsgRegisterInterchainQuery - * @property {string|null} [query_type] MsgRegisterInterchainQuery query_type - * @property {Array.|null} [keys] MsgRegisterInterchainQuery keys - * @property {string|null} [transactions_filter] MsgRegisterInterchainQuery transactions_filter - * @property {string|null} [connection_id] MsgRegisterInterchainQuery connection_id - * @property {Long|null} [update_period] MsgRegisterInterchainQuery update_period - * @property {string|null} [sender] MsgRegisterInterchainQuery sender - */ - - /** - * Constructs a new MsgRegisterInterchainQuery. - * @memberof neutron.interchainqueries - * @classdesc Represents a MsgRegisterInterchainQuery. - * @implements IMsgRegisterInterchainQuery - * @constructor - * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery=} [properties] Properties to set - */ - function MsgRegisterInterchainQuery(properties) { - this.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]]; - } - - /** - * MsgRegisterInterchainQuery query_type. - * @member {string} query_type - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.query_type = ""; - - /** - * MsgRegisterInterchainQuery keys. - * @member {Array.} keys - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.keys = $util.emptyArray; - - /** - * MsgRegisterInterchainQuery transactions_filter. - * @member {string} transactions_filter - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.transactions_filter = ""; - - /** - * MsgRegisterInterchainQuery connection_id. - * @member {string} connection_id - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.connection_id = ""; - - /** - * MsgRegisterInterchainQuery update_period. - * @member {Long} update_period - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgRegisterInterchainQuery sender. - * @member {string} sender - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @instance - */ - MsgRegisterInterchainQuery.prototype.sender = ""; - - /** - * Encodes the specified MsgRegisterInterchainQuery message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. - * @function encode - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @static - * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} message MsgRegisterInterchainQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterInterchainQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.query_type != null && Object.hasOwnProperty.call(message, "query_type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.query_type); - if (message.keys != null && message.keys.length) - for (var i = 0; i < message.keys.length; ++i) - $root.neutron.interchainqueries.KVKey.encode(message.keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transactions_filter != null && Object.hasOwnProperty.call(message, "transactions_filter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transactions_filter); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_id); - if (message.update_period != null && Object.hasOwnProperty.call(message, "update_period")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.update_period); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sender); - return writer; - }; - - /** - * Encodes the specified MsgRegisterInterchainQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @static - * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} message MsgRegisterInterchainQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterInterchainQuery.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterInterchainQuery.decode = function decode(reader, length) { + FeeInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRegisterInterchainQuery(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.FeeInfoRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_type = reader.string(); + message.channel_id = reader.string(); break; case 2: - if (!(message.keys && message.keys.length)) - message.keys = []; - message.keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); + message.port_id = reader.string(); break; case 3: - message.transactions_filter = reader.string(); - break; - case 4: - message.connection_id = reader.string(); - break; - case 5: - message.update_period = reader.uint64(); - break; - case 6: - message.sender = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -7578,180 +8420,138 @@ }; /** - * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer, length delimited. + * Decodes a FeeInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @memberof neutron.feerefunder.FeeInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery + * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRegisterInterchainQuery.decodeDelimited = function decodeDelimited(reader) { + FeeInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRegisterInterchainQuery message. + * Verifies a FeeInfoRequest message. * @function verify - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @memberof neutron.feerefunder.FeeInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRegisterInterchainQuery.verify = function verify(message) { + FeeInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_type != null && message.hasOwnProperty("query_type")) - if (!$util.isString(message.query_type)) - return "query_type: string expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; - for (var i = 0; i < message.keys.length; ++i) { - var error = $root.neutron.interchainqueries.KVKey.verify(message.keys[i]); - if (error) - return "keys." + error; - } - } - if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) - if (!$util.isString(message.transactions_filter)) - return "transactions_filter: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.update_period != null && message.hasOwnProperty("update_period")) - if (!$util.isInteger(message.update_period) && !(message.update_period && $util.isInteger(message.update_period.low) && $util.isInteger(message.update_period.high))) - return "update_period: integer|Long expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string 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"; + 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 MsgRegisterInterchainQuery message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @memberof neutron.feerefunder.FeeInfoRequest * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery + * @returns {neutron.feerefunder.FeeInfoRequest} FeeInfoRequest */ - MsgRegisterInterchainQuery.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgRegisterInterchainQuery) + FeeInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.FeeInfoRequest) return object; - var message = new $root.neutron.interchainqueries.MsgRegisterInterchainQuery(); - if (object.query_type != null) - message.query_type = String(object.query_type); - if (object.keys) { - if (!Array.isArray(object.keys)) - throw TypeError(".neutron.interchainqueries.MsgRegisterInterchainQuery.keys: array expected"); - message.keys = []; - for (var i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".neutron.interchainqueries.MsgRegisterInterchainQuery.keys: object expected"); - message.keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.keys[i]); - } - } - if (object.transactions_filter != null) - message.transactions_filter = String(object.transactions_filter); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.update_period != null) + var message = new $root.neutron.feerefunder.FeeInfoRequest(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.sequence != null) if ($util.Long) - (message.update_period = $util.Long.fromValue(object.update_period)).unsigned = true; - else if (typeof object.update_period === "string") - message.update_period = parseInt(object.update_period, 10); - else if (typeof object.update_period === "number") - message.update_period = object.update_period; - else if (typeof object.update_period === "object") - message.update_period = new $util.LongBits(object.update_period.low >>> 0, object.update_period.high >>> 0).toNumber(true); - if (object.sender != null) - message.sender = String(object.sender); + (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 MsgRegisterInterchainQuery message. Also converts values to other types if specified. + * Creates a plain object from a FeeInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @memberof neutron.feerefunder.FeeInfoRequest * @static - * @param {neutron.interchainqueries.MsgRegisterInterchainQuery} message MsgRegisterInterchainQuery + * @param {neutron.feerefunder.FeeInfoRequest} message FeeInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRegisterInterchainQuery.toObject = function toObject(message, options) { + FeeInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.keys = []; if (options.defaults) { - object.query_type = ""; - object.transactions_filter = ""; - object.connection_id = ""; + object.channel_id = ""; + object.port_id = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.update_period = 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.update_period = options.longs === String ? "0" : 0; - object.sender = ""; - } - if (message.query_type != null && message.hasOwnProperty("query_type")) - object.query_type = message.query_type; - if (message.keys && message.keys.length) { - object.keys = []; - for (var j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.keys[j], options); + object.sequence = options.longs === String ? "0" : 0; } - if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) - object.transactions_filter = message.transactions_filter; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.update_period != null && message.hasOwnProperty("update_period")) - if (typeof message.update_period === "number") - object.update_period = options.longs === String ? String(message.update_period) : message.update_period; + 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; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else - object.update_period = options.longs === String ? $util.Long.prototype.toString.call(message.update_period) : options.longs === Number ? new $util.LongBits(message.update_period.low >>> 0, message.update_period.high >>> 0).toNumber(true) : message.update_period; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; + 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 MsgRegisterInterchainQuery to JSON. + * Converts this FeeInfoRequest to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @memberof neutron.feerefunder.FeeInfoRequest * @instance * @returns {Object.} JSON object */ - MsgRegisterInterchainQuery.prototype.toJSON = function toJSON() { + FeeInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRegisterInterchainQuery; + return FeeInfoRequest; })(); - interchainqueries.MsgRegisterInterchainQueryResponse = (function() { + feerefunder.FeeInfoResponse = (function() { /** - * Properties of a MsgRegisterInterchainQueryResponse. - * @memberof neutron.interchainqueries - * @interface IMsgRegisterInterchainQueryResponse - * @property {Long|null} [id] MsgRegisterInterchainQueryResponse id + * Properties of a FeeInfoResponse. + * @memberof neutron.feerefunder + * @interface IFeeInfoResponse + * @property {neutron.feerefunder.IFeeInfo|null} [fee_info] FeeInfoResponse fee_info */ /** - * Constructs a new MsgRegisterInterchainQueryResponse. - * @memberof neutron.interchainqueries - * @classdesc Represents a MsgRegisterInterchainQueryResponse. - * @implements IMsgRegisterInterchainQueryResponse + * Constructs a new FeeInfoResponse. + * @memberof neutron.feerefunder + * @classdesc Represents a FeeInfoResponse. + * @implements IFeeInfoResponse * @constructor - * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse=} [properties] Properties to set + * @param {neutron.feerefunder.IFeeInfoResponse=} [properties] Properties to set */ - function MsgRegisterInterchainQueryResponse(properties) { + function FeeInfoResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7759,63 +8559,63 @@ } /** - * MsgRegisterInterchainQueryResponse id. - * @member {Long} id - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * FeeInfoResponse fee_info. + * @member {neutron.feerefunder.IFeeInfo|null|undefined} fee_info + * @memberof neutron.feerefunder.FeeInfoResponse * @instance */ - MsgRegisterInterchainQueryResponse.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + FeeInfoResponse.prototype.fee_info = null; /** - * Encodes the specified MsgRegisterInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. + * Encodes the specified FeeInfoResponse message. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static - * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse message or plain object to encode + * @param {neutron.feerefunder.IFeeInfoResponse} message FeeInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRegisterInterchainQueryResponse.encode = function encode(message, writer) { + FeeInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); + if (message.fee_info != null && Object.hasOwnProperty.call(message, "fee_info")) + $root.neutron.feerefunder.FeeInfo.encode(message.fee_info, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgRegisterInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. + * Encodes the specified FeeInfoResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static - * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse message or plain object to encode + * @param {neutron.feerefunder.IFeeInfoResponse} message FeeInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRegisterInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + FeeInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer. + * Decodes a FeeInfoResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse + * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRegisterInterchainQueryResponse.decode = function decode(reader, length) { + FeeInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.FeeInfoResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.uint64(); + message.fee_info = $root.neutron.feerefunder.FeeInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -7826,124 +8626,114 @@ }; /** - * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a FeeInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse + * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRegisterInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { + FeeInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRegisterInterchainQueryResponse message. + * Verifies a FeeInfoResponse message. * @function verify - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRegisterInterchainQueryResponse.verify = function verify(message) { + FeeInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.fee_info != null && message.hasOwnProperty("fee_info")) { + var error = $root.neutron.feerefunder.FeeInfo.verify(message.fee_info); + if (error) + return "fee_info." + error; + } return null; }; /** - * Creates a MsgRegisterInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse + * @returns {neutron.feerefunder.FeeInfoResponse} FeeInfoResponse */ - MsgRegisterInterchainQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse) + FeeInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.FeeInfoResponse) return object; - var message = new $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse(); - 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); + var message = new $root.neutron.feerefunder.FeeInfoResponse(); + if (object.fee_info != null) { + if (typeof object.fee_info !== "object") + throw TypeError(".neutron.feerefunder.FeeInfoResponse.fee_info: object expected"); + message.fee_info = $root.neutron.feerefunder.FeeInfo.fromObject(object.fee_info); + } return message; }; /** - * Creates a plain object from a MsgRegisterInterchainQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a FeeInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @static - * @param {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse + * @param {neutron.feerefunder.FeeInfoResponse} message FeeInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRegisterInterchainQueryResponse.toObject = function toObject(message, options) { + FeeInfoResponse.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.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - 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; + object.fee_info = null; + if (message.fee_info != null && message.hasOwnProperty("fee_info")) + object.fee_info = $root.neutron.feerefunder.FeeInfo.toObject(message.fee_info, options); return object; }; /** - * Converts this MsgRegisterInterchainQueryResponse to JSON. + * Converts this FeeInfoResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse + * @memberof neutron.feerefunder.FeeInfoResponse * @instance * @returns {Object.} JSON object */ - MsgRegisterInterchainQueryResponse.prototype.toJSON = function toJSON() { + FeeInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRegisterInterchainQueryResponse; + return FeeInfoResponse; })(); - interchainqueries.MsgSubmitQueryResult = (function() { + feerefunder.GenesisState = (function() { /** - * Properties of a MsgSubmitQueryResult. - * @memberof neutron.interchainqueries - * @interface IMsgSubmitQueryResult - * @property {Long|null} [query_id] MsgSubmitQueryResult query_id - * @property {string|null} [sender] MsgSubmitQueryResult sender - * @property {string|null} [client_id] MsgSubmitQueryResult client_id - * @property {neutron.interchainqueries.IQueryResult|null} [result] MsgSubmitQueryResult result + * Properties of a GenesisState. + * @memberof neutron.feerefunder + * @interface IGenesisState + * @property {neutron.feerefunder.IParams|null} [params] GenesisState params + * @property {Array.|null} [fee_infos] GenesisState fee_infos */ /** - * Constructs a new MsgSubmitQueryResult. - * @memberof neutron.interchainqueries - * @classdesc Represents a MsgSubmitQueryResult. - * @implements IMsgSubmitQueryResult + * Constructs a new GenesisState. + * @memberof neutron.feerefunder + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {neutron.interchainqueries.IMsgSubmitQueryResult=} [properties] Properties to set + * @param {neutron.feerefunder.IGenesisState=} [properties] Properties to set */ - function MsgSubmitQueryResult(properties) { + function GenesisState(properties) { + this.fee_infos = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7951,102 +8741,79 @@ } /** - * MsgSubmitQueryResult query_id. - * @member {Long} query_id - * @memberof neutron.interchainqueries.MsgSubmitQueryResult - * @instance - */ - MsgSubmitQueryResult.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgSubmitQueryResult sender. - * @member {string} sender - * @memberof neutron.interchainqueries.MsgSubmitQueryResult - * @instance - */ - MsgSubmitQueryResult.prototype.sender = ""; - - /** - * MsgSubmitQueryResult client_id. - * @member {string} client_id - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * GenesisState params. + * @member {neutron.feerefunder.IParams|null|undefined} params + * @memberof neutron.feerefunder.GenesisState * @instance */ - MsgSubmitQueryResult.prototype.client_id = ""; + GenesisState.prototype.params = null; /** - * MsgSubmitQueryResult result. - * @member {neutron.interchainqueries.IQueryResult|null|undefined} result - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * GenesisState fee_infos. + * @member {Array.} fee_infos + * @memberof neutron.feerefunder.GenesisState * @instance */ - MsgSubmitQueryResult.prototype.result = null; + GenesisState.prototype.fee_infos = $util.emptyArray; /** - * Encodes the specified MsgSubmitQueryResult message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static - * @param {neutron.interchainqueries.IMsgSubmitQueryResult} message MsgSubmitQueryResult message or plain object to encode + * @param {neutron.feerefunder.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitQueryResult.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sender); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.client_id); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.neutron.interchainqueries.QueryResult.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.feerefunder.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee_infos != null && message.fee_infos.length) + for (var i = 0; i < message.fee_infos.length; ++i) + $root.neutron.feerefunder.FeeInfo.encode(message.fee_infos[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgSubmitQueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static - * @param {neutron.interchainqueries.IMsgSubmitQueryResult} message MsgSubmitQueryResult message or plain object to encode + * @param {neutron.feerefunder.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitQueryResult.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitQueryResult message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult + * @returns {neutron.feerefunder.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitQueryResult.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.neutron.interchainqueries.MsgSubmitQueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_id = reader.uint64(); + message.params = $root.neutron.feerefunder.Params.decode(reader, reader.uint32()); break; case 2: - message.sender = reader.string(); - break; - case 3: - message.client_id = reader.string(); - break; - case 4: - message.result = $root.neutron.interchainqueries.QueryResult.decode(reader, reader.uint32()); + if (!(message.fee_infos && message.fee_infos.length)) + message.fee_infos = []; + message.fee_infos.push($root.neutron.feerefunder.FeeInfo.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -8057,156 +8824,140 @@ }; /** - * Decodes a MsgSubmitQueryResult message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult + * @returns {neutron.feerefunder.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitQueryResult.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 MsgSubmitQueryResult message. + * Verifies a GenesisState message. * @function verify - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitQueryResult.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) - return "query_id: integer|Long expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.neutron.interchainqueries.QueryResult.verify(message.result); + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.feerefunder.Params.verify(message.params); if (error) - return "result." + error; + return "params." + error; + } + if (message.fee_infos != null && message.hasOwnProperty("fee_infos")) { + if (!Array.isArray(message.fee_infos)) + return "fee_infos: array expected"; + for (var i = 0; i < message.fee_infos.length; ++i) { + var error = $root.neutron.feerefunder.FeeInfo.verify(message.fee_infos[i]); + if (error) + return "fee_infos." + error; + } } return null; }; /** - * Creates a MsgSubmitQueryResult 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 neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult + * @returns {neutron.feerefunder.GenesisState} GenesisState */ - MsgSubmitQueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgSubmitQueryResult) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.GenesisState) return object; - var message = new $root.neutron.interchainqueries.MsgSubmitQueryResult(); - if (object.query_id != null) - if ($util.Long) - (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; - else if (typeof object.query_id === "string") - message.query_id = parseInt(object.query_id, 10); - else if (typeof object.query_id === "number") - message.query_id = object.query_id; - else if (typeof object.query_id === "object") - message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); - if (object.sender != null) - message.sender = String(object.sender); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".neutron.interchainqueries.MsgSubmitQueryResult.result: object expected"); - message.result = $root.neutron.interchainqueries.QueryResult.fromObject(object.result); + var message = new $root.neutron.feerefunder.GenesisState(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.feerefunder.GenesisState.params: object expected"); + message.params = $root.neutron.feerefunder.Params.fromObject(object.params); + } + if (object.fee_infos) { + if (!Array.isArray(object.fee_infos)) + throw TypeError(".neutron.feerefunder.GenesisState.fee_infos: array expected"); + message.fee_infos = []; + for (var i = 0; i < object.fee_infos.length; ++i) { + if (typeof object.fee_infos[i] !== "object") + throw TypeError(".neutron.feerefunder.GenesisState.fee_infos: object expected"); + message.fee_infos[i] = $root.neutron.feerefunder.FeeInfo.fromObject(object.fee_infos[i]); + } } return message; }; /** - * Creates a plain object from a MsgSubmitQueryResult 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 neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @static - * @param {neutron.interchainqueries.MsgSubmitQueryResult} message MsgSubmitQueryResult + * @param {neutron.feerefunder.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgSubmitQueryResult.toObject = function toObject(message, options) { + GenesisState.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.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_id = options.longs === String ? "0" : 0; - object.sender = ""; - object.client_id = ""; - object.result = null; + if (options.arrays || options.defaults) + object.fee_infos = []; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.feerefunder.Params.toObject(message.params, options); + if (message.fee_infos && message.fee_infos.length) { + object.fee_infos = []; + for (var j = 0; j < message.fee_infos.length; ++j) + object.fee_infos[j] = $root.neutron.feerefunder.FeeInfo.toObject(message.fee_infos[j], options); } - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (typeof message.query_id === "number") - object.query_id = options.longs === String ? String(message.query_id) : message.query_id; - else - object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.neutron.interchainqueries.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this MsgSubmitQueryResult to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgSubmitQueryResult + * @memberof neutron.feerefunder.GenesisState * @instance * @returns {Object.} JSON object */ - MsgSubmitQueryResult.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgSubmitQueryResult; + return GenesisState; })(); - interchainqueries.QueryResult = (function() { + feerefunder.FeeInfo = (function() { /** - * Properties of a QueryResult. - * @memberof neutron.interchainqueries - * @interface IQueryResult - * @property {Array.|null} [kv_results] QueryResult kv_results - * @property {neutron.interchainqueries.IBlock|null} [block] QueryResult block - * @property {Long|null} [height] QueryResult height - * @property {Long|null} [revision] QueryResult revision - * @property {boolean|null} [allow_kv_callbacks] QueryResult allow_kv_callbacks + * Properties of a FeeInfo. + * @memberof neutron.feerefunder + * @interface IFeeInfo + * @property {string|null} [payer] FeeInfo payer + * @property {neutron.feerefunder.IPacketID|null} [packet_id] FeeInfo packet_id + * @property {neutron.feerefunder.IFee|null} [fee] FeeInfo fee */ /** - * Constructs a new QueryResult. - * @memberof neutron.interchainqueries - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * Constructs a new FeeInfo. + * @memberof neutron.feerefunder + * @classdesc Represents a FeeInfo. + * @implements IFeeInfo * @constructor - * @param {neutron.interchainqueries.IQueryResult=} [properties] Properties to set + * @param {neutron.feerefunder.IFeeInfo=} [properties] Properties to set */ - function QueryResult(properties) { - this.kv_results = []; + function FeeInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8214,118 +8965,89 @@ } /** - * QueryResult kv_results. - * @member {Array.} kv_results - * @memberof neutron.interchainqueries.QueryResult - * @instance - */ - QueryResult.prototype.kv_results = $util.emptyArray; - - /** - * QueryResult block. - * @member {neutron.interchainqueries.IBlock|null|undefined} block - * @memberof neutron.interchainqueries.QueryResult - * @instance - */ - QueryResult.prototype.block = null; - - /** - * QueryResult height. - * @member {Long} height - * @memberof neutron.interchainqueries.QueryResult + * FeeInfo payer. + * @member {string} payer + * @memberof neutron.feerefunder.FeeInfo * @instance */ - QueryResult.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + FeeInfo.prototype.payer = ""; /** - * QueryResult revision. - * @member {Long} revision - * @memberof neutron.interchainqueries.QueryResult + * FeeInfo packet_id. + * @member {neutron.feerefunder.IPacketID|null|undefined} packet_id + * @memberof neutron.feerefunder.FeeInfo * @instance */ - QueryResult.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + FeeInfo.prototype.packet_id = null; /** - * QueryResult allow_kv_callbacks. - * @member {boolean} allow_kv_callbacks - * @memberof neutron.interchainqueries.QueryResult + * FeeInfo fee. + * @member {neutron.feerefunder.IFee|null|undefined} fee + * @memberof neutron.feerefunder.FeeInfo * @instance */ - QueryResult.prototype.allow_kv_callbacks = false; + FeeInfo.prototype.fee = null; /** - * Encodes the specified QueryResult message. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. + * Encodes the specified FeeInfo message. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static - * @param {neutron.interchainqueries.IQueryResult} message QueryResult message or plain object to encode + * @param {neutron.feerefunder.IFeeInfo} message FeeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encode = function encode(message, writer) { + FeeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kv_results != null && message.kv_results.length) - for (var i = 0; i < message.kv_results.length; ++i) - $root.neutron.interchainqueries.StorageValue.encode(message.kv_results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.block != null && Object.hasOwnProperty.call(message, "block")) - $root.neutron.interchainqueries.Block.encode(message.block, 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).uint64(message.height); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision); - if (message.allow_kv_callbacks != null && Object.hasOwnProperty.call(message, "allow_kv_callbacks")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.allow_kv_callbacks); + if (message.payer != null && Object.hasOwnProperty.call(message, "payer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payer); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.neutron.feerefunder.PacketID.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. + * Encodes the specified FeeInfo message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static - * @param {neutron.interchainqueries.IQueryResult} message QueryResult message or plain object to encode + * @param {neutron.feerefunder.IFeeInfo} message FeeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + FeeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a FeeInfo message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryResult} QueryResult + * @returns {neutron.feerefunder.FeeInfo} FeeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + FeeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.feerefunder.FeeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.kv_results && message.kv_results.length)) - message.kv_results = []; - message.kv_results.push($root.neutron.interchainqueries.StorageValue.decode(reader, reader.uint32())); + message.payer = reader.string(); break; case 2: - message.block = $root.neutron.interchainqueries.Block.decode(reader, reader.uint32()); + message.packet_id = $root.neutron.feerefunder.PacketID.decode(reader, reader.uint32()); break; case 3: - message.height = reader.uint64(); - break; - case 4: - message.revision = reader.uint64(); - break; - case 5: - message.allow_kv_callbacks = reader.bool(); + message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -8336,194 +9058,338 @@ }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a FeeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryResult} QueryResult + * @returns {neutron.feerefunder.FeeInfo} FeeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + FeeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a FeeInfo message. * @function verify - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + FeeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.kv_results != null && message.hasOwnProperty("kv_results")) { - if (!Array.isArray(message.kv_results)) - return "kv_results: array expected"; - for (var i = 0; i < message.kv_results.length; ++i) { - var error = $root.neutron.interchainqueries.StorageValue.verify(message.kv_results[i]); - if (error) - return "kv_results." + error; - } + if (message.payer != null && message.hasOwnProperty("payer")) + if (!$util.isString(message.payer)) + return "payer: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.neutron.feerefunder.PacketID.verify(message.packet_id); + if (error) + return "packet_id." + error; } - if (message.block != null && message.hasOwnProperty("block")) { - var error = $root.neutron.interchainqueries.Block.verify(message.block); + if (message.fee != null && message.hasOwnProperty("fee")) { + var error = $root.neutron.feerefunder.Fee.verify(message.fee); if (error) - return "block." + error; + return "fee." + 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.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.allow_kv_callbacks != null && message.hasOwnProperty("allow_kv_callbacks")) - if (typeof message.allow_kv_callbacks !== "boolean") - return "allow_kv_callbacks: boolean expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryResult} QueryResult + * @returns {neutron.feerefunder.FeeInfo} FeeInfo */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryResult) + FeeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.feerefunder.FeeInfo) return object; - var message = new $root.neutron.interchainqueries.QueryResult(); - if (object.kv_results) { - if (!Array.isArray(object.kv_results)) - throw TypeError(".neutron.interchainqueries.QueryResult.kv_results: array expected"); - message.kv_results = []; - for (var i = 0; i < object.kv_results.length; ++i) { - if (typeof object.kv_results[i] !== "object") - throw TypeError(".neutron.interchainqueries.QueryResult.kv_results: object expected"); - message.kv_results[i] = $root.neutron.interchainqueries.StorageValue.fromObject(object.kv_results[i]); - } + var message = new $root.neutron.feerefunder.FeeInfo(); + if (object.payer != null) + message.payer = String(object.payer); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".neutron.feerefunder.FeeInfo.packet_id: object expected"); + message.packet_id = $root.neutron.feerefunder.PacketID.fromObject(object.packet_id); } - if (object.block != null) { - if (typeof object.block !== "object") - throw TypeError(".neutron.interchainqueries.QueryResult.block: object expected"); - message.block = $root.neutron.interchainqueries.Block.fromObject(object.block); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".neutron.feerefunder.FeeInfo.fee: object expected"); + message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); } - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = true; - 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(true); - if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = true; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(true); - if (object.allow_kv_callbacks != null) - message.allow_kv_callbacks = Boolean(object.allow_kv_callbacks); return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a FeeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @static - * @param {neutron.interchainqueries.QueryResult} message QueryResult + * @param {neutron.feerefunder.FeeInfo} message FeeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + FeeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.kv_results = []; if (options.defaults) { - object.block = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.allow_kv_callbacks = false; - } - if (message.kv_results && message.kv_results.length) { - object.kv_results = []; - for (var j = 0; j < message.kv_results.length; ++j) - object.kv_results[j] = $root.neutron.interchainqueries.StorageValue.toObject(message.kv_results[j], options); + object.payer = ""; + object.packet_id = null; + object.fee = null; } - if (message.block != null && message.hasOwnProperty("block")) - object.block = $root.neutron.interchainqueries.Block.toObject(message.block, 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(true) : message.height; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") - object.revision = options.longs === String ? String(message.revision) : message.revision; - else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber(true) : message.revision; - if (message.allow_kv_callbacks != null && message.hasOwnProperty("allow_kv_callbacks")) - object.allow_kv_callbacks = message.allow_kv_callbacks; + if (message.payer != null && message.hasOwnProperty("payer")) + object.payer = message.payer; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.neutron.feerefunder.PacketID.toObject(message.packet_id, options); + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); return object; }; /** - * Converts this QueryResult to JSON. + * Converts this FeeInfo to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryResult + * @memberof neutron.feerefunder.FeeInfo * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + FeeInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + return FeeInfo; })(); - interchainqueries.StorageValue = (function() { + return feerefunder; + })(); - /** - * Properties of a StorageValue. - * @memberof neutron.interchainqueries - * @interface IStorageValue - * @property {string|null} [storage_prefix] StorageValue storage_prefix - * @property {Uint8Array|null} [key] StorageValue key - * @property {Uint8Array|null} [value] StorageValue value - * @property {tendermint.crypto.IProofOps|null} [Proof] StorageValue Proof - */ + neutron.interchainqueries = (function() { - /** - * Constructs a new StorageValue. + /** + * Namespace interchainqueries. + * @memberof neutron + * @namespace + */ + var interchainqueries = {}; + + interchainqueries.Msg = (function() { + + /** + * Constructs a new Msg service. * @memberof neutron.interchainqueries - * @classdesc Represents a StorageValue. - * @implements IStorageValue + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service * @constructor - * @param {neutron.interchainqueries.IStorageValue=} [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 StorageValue(properties) { + 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 neutron.interchainqueries.Msg#registerInterchainQuery}. + * @memberof neutron.interchainqueries.Msg + * @typedef RegisterInterchainQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} [response] MsgRegisterInterchainQueryResponse + */ + + /** + * Calls RegisterInterchainQuery. + * @function registerInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} request MsgRegisterInterchainQuery message or plain object + * @param {neutron.interchainqueries.Msg.RegisterInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgRegisterInterchainQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.registerInterchainQuery = function registerInterchainQuery(request, callback) { + return this.rpcCall(registerInterchainQuery, $root.neutron.interchainqueries.MsgRegisterInterchainQuery, $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse, request, callback); + }, "name", { value: "RegisterInterchainQuery" }); + + /** + * Calls RegisterInterchainQuery. + * @function registerInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} request MsgRegisterInterchainQuery message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Msg#submitQueryResult}. + * @memberof neutron.interchainqueries.Msg + * @typedef SubmitQueryResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.MsgSubmitQueryResultResponse} [response] MsgSubmitQueryResultResponse + */ + + /** + * Calls SubmitQueryResult. + * @function submitQueryResult + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgSubmitQueryResult} request MsgSubmitQueryResult message or plain object + * @param {neutron.interchainqueries.Msg.SubmitQueryResultCallback} callback Node-style callback called with the error, if any, and MsgSubmitQueryResultResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitQueryResult = function submitQueryResult(request, callback) { + return this.rpcCall(submitQueryResult, $root.neutron.interchainqueries.MsgSubmitQueryResult, $root.neutron.interchainqueries.MsgSubmitQueryResultResponse, request, callback); + }, "name", { value: "SubmitQueryResult" }); + + /** + * Calls SubmitQueryResult. + * @function submitQueryResult + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgSubmitQueryResult} request MsgSubmitQueryResult message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Msg#removeInterchainQuery}. + * @memberof neutron.interchainqueries.Msg + * @typedef RemoveInterchainQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} [response] MsgRemoveInterchainQueryResponse + */ + + /** + * Calls RemoveInterchainQuery. + * @function removeInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} request MsgRemoveInterchainQueryRequest message or plain object + * @param {neutron.interchainqueries.Msg.RemoveInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgRemoveInterchainQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.removeInterchainQuery = function removeInterchainQuery(request, callback) { + return this.rpcCall(removeInterchainQuery, $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest, $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse, request, callback); + }, "name", { value: "RemoveInterchainQuery" }); + + /** + * Calls RemoveInterchainQuery. + * @function removeInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} request MsgRemoveInterchainQueryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Msg#updateInterchainQuery}. + * @memberof neutron.interchainqueries.Msg + * @typedef UpdateInterchainQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} [response] MsgUpdateInterchainQueryResponse + */ + + /** + * Calls UpdateInterchainQuery. + * @function updateInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} request MsgUpdateInterchainQueryRequest message or plain object + * @param {neutron.interchainqueries.Msg.UpdateInterchainQueryCallback} callback Node-style callback called with the error, if any, and MsgUpdateInterchainQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateInterchainQuery = function updateInterchainQuery(request, callback) { + return this.rpcCall(updateInterchainQuery, $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest, $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse, request, callback); + }, "name", { value: "UpdateInterchainQuery" }); + + /** + * Calls UpdateInterchainQuery. + * @function updateInterchainQuery + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} request MsgUpdateInterchainQueryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Msg#updateParams}. + * @memberof neutron.interchainqueries.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.interchainqueries.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.interchainqueries.MsgUpdateParams, $root.neutron.interchainqueries.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); + + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.interchainqueries.Msg + * @instance + * @param {neutron.interchainqueries.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + interchainqueries.MsgRegisterInterchainQuery = (function() { + + /** + * Properties of a MsgRegisterInterchainQuery. + * @memberof neutron.interchainqueries + * @interface IMsgRegisterInterchainQuery + * @property {string|null} [query_type] MsgRegisterInterchainQuery query_type + * @property {Array.|null} [keys] MsgRegisterInterchainQuery keys + * @property {string|null} [transactions_filter] MsgRegisterInterchainQuery transactions_filter + * @property {string|null} [connection_id] MsgRegisterInterchainQuery connection_id + * @property {Long|null} [update_period] MsgRegisterInterchainQuery update_period + * @property {string|null} [sender] MsgRegisterInterchainQuery sender + */ + + /** + * Constructs a new MsgRegisterInterchainQuery. + * @memberof neutron.interchainqueries + * @classdesc Represents a MsgRegisterInterchainQuery. + * @implements IMsgRegisterInterchainQuery + * @constructor + * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery=} [properties] Properties to set + */ + function MsgRegisterInterchainQuery(properties) { + this.keys = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8531,102 +9397,131 @@ } /** - * StorageValue storage_prefix. - * @member {string} storage_prefix - * @memberof neutron.interchainqueries.StorageValue + * MsgRegisterInterchainQuery query_type. + * @member {string} query_type + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @instance */ - StorageValue.prototype.storage_prefix = ""; + MsgRegisterInterchainQuery.prototype.query_type = ""; /** - * StorageValue key. - * @member {Uint8Array} key - * @memberof neutron.interchainqueries.StorageValue + * MsgRegisterInterchainQuery keys. + * @member {Array.} keys + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @instance */ - StorageValue.prototype.key = $util.newBuffer([]); + MsgRegisterInterchainQuery.prototype.keys = $util.emptyArray; /** - * StorageValue value. - * @member {Uint8Array} value - * @memberof neutron.interchainqueries.StorageValue + * MsgRegisterInterchainQuery transactions_filter. + * @member {string} transactions_filter + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @instance */ - StorageValue.prototype.value = $util.newBuffer([]); + MsgRegisterInterchainQuery.prototype.transactions_filter = ""; /** - * StorageValue Proof. - * @member {tendermint.crypto.IProofOps|null|undefined} Proof - * @memberof neutron.interchainqueries.StorageValue + * MsgRegisterInterchainQuery connection_id. + * @member {string} connection_id + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @instance */ - StorageValue.prototype.Proof = null; + MsgRegisterInterchainQuery.prototype.connection_id = ""; /** - * Encodes the specified StorageValue message. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. + * MsgRegisterInterchainQuery update_period. + * @member {Long} update_period + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @instance + */ + MsgRegisterInterchainQuery.prototype.update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgRegisterInterchainQuery sender. + * @member {string} sender + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery + * @instance + */ + MsgRegisterInterchainQuery.prototype.sender = ""; + + /** + * Encodes the specified MsgRegisterInterchainQuery message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static - * @param {neutron.interchainqueries.IStorageValue} message StorageValue message or plain object to encode + * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} message MsgRegisterInterchainQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StorageValue.encode = function encode(message, writer) { + MsgRegisterInterchainQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.storage_prefix != null && Object.hasOwnProperty.call(message, "storage_prefix")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.storage_prefix); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.value); - if (message.Proof != null && Object.hasOwnProperty.call(message, "Proof")) - $root.tendermint.crypto.ProofOps.encode(message.Proof, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.query_type != null && Object.hasOwnProperty.call(message, "query_type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.query_type); + if (message.keys != null && message.keys.length) + for (var i = 0; i < message.keys.length; ++i) + $root.neutron.interchainqueries.KVKey.encode(message.keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transactions_filter != null && Object.hasOwnProperty.call(message, "transactions_filter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transactions_filter); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_id); + if (message.update_period != null && Object.hasOwnProperty.call(message, "update_period")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.update_period); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sender); return writer; }; /** - * Encodes the specified StorageValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. + * Encodes the specified MsgRegisterInterchainQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static - * @param {neutron.interchainqueries.IStorageValue} message StorageValue message or plain object to encode + * @param {neutron.interchainqueries.IMsgRegisterInterchainQuery} message MsgRegisterInterchainQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StorageValue.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterInterchainQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StorageValue message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.StorageValue} StorageValue + * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StorageValue.decode = function decode(reader, length) { + MsgRegisterInterchainQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.StorageValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRegisterInterchainQuery(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.storage_prefix = reader.string(); + message.query_type = reader.string(); break; case 2: - message.key = reader.bytes(); + if (!(message.keys && message.keys.length)) + message.keys = []; + message.keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); break; case 3: - message.value = reader.bytes(); + message.transactions_filter = reader.string(); break; case 4: - message.Proof = $root.tendermint.crypto.ProofOps.decode(reader, reader.uint32()); + message.connection_id = reader.string(); + break; + case 5: + message.update_period = reader.uint64(); + break; + case 6: + message.sender = reader.string(); break; default: reader.skipType(tag & 7); @@ -8637,157 +9532,180 @@ }; /** - * Decodes a StorageValue message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.StorageValue} StorageValue + * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StorageValue.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterInterchainQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StorageValue message. + * Verifies a MsgRegisterInterchainQuery message. * @function verify - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StorageValue.verify = function verify(message) { + MsgRegisterInterchainQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.storage_prefix != null && message.hasOwnProperty("storage_prefix")) - if (!$util.isString(message.storage_prefix)) - return "storage_prefix: 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"; - if (message.Proof != null && message.hasOwnProperty("Proof")) { - var error = $root.tendermint.crypto.ProofOps.verify(message.Proof); - if (error) - return "Proof." + error; + if (message.query_type != null && message.hasOwnProperty("query_type")) + if (!$util.isString(message.query_type)) + return "query_type: string expected"; + if (message.keys != null && message.hasOwnProperty("keys")) { + if (!Array.isArray(message.keys)) + return "keys: array expected"; + for (var i = 0; i < message.keys.length; ++i) { + var error = $root.neutron.interchainqueries.KVKey.verify(message.keys[i]); + if (error) + return "keys." + error; + } } + if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) + if (!$util.isString(message.transactions_filter)) + return "transactions_filter: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.update_period != null && message.hasOwnProperty("update_period")) + if (!$util.isInteger(message.update_period) && !(message.update_period && $util.isInteger(message.update_period.low) && $util.isInteger(message.update_period.high))) + return "update_period: integer|Long expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; return null; }; /** - * Creates a StorageValue message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.StorageValue} StorageValue + * @returns {neutron.interchainqueries.MsgRegisterInterchainQuery} MsgRegisterInterchainQuery */ - StorageValue.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.StorageValue) + MsgRegisterInterchainQuery.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgRegisterInterchainQuery) return object; - var message = new $root.neutron.interchainqueries.StorageValue(); - if (object.storage_prefix != null) - message.storage_prefix = String(object.storage_prefix); - 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.Proof != null) { - if (typeof object.Proof !== "object") - throw TypeError(".neutron.interchainqueries.StorageValue.Proof: object expected"); - message.Proof = $root.tendermint.crypto.ProofOps.fromObject(object.Proof); + var message = new $root.neutron.interchainqueries.MsgRegisterInterchainQuery(); + if (object.query_type != null) + message.query_type = String(object.query_type); + if (object.keys) { + if (!Array.isArray(object.keys)) + throw TypeError(".neutron.interchainqueries.MsgRegisterInterchainQuery.keys: array expected"); + message.keys = []; + for (var i = 0; i < object.keys.length; ++i) { + if (typeof object.keys[i] !== "object") + throw TypeError(".neutron.interchainqueries.MsgRegisterInterchainQuery.keys: object expected"); + message.keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.keys[i]); + } } + if (object.transactions_filter != null) + message.transactions_filter = String(object.transactions_filter); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.update_period != null) + if ($util.Long) + (message.update_period = $util.Long.fromValue(object.update_period)).unsigned = true; + else if (typeof object.update_period === "string") + message.update_period = parseInt(object.update_period, 10); + else if (typeof object.update_period === "number") + message.update_period = object.update_period; + else if (typeof object.update_period === "object") + message.update_period = new $util.LongBits(object.update_period.low >>> 0, object.update_period.high >>> 0).toNumber(true); + if (object.sender != null) + message.sender = String(object.sender); return message; }; /** - * Creates a plain object from a StorageValue message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterInterchainQuery message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @static - * @param {neutron.interchainqueries.StorageValue} message StorageValue + * @param {neutron.interchainqueries.MsgRegisterInterchainQuery} message MsgRegisterInterchainQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StorageValue.toObject = function toObject(message, options) { + MsgRegisterInterchainQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.keys = []; if (options.defaults) { - object.storage_prefix = ""; - 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.Proof = null; + object.query_type = ""; + object.transactions_filter = ""; + object.connection_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.update_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.update_period = options.longs === String ? "0" : 0; + object.sender = ""; } - if (message.storage_prefix != null && message.hasOwnProperty("storage_prefix")) - object.storage_prefix = message.storage_prefix; - 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.Proof != null && message.hasOwnProperty("Proof")) - object.Proof = $root.tendermint.crypto.ProofOps.toObject(message.Proof, options); + if (message.query_type != null && message.hasOwnProperty("query_type")) + object.query_type = message.query_type; + if (message.keys && message.keys.length) { + object.keys = []; + for (var j = 0; j < message.keys.length; ++j) + object.keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.keys[j], options); + } + if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) + object.transactions_filter = message.transactions_filter; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.update_period != null && message.hasOwnProperty("update_period")) + if (typeof message.update_period === "number") + object.update_period = options.longs === String ? String(message.update_period) : message.update_period; + else + object.update_period = options.longs === String ? $util.Long.prototype.toString.call(message.update_period) : options.longs === Number ? new $util.LongBits(message.update_period.low >>> 0, message.update_period.high >>> 0).toNumber(true) : message.update_period; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; return object; }; /** - * Converts this StorageValue to JSON. + * Converts this MsgRegisterInterchainQuery to JSON. * @function toJSON - * @memberof neutron.interchainqueries.StorageValue + * @memberof neutron.interchainqueries.MsgRegisterInterchainQuery * @instance * @returns {Object.} JSON object */ - StorageValue.prototype.toJSON = function toJSON() { + MsgRegisterInterchainQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StorageValue; + return MsgRegisterInterchainQuery; })(); - interchainqueries.Block = (function() { + interchainqueries.MsgRegisterInterchainQueryResponse = (function() { /** - * Properties of a Block. + * Properties of a MsgRegisterInterchainQueryResponse. * @memberof neutron.interchainqueries - * @interface IBlock - * @property {google.protobuf.IAny|null} [next_block_header] Block next_block_header - * @property {google.protobuf.IAny|null} [header] Block header - * @property {neutron.interchainqueries.ITxValue|null} [tx] Block tx + * @interface IMsgRegisterInterchainQueryResponse + * @property {Long|null} [id] MsgRegisterInterchainQueryResponse id */ /** - * Constructs a new Block. + * Constructs a new MsgRegisterInterchainQueryResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a Block. - * @implements IBlock + * @classdesc Represents a MsgRegisterInterchainQueryResponse. + * @implements IMsgRegisterInterchainQueryResponse * @constructor - * @param {neutron.interchainqueries.IBlock=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse=} [properties] Properties to set */ - function Block(properties) { + function MsgRegisterInterchainQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8795,89 +9713,63 @@ } /** - * Block next_block_header. - * @member {google.protobuf.IAny|null|undefined} next_block_header - * @memberof neutron.interchainqueries.Block - * @instance - */ - Block.prototype.next_block_header = null; - - /** - * Block header. - * @member {google.protobuf.IAny|null|undefined} header - * @memberof neutron.interchainqueries.Block - * @instance - */ - Block.prototype.header = null; - - /** - * Block tx. - * @member {neutron.interchainqueries.ITxValue|null|undefined} tx - * @memberof neutron.interchainqueries.Block + * MsgRegisterInterchainQueryResponse id. + * @member {Long} id + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @instance */ - Block.prototype.tx = null; + MsgRegisterInterchainQueryResponse.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified Block message. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. + * Encodes the specified MsgRegisterInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IBlock} message Block message or plain object to encode + * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Block.encode = function encode(message, writer) { + MsgRegisterInterchainQueryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.next_block_header != null && Object.hasOwnProperty.call(message, "next_block_header")) - $root.google.protobuf.Any.encode(message.next_block_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - 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.tx != null && Object.hasOwnProperty.call(message, "tx")) - $root.neutron.interchainqueries.TxValue.encode(message.tx, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); return writer; }; /** - * Encodes the specified Block message, length delimited. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. + * Encodes the specified MsgRegisterInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IBlock} message Block message or plain object to encode + * @param {neutron.interchainqueries.IMsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Block.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Block message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.Block} Block + * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Block.decode = function decode(reader, length) { + MsgRegisterInterchainQueryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.Block(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.next_block_header = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 2: - message.header = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 3: - message.tx = $root.neutron.interchainqueries.TxValue.decode(reader, reader.uint32()); + message.id = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -8888,142 +9780,124 @@ }; /** - * Decodes a Block message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.Block} Block + * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Block.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Block message. + * Verifies a MsgRegisterInterchainQueryResponse message. * @function verify - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Block.verify = function verify(message) { + MsgRegisterInterchainQueryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.next_block_header != null && message.hasOwnProperty("next_block_header")) { - var error = $root.google.protobuf.Any.verify(message.next_block_header); - if (error) - return "next_block_header." + error; - } - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.google.protobuf.Any.verify(message.header); - if (error) - return "header." + error; - } - if (message.tx != null && message.hasOwnProperty("tx")) { - var error = $root.neutron.interchainqueries.TxValue.verify(message.tx); - if (error) - return "tx." + error; - } + 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"; return null; }; /** - * Creates a Block message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.Block} Block + * @returns {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} MsgRegisterInterchainQueryResponse */ - Block.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.Block) + MsgRegisterInterchainQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse) return object; - var message = new $root.neutron.interchainqueries.Block(); - if (object.next_block_header != null) { - if (typeof object.next_block_header !== "object") - throw TypeError(".neutron.interchainqueries.Block.next_block_header: object expected"); - message.next_block_header = $root.google.protobuf.Any.fromObject(object.next_block_header); - } - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".neutron.interchainqueries.Block.header: object expected"); - message.header = $root.google.protobuf.Any.fromObject(object.header); - } - if (object.tx != null) { - if (typeof object.tx !== "object") - throw TypeError(".neutron.interchainqueries.Block.tx: object expected"); - message.tx = $root.neutron.interchainqueries.TxValue.fromObject(object.tx); - } + var message = new $root.neutron.interchainqueries.MsgRegisterInterchainQueryResponse(); + 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); return message; }; /** - * Creates a plain object from a Block message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterInterchainQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @static - * @param {neutron.interchainqueries.Block} message Block + * @param {neutron.interchainqueries.MsgRegisterInterchainQueryResponse} message MsgRegisterInterchainQueryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Block.toObject = function toObject(message, options) { + MsgRegisterInterchainQueryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.next_block_header = null; - object.header = null; - object.tx = null; - } - if (message.next_block_header != null && message.hasOwnProperty("next_block_header")) - object.next_block_header = $root.google.protobuf.Any.toObject(message.next_block_header, options); - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.google.protobuf.Any.toObject(message.header, options); - if (message.tx != null && message.hasOwnProperty("tx")) - object.tx = $root.neutron.interchainqueries.TxValue.toObject(message.tx, options); + 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; + 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; return object; }; /** - * Converts this Block to JSON. + * Converts this MsgRegisterInterchainQueryResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.Block + * @memberof neutron.interchainqueries.MsgRegisterInterchainQueryResponse * @instance * @returns {Object.} JSON object */ - Block.prototype.toJSON = function toJSON() { + MsgRegisterInterchainQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Block; + return MsgRegisterInterchainQueryResponse; })(); - interchainqueries.TxValue = (function() { + interchainqueries.MsgSubmitQueryResult = (function() { /** - * Properties of a TxValue. + * Properties of a MsgSubmitQueryResult. * @memberof neutron.interchainqueries - * @interface ITxValue - * @property {tendermint.abci.IResponseDeliverTx|null} [response] TxValue response - * @property {tendermint.crypto.IProof|null} [delivery_proof] TxValue delivery_proof - * @property {tendermint.crypto.IProof|null} [inclusion_proof] TxValue inclusion_proof - * @property {Uint8Array|null} [data] TxValue data + * @interface IMsgSubmitQueryResult + * @property {Long|null} [query_id] MsgSubmitQueryResult query_id + * @property {string|null} [sender] MsgSubmitQueryResult sender + * @property {string|null} [client_id] MsgSubmitQueryResult client_id + * @property {neutron.interchainqueries.IQueryResult|null} [result] MsgSubmitQueryResult result */ /** - * Constructs a new TxValue. + * Constructs a new MsgSubmitQueryResult. * @memberof neutron.interchainqueries - * @classdesc Represents a TxValue. - * @implements ITxValue + * @classdesc Represents a MsgSubmitQueryResult. + * @implements IMsgSubmitQueryResult * @constructor - * @param {neutron.interchainqueries.ITxValue=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgSubmitQueryResult=} [properties] Properties to set */ - function TxValue(properties) { + function MsgSubmitQueryResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9031,102 +9905,102 @@ } /** - * TxValue response. - * @member {tendermint.abci.IResponseDeliverTx|null|undefined} response - * @memberof neutron.interchainqueries.TxValue + * MsgSubmitQueryResult query_id. + * @member {Long} query_id + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @instance */ - TxValue.prototype.response = null; + MsgSubmitQueryResult.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * TxValue delivery_proof. - * @member {tendermint.crypto.IProof|null|undefined} delivery_proof - * @memberof neutron.interchainqueries.TxValue + * MsgSubmitQueryResult sender. + * @member {string} sender + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @instance */ - TxValue.prototype.delivery_proof = null; + MsgSubmitQueryResult.prototype.sender = ""; /** - * TxValue inclusion_proof. - * @member {tendermint.crypto.IProof|null|undefined} inclusion_proof - * @memberof neutron.interchainqueries.TxValue + * MsgSubmitQueryResult client_id. + * @member {string} client_id + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @instance */ - TxValue.prototype.inclusion_proof = null; + MsgSubmitQueryResult.prototype.client_id = ""; /** - * TxValue data. - * @member {Uint8Array} data - * @memberof neutron.interchainqueries.TxValue + * MsgSubmitQueryResult result. + * @member {neutron.interchainqueries.IQueryResult|null|undefined} result + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @instance */ - TxValue.prototype.data = $util.newBuffer([]); + MsgSubmitQueryResult.prototype.result = null; /** - * Encodes the specified TxValue message. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. + * Encodes the specified MsgSubmitQueryResult message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static - * @param {neutron.interchainqueries.ITxValue} message TxValue message or plain object to encode + * @param {neutron.interchainqueries.IMsgSubmitQueryResult} message MsgSubmitQueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxValue.encode = function encode(message, writer) { + MsgSubmitQueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.response != null && Object.hasOwnProperty.call(message, "response")) - $root.tendermint.abci.ResponseDeliverTx.encode(message.response, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.delivery_proof != null && Object.hasOwnProperty.call(message, "delivery_proof")) - $root.tendermint.crypto.Proof.encode(message.delivery_proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inclusion_proof != null && Object.hasOwnProperty.call(message, "inclusion_proof")) - $root.tendermint.crypto.Proof.encode(message.inclusion_proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sender); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.client_id); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.neutron.interchainqueries.QueryResult.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TxValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. + * Encodes the specified MsgSubmitQueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static - * @param {neutron.interchainqueries.ITxValue} message TxValue message or plain object to encode + * @param {neutron.interchainqueries.IMsgSubmitQueryResult} message MsgSubmitQueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxValue.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitQueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TxValue message from the specified reader or buffer. + * Decodes a MsgSubmitQueryResult message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.TxValue} TxValue + * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxValue.decode = function decode(reader, length) { + MsgSubmitQueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.TxValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgSubmitQueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.response = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); + message.query_id = reader.uint64(); break; case 2: - message.delivery_proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); + message.sender = reader.string(); break; case 3: - message.inclusion_proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; case 4: - message.data = reader.bytes(); + message.result = $root.neutron.interchainqueries.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9137,155 +10011,156 @@ }; /** - * Decodes a TxValue message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitQueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.TxValue} TxValue + * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxValue.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitQueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TxValue message. + * Verifies a MsgSubmitQueryResult message. * @function verify - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TxValue.verify = function verify(message) { + MsgSubmitQueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.response != null && message.hasOwnProperty("response")) { - var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.response); - if (error) - return "response." + error; - } - if (message.delivery_proof != null && message.hasOwnProperty("delivery_proof")) { - var error = $root.tendermint.crypto.Proof.verify(message.delivery_proof); - if (error) - return "delivery_proof." + error; - } - if (message.inclusion_proof != null && message.hasOwnProperty("inclusion_proof")) { - var error = $root.tendermint.crypto.Proof.verify(message.inclusion_proof); + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) + return "query_id: integer|Long expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.neutron.interchainqueries.QueryResult.verify(message.result); if (error) - return "inclusion_proof." + error; + return "result." + error; } - 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 TxValue message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitQueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.TxValue} TxValue + * @returns {neutron.interchainqueries.MsgSubmitQueryResult} MsgSubmitQueryResult */ - TxValue.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.TxValue) + MsgSubmitQueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgSubmitQueryResult) return object; - var message = new $root.neutron.interchainqueries.TxValue(); - if (object.response != null) { - if (typeof object.response !== "object") - throw TypeError(".neutron.interchainqueries.TxValue.response: object expected"); - message.response = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.response); - } - if (object.delivery_proof != null) { - if (typeof object.delivery_proof !== "object") - throw TypeError(".neutron.interchainqueries.TxValue.delivery_proof: object expected"); - message.delivery_proof = $root.tendermint.crypto.Proof.fromObject(object.delivery_proof); - } - if (object.inclusion_proof != null) { - if (typeof object.inclusion_proof !== "object") - throw TypeError(".neutron.interchainqueries.TxValue.inclusion_proof: object expected"); - message.inclusion_proof = $root.tendermint.crypto.Proof.fromObject(object.inclusion_proof); + var message = new $root.neutron.interchainqueries.MsgSubmitQueryResult(); + if (object.query_id != null) + if ($util.Long) + (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; + else if (typeof object.query_id === "string") + message.query_id = parseInt(object.query_id, 10); + else if (typeof object.query_id === "number") + message.query_id = object.query_id; + else if (typeof object.query_id === "object") + message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + if (object.sender != null) + message.sender = String(object.sender); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".neutron.interchainqueries.MsgSubmitQueryResult.result: object expected"); + message.result = $root.neutron.interchainqueries.QueryResult.fromObject(object.result); } - 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 TxValue message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitQueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @static - * @param {neutron.interchainqueries.TxValue} message TxValue + * @param {neutron.interchainqueries.MsgSubmitQueryResult} message MsgSubmitQueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TxValue.toObject = function toObject(message, options) { + MsgSubmitQueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.response = null; - object.delivery_proof = null; - object.inclusion_proof = null; - 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.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_id = options.longs === String ? "0" : 0; + object.sender = ""; + object.client_id = ""; + object.result = null; } - if (message.response != null && message.hasOwnProperty("response")) - object.response = $root.tendermint.abci.ResponseDeliverTx.toObject(message.response, options); - if (message.delivery_proof != null && message.hasOwnProperty("delivery_proof")) - object.delivery_proof = $root.tendermint.crypto.Proof.toObject(message.delivery_proof, options); - if (message.inclusion_proof != null && message.hasOwnProperty("inclusion_proof")) - object.inclusion_proof = $root.tendermint.crypto.Proof.toObject(message.inclusion_proof, options); - 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.query_id != null && message.hasOwnProperty("query_id")) + if (typeof message.query_id === "number") + object.query_id = options.longs === String ? String(message.query_id) : message.query_id; + else + object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.neutron.interchainqueries.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this TxValue to JSON. + * Converts this MsgSubmitQueryResult to JSON. * @function toJSON - * @memberof neutron.interchainqueries.TxValue + * @memberof neutron.interchainqueries.MsgSubmitQueryResult * @instance * @returns {Object.} JSON object */ - TxValue.prototype.toJSON = function toJSON() { + MsgSubmitQueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TxValue; + return MsgSubmitQueryResult; })(); - interchainqueries.MsgSubmitQueryResultResponse = (function() { + interchainqueries.QueryResult = (function() { /** - * Properties of a MsgSubmitQueryResultResponse. + * Properties of a QueryResult. * @memberof neutron.interchainqueries - * @interface IMsgSubmitQueryResultResponse + * @interface IQueryResult + * @property {Array.|null} [kv_results] QueryResult kv_results + * @property {neutron.interchainqueries.IBlock|null} [block] QueryResult block + * @property {Long|null} [height] QueryResult height + * @property {Long|null} [revision] QueryResult revision + * @property {boolean|null} [allow_kv_callbacks] QueryResult allow_kv_callbacks */ /** - * Constructs a new MsgSubmitQueryResultResponse. + * Constructs a new QueryResult. * @memberof neutron.interchainqueries - * @classdesc Represents a MsgSubmitQueryResultResponse. - * @implements IMsgSubmitQueryResultResponse + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryResult=} [properties] Properties to set */ - function MsgSubmitQueryResultResponse(properties) { + function QueryResult(properties) { + this.kv_results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9293,51 +10168,119 @@ } /** - * Encodes the specified MsgSubmitQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. + * QueryResult kv_results. + * @member {Array.} kv_results + * @memberof neutron.interchainqueries.QueryResult + * @instance + */ + QueryResult.prototype.kv_results = $util.emptyArray; + + /** + * QueryResult block. + * @member {neutron.interchainqueries.IBlock|null|undefined} block + * @memberof neutron.interchainqueries.QueryResult + * @instance + */ + QueryResult.prototype.block = null; + + /** + * QueryResult height. + * @member {Long} height + * @memberof neutron.interchainqueries.QueryResult + * @instance + */ + QueryResult.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryResult revision. + * @member {Long} revision + * @memberof neutron.interchainqueries.QueryResult + * @instance + */ + QueryResult.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryResult allow_kv_callbacks. + * @member {boolean} allow_kv_callbacks + * @memberof neutron.interchainqueries.QueryResult + * @instance + */ + QueryResult.prototype.allow_kv_callbacks = false; + + /** + * Encodes the specified QueryResult message. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static - * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitQueryResultResponse.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.kv_results != null && message.kv_results.length) + for (var i = 0; i < message.kv_results.length; ++i) + $root.neutron.interchainqueries.StorageValue.encode(message.kv_results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + $root.neutron.interchainqueries.Block.encode(message.block, 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).uint64(message.height); + if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision); + if (message.allow_kv_callbacks != null && Object.hasOwnProperty.call(message, "allow_kv_callbacks")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.allow_kv_callbacks); return writer; }; /** - * Encodes the specified MsgSubmitQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static - * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitQueryResultResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse + * @returns {neutron.interchainqueries.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitQueryResultResponse.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgSubmitQueryResultResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.kv_results && message.kv_results.length)) + message.kv_results = []; + message.kv_results.push($root.neutron.interchainqueries.StorageValue.decode(reader, reader.uint32())); + break; + case 2: + message.block = $root.neutron.interchainqueries.Block.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.uint64(); + break; + case 4: + message.revision = reader.uint64(); + break; + case 5: + message.allow_kv_callbacks = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -9347,95 +10290,194 @@ }; /** - * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse + * @returns {neutron.interchainqueries.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitQueryResultResponse.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgSubmitQueryResultResponse message. + * Verifies a QueryResult message. * @function verify - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitQueryResultResponse.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.kv_results != null && message.hasOwnProperty("kv_results")) { + if (!Array.isArray(message.kv_results)) + return "kv_results: array expected"; + for (var i = 0; i < message.kv_results.length; ++i) { + var error = $root.neutron.interchainqueries.StorageValue.verify(message.kv_results[i]); + if (error) + return "kv_results." + error; + } + } + if (message.block != null && message.hasOwnProperty("block")) { + var error = $root.neutron.interchainqueries.Block.verify(message.block); + if (error) + return "block." + 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.revision != null && message.hasOwnProperty("revision")) + if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) + return "revision: integer|Long expected"; + if (message.allow_kv_callbacks != null && message.hasOwnProperty("allow_kv_callbacks")) + if (typeof message.allow_kv_callbacks !== "boolean") + return "allow_kv_callbacks: boolean expected"; return null; }; /** - * Creates a MsgSubmitQueryResultResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse + * @returns {neutron.interchainqueries.QueryResult} QueryResult */ - MsgSubmitQueryResultResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgSubmitQueryResultResponse) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryResult) return object; - return new $root.neutron.interchainqueries.MsgSubmitQueryResultResponse(); + var message = new $root.neutron.interchainqueries.QueryResult(); + if (object.kv_results) { + if (!Array.isArray(object.kv_results)) + throw TypeError(".neutron.interchainqueries.QueryResult.kv_results: array expected"); + message.kv_results = []; + for (var i = 0; i < object.kv_results.length; ++i) { + if (typeof object.kv_results[i] !== "object") + throw TypeError(".neutron.interchainqueries.QueryResult.kv_results: object expected"); + message.kv_results[i] = $root.neutron.interchainqueries.StorageValue.fromObject(object.kv_results[i]); + } + } + if (object.block != null) { + if (typeof object.block !== "object") + throw TypeError(".neutron.interchainqueries.QueryResult.block: object expected"); + message.block = $root.neutron.interchainqueries.Block.fromObject(object.block); + } + if (object.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = true; + 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(true); + if (object.revision != null) + if ($util.Long) + (message.revision = $util.Long.fromValue(object.revision)).unsigned = true; + else if (typeof object.revision === "string") + message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === "number") + message.revision = object.revision; + else if (typeof object.revision === "object") + message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(true); + if (object.allow_kv_callbacks != null) + message.allow_kv_callbacks = Boolean(object.allow_kv_callbacks); + return message; }; /** - * Creates a plain object from a MsgSubmitQueryResultResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @static - * @param {neutron.interchainqueries.MsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse + * @param {neutron.interchainqueries.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgSubmitQueryResultResponse.toObject = function toObject() { - return {}; + QueryResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.kv_results = []; + if (options.defaults) { + object.block = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision = options.longs === String ? "0" : 0; + object.allow_kv_callbacks = false; + } + if (message.kv_results && message.kv_results.length) { + object.kv_results = []; + for (var j = 0; j < message.kv_results.length; ++j) + object.kv_results[j] = $root.neutron.interchainqueries.StorageValue.toObject(message.kv_results[j], options); + } + if (message.block != null && message.hasOwnProperty("block")) + object.block = $root.neutron.interchainqueries.Block.toObject(message.block, 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(true) : message.height; + if (message.revision != null && message.hasOwnProperty("revision")) + if (typeof message.revision === "number") + object.revision = options.longs === String ? String(message.revision) : message.revision; + else + object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber(true) : message.revision; + if (message.allow_kv_callbacks != null && message.hasOwnProperty("allow_kv_callbacks")) + object.allow_kv_callbacks = message.allow_kv_callbacks; + return object; }; /** - * Converts this MsgSubmitQueryResultResponse to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse + * @memberof neutron.interchainqueries.QueryResult * @instance * @returns {Object.} JSON object */ - MsgSubmitQueryResultResponse.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgSubmitQueryResultResponse; + return QueryResult; })(); - interchainqueries.MsgRemoveInterchainQueryRequest = (function() { + interchainqueries.StorageValue = (function() { /** - * Properties of a MsgRemoveInterchainQueryRequest. + * Properties of a StorageValue. * @memberof neutron.interchainqueries - * @interface IMsgRemoveInterchainQueryRequest - * @property {Long|null} [query_id] MsgRemoveInterchainQueryRequest query_id - * @property {string|null} [sender] MsgRemoveInterchainQueryRequest sender + * @interface IStorageValue + * @property {string|null} [storage_prefix] StorageValue storage_prefix + * @property {Uint8Array|null} [key] StorageValue key + * @property {Uint8Array|null} [value] StorageValue value + * @property {tendermint.crypto.IProofOps|null} [Proof] StorageValue Proof */ /** - * Constructs a new MsgRemoveInterchainQueryRequest. + * Constructs a new StorageValue. * @memberof neutron.interchainqueries - * @classdesc Represents a MsgRemoveInterchainQueryRequest. - * @implements IMsgRemoveInterchainQueryRequest + * @classdesc Represents a StorageValue. + * @implements IStorageValue * @constructor - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest=} [properties] Properties to set + * @param {neutron.interchainqueries.IStorageValue=} [properties] Properties to set */ - function MsgRemoveInterchainQueryRequest(properties) { + function StorageValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9443,76 +10485,102 @@ } /** - * MsgRemoveInterchainQueryRequest query_id. - * @member {Long} query_id - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * StorageValue storage_prefix. + * @member {string} storage_prefix + * @memberof neutron.interchainqueries.StorageValue * @instance */ - MsgRemoveInterchainQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + StorageValue.prototype.storage_prefix = ""; /** - * MsgRemoveInterchainQueryRequest sender. - * @member {string} sender - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * StorageValue key. + * @member {Uint8Array} key + * @memberof neutron.interchainqueries.StorageValue * @instance */ - MsgRemoveInterchainQueryRequest.prototype.sender = ""; + StorageValue.prototype.key = $util.newBuffer([]); /** - * Encodes the specified MsgRemoveInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. + * StorageValue value. + * @member {Uint8Array} value + * @memberof neutron.interchainqueries.StorageValue + * @instance + */ + StorageValue.prototype.value = $util.newBuffer([]); + + /** + * StorageValue Proof. + * @member {tendermint.crypto.IProofOps|null|undefined} Proof + * @memberof neutron.interchainqueries.StorageValue + * @instance + */ + StorageValue.prototype.Proof = null; + + /** + * Encodes the specified StorageValue message. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.IStorageValue} message StorageValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRemoveInterchainQueryRequest.encode = function encode(message, writer) { + StorageValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sender); + if (message.storage_prefix != null && Object.hasOwnProperty.call(message, "storage_prefix")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.storage_prefix); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.value); + if (message.Proof != null && Object.hasOwnProperty.call(message, "Proof")) + $root.tendermint.crypto.ProofOps.encode(message.Proof, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgRemoveInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. + * Encodes the specified StorageValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.IStorageValue} message StorageValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRemoveInterchainQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + StorageValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer. + * Decodes a StorageValue message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest + * @returns {neutron.interchainqueries.StorageValue} StorageValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRemoveInterchainQueryRequest.decode = function decode(reader, length) { + StorageValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.StorageValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_id = reader.uint64(); + message.storage_prefix = reader.string(); break; case 2: - message.sender = reader.string(); + message.key = reader.bytes(); + break; + case 3: + message.value = reader.bytes(); + break; + case 4: + message.Proof = $root.tendermint.crypto.ProofOps.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9523,129 +10591,157 @@ }; /** - * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a StorageValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest + * @returns {neutron.interchainqueries.StorageValue} StorageValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRemoveInterchainQueryRequest.decodeDelimited = function decodeDelimited(reader) { + StorageValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRemoveInterchainQueryRequest message. + * Verifies a StorageValue message. * @function verify - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRemoveInterchainQueryRequest.verify = function verify(message) { + StorageValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) - return "query_id: integer|Long expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; + if (message.storage_prefix != null && message.hasOwnProperty("storage_prefix")) + if (!$util.isString(message.storage_prefix)) + return "storage_prefix: 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"; + if (message.Proof != null && message.hasOwnProperty("Proof")) { + var error = $root.tendermint.crypto.ProofOps.verify(message.Proof); + if (error) + return "Proof." + error; + } return null; }; /** - * Creates a MsgRemoveInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StorageValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest + * @returns {neutron.interchainqueries.StorageValue} StorageValue */ - MsgRemoveInterchainQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest) + StorageValue.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.StorageValue) return object; - var message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest(); - if (object.query_id != null) - if ($util.Long) - (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; - else if (typeof object.query_id === "string") - message.query_id = parseInt(object.query_id, 10); - else if (typeof object.query_id === "number") - message.query_id = object.query_id; - else if (typeof object.query_id === "object") - message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); - if (object.sender != null) - message.sender = String(object.sender); + var message = new $root.neutron.interchainqueries.StorageValue(); + if (object.storage_prefix != null) + message.storage_prefix = String(object.storage_prefix); + 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.Proof != null) { + if (typeof object.Proof !== "object") + throw TypeError(".neutron.interchainqueries.StorageValue.Proof: object expected"); + message.Proof = $root.tendermint.crypto.ProofOps.fromObject(object.Proof); + } return message; }; /** - * Creates a plain object from a MsgRemoveInterchainQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a StorageValue message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @static - * @param {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest + * @param {neutron.interchainqueries.StorageValue} message StorageValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRemoveInterchainQueryRequest.toObject = function toObject(message, options) { + StorageValue.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.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_id = options.longs === String ? "0" : 0; - object.sender = ""; + object.storage_prefix = ""; + 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.Proof = null; } - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (typeof message.query_id === "number") - object.query_id = options.longs === String ? String(message.query_id) : message.query_id; - else - object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; + if (message.storage_prefix != null && message.hasOwnProperty("storage_prefix")) + object.storage_prefix = message.storage_prefix; + 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.Proof != null && message.hasOwnProperty("Proof")) + object.Proof = $root.tendermint.crypto.ProofOps.toObject(message.Proof, options); return object; }; /** - * Converts this MsgRemoveInterchainQueryRequest to JSON. + * Converts this StorageValue to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @memberof neutron.interchainqueries.StorageValue * @instance * @returns {Object.} JSON object */ - MsgRemoveInterchainQueryRequest.prototype.toJSON = function toJSON() { + StorageValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRemoveInterchainQueryRequest; + return StorageValue; })(); - interchainqueries.MsgRemoveInterchainQueryResponse = (function() { + interchainqueries.Block = (function() { /** - * Properties of a MsgRemoveInterchainQueryResponse. + * Properties of a Block. * @memberof neutron.interchainqueries - * @interface IMsgRemoveInterchainQueryResponse + * @interface IBlock + * @property {google.protobuf.IAny|null} [next_block_header] Block next_block_header + * @property {google.protobuf.IAny|null} [header] Block header + * @property {neutron.interchainqueries.ITxValue|null} [tx] Block tx */ /** - * Constructs a new MsgRemoveInterchainQueryResponse. + * Constructs a new Block. * @memberof neutron.interchainqueries - * @classdesc Represents a MsgRemoveInterchainQueryResponse. - * @implements IMsgRemoveInterchainQueryResponse + * @classdesc Represents a Block. + * @implements IBlock * @constructor - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IBlock=} [properties] Properties to set */ - function MsgRemoveInterchainQueryResponse(properties) { + function Block(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9653,51 +10749,90 @@ } /** - * Encodes the specified MsgRemoveInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. + * Block next_block_header. + * @member {google.protobuf.IAny|null|undefined} next_block_header + * @memberof neutron.interchainqueries.Block + * @instance + */ + Block.prototype.next_block_header = null; + + /** + * Block header. + * @member {google.protobuf.IAny|null|undefined} header + * @memberof neutron.interchainqueries.Block + * @instance + */ + Block.prototype.header = null; + + /** + * Block tx. + * @member {neutron.interchainqueries.ITxValue|null|undefined} tx + * @memberof neutron.interchainqueries.Block + * @instance + */ + Block.prototype.tx = null; + + /** + * Encodes the specified Block message. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IBlock} message Block message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRemoveInterchainQueryResponse.encode = function encode(message, writer) { + Block.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.next_block_header != null && Object.hasOwnProperty.call(message, "next_block_header")) + $root.google.protobuf.Any.encode(message.next_block_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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.tx != null && Object.hasOwnProperty.call(message, "tx")) + $root.neutron.interchainqueries.TxValue.encode(message.tx, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgRemoveInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. + * Encodes the specified Block message, length delimited. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static - * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IBlock} message Block message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRemoveInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + Block.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer. + * Decodes a Block message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse + * @returns {neutron.interchainqueries.Block} Block * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRemoveInterchainQueryResponse.decode = function decode(reader, length) { + Block.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.Block(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.next_block_header = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.header = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.tx = $root.neutron.interchainqueries.TxValue.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -9707,99 +10842,142 @@ }; /** - * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a Block message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse + * @returns {neutron.interchainqueries.Block} Block * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRemoveInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { + Block.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRemoveInterchainQueryResponse message. + * Verifies a Block message. * @function verify - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRemoveInterchainQueryResponse.verify = function verify(message) { + Block.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.next_block_header != null && message.hasOwnProperty("next_block_header")) { + var error = $root.google.protobuf.Any.verify(message.next_block_header); + if (error) + return "next_block_header." + error; + } + if (message.header != null && message.hasOwnProperty("header")) { + var error = $root.google.protobuf.Any.verify(message.header); + if (error) + return "header." + error; + } + if (message.tx != null && message.hasOwnProperty("tx")) { + var error = $root.neutron.interchainqueries.TxValue.verify(message.tx); + if (error) + return "tx." + error; + } return null; }; /** - * Creates a MsgRemoveInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Block message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse + * @returns {neutron.interchainqueries.Block} Block */ - MsgRemoveInterchainQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse) + Block.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.Block) return object; - return new $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse(); + var message = new $root.neutron.interchainqueries.Block(); + if (object.next_block_header != null) { + if (typeof object.next_block_header !== "object") + throw TypeError(".neutron.interchainqueries.Block.next_block_header: object expected"); + message.next_block_header = $root.google.protobuf.Any.fromObject(object.next_block_header); + } + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".neutron.interchainqueries.Block.header: object expected"); + message.header = $root.google.protobuf.Any.fromObject(object.header); + } + if (object.tx != null) { + if (typeof object.tx !== "object") + throw TypeError(".neutron.interchainqueries.Block.tx: object expected"); + message.tx = $root.neutron.interchainqueries.TxValue.fromObject(object.tx); + } + return message; }; /** - * Creates a plain object from a MsgRemoveInterchainQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a Block message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @static - * @param {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse + * @param {neutron.interchainqueries.Block} message Block * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRemoveInterchainQueryResponse.toObject = function toObject() { - return {}; + Block.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.next_block_header = null; + object.header = null; + object.tx = null; + } + if (message.next_block_header != null && message.hasOwnProperty("next_block_header")) + object.next_block_header = $root.google.protobuf.Any.toObject(message.next_block_header, options); + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.google.protobuf.Any.toObject(message.header, options); + if (message.tx != null && message.hasOwnProperty("tx")) + object.tx = $root.neutron.interchainqueries.TxValue.toObject(message.tx, options); + return object; }; /** - * Converts this MsgRemoveInterchainQueryResponse to JSON. + * Converts this Block to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse + * @memberof neutron.interchainqueries.Block * @instance * @returns {Object.} JSON object */ - MsgRemoveInterchainQueryResponse.prototype.toJSON = function toJSON() { + Block.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRemoveInterchainQueryResponse; + return Block; })(); - interchainqueries.MsgUpdateInterchainQueryRequest = (function() { + interchainqueries.TxValue = (function() { /** - * Properties of a MsgUpdateInterchainQueryRequest. + * Properties of a TxValue. * @memberof neutron.interchainqueries - * @interface IMsgUpdateInterchainQueryRequest - * @property {Long|null} [query_id] MsgUpdateInterchainQueryRequest query_id - * @property {Array.|null} [new_keys] MsgUpdateInterchainQueryRequest new_keys - * @property {Long|null} [new_update_period] MsgUpdateInterchainQueryRequest new_update_period - * @property {string|null} [new_transactions_filter] MsgUpdateInterchainQueryRequest new_transactions_filter - * @property {string|null} [sender] MsgUpdateInterchainQueryRequest sender + * @interface ITxValue + * @property {tendermint.abci.IResponseDeliverTx|null} [response] TxValue response + * @property {tendermint.crypto.IProof|null} [delivery_proof] TxValue delivery_proof + * @property {tendermint.crypto.IProof|null} [inclusion_proof] TxValue inclusion_proof + * @property {Uint8Array|null} [data] TxValue data */ /** - * Constructs a new MsgUpdateInterchainQueryRequest. + * Constructs a new TxValue. * @memberof neutron.interchainqueries - * @classdesc Represents a MsgUpdateInterchainQueryRequest. - * @implements IMsgUpdateInterchainQueryRequest + * @classdesc Represents a TxValue. + * @implements ITxValue * @constructor - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest=} [properties] Properties to set + * @param {neutron.interchainqueries.ITxValue=} [properties] Properties to set */ - function MsgUpdateInterchainQueryRequest(properties) { - this.new_keys = []; + function TxValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9807,118 +10985,102 @@ } /** - * MsgUpdateInterchainQueryRequest query_id. - * @member {Long} query_id - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest - * @instance - */ - MsgUpdateInterchainQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgUpdateInterchainQueryRequest new_keys. - * @member {Array.} new_keys - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * TxValue response. + * @member {tendermint.abci.IResponseDeliverTx|null|undefined} response + * @memberof neutron.interchainqueries.TxValue * @instance */ - MsgUpdateInterchainQueryRequest.prototype.new_keys = $util.emptyArray; + TxValue.prototype.response = null; /** - * MsgUpdateInterchainQueryRequest new_update_period. - * @member {Long} new_update_period - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * TxValue delivery_proof. + * @member {tendermint.crypto.IProof|null|undefined} delivery_proof + * @memberof neutron.interchainqueries.TxValue * @instance */ - MsgUpdateInterchainQueryRequest.prototype.new_update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TxValue.prototype.delivery_proof = null; /** - * MsgUpdateInterchainQueryRequest new_transactions_filter. - * @member {string} new_transactions_filter - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * TxValue inclusion_proof. + * @member {tendermint.crypto.IProof|null|undefined} inclusion_proof + * @memberof neutron.interchainqueries.TxValue * @instance */ - MsgUpdateInterchainQueryRequest.prototype.new_transactions_filter = ""; + TxValue.prototype.inclusion_proof = null; /** - * MsgUpdateInterchainQueryRequest sender. - * @member {string} sender - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * TxValue data. + * @member {Uint8Array} data + * @memberof neutron.interchainqueries.TxValue * @instance */ - MsgUpdateInterchainQueryRequest.prototype.sender = ""; + TxValue.prototype.data = $util.newBuffer([]); /** - * Encodes the specified MsgUpdateInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. + * Encodes the specified TxValue message. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.ITxValue} message TxValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateInterchainQueryRequest.encode = function encode(message, writer) { + TxValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); - if (message.new_keys != null && message.new_keys.length) - for (var i = 0; i < message.new_keys.length; ++i) - $root.neutron.interchainqueries.KVKey.encode(message.new_keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.new_update_period != null && Object.hasOwnProperty.call(message, "new_update_period")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.new_update_period); - if (message.new_transactions_filter != null && Object.hasOwnProperty.call(message, "new_transactions_filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.new_transactions_filter); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sender); + if (message.response != null && Object.hasOwnProperty.call(message, "response")) + $root.tendermint.abci.ResponseDeliverTx.encode(message.response, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.delivery_proof != null && Object.hasOwnProperty.call(message, "delivery_proof")) + $root.tendermint.crypto.Proof.encode(message.delivery_proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inclusion_proof != null && Object.hasOwnProperty.call(message, "inclusion_proof")) + $root.tendermint.crypto.Proof.encode(message.inclusion_proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); return writer; }; /** - * Encodes the specified MsgUpdateInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. + * Encodes the specified TxValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.ITxValue} message TxValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateInterchainQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + TxValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer. + * Decodes a TxValue message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest + * @returns {neutron.interchainqueries.TxValue} TxValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateInterchainQueryRequest.decode = function decode(reader, length) { + TxValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.TxValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_id = reader.uint64(); + message.response = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); break; case 2: - if (!(message.new_keys && message.new_keys.length)) - message.new_keys = []; - message.new_keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); + message.delivery_proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); break; case 3: - message.new_update_period = reader.uint64(); + message.inclusion_proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); break; case 4: - message.new_transactions_filter = reader.string(); - break; - case 5: - message.sender = reader.string(); + message.data = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -9929,185 +11091,155 @@ }; /** - * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a TxValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest + * @returns {neutron.interchainqueries.TxValue} TxValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateInterchainQueryRequest.decodeDelimited = function decodeDelimited(reader) { + TxValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateInterchainQueryRequest message. + * Verifies a TxValue message. * @function verify - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateInterchainQueryRequest.verify = function verify(message) { + TxValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) - return "query_id: integer|Long expected"; - if (message.new_keys != null && message.hasOwnProperty("new_keys")) { - if (!Array.isArray(message.new_keys)) - return "new_keys: array expected"; - for (var i = 0; i < message.new_keys.length; ++i) { - var error = $root.neutron.interchainqueries.KVKey.verify(message.new_keys[i]); - if (error) - return "new_keys." + error; - } + if (message.response != null && message.hasOwnProperty("response")) { + var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.response); + if (error) + return "response." + error; } - if (message.new_update_period != null && message.hasOwnProperty("new_update_period")) - if (!$util.isInteger(message.new_update_period) && !(message.new_update_period && $util.isInteger(message.new_update_period.low) && $util.isInteger(message.new_update_period.high))) - return "new_update_period: integer|Long expected"; - if (message.new_transactions_filter != null && message.hasOwnProperty("new_transactions_filter")) - if (!$util.isString(message.new_transactions_filter)) - return "new_transactions_filter: string expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; + if (message.delivery_proof != null && message.hasOwnProperty("delivery_proof")) { + var error = $root.tendermint.crypto.Proof.verify(message.delivery_proof); + if (error) + return "delivery_proof." + error; + } + if (message.inclusion_proof != null && message.hasOwnProperty("inclusion_proof")) { + var error = $root.tendermint.crypto.Proof.verify(message.inclusion_proof); + if (error) + return "inclusion_proof." + error; + } + 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 MsgUpdateInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TxValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest + * @returns {neutron.interchainqueries.TxValue} TxValue */ - MsgUpdateInterchainQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest) + TxValue.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.TxValue) return object; - var message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest(); - if (object.query_id != null) - if ($util.Long) - (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; - else if (typeof object.query_id === "string") - message.query_id = parseInt(object.query_id, 10); - else if (typeof object.query_id === "number") - message.query_id = object.query_id; - else if (typeof object.query_id === "object") - message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); - if (object.new_keys) { - if (!Array.isArray(object.new_keys)) - throw TypeError(".neutron.interchainqueries.MsgUpdateInterchainQueryRequest.new_keys: array expected"); - message.new_keys = []; - for (var i = 0; i < object.new_keys.length; ++i) { - if (typeof object.new_keys[i] !== "object") - throw TypeError(".neutron.interchainqueries.MsgUpdateInterchainQueryRequest.new_keys: object expected"); - message.new_keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.new_keys[i]); - } + var message = new $root.neutron.interchainqueries.TxValue(); + if (object.response != null) { + if (typeof object.response !== "object") + throw TypeError(".neutron.interchainqueries.TxValue.response: object expected"); + message.response = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.response); } - if (object.new_update_period != null) - if ($util.Long) - (message.new_update_period = $util.Long.fromValue(object.new_update_period)).unsigned = true; - else if (typeof object.new_update_period === "string") - message.new_update_period = parseInt(object.new_update_period, 10); - else if (typeof object.new_update_period === "number") - message.new_update_period = object.new_update_period; - else if (typeof object.new_update_period === "object") - message.new_update_period = new $util.LongBits(object.new_update_period.low >>> 0, object.new_update_period.high >>> 0).toNumber(true); - if (object.new_transactions_filter != null) - message.new_transactions_filter = String(object.new_transactions_filter); - if (object.sender != null) - message.sender = String(object.sender); + if (object.delivery_proof != null) { + if (typeof object.delivery_proof !== "object") + throw TypeError(".neutron.interchainqueries.TxValue.delivery_proof: object expected"); + message.delivery_proof = $root.tendermint.crypto.Proof.fromObject(object.delivery_proof); + } + if (object.inclusion_proof != null) { + if (typeof object.inclusion_proof !== "object") + throw TypeError(".neutron.interchainqueries.TxValue.inclusion_proof: object expected"); + message.inclusion_proof = $root.tendermint.crypto.Proof.fromObject(object.inclusion_proof); + } + 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 MsgUpdateInterchainQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a TxValue message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @static - * @param {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest + * @param {neutron.interchainqueries.TxValue} message TxValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateInterchainQueryRequest.toObject = function toObject(message, options) { + TxValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.new_keys = []; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.new_update_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.new_update_period = options.longs === String ? "0" : 0; - object.new_transactions_filter = ""; - object.sender = ""; - } - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (typeof message.query_id === "number") - object.query_id = options.longs === String ? String(message.query_id) : message.query_id; - else - object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; - if (message.new_keys && message.new_keys.length) { - object.new_keys = []; - for (var j = 0; j < message.new_keys.length; ++j) - object.new_keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.new_keys[j], options); + object.response = null; + object.delivery_proof = null; + object.inclusion_proof = null; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } } - if (message.new_update_period != null && message.hasOwnProperty("new_update_period")) - if (typeof message.new_update_period === "number") - object.new_update_period = options.longs === String ? String(message.new_update_period) : message.new_update_period; - else - object.new_update_period = options.longs === String ? $util.Long.prototype.toString.call(message.new_update_period) : options.longs === Number ? new $util.LongBits(message.new_update_period.low >>> 0, message.new_update_period.high >>> 0).toNumber(true) : message.new_update_period; - if (message.new_transactions_filter != null && message.hasOwnProperty("new_transactions_filter")) - object.new_transactions_filter = message.new_transactions_filter; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; + if (message.response != null && message.hasOwnProperty("response")) + object.response = $root.tendermint.abci.ResponseDeliverTx.toObject(message.response, options); + if (message.delivery_proof != null && message.hasOwnProperty("delivery_proof")) + object.delivery_proof = $root.tendermint.crypto.Proof.toObject(message.delivery_proof, options); + if (message.inclusion_proof != null && message.hasOwnProperty("inclusion_proof")) + object.inclusion_proof = $root.tendermint.crypto.Proof.toObject(message.inclusion_proof, options); + 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 MsgUpdateInterchainQueryRequest to JSON. + * Converts this TxValue to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @memberof neutron.interchainqueries.TxValue * @instance * @returns {Object.} JSON object */ - MsgUpdateInterchainQueryRequest.prototype.toJSON = function toJSON() { + TxValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateInterchainQueryRequest; + return TxValue; })(); - interchainqueries.MsgUpdateInterchainQueryResponse = (function() { + interchainqueries.MsgSubmitQueryResultResponse = (function() { /** - * Properties of a MsgUpdateInterchainQueryResponse. + * Properties of a MsgSubmitQueryResultResponse. * @memberof neutron.interchainqueries - * @interface IMsgUpdateInterchainQueryResponse + * @interface IMsgSubmitQueryResultResponse */ /** - * Constructs a new MsgUpdateInterchainQueryResponse. + * Constructs a new MsgSubmitQueryResultResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a MsgUpdateInterchainQueryResponse. - * @implements IMsgUpdateInterchainQueryResponse + * @classdesc Represents a MsgSubmitQueryResultResponse. + * @implements IMsgSubmitQueryResultResponse * @constructor - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse=} [properties] Properties to set */ - function MsgUpdateInterchainQueryResponse(properties) { + function MsgSubmitQueryResultResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10115,48 +11247,48 @@ } /** - * Encodes the specified MsgUpdateInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. + * Encodes the specified MsgSubmitQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateInterchainQueryResponse.encode = function encode(message, writer) { + MsgSubmitQueryResultResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgUpdateInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. + * Encodes the specified MsgSubmitQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static - * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IMsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitQueryResultResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer. + * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse + * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateInterchainQueryResponse.decode = function decode(reader, length) { + MsgSubmitQueryResultResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgSubmitQueryResultResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10169,107 +11301,95 @@ }; /** - * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse + * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitQueryResultResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateInterchainQueryResponse message. + * Verifies a MsgSubmitQueryResultResponse message. * @function verify - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateInterchainQueryResponse.verify = function verify(message) { + MsgSubmitQueryResultResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgUpdateInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitQueryResultResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse + * @returns {neutron.interchainqueries.MsgSubmitQueryResultResponse} MsgSubmitQueryResultResponse */ - MsgUpdateInterchainQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse) + MsgSubmitQueryResultResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgSubmitQueryResultResponse) return object; - return new $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse(); + return new $root.neutron.interchainqueries.MsgSubmitQueryResultResponse(); }; /** - * Creates a plain object from a MsgUpdateInterchainQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitQueryResultResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @static - * @param {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse + * @param {neutron.interchainqueries.MsgSubmitQueryResultResponse} message MsgSubmitQueryResultResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateInterchainQueryResponse.toObject = function toObject() { + MsgSubmitQueryResultResponse.toObject = function toObject() { return {}; }; /** - * Converts this MsgUpdateInterchainQueryResponse to JSON. + * Converts this MsgSubmitQueryResultResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse + * @memberof neutron.interchainqueries.MsgSubmitQueryResultResponse * @instance * @returns {Object.} JSON object */ - MsgUpdateInterchainQueryResponse.prototype.toJSON = function toJSON() { + MsgSubmitQueryResultResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateInterchainQueryResponse; + return MsgSubmitQueryResultResponse; })(); - interchainqueries.RegisteredQuery = (function() { + interchainqueries.MsgRemoveInterchainQueryRequest = (function() { /** - * Properties of a RegisteredQuery. + * Properties of a MsgRemoveInterchainQueryRequest. * @memberof neutron.interchainqueries - * @interface IRegisteredQuery - * @property {Long|null} [id] RegisteredQuery id - * @property {string|null} [owner] RegisteredQuery owner - * @property {string|null} [query_type] RegisteredQuery query_type - * @property {Array.|null} [keys] RegisteredQuery keys - * @property {string|null} [transactions_filter] RegisteredQuery transactions_filter - * @property {string|null} [connection_id] RegisteredQuery connection_id - * @property {Long|null} [update_period] RegisteredQuery update_period - * @property {Long|null} [last_submitted_result_local_height] RegisteredQuery last_submitted_result_local_height - * @property {ibc.core.client.v1.IHeight|null} [last_submitted_result_remote_height] RegisteredQuery last_submitted_result_remote_height - * @property {Array.|null} [deposit] RegisteredQuery deposit - * @property {Long|null} [submit_timeout] RegisteredQuery submit_timeout - * @property {Long|null} [registered_at_height] RegisteredQuery registered_at_height + * @interface IMsgRemoveInterchainQueryRequest + * @property {Long|null} [query_id] MsgRemoveInterchainQueryRequest query_id + * @property {string|null} [sender] MsgRemoveInterchainQueryRequest sender */ /** - * Constructs a new RegisteredQuery. + * Constructs a new MsgRemoveInterchainQueryRequest. * @memberof neutron.interchainqueries - * @classdesc Represents a RegisteredQuery. - * @implements IRegisteredQuery + * @classdesc Represents a MsgRemoveInterchainQueryRequest. + * @implements IMsgRemoveInterchainQueryRequest * @constructor - * @param {neutron.interchainqueries.IRegisteredQuery=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest=} [properties] Properties to set */ - function RegisteredQuery(properties) { - this.keys = []; - this.deposit = []; + function MsgRemoveInterchainQueryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10277,212 +11397,76 @@ } /** - * RegisteredQuery id. - * @member {Long} id - * @memberof neutron.interchainqueries.RegisteredQuery + * MsgRemoveInterchainQueryRequest query_id. + * @member {Long} query_id + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @instance */ - RegisteredQuery.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgRemoveInterchainQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * RegisteredQuery owner. - * @member {string} owner - * @memberof neutron.interchainqueries.RegisteredQuery + * MsgRemoveInterchainQueryRequest sender. + * @member {string} sender + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @instance */ - RegisteredQuery.prototype.owner = ""; + MsgRemoveInterchainQueryRequest.prototype.sender = ""; /** - * RegisteredQuery query_type. - * @member {string} query_type - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance + * Encodes the specified MsgRemoveInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest + * @static + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - RegisteredQuery.prototype.query_type = ""; + MsgRemoveInterchainQueryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sender); + return writer; + }; /** - * RegisteredQuery keys. - * @member {Array.} keys - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.keys = $util.emptyArray; - - /** - * RegisteredQuery transactions_filter. - * @member {string} transactions_filter - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.transactions_filter = ""; - - /** - * RegisteredQuery connection_id. - * @member {string} connection_id - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.connection_id = ""; - - /** - * RegisteredQuery update_period. - * @member {Long} update_period - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * RegisteredQuery last_submitted_result_local_height. - * @member {Long} last_submitted_result_local_height - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.last_submitted_result_local_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * RegisteredQuery last_submitted_result_remote_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} last_submitted_result_remote_height - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.last_submitted_result_remote_height = null; - - /** - * RegisteredQuery deposit. - * @member {Array.} deposit - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.deposit = $util.emptyArray; - - /** - * RegisteredQuery submit_timeout. - * @member {Long} submit_timeout - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.submit_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * RegisteredQuery registered_at_height. - * @member {Long} registered_at_height - * @memberof neutron.interchainqueries.RegisteredQuery - * @instance - */ - RegisteredQuery.prototype.registered_at_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Encodes the specified RegisteredQuery message. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. - * @function encode - * @memberof neutron.interchainqueries.RegisteredQuery - * @static - * @param {neutron.interchainqueries.IRegisteredQuery} message RegisteredQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisteredQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.owner); - if (message.query_type != null && Object.hasOwnProperty.call(message, "query_type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.query_type); - if (message.keys != null && message.keys.length) - for (var i = 0; i < message.keys.length; ++i) - $root.neutron.interchainqueries.KVKey.encode(message.keys[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.transactions_filter != null && Object.hasOwnProperty.call(message, "transactions_filter")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.transactions_filter); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.connection_id); - if (message.update_period != null && Object.hasOwnProperty.call(message, "update_period")) - writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.update_period); - if (message.last_submitted_result_local_height != null && Object.hasOwnProperty.call(message, "last_submitted_result_local_height")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.last_submitted_result_local_height); - if (message.last_submitted_result_remote_height != null && Object.hasOwnProperty.call(message, "last_submitted_result_remote_height")) - $root.ibc.core.client.v1.Height.encode(message.last_submitted_result_remote_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.deposit != null && message.deposit.length) - for (var i = 0; i < message.deposit.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.deposit[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.submit_timeout != null && Object.hasOwnProperty.call(message, "submit_timeout")) - writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.submit_timeout); - if (message.registered_at_height != null && Object.hasOwnProperty.call(message, "registered_at_height")) - writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.registered_at_height); - return writer; - }; - - /** - * Encodes the specified RegisteredQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. + * Encodes the specified MsgRemoveInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static - * @param {neutron.interchainqueries.IRegisteredQuery} message RegisteredQuery message or plain object to encode + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredQuery.encodeDelimited = function encodeDelimited(message, writer) { + MsgRemoveInterchainQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RegisteredQuery message from the specified reader or buffer. + * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredQuery.decode = function decode(reader, length) { + MsgRemoveInterchainQueryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.RegisteredQuery(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.uint64(); + message.query_id = reader.uint64(); break; case 2: - message.owner = reader.string(); - break; - case 3: - message.query_type = reader.string(); - break; - case 4: - if (!(message.keys && message.keys.length)) - message.keys = []; - message.keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); - break; - case 5: - message.transactions_filter = reader.string(); - break; - case 6: - message.connection_id = reader.string(); - break; - case 7: - message.update_period = reader.uint64(); - break; - case 8: - message.last_submitted_result_local_height = reader.uint64(); - break; - case 9: - message.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 10: - if (!(message.deposit && message.deposit.length)) - message.deposit = []; - message.deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 11: - message.submit_timeout = reader.uint64(); - break; - case 12: - message.registered_at_height = reader.uint64(); + message.sender = reader.string(); break; default: reader.skipType(tag & 7); @@ -10493,308 +11477,129 @@ }; /** - * Decodes a RegisteredQuery message from the specified reader or buffer, length delimited. + * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredQuery.decodeDelimited = function decodeDelimited(reader) { + MsgRemoveInterchainQueryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RegisteredQuery message. + * Verifies a MsgRemoveInterchainQueryRequest message. * @function verify - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisteredQuery.verify = function verify(message) { + MsgRemoveInterchainQueryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.query_type != null && message.hasOwnProperty("query_type")) - if (!$util.isString(message.query_type)) - return "query_type: string expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; - for (var i = 0; i < message.keys.length; ++i) { - var error = $root.neutron.interchainqueries.KVKey.verify(message.keys[i]); - if (error) - return "keys." + error; - } - } - if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) - if (!$util.isString(message.transactions_filter)) - return "transactions_filter: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.update_period != null && message.hasOwnProperty("update_period")) - if (!$util.isInteger(message.update_period) && !(message.update_period && $util.isInteger(message.update_period.low) && $util.isInteger(message.update_period.high))) - return "update_period: integer|Long expected"; - if (message.last_submitted_result_local_height != null && message.hasOwnProperty("last_submitted_result_local_height")) - if (!$util.isInteger(message.last_submitted_result_local_height) && !(message.last_submitted_result_local_height && $util.isInteger(message.last_submitted_result_local_height.low) && $util.isInteger(message.last_submitted_result_local_height.high))) - return "last_submitted_result_local_height: integer|Long expected"; - if (message.last_submitted_result_remote_height != null && message.hasOwnProperty("last_submitted_result_remote_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.last_submitted_result_remote_height); - if (error) - return "last_submitted_result_remote_height." + error; - } - if (message.deposit != null && message.hasOwnProperty("deposit")) { - if (!Array.isArray(message.deposit)) - return "deposit: array expected"; - for (var i = 0; i < message.deposit.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.deposit[i]); - if (error) - return "deposit." + error; - } - } - if (message.submit_timeout != null && message.hasOwnProperty("submit_timeout")) - if (!$util.isInteger(message.submit_timeout) && !(message.submit_timeout && $util.isInteger(message.submit_timeout.low) && $util.isInteger(message.submit_timeout.high))) - return "submit_timeout: integer|Long expected"; - if (message.registered_at_height != null && message.hasOwnProperty("registered_at_height")) - if (!$util.isInteger(message.registered_at_height) && !(message.registered_at_height && $util.isInteger(message.registered_at_height.low) && $util.isInteger(message.registered_at_height.high))) - return "registered_at_height: integer|Long expected"; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) + return "query_id: integer|Long expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; return null; }; /** - * Creates a RegisteredQuery message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRemoveInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} MsgRemoveInterchainQueryRequest */ - RegisteredQuery.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.RegisteredQuery) + MsgRemoveInterchainQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest) return object; - var message = new $root.neutron.interchainqueries.RegisteredQuery(); - 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.owner != null) - message.owner = String(object.owner); - if (object.query_type != null) - message.query_type = String(object.query_type); - if (object.keys) { - if (!Array.isArray(object.keys)) - throw TypeError(".neutron.interchainqueries.RegisteredQuery.keys: array expected"); - message.keys = []; - for (var i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".neutron.interchainqueries.RegisteredQuery.keys: object expected"); - message.keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.keys[i]); - } - } - if (object.transactions_filter != null) - message.transactions_filter = String(object.transactions_filter); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.update_period != null) - if ($util.Long) - (message.update_period = $util.Long.fromValue(object.update_period)).unsigned = true; - else if (typeof object.update_period === "string") - message.update_period = parseInt(object.update_period, 10); - else if (typeof object.update_period === "number") - message.update_period = object.update_period; - else if (typeof object.update_period === "object") - message.update_period = new $util.LongBits(object.update_period.low >>> 0, object.update_period.high >>> 0).toNumber(true); - if (object.last_submitted_result_local_height != null) - if ($util.Long) - (message.last_submitted_result_local_height = $util.Long.fromValue(object.last_submitted_result_local_height)).unsigned = true; - else if (typeof object.last_submitted_result_local_height === "string") - message.last_submitted_result_local_height = parseInt(object.last_submitted_result_local_height, 10); - else if (typeof object.last_submitted_result_local_height === "number") - message.last_submitted_result_local_height = object.last_submitted_result_local_height; - else if (typeof object.last_submitted_result_local_height === "object") - message.last_submitted_result_local_height = new $util.LongBits(object.last_submitted_result_local_height.low >>> 0, object.last_submitted_result_local_height.high >>> 0).toNumber(true); - if (object.last_submitted_result_remote_height != null) { - if (typeof object.last_submitted_result_remote_height !== "object") - throw TypeError(".neutron.interchainqueries.RegisteredQuery.last_submitted_result_remote_height: object expected"); - message.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.fromObject(object.last_submitted_result_remote_height); - } - if (object.deposit) { - if (!Array.isArray(object.deposit)) - throw TypeError(".neutron.interchainqueries.RegisteredQuery.deposit: array expected"); - message.deposit = []; - for (var i = 0; i < object.deposit.length; ++i) { - if (typeof object.deposit[i] !== "object") - throw TypeError(".neutron.interchainqueries.RegisteredQuery.deposit: object expected"); - message.deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.deposit[i]); - } - } - if (object.submit_timeout != null) - if ($util.Long) - (message.submit_timeout = $util.Long.fromValue(object.submit_timeout)).unsigned = true; - else if (typeof object.submit_timeout === "string") - message.submit_timeout = parseInt(object.submit_timeout, 10); - else if (typeof object.submit_timeout === "number") - message.submit_timeout = object.submit_timeout; - else if (typeof object.submit_timeout === "object") - message.submit_timeout = new $util.LongBits(object.submit_timeout.low >>> 0, object.submit_timeout.high >>> 0).toNumber(true); - if (object.registered_at_height != null) + var message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryRequest(); + if (object.query_id != null) if ($util.Long) - (message.registered_at_height = $util.Long.fromValue(object.registered_at_height)).unsigned = true; - else if (typeof object.registered_at_height === "string") - message.registered_at_height = parseInt(object.registered_at_height, 10); - else if (typeof object.registered_at_height === "number") - message.registered_at_height = object.registered_at_height; - else if (typeof object.registered_at_height === "object") - message.registered_at_height = new $util.LongBits(object.registered_at_height.low >>> 0, object.registered_at_height.high >>> 0).toNumber(true); + (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; + else if (typeof object.query_id === "string") + message.query_id = parseInt(object.query_id, 10); + else if (typeof object.query_id === "number") + message.query_id = object.query_id; + else if (typeof object.query_id === "object") + message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + if (object.sender != null) + message.sender = String(object.sender); return message; }; /** - * Creates a plain object from a RegisteredQuery message. Also converts values to other types if specified. + * Creates a plain object from a MsgRemoveInterchainQueryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @static - * @param {neutron.interchainqueries.RegisteredQuery} message RegisteredQuery + * @param {neutron.interchainqueries.MsgRemoveInterchainQueryRequest} message MsgRemoveInterchainQueryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisteredQuery.toObject = function toObject(message, options) { + MsgRemoveInterchainQueryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.keys = []; - object.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.owner = ""; - object.query_type = ""; - object.transactions_filter = ""; - object.connection_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.update_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.update_period = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.last_submitted_result_local_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.last_submitted_result_local_height = options.longs === String ? "0" : 0; - object.last_submitted_result_remote_height = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.submit_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.submit_timeout = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.registered_at_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.registered_at_height = options.longs === String ? "0" : 0; - } - 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.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.query_type != null && message.hasOwnProperty("query_type")) - object.query_type = message.query_type; - if (message.keys && message.keys.length) { - object.keys = []; - for (var j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.keys[j], options); - } - if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) - object.transactions_filter = message.transactions_filter; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.update_period != null && message.hasOwnProperty("update_period")) - if (typeof message.update_period === "number") - object.update_period = options.longs === String ? String(message.update_period) : message.update_period; - else - object.update_period = options.longs === String ? $util.Long.prototype.toString.call(message.update_period) : options.longs === Number ? new $util.LongBits(message.update_period.low >>> 0, message.update_period.high >>> 0).toNumber(true) : message.update_period; - if (message.last_submitted_result_local_height != null && message.hasOwnProperty("last_submitted_result_local_height")) - if (typeof message.last_submitted_result_local_height === "number") - object.last_submitted_result_local_height = options.longs === String ? String(message.last_submitted_result_local_height) : message.last_submitted_result_local_height; - else - object.last_submitted_result_local_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_submitted_result_local_height) : options.longs === Number ? new $util.LongBits(message.last_submitted_result_local_height.low >>> 0, message.last_submitted_result_local_height.high >>> 0).toNumber(true) : message.last_submitted_result_local_height; - if (message.last_submitted_result_remote_height != null && message.hasOwnProperty("last_submitted_result_remote_height")) - object.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.toObject(message.last_submitted_result_remote_height, options); - if (message.deposit && message.deposit.length) { - object.deposit = []; - for (var j = 0; j < message.deposit.length; ++j) - object.deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.deposit[j], options); + object.query_id = options.longs === String ? "0" : 0; + object.sender = ""; } - if (message.submit_timeout != null && message.hasOwnProperty("submit_timeout")) - if (typeof message.submit_timeout === "number") - object.submit_timeout = options.longs === String ? String(message.submit_timeout) : message.submit_timeout; - else - object.submit_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.submit_timeout) : options.longs === Number ? new $util.LongBits(message.submit_timeout.low >>> 0, message.submit_timeout.high >>> 0).toNumber(true) : message.submit_timeout; - if (message.registered_at_height != null && message.hasOwnProperty("registered_at_height")) - if (typeof message.registered_at_height === "number") - object.registered_at_height = options.longs === String ? String(message.registered_at_height) : message.registered_at_height; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (typeof message.query_id === "number") + object.query_id = options.longs === String ? String(message.query_id) : message.query_id; else - object.registered_at_height = options.longs === String ? $util.Long.prototype.toString.call(message.registered_at_height) : options.longs === Number ? new $util.LongBits(message.registered_at_height.low >>> 0, message.registered_at_height.high >>> 0).toNumber(true) : message.registered_at_height; + object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; return object; }; /** - * Converts this RegisteredQuery to JSON. + * Converts this MsgRemoveInterchainQueryRequest to JSON. * @function toJSON - * @memberof neutron.interchainqueries.RegisteredQuery + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryRequest * @instance * @returns {Object.} JSON object */ - RegisteredQuery.prototype.toJSON = function toJSON() { + MsgRemoveInterchainQueryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RegisteredQuery; + return MsgRemoveInterchainQueryRequest; })(); - interchainqueries.KVKey = (function() { + interchainqueries.MsgRemoveInterchainQueryResponse = (function() { /** - * Properties of a KVKey. + * Properties of a MsgRemoveInterchainQueryResponse. * @memberof neutron.interchainqueries - * @interface IKVKey - * @property {string|null} [path] KVKey path - * @property {Uint8Array|null} [key] KVKey key + * @interface IMsgRemoveInterchainQueryResponse */ /** - * Constructs a new KVKey. + * Constructs a new MsgRemoveInterchainQueryResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a KVKey. - * @implements IKVKey + * @classdesc Represents a MsgRemoveInterchainQueryResponse. + * @implements IMsgRemoveInterchainQueryResponse * @constructor - * @param {neutron.interchainqueries.IKVKey=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse=} [properties] Properties to set */ - function KVKey(properties) { + function MsgRemoveInterchainQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10802,77 +11607,51 @@ } /** - * KVKey path. - * @member {string} path - * @memberof neutron.interchainqueries.KVKey - * @instance - */ - KVKey.prototype.path = ""; - - /** - * KVKey key. - * @member {Uint8Array} key - * @memberof neutron.interchainqueries.KVKey - * @instance - */ - KVKey.prototype.key = $util.newBuffer([]); - - /** - * Encodes the specified KVKey message. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. + * Encodes the specified MsgRemoveInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IKVKey} message KVKey message or plain object to encode + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KVKey.encode = function encode(message, writer) { + MsgRemoveInterchainQueryResponse.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.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); return writer; }; /** - * Encodes the specified KVKey message, length delimited. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. + * Encodes the specified MsgRemoveInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IKVKey} message KVKey message or plain object to encode + * @param {neutron.interchainqueries.IMsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KVKey.encodeDelimited = function encodeDelimited(message, writer) { + MsgRemoveInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KVKey message from the specified reader or buffer. + * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.KVKey} KVKey + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KVKey.decode = function decode(reader, length) { + MsgRemoveInterchainQueryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.KVKey(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; default: reader.skipType(tag & 7); break; @@ -10882,127 +11661,99 @@ }; /** - * Decodes a KVKey message from the specified reader or buffer, length delimited. + * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.KVKey} KVKey + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KVKey.decodeDelimited = function decodeDelimited(reader) { + MsgRemoveInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KVKey message. + * Verifies a MsgRemoveInterchainQueryResponse message. * @function verify - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KVKey.verify = function verify(message) { + MsgRemoveInterchainQueryResponse.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.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; return null; }; /** - * Creates a KVKey message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRemoveInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.KVKey} KVKey + * @returns {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} MsgRemoveInterchainQueryResponse */ - KVKey.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.KVKey) + MsgRemoveInterchainQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse) return object; - var message = new $root.neutron.interchainqueries.KVKey(); - if (object.path != null) - message.path = String(object.path); - 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; - return message; + return new $root.neutron.interchainqueries.MsgRemoveInterchainQueryResponse(); }; /** - * Creates a plain object from a KVKey message. Also converts values to other types if specified. + * Creates a plain object from a MsgRemoveInterchainQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @static - * @param {neutron.interchainqueries.KVKey} message KVKey + * @param {neutron.interchainqueries.MsgRemoveInterchainQueryResponse} message MsgRemoveInterchainQueryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KVKey.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.path = ""; - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - 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; - return object; + MsgRemoveInterchainQueryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this KVKey to JSON. + * Converts this MsgRemoveInterchainQueryResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.KVKey + * @memberof neutron.interchainqueries.MsgRemoveInterchainQueryResponse * @instance * @returns {Object.} JSON object */ - KVKey.prototype.toJSON = function toJSON() { + MsgRemoveInterchainQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return KVKey; + return MsgRemoveInterchainQueryResponse; })(); - interchainqueries.GenesisState = (function() { + interchainqueries.MsgUpdateInterchainQueryRequest = (function() { /** - * Properties of a GenesisState. + * Properties of a MsgUpdateInterchainQueryRequest. * @memberof neutron.interchainqueries - * @interface IGenesisState - * @property {neutron.interchainqueries.IParams|null} [params] GenesisState params - * @property {Array.|null} [registered_queries] GenesisState registered_queries + * @interface IMsgUpdateInterchainQueryRequest + * @property {Long|null} [query_id] MsgUpdateInterchainQueryRequest query_id + * @property {Array.|null} [new_keys] MsgUpdateInterchainQueryRequest new_keys + * @property {Long|null} [new_update_period] MsgUpdateInterchainQueryRequest new_update_period + * @property {string|null} [new_transactions_filter] MsgUpdateInterchainQueryRequest new_transactions_filter + * @property {string|null} [sender] MsgUpdateInterchainQueryRequest sender */ /** - * Constructs a new GenesisState. + * Constructs a new MsgUpdateInterchainQueryRequest. * @memberof neutron.interchainqueries - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a MsgUpdateInterchainQueryRequest. + * @implements IMsgUpdateInterchainQueryRequest * @constructor - * @param {neutron.interchainqueries.IGenesisState=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest=} [properties] Properties to set */ - function GenesisState(properties) { - this.registered_queries = []; + function MsgUpdateInterchainQueryRequest(properties) { + this.new_keys = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11010,79 +11761,118 @@ } /** - * GenesisState params. - * @member {neutron.interchainqueries.IParams|null|undefined} params - * @memberof neutron.interchainqueries.GenesisState + * MsgUpdateInterchainQueryRequest query_id. + * @member {Long} query_id + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @instance */ - GenesisState.prototype.params = null; + MsgUpdateInterchainQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * GenesisState registered_queries. - * @member {Array.} registered_queries - * @memberof neutron.interchainqueries.GenesisState + * MsgUpdateInterchainQueryRequest new_keys. + * @member {Array.} new_keys + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @instance */ - GenesisState.prototype.registered_queries = $util.emptyArray; + MsgUpdateInterchainQueryRequest.prototype.new_keys = $util.emptyArray; /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. + * MsgUpdateInterchainQueryRequest new_update_period. + * @member {Long} new_update_period + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @instance + */ + MsgUpdateInterchainQueryRequest.prototype.new_update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgUpdateInterchainQueryRequest new_transactions_filter. + * @member {string} new_transactions_filter + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @instance + */ + MsgUpdateInterchainQueryRequest.prototype.new_transactions_filter = ""; + + /** + * MsgUpdateInterchainQueryRequest sender. + * @member {string} sender + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest + * @instance + */ + MsgUpdateInterchainQueryRequest.prototype.sender = ""; + + /** + * Encodes the specified MsgUpdateInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static - * @param {neutron.interchainqueries.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + MsgUpdateInterchainQueryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.interchainqueries.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.registered_queries != null && message.registered_queries.length) - for (var i = 0; i < message.registered_queries.length; ++i) - $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_queries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + if (message.new_keys != null && message.new_keys.length) + for (var i = 0; i < message.new_keys.length; ++i) + $root.neutron.interchainqueries.KVKey.encode(message.new_keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.new_update_period != null && Object.hasOwnProperty.call(message, "new_update_period")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.new_update_period); + if (message.new_transactions_filter != null && Object.hasOwnProperty.call(message, "new_transactions_filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.new_transactions_filter); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sender); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. + * Encodes the specified MsgUpdateInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static - * @param {neutron.interchainqueries.IGenesisState} message GenesisState message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateInterchainQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.GenesisState} GenesisState + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest * @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) { + MsgUpdateInterchainQueryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.interchainqueries.Params.decode(reader, reader.uint32()); + message.query_id = reader.uint64(); break; case 2: - if (!(message.registered_queries && message.registered_queries.length)) - message.registered_queries = []; - message.registered_queries.push($root.neutron.interchainqueries.RegisteredQuery.decode(reader, reader.uint32())); + if (!(message.new_keys && message.new_keys.length)) + message.new_keys = []; + message.new_keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); + break; + case 3: + message.new_update_period = reader.uint64(); + break; + case 4: + message.new_transactions_filter = reader.string(); + break; + case 5: + message.sender = reader.string(); break; default: reader.skipType(tag & 7); @@ -11093,141 +11883,185 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.GenesisState} GenesisState + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest * @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) { + MsgUpdateInterchainQueryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a MsgUpdateInterchainQueryRequest message. * @function verify - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @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) { + MsgUpdateInterchainQueryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.interchainqueries.Params.verify(message.params); - if (error) - return "params." + error; - } - if (message.registered_queries != null && message.hasOwnProperty("registered_queries")) { - if (!Array.isArray(message.registered_queries)) - return "registered_queries: array expected"; - for (var i = 0; i < message.registered_queries.length; ++i) { - var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_queries[i]); + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) + return "query_id: integer|Long expected"; + if (message.new_keys != null && message.hasOwnProperty("new_keys")) { + if (!Array.isArray(message.new_keys)) + return "new_keys: array expected"; + for (var i = 0; i < message.new_keys.length; ++i) { + var error = $root.neutron.interchainqueries.KVKey.verify(message.new_keys[i]); if (error) - return "registered_queries." + error; + return "new_keys." + error; } } + if (message.new_update_period != null && message.hasOwnProperty("new_update_period")) + if (!$util.isInteger(message.new_update_period) && !(message.new_update_period && $util.isInteger(message.new_update_period.low) && $util.isInteger(message.new_update_period.high))) + return "new_update_period: integer|Long expected"; + if (message.new_transactions_filter != null && message.hasOwnProperty("new_transactions_filter")) + if (!$util.isString(message.new_transactions_filter)) + return "new_transactions_filter: string expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.GenesisState} GenesisState + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} MsgUpdateInterchainQueryRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.GenesisState) + MsgUpdateInterchainQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest) return object; - var message = new $root.neutron.interchainqueries.GenesisState(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.interchainqueries.GenesisState.params: object expected"); - message.params = $root.neutron.interchainqueries.Params.fromObject(object.params); - } - if (object.registered_queries) { - if (!Array.isArray(object.registered_queries)) - throw TypeError(".neutron.interchainqueries.GenesisState.registered_queries: array expected"); - message.registered_queries = []; - for (var i = 0; i < object.registered_queries.length; ++i) { - if (typeof object.registered_queries[i] !== "object") - throw TypeError(".neutron.interchainqueries.GenesisState.registered_queries: object expected"); - message.registered_queries[i] = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_queries[i]); + var message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryRequest(); + if (object.query_id != null) + if ($util.Long) + (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; + else if (typeof object.query_id === "string") + message.query_id = parseInt(object.query_id, 10); + else if (typeof object.query_id === "number") + message.query_id = object.query_id; + else if (typeof object.query_id === "object") + message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + if (object.new_keys) { + if (!Array.isArray(object.new_keys)) + throw TypeError(".neutron.interchainqueries.MsgUpdateInterchainQueryRequest.new_keys: array expected"); + message.new_keys = []; + for (var i = 0; i < object.new_keys.length; ++i) { + if (typeof object.new_keys[i] !== "object") + throw TypeError(".neutron.interchainqueries.MsgUpdateInterchainQueryRequest.new_keys: object expected"); + message.new_keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.new_keys[i]); } } + if (object.new_update_period != null) + if ($util.Long) + (message.new_update_period = $util.Long.fromValue(object.new_update_period)).unsigned = true; + else if (typeof object.new_update_period === "string") + message.new_update_period = parseInt(object.new_update_period, 10); + else if (typeof object.new_update_period === "number") + message.new_update_period = object.new_update_period; + else if (typeof object.new_update_period === "object") + message.new_update_period = new $util.LongBits(object.new_update_period.low >>> 0, object.new_update_period.high >>> 0).toNumber(true); + if (object.new_transactions_filter != null) + message.new_transactions_filter = String(object.new_transactions_filter); + if (object.sender != null) + message.sender = String(object.sender); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateInterchainQueryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @static - * @param {neutron.interchainqueries.GenesisState} message GenesisState + * @param {neutron.interchainqueries.MsgUpdateInterchainQueryRequest} message MsgUpdateInterchainQueryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + MsgUpdateInterchainQueryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.registered_queries = []; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.interchainqueries.Params.toObject(message.params, options); - if (message.registered_queries && message.registered_queries.length) { - object.registered_queries = []; - for (var j = 0; j < message.registered_queries.length; ++j) - object.registered_queries[j] = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_queries[j], options); + object.new_keys = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.new_update_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.new_update_period = options.longs === String ? "0" : 0; + object.new_transactions_filter = ""; + object.sender = ""; + } + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (typeof message.query_id === "number") + object.query_id = options.longs === String ? String(message.query_id) : message.query_id; + else + object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + if (message.new_keys && message.new_keys.length) { + object.new_keys = []; + for (var j = 0; j < message.new_keys.length; ++j) + object.new_keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.new_keys[j], options); } + if (message.new_update_period != null && message.hasOwnProperty("new_update_period")) + if (typeof message.new_update_period === "number") + object.new_update_period = options.longs === String ? String(message.new_update_period) : message.new_update_period; + else + object.new_update_period = options.longs === String ? $util.Long.prototype.toString.call(message.new_update_period) : options.longs === Number ? new $util.LongBits(message.new_update_period.low >>> 0, message.new_update_period.high >>> 0).toNumber(true) : message.new_update_period; + if (message.new_transactions_filter != null && message.hasOwnProperty("new_transactions_filter")) + object.new_transactions_filter = message.new_transactions_filter; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this MsgUpdateInterchainQueryRequest to JSON. * @function toJSON - * @memberof neutron.interchainqueries.GenesisState + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + MsgUpdateInterchainQueryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return MsgUpdateInterchainQueryRequest; })(); - interchainqueries.Params = (function() { + interchainqueries.MsgUpdateInterchainQueryResponse = (function() { /** - * Properties of a Params. + * Properties of a MsgUpdateInterchainQueryResponse. * @memberof neutron.interchainqueries - * @interface IParams - * @property {Long|null} [query_submit_timeout] Params query_submit_timeout - * @property {Array.|null} [query_deposit] Params query_deposit - * @property {Long|null} [tx_query_removal_limit] Params tx_query_removal_limit + * @interface IMsgUpdateInterchainQueryResponse */ /** - * Constructs a new Params. + * Constructs a new MsgUpdateInterchainQueryResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a Params. - * @implements IParams + * @classdesc Represents a MsgUpdateInterchainQueryResponse. + * @implements IMsgUpdateInterchainQueryResponse * @constructor - * @param {neutron.interchainqueries.IParams=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse=} [properties] Properties to set */ - function Params(properties) { - this.query_deposit = []; + function MsgUpdateInterchainQueryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11235,93 +12069,51 @@ } /** - * Params query_submit_timeout. - * @member {Long} query_submit_timeout - * @memberof neutron.interchainqueries.Params - * @instance - */ - Params.prototype.query_submit_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params query_deposit. - * @member {Array.} query_deposit - * @memberof neutron.interchainqueries.Params - * @instance - */ - Params.prototype.query_deposit = $util.emptyArray; - - /** - * Params tx_query_removal_limit. - * @member {Long} tx_query_removal_limit - * @memberof neutron.interchainqueries.Params - * @instance - */ - Params.prototype.tx_query_removal_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Encodes the specified Params message. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. + * Encodes the specified MsgUpdateInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IParams} message Params message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + MsgUpdateInterchainQueryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_submit_timeout != null && Object.hasOwnProperty.call(message, "query_submit_timeout")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_submit_timeout); - if (message.query_deposit != null && message.query_deposit.length) - for (var i = 0; i < message.query_deposit.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.query_deposit[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tx_query_removal_limit != null && Object.hasOwnProperty.call(message, "tx_query_removal_limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_query_removal_limit); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. + * Encodes the specified MsgUpdateInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static - * @param {neutron.interchainqueries.IParams} message Params message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateInterchainQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.Params} Params + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse * @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) { + MsgUpdateInterchainQueryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.query_submit_timeout = reader.uint64(); - break; - case 2: - if (!(message.query_deposit && message.query_deposit.length)) - message.query_deposit = []; - message.query_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 3: - message.tx_query_removal_limit = reader.uint64(); - break; default: reader.skipType(tag & 7); break; @@ -11331,407 +12123,173 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.Params} Params + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse * @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) { + MsgUpdateInterchainQueryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a MsgUpdateInterchainQueryResponse message. * @function verify - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @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) { + MsgUpdateInterchainQueryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_submit_timeout != null && message.hasOwnProperty("query_submit_timeout")) - if (!$util.isInteger(message.query_submit_timeout) && !(message.query_submit_timeout && $util.isInteger(message.query_submit_timeout.low) && $util.isInteger(message.query_submit_timeout.high))) - return "query_submit_timeout: integer|Long expected"; - if (message.query_deposit != null && message.hasOwnProperty("query_deposit")) { - if (!Array.isArray(message.query_deposit)) - return "query_deposit: array expected"; - for (var i = 0; i < message.query_deposit.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.query_deposit[i]); - if (error) - return "query_deposit." + error; - } - } - if (message.tx_query_removal_limit != null && message.hasOwnProperty("tx_query_removal_limit")) - if (!$util.isInteger(message.tx_query_removal_limit) && !(message.tx_query_removal_limit && $util.isInteger(message.tx_query_removal_limit.low) && $util.isInteger(message.tx_query_removal_limit.high))) - return "tx_query_removal_limit: integer|Long expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.Params} Params + * @returns {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} MsgUpdateInterchainQueryResponse */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.Params) + MsgUpdateInterchainQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse) return object; - var message = new $root.neutron.interchainqueries.Params(); - if (object.query_submit_timeout != null) - if ($util.Long) - (message.query_submit_timeout = $util.Long.fromValue(object.query_submit_timeout)).unsigned = true; - else if (typeof object.query_submit_timeout === "string") - message.query_submit_timeout = parseInt(object.query_submit_timeout, 10); - else if (typeof object.query_submit_timeout === "number") - message.query_submit_timeout = object.query_submit_timeout; - else if (typeof object.query_submit_timeout === "object") - message.query_submit_timeout = new $util.LongBits(object.query_submit_timeout.low >>> 0, object.query_submit_timeout.high >>> 0).toNumber(true); - if (object.query_deposit) { - if (!Array.isArray(object.query_deposit)) - throw TypeError(".neutron.interchainqueries.Params.query_deposit: array expected"); - message.query_deposit = []; - for (var i = 0; i < object.query_deposit.length; ++i) { - if (typeof object.query_deposit[i] !== "object") - throw TypeError(".neutron.interchainqueries.Params.query_deposit: object expected"); - message.query_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.query_deposit[i]); - } - } - if (object.tx_query_removal_limit != null) - if ($util.Long) - (message.tx_query_removal_limit = $util.Long.fromValue(object.tx_query_removal_limit)).unsigned = true; - else if (typeof object.tx_query_removal_limit === "string") - message.tx_query_removal_limit = parseInt(object.tx_query_removal_limit, 10); - else if (typeof object.tx_query_removal_limit === "number") - message.tx_query_removal_limit = object.tx_query_removal_limit; - else if (typeof object.tx_query_removal_limit === "object") - message.tx_query_removal_limit = new $util.LongBits(object.tx_query_removal_limit.low >>> 0, object.tx_query_removal_limit.high >>> 0).toNumber(true); - return message; + return new $root.neutron.interchainqueries.MsgUpdateInterchainQueryResponse(); }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateInterchainQueryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @static - * @param {neutron.interchainqueries.Params} message Params + * @param {neutron.interchainqueries.MsgUpdateInterchainQueryResponse} message MsgUpdateInterchainQueryResponse * @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.query_deposit = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_submit_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_submit_timeout = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.tx_query_removal_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tx_query_removal_limit = options.longs === String ? "0" : 0; - } - if (message.query_submit_timeout != null && message.hasOwnProperty("query_submit_timeout")) - if (typeof message.query_submit_timeout === "number") - object.query_submit_timeout = options.longs === String ? String(message.query_submit_timeout) : message.query_submit_timeout; - else - object.query_submit_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.query_submit_timeout) : options.longs === Number ? new $util.LongBits(message.query_submit_timeout.low >>> 0, message.query_submit_timeout.high >>> 0).toNumber(true) : message.query_submit_timeout; - if (message.query_deposit && message.query_deposit.length) { - object.query_deposit = []; - for (var j = 0; j < message.query_deposit.length; ++j) - object.query_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.query_deposit[j], options); - } - if (message.tx_query_removal_limit != null && message.hasOwnProperty("tx_query_removal_limit")) - if (typeof message.tx_query_removal_limit === "number") - object.tx_query_removal_limit = options.longs === String ? String(message.tx_query_removal_limit) : message.tx_query_removal_limit; - else - object.tx_query_removal_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_query_removal_limit) : options.longs === Number ? new $util.LongBits(message.tx_query_removal_limit.low >>> 0, message.tx_query_removal_limit.high >>> 0).toNumber(true) : message.tx_query_removal_limit; - return object; + MsgUpdateInterchainQueryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this Params to JSON. + * Converts this MsgUpdateInterchainQueryResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.Params + * @memberof neutron.interchainqueries.MsgUpdateInterchainQueryResponse * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + MsgUpdateInterchainQueryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return MsgUpdateInterchainQueryResponse; })(); - interchainqueries.Query = (function() { + interchainqueries.MsgUpdateParams = (function() { /** - * Constructs a new Query service. + * Properties of a MsgUpdateParams. * @memberof neutron.interchainqueries - * @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 neutron.interchainqueries.Query#params}. - * @memberof neutron.interchainqueries.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.QueryParamsResponse} [response] QueryParamsResponse - */ - - /** - * Calls Params. - * @function params - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.interchainqueries.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.neutron.interchainqueries.QueryParamsRequest, $root.neutron.interchainqueries.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.interchainqueries.Query#registeredQueries}. - * @memberof neutron.interchainqueries.Query - * @typedef RegisteredQueriesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.QueryRegisteredQueriesResponse} [response] QueryRegisteredQueriesResponse - */ - - /** - * Calls RegisteredQueries. - * @function registeredQueries - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} request QueryRegisteredQueriesRequest message or plain object - * @param {neutron.interchainqueries.Query.RegisteredQueriesCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueriesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.registeredQueries = function registeredQueries(request, callback) { - return this.rpcCall(registeredQueries, $root.neutron.interchainqueries.QueryRegisteredQueriesRequest, $root.neutron.interchainqueries.QueryRegisteredQueriesResponse, request, callback); - }, "name", { value: "RegisteredQueries" }); - - /** - * Calls RegisteredQueries. - * @function registeredQueries - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} request QueryRegisteredQueriesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.interchainqueries.Query#registeredQuery}. - * @memberof neutron.interchainqueries.Query - * @typedef RegisteredQueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.QueryRegisteredQueryResponse} [response] QueryRegisteredQueryResponse - */ - - /** - * Calls RegisteredQuery. - * @function registeredQuery - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} request QueryRegisteredQueryRequest message or plain object - * @param {neutron.interchainqueries.Query.RegisteredQueryCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.registeredQuery = function registeredQuery(request, callback) { - return this.rpcCall(registeredQuery, $root.neutron.interchainqueries.QueryRegisteredQueryRequest, $root.neutron.interchainqueries.QueryRegisteredQueryResponse, request, callback); - }, "name", { value: "RegisteredQuery" }); - - /** - * Calls RegisteredQuery. - * @function registeredQuery - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} request QueryRegisteredQueryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link neutron.interchainqueries.Query#queryResult}. - * @memberof neutron.interchainqueries.Query - * @typedef QueryResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.QueryRegisteredQueryResultResponse} [response] QueryRegisteredQueryResultResponse - */ - - /** - * Calls QueryResult. - * @function queryResult - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} request QueryRegisteredQueryResultRequest message or plain object - * @param {neutron.interchainqueries.Query.QueryResultCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueryResultResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.queryResult = function queryResult(request, callback) { - return this.rpcCall(queryResult, $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest, $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse, request, callback); - }, "name", { value: "QueryResult" }); - - /** - * Calls QueryResult. - * @function queryResult - * @memberof neutron.interchainqueries.Query - * @instance - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} request QueryRegisteredQueryResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.interchainqueries.IParams|null} [params] MsgUpdateParams params */ /** - * Callback as used by {@link neutron.interchainqueries.Query#lastRemoteHeight}. - * @memberof neutron.interchainqueries.Query - * @typedef LastRemoteHeightCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchainqueries.QueryLastRemoteHeightResponse} [response] QueryLastRemoteHeightResponse + * Constructs a new MsgUpdateParams. + * @memberof neutron.interchainqueries + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams + * @constructor + * @param {neutron.interchainqueries.IMsgUpdateParams=} [properties] Properties to set */ + function MsgUpdateParams(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 LastRemoteHeight. - * @function lastRemoteHeight - * @memberof neutron.interchainqueries.Query + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.interchainqueries.MsgUpdateParams * @instance - * @param {neutron.interchainqueries.IQueryLastRemoteHeight} request QueryLastRemoteHeight message or plain object - * @param {neutron.interchainqueries.Query.LastRemoteHeightCallback} callback Node-style callback called with the error, if any, and QueryLastRemoteHeightResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.lastRemoteHeight = function lastRemoteHeight(request, callback) { - return this.rpcCall(lastRemoteHeight, $root.neutron.interchainqueries.QueryLastRemoteHeight, $root.neutron.interchainqueries.QueryLastRemoteHeightResponse, request, callback); - }, "name", { value: "LastRemoteHeight" }); + MsgUpdateParams.prototype.authority = ""; /** - * Calls LastRemoteHeight. - * @function lastRemoteHeight - * @memberof neutron.interchainqueries.Query + * MsgUpdateParams params. + * @member {neutron.interchainqueries.IParams|null|undefined} params + * @memberof neutron.interchainqueries.MsgUpdateParams * @instance - * @param {neutron.interchainqueries.IQueryLastRemoteHeight} request QueryLastRemoteHeight message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; - })(); - - interchainqueries.QueryParamsRequest = (function() { - - /** - * Properties of a QueryParamsRequest. - * @memberof neutron.interchainqueries - * @interface IQueryParamsRequest - */ - - /** - * Constructs a new QueryParamsRequest. - * @memberof neutron.interchainqueries - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {neutron.interchainqueries.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]]; - } + MsgUpdateParams.prototype.params = null; /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static - * @param {neutron.interchainqueries.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.interchainqueries.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static - * @param {neutron.interchainqueries.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.interchainqueries.Params.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -11741,94 +12299,120 @@ }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.MsgUpdateParams} MsgUpdateParams * @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) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @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) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.interchainqueries.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.MsgUpdateParams} MsgUpdateParams */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryParamsRequest) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgUpdateParams) return object; - return new $root.neutron.interchainqueries.QueryParamsRequest(); + var message = new $root.neutron.interchainqueries.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchainqueries.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.interchainqueries.Params.fromObject(object.params); + } + return message; }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @static - * @param {neutron.interchainqueries.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.interchainqueries.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { - return {}; + MsgUpdateParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.interchainqueries.Params.toObject(message.params, options); + return object; }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryParamsRequest + * @memberof neutron.interchainqueries.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return MsgUpdateParams; })(); - interchainqueries.QueryParamsResponse = (function() { + interchainqueries.MsgUpdateParamsResponse = (function() { /** - * Properties of a QueryParamsResponse. + * Properties of a MsgUpdateParamsResponse. * @memberof neutron.interchainqueries - * @interface IQueryParamsResponse - * @property {neutron.interchainqueries.IParams|null} [params] QueryParamsResponse params + * @interface IMsgUpdateParamsResponse */ /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgUpdateParamsResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse * @constructor - * @param {neutron.interchainqueries.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IMsgUpdateParamsResponse=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function MsgUpdateParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11836,64 +12420,51 @@ } /** - * QueryParamsResponse params. - * @member {neutron.interchainqueries.IParams|null|undefined} params - * @memberof neutron.interchainqueries.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; - - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static - * @param {neutron.interchainqueries.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + MsgUpdateParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.interchainqueries.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static - * @param {neutron.interchainqueries.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.interchainqueries.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.MsgUpdateParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.params = $root.neutron.interchainqueries.Params.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -11903,115 +12474,97 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgUpdateParamsResponse message. * @function verify - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @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) { + MsgUpdateParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.interchainqueries.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. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.MsgUpdateParamsResponse} MsgUpdateParamsResponse */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryParamsResponse) + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.MsgUpdateParamsResponse) return object; - var message = new $root.neutron.interchainqueries.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.interchainqueries.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.interchainqueries.Params.fromObject(object.params); - } - return message; + return new $root.neutron.interchainqueries.MsgUpdateParamsResponse(); }; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @static - * @param {neutron.interchainqueries.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.interchainqueries.MsgUpdateParamsResponse} message MsgUpdateParamsResponse * @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.neutron.interchainqueries.Params.toObject(message.params, options); - return object; + MsgUpdateParamsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryParamsResponse + * @memberof neutron.interchainqueries.MsgUpdateParamsResponse * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return MsgUpdateParamsResponse; })(); - interchainqueries.QueryRegisteredQueriesRequest = (function() { + interchainqueries.Params = (function() { /** - * Properties of a QueryRegisteredQueriesRequest. + * Properties of a Params. * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueriesRequest - * @property {Array.|null} [owners] QueryRegisteredQueriesRequest owners - * @property {string|null} [connection_id] QueryRegisteredQueriesRequest connection_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryRegisteredQueriesRequest pagination + * @interface IParams + * @property {Long|null} [query_submit_timeout] Params query_submit_timeout + * @property {Array.|null} [query_deposit] Params query_deposit + * @property {Long|null} [tx_query_removal_limit] Params tx_query_removal_limit */ /** - * Constructs a new QueryRegisteredQueriesRequest. + * Constructs a new Params. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueriesRequest. - * @implements IQueryRegisteredQueriesRequest + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest=} [properties] Properties to set + * @param {neutron.interchainqueries.IParams=} [properties] Properties to set */ - function QueryRegisteredQueriesRequest(properties) { - this.owners = []; + function Params(properties) { + this.query_deposit = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12019,92 +12572,92 @@ } /** - * QueryRegisteredQueriesRequest owners. - * @member {Array.} owners - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * Params query_submit_timeout. + * @member {Long} query_submit_timeout + * @memberof neutron.interchainqueries.Params * @instance */ - QueryRegisteredQueriesRequest.prototype.owners = $util.emptyArray; + Params.prototype.query_submit_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryRegisteredQueriesRequest connection_id. - * @member {string} connection_id - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * Params query_deposit. + * @member {Array.} query_deposit + * @memberof neutron.interchainqueries.Params * @instance */ - QueryRegisteredQueriesRequest.prototype.connection_id = ""; + Params.prototype.query_deposit = $util.emptyArray; /** - * QueryRegisteredQueriesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * Params tx_query_removal_limit. + * @member {Long} tx_query_removal_limit + * @memberof neutron.interchainqueries.Params * @instance */ - QueryRegisteredQueriesRequest.prototype.pagination = null; + Params.prototype.tx_query_removal_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryRegisteredQueriesRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest message or plain object to encode + * @param {neutron.interchainqueries.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueriesRequest.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.owners != null && message.owners.length) - for (var i = 0; i < message.owners.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.owners[i]); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_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.query_submit_timeout != null && Object.hasOwnProperty.call(message, "query_submit_timeout")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_submit_timeout); + if (message.query_deposit != null && message.query_deposit.length) + for (var i = 0; i < message.query_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.query_deposit[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tx_query_removal_limit != null && Object.hasOwnProperty.call(message, "tx_query_removal_limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_query_removal_limit); return writer; }; /** - * Encodes the specified QueryRegisteredQueriesRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest message or plain object to encode + * @param {neutron.interchainqueries.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueriesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest + * @returns {neutron.interchainqueries.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueriesRequest.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.neutron.interchainqueries.QueryRegisteredQueriesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.owners && message.owners.length)) - message.owners = []; - message.owners.push(reader.string()); + message.query_submit_timeout = reader.uint64(); break; case 2: - message.connection_id = reader.string(); + if (!(message.query_deposit && message.query_deposit.length)) + message.query_deposit = []; + message.query_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 3: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.tx_query_removal_limit = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -12115,144 +12668,183 @@ }; /** - * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest + * @returns {neutron.interchainqueries.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueriesRequest.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 QueryRegisteredQueriesRequest message. + * Verifies a Params message. * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryRegisteredQueriesRequest.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.owners != null && message.hasOwnProperty("owners")) { - if (!Array.isArray(message.owners)) - return "owners: array expected"; - for (var i = 0; i < message.owners.length; ++i) - if (!$util.isString(message.owners[i])) - return "owners: string[] expected"; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_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.query_submit_timeout != null && message.hasOwnProperty("query_submit_timeout")) + if (!$util.isInteger(message.query_submit_timeout) && !(message.query_submit_timeout && $util.isInteger(message.query_submit_timeout.low) && $util.isInteger(message.query_submit_timeout.high))) + return "query_submit_timeout: integer|Long expected"; + if (message.query_deposit != null && message.hasOwnProperty("query_deposit")) { + if (!Array.isArray(message.query_deposit)) + return "query_deposit: array expected"; + for (var i = 0; i < message.query_deposit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.query_deposit[i]); + if (error) + return "query_deposit." + error; + } } + if (message.tx_query_removal_limit != null && message.hasOwnProperty("tx_query_removal_limit")) + if (!$util.isInteger(message.tx_query_removal_limit) && !(message.tx_query_removal_limit && $util.isInteger(message.tx_query_removal_limit.low) && $util.isInteger(message.tx_query_removal_limit.high))) + return "tx_query_removal_limit: integer|Long expected"; return null; }; /** - * Creates a QueryRegisteredQueriesRequest 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 neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest + * @returns {neutron.interchainqueries.Params} Params */ - QueryRegisteredQueriesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueriesRequest) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.Params) return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueriesRequest(); - if (object.owners) { - if (!Array.isArray(object.owners)) - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesRequest.owners: array expected"); - message.owners = []; - for (var i = 0; i < object.owners.length; ++i) - message.owners[i] = String(object.owners[i]); - } - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.neutron.interchainqueries.Params(); + if (object.query_submit_timeout != null) + if ($util.Long) + (message.query_submit_timeout = $util.Long.fromValue(object.query_submit_timeout)).unsigned = true; + else if (typeof object.query_submit_timeout === "string") + message.query_submit_timeout = parseInt(object.query_submit_timeout, 10); + else if (typeof object.query_submit_timeout === "number") + message.query_submit_timeout = object.query_submit_timeout; + else if (typeof object.query_submit_timeout === "object") + message.query_submit_timeout = new $util.LongBits(object.query_submit_timeout.low >>> 0, object.query_submit_timeout.high >>> 0).toNumber(true); + if (object.query_deposit) { + if (!Array.isArray(object.query_deposit)) + throw TypeError(".neutron.interchainqueries.Params.query_deposit: array expected"); + message.query_deposit = []; + for (var i = 0; i < object.query_deposit.length; ++i) { + if (typeof object.query_deposit[i] !== "object") + throw TypeError(".neutron.interchainqueries.Params.query_deposit: object expected"); + message.query_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.query_deposit[i]); + } } + if (object.tx_query_removal_limit != null) + if ($util.Long) + (message.tx_query_removal_limit = $util.Long.fromValue(object.tx_query_removal_limit)).unsigned = true; + else if (typeof object.tx_query_removal_limit === "string") + message.tx_query_removal_limit = parseInt(object.tx_query_removal_limit, 10); + else if (typeof object.tx_query_removal_limit === "number") + message.tx_query_removal_limit = object.tx_query_removal_limit; + else if (typeof object.tx_query_removal_limit === "object") + message.tx_query_removal_limit = new $util.LongBits(object.tx_query_removal_limit.low >>> 0, object.tx_query_removal_limit.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryRegisteredQueriesRequest 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 neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @static - * @param {neutron.interchainqueries.QueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest + * @param {neutron.interchainqueries.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryRegisteredQueriesRequest.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.owners = []; + object.query_deposit = []; if (options.defaults) { - object.connection_id = ""; - object.pagination = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_submit_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_submit_timeout = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.tx_query_removal_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tx_query_removal_limit = options.longs === String ? "0" : 0; } - if (message.owners && message.owners.length) { - object.owners = []; - for (var j = 0; j < message.owners.length; ++j) - object.owners[j] = message.owners[j]; + if (message.query_submit_timeout != null && message.hasOwnProperty("query_submit_timeout")) + if (typeof message.query_submit_timeout === "number") + object.query_submit_timeout = options.longs === String ? String(message.query_submit_timeout) : message.query_submit_timeout; + else + object.query_submit_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.query_submit_timeout) : options.longs === Number ? new $util.LongBits(message.query_submit_timeout.low >>> 0, message.query_submit_timeout.high >>> 0).toNumber(true) : message.query_submit_timeout; + if (message.query_deposit && message.query_deposit.length) { + object.query_deposit = []; + for (var j = 0; j < message.query_deposit.length; ++j) + object.query_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.query_deposit[j], options); } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.tx_query_removal_limit != null && message.hasOwnProperty("tx_query_removal_limit")) + if (typeof message.tx_query_removal_limit === "number") + object.tx_query_removal_limit = options.longs === String ? String(message.tx_query_removal_limit) : message.tx_query_removal_limit; + else + object.tx_query_removal_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_query_removal_limit) : options.longs === Number ? new $util.LongBits(message.tx_query_removal_limit.low >>> 0, message.tx_query_removal_limit.high >>> 0).toNumber(true) : message.tx_query_removal_limit; return object; }; /** - * Converts this QueryRegisteredQueriesRequest to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @memberof neutron.interchainqueries.Params * @instance * @returns {Object.} JSON object */ - QueryRegisteredQueriesRequest.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryRegisteredQueriesRequest; + return Params; })(); - interchainqueries.QueryRegisteredQueriesResponse = (function() { + interchainqueries.RegisteredQuery = (function() { /** - * Properties of a QueryRegisteredQueriesResponse. + * Properties of a RegisteredQuery. * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueriesResponse - * @property {Array.|null} [registered_queries] QueryRegisteredQueriesResponse registered_queries - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryRegisteredQueriesResponse pagination + * @interface IRegisteredQuery + * @property {Long|null} [id] RegisteredQuery id + * @property {string|null} [owner] RegisteredQuery owner + * @property {string|null} [query_type] RegisteredQuery query_type + * @property {Array.|null} [keys] RegisteredQuery keys + * @property {string|null} [transactions_filter] RegisteredQuery transactions_filter + * @property {string|null} [connection_id] RegisteredQuery connection_id + * @property {Long|null} [update_period] RegisteredQuery update_period + * @property {Long|null} [last_submitted_result_local_height] RegisteredQuery last_submitted_result_local_height + * @property {ibc.core.client.v1.IHeight|null} [last_submitted_result_remote_height] RegisteredQuery last_submitted_result_remote_height + * @property {Array.|null} [deposit] RegisteredQuery deposit + * @property {Long|null} [submit_timeout] RegisteredQuery submit_timeout + * @property {Long|null} [registered_at_height] RegisteredQuery registered_at_height */ /** - * Constructs a new QueryRegisteredQueriesResponse. + * Constructs a new RegisteredQuery. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueriesResponse. - * @implements IQueryRegisteredQueriesResponse + * @classdesc Represents a RegisteredQuery. + * @implements IRegisteredQuery * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IRegisteredQuery=} [properties] Properties to set */ - function QueryRegisteredQueriesResponse(properties) { - this.registered_queries = []; + function RegisteredQuery(properties) { + this.keys = []; + this.deposit = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12260,285 +12852,212 @@ } /** - * QueryRegisteredQueriesResponse registered_queries. - * @member {Array.} registered_queries - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse + * RegisteredQuery id. + * @member {Long} id + * @memberof neutron.interchainqueries.RegisteredQuery * @instance */ - QueryRegisteredQueriesResponse.prototype.registered_queries = $util.emptyArray; + RegisteredQuery.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryRegisteredQueriesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse + * RegisteredQuery owner. + * @member {string} owner + * @memberof neutron.interchainqueries.RegisteredQuery * @instance */ - QueryRegisteredQueriesResponse.prototype.pagination = null; - - /** - * Encodes the specified QueryRegisteredQueriesResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. - * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryRegisteredQueriesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.registered_queries != null && message.registered_queries.length) - for (var i = 0; i < message.registered_queries.length; ++i) - $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_queries[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; - }; + RegisteredQuery.prototype.owner = ""; /** - * Encodes the specified QueryRegisteredQueriesResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * RegisteredQuery query_type. + * @member {string} query_type + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + RegisteredQuery.prototype.query_type = ""; /** - * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * RegisteredQuery keys. + * @member {Array.} keys + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueriesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.registered_queries && message.registered_queries.length)) - message.registered_queries = []; - message.registered_queries.push($root.neutron.interchainqueries.RegisteredQuery.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; - } - } - return message; - }; + RegisteredQuery.prototype.keys = $util.emptyArray; /** - * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * RegisteredQuery transactions_filter. + * @member {string} transactions_filter + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + RegisteredQuery.prototype.transactions_filter = ""; /** - * Verifies a QueryRegisteredQueriesResponse message. - * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * RegisteredQuery connection_id. + * @member {string} connection_id + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.registered_queries != null && message.hasOwnProperty("registered_queries")) { - if (!Array.isArray(message.registered_queries)) - return "registered_queries: array expected"; - for (var i = 0; i < message.registered_queries.length; ++i) { - var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_queries[i]); - if (error) - return "registered_queries." + 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; - }; + RegisteredQuery.prototype.connection_id = ""; /** - * Creates a QueryRegisteredQueriesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse + * RegisteredQuery update_period. + * @member {Long} update_period + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueriesResponse) - return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueriesResponse(); - if (object.registered_queries) { - if (!Array.isArray(object.registered_queries)) - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.registered_queries: array expected"); - message.registered_queries = []; - for (var i = 0; i < object.registered_queries.length; ++i) { - if (typeof object.registered_queries[i] !== "object") - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.registered_queries: object expected"); - message.registered_queries[i] = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_queries[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - return message; - }; + RegisteredQuery.prototype.update_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a plain object from a QueryRegisteredQueriesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse - * @static - * @param {neutron.interchainqueries.QueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * RegisteredQuery last_submitted_result_local_height. + * @member {Long} last_submitted_result_local_height + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - QueryRegisteredQueriesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.registered_queries = []; - if (options.defaults) - object.pagination = null; - if (message.registered_queries && message.registered_queries.length) { - object.registered_queries = []; - for (var j = 0; j < message.registered_queries.length; ++j) - object.registered_queries[j] = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_queries[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - return object; - }; + RegisteredQuery.prototype.last_submitted_result_local_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Converts this QueryRegisteredQueriesResponse to JSON. - * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse + * RegisteredQuery last_submitted_result_remote_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} last_submitted_result_remote_height + * @memberof neutron.interchainqueries.RegisteredQuery * @instance - * @returns {Object.} JSON object */ - QueryRegisteredQueriesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryRegisteredQueriesResponse; - })(); - - interchainqueries.QueryRegisteredQueryRequest = (function() { + RegisteredQuery.prototype.last_submitted_result_remote_height = null; /** - * Properties of a QueryRegisteredQueryRequest. - * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueryRequest - * @property {Long|null} [query_id] QueryRegisteredQueryRequest query_id + * RegisteredQuery deposit. + * @member {Array.} deposit + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ + RegisteredQuery.prototype.deposit = $util.emptyArray; /** - * Constructs a new QueryRegisteredQueryRequest. - * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueryRequest. - * @implements IQueryRegisteredQueryRequest - * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest=} [properties] Properties to set + * RegisteredQuery submit_timeout. + * @member {Long} submit_timeout + * @memberof neutron.interchainqueries.RegisteredQuery + * @instance */ - function QueryRegisteredQueryRequest(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]]; - } + RegisteredQuery.prototype.submit_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryRegisteredQueryRequest query_id. - * @member {Long} query_id - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * RegisteredQuery registered_at_height. + * @member {Long} registered_at_height + * @memberof neutron.interchainqueries.RegisteredQuery * @instance */ - QueryRegisteredQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + RegisteredQuery.prototype.registered_at_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryRegisteredQueryRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * Encodes the specified RegisteredQuery message. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} message QueryRegisteredQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.IRegisteredQuery} message RegisteredQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryRequest.encode = function encode(message, writer) { + RegisteredQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.owner); + if (message.query_type != null && Object.hasOwnProperty.call(message, "query_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.query_type); + if (message.keys != null && message.keys.length) + for (var i = 0; i < message.keys.length; ++i) + $root.neutron.interchainqueries.KVKey.encode(message.keys[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.transactions_filter != null && Object.hasOwnProperty.call(message, "transactions_filter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.transactions_filter); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.connection_id); + if (message.update_period != null && Object.hasOwnProperty.call(message, "update_period")) + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.update_period); + if (message.last_submitted_result_local_height != null && Object.hasOwnProperty.call(message, "last_submitted_result_local_height")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.last_submitted_result_local_height); + if (message.last_submitted_result_remote_height != null && Object.hasOwnProperty.call(message, "last_submitted_result_remote_height")) + $root.ibc.core.client.v1.Height.encode(message.last_submitted_result_remote_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.deposit != null && message.deposit.length) + for (var i = 0; i < message.deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.deposit[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.submit_timeout != null && Object.hasOwnProperty.call(message, "submit_timeout")) + writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.submit_timeout); + if (message.registered_at_height != null && Object.hasOwnProperty.call(message, "registered_at_height")) + writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.registered_at_height); return writer; }; /** - * Encodes the specified QueryRegisteredQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * Encodes the specified RegisteredQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} message QueryRegisteredQueryRequest message or plain object to encode + * @param {neutron.interchainqueries.IRegisteredQuery} message RegisteredQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + RegisteredQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer. + * Decodes a RegisteredQuery message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryRequest.decode = function decode(reader, length) { + RegisteredQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.RegisteredQuery(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_id = reader.uint64(); + message.id = reader.uint64(); + break; + case 2: + message.owner = reader.string(); + break; + case 3: + message.query_type = reader.string(); + break; + case 4: + if (!(message.keys && message.keys.length)) + message.keys = []; + message.keys.push($root.neutron.interchainqueries.KVKey.decode(reader, reader.uint32())); + break; + case 5: + message.transactions_filter = reader.string(); + break; + case 6: + message.connection_id = reader.string(); + break; + case 7: + message.update_period = reader.uint64(); + break; + case 8: + message.last_submitted_result_local_height = reader.uint64(); + break; + case 9: + message.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 10: + if (!(message.deposit && message.deposit.length)) + message.deposit = []; + message.deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 11: + message.submit_timeout = reader.uint64(); + break; + case 12: + message.registered_at_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -12549,121 +13068,308 @@ }; /** - * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a RegisteredQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryRequest.decodeDelimited = function decodeDelimited(reader) { + RegisteredQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryRegisteredQueryRequest message. + * Verifies a RegisteredQuery message. * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryRegisteredQueryRequest.verify = function verify(message) { + RegisteredQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) - return "query_id: integer|Long expected"; - return null; - }; - - /** - * Creates a QueryRegisteredQueryRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + 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.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.query_type != null && message.hasOwnProperty("query_type")) + if (!$util.isString(message.query_type)) + return "query_type: string expected"; + if (message.keys != null && message.hasOwnProperty("keys")) { + if (!Array.isArray(message.keys)) + return "keys: array expected"; + for (var i = 0; i < message.keys.length; ++i) { + var error = $root.neutron.interchainqueries.KVKey.verify(message.keys[i]); + if (error) + return "keys." + error; + } + } + if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) + if (!$util.isString(message.transactions_filter)) + return "transactions_filter: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.update_period != null && message.hasOwnProperty("update_period")) + if (!$util.isInteger(message.update_period) && !(message.update_period && $util.isInteger(message.update_period.low) && $util.isInteger(message.update_period.high))) + return "update_period: integer|Long expected"; + if (message.last_submitted_result_local_height != null && message.hasOwnProperty("last_submitted_result_local_height")) + if (!$util.isInteger(message.last_submitted_result_local_height) && !(message.last_submitted_result_local_height && $util.isInteger(message.last_submitted_result_local_height.low) && $util.isInteger(message.last_submitted_result_local_height.high))) + return "last_submitted_result_local_height: integer|Long expected"; + if (message.last_submitted_result_remote_height != null && message.hasOwnProperty("last_submitted_result_remote_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.last_submitted_result_remote_height); + if (error) + return "last_submitted_result_remote_height." + error; + } + if (message.deposit != null && message.hasOwnProperty("deposit")) { + if (!Array.isArray(message.deposit)) + return "deposit: array expected"; + for (var i = 0; i < message.deposit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.deposit[i]); + if (error) + return "deposit." + error; + } + } + if (message.submit_timeout != null && message.hasOwnProperty("submit_timeout")) + if (!$util.isInteger(message.submit_timeout) && !(message.submit_timeout && $util.isInteger(message.submit_timeout.low) && $util.isInteger(message.submit_timeout.high))) + return "submit_timeout: integer|Long expected"; + if (message.registered_at_height != null && message.hasOwnProperty("registered_at_height")) + if (!$util.isInteger(message.registered_at_height) && !(message.registered_at_height && $util.isInteger(message.registered_at_height.low) && $util.isInteger(message.registered_at_height.high))) + return "registered_at_height: integer|Long expected"; + return null; + }; + + /** + * Creates a RegisteredQuery message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.RegisteredQuery + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.RegisteredQuery} RegisteredQuery */ - QueryRegisteredQueryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryRequest) + RegisteredQuery.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.RegisteredQuery) return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueryRequest(); - if (object.query_id != null) + var message = new $root.neutron.interchainqueries.RegisteredQuery(); + if (object.id != null) if ($util.Long) - (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; - else if (typeof object.query_id === "string") - message.query_id = parseInt(object.query_id, 10); - else if (typeof object.query_id === "number") - message.query_id = object.query_id; - else if (typeof object.query_id === "object") - message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + (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.owner != null) + message.owner = String(object.owner); + if (object.query_type != null) + message.query_type = String(object.query_type); + if (object.keys) { + if (!Array.isArray(object.keys)) + throw TypeError(".neutron.interchainqueries.RegisteredQuery.keys: array expected"); + message.keys = []; + for (var i = 0; i < object.keys.length; ++i) { + if (typeof object.keys[i] !== "object") + throw TypeError(".neutron.interchainqueries.RegisteredQuery.keys: object expected"); + message.keys[i] = $root.neutron.interchainqueries.KVKey.fromObject(object.keys[i]); + } + } + if (object.transactions_filter != null) + message.transactions_filter = String(object.transactions_filter); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.update_period != null) + if ($util.Long) + (message.update_period = $util.Long.fromValue(object.update_period)).unsigned = true; + else if (typeof object.update_period === "string") + message.update_period = parseInt(object.update_period, 10); + else if (typeof object.update_period === "number") + message.update_period = object.update_period; + else if (typeof object.update_period === "object") + message.update_period = new $util.LongBits(object.update_period.low >>> 0, object.update_period.high >>> 0).toNumber(true); + if (object.last_submitted_result_local_height != null) + if ($util.Long) + (message.last_submitted_result_local_height = $util.Long.fromValue(object.last_submitted_result_local_height)).unsigned = true; + else if (typeof object.last_submitted_result_local_height === "string") + message.last_submitted_result_local_height = parseInt(object.last_submitted_result_local_height, 10); + else if (typeof object.last_submitted_result_local_height === "number") + message.last_submitted_result_local_height = object.last_submitted_result_local_height; + else if (typeof object.last_submitted_result_local_height === "object") + message.last_submitted_result_local_height = new $util.LongBits(object.last_submitted_result_local_height.low >>> 0, object.last_submitted_result_local_height.high >>> 0).toNumber(true); + if (object.last_submitted_result_remote_height != null) { + if (typeof object.last_submitted_result_remote_height !== "object") + throw TypeError(".neutron.interchainqueries.RegisteredQuery.last_submitted_result_remote_height: object expected"); + message.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.fromObject(object.last_submitted_result_remote_height); + } + if (object.deposit) { + if (!Array.isArray(object.deposit)) + throw TypeError(".neutron.interchainqueries.RegisteredQuery.deposit: array expected"); + message.deposit = []; + for (var i = 0; i < object.deposit.length; ++i) { + if (typeof object.deposit[i] !== "object") + throw TypeError(".neutron.interchainqueries.RegisteredQuery.deposit: object expected"); + message.deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.deposit[i]); + } + } + if (object.submit_timeout != null) + if ($util.Long) + (message.submit_timeout = $util.Long.fromValue(object.submit_timeout)).unsigned = true; + else if (typeof object.submit_timeout === "string") + message.submit_timeout = parseInt(object.submit_timeout, 10); + else if (typeof object.submit_timeout === "number") + message.submit_timeout = object.submit_timeout; + else if (typeof object.submit_timeout === "object") + message.submit_timeout = new $util.LongBits(object.submit_timeout.low >>> 0, object.submit_timeout.high >>> 0).toNumber(true); + if (object.registered_at_height != null) + if ($util.Long) + (message.registered_at_height = $util.Long.fromValue(object.registered_at_height)).unsigned = true; + else if (typeof object.registered_at_height === "string") + message.registered_at_height = parseInt(object.registered_at_height, 10); + else if (typeof object.registered_at_height === "number") + message.registered_at_height = object.registered_at_height; + else if (typeof object.registered_at_height === "object") + message.registered_at_height = new $util.LongBits(object.registered_at_height.low >>> 0, object.registered_at_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryRegisteredQueryRequest message. Also converts values to other types if specified. + * Creates a plain object from a RegisteredQuery message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @static - * @param {neutron.interchainqueries.QueryRegisteredQueryRequest} message QueryRegisteredQueryRequest + * @param {neutron.interchainqueries.RegisteredQuery} message RegisteredQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryRegisteredQueryRequest.toObject = function toObject(message, options) { + RegisteredQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) { + object.keys = []; + object.deposit = []; + } + if (options.defaults) { if ($util.Long) { var long = new $util.Long(0, 0, true); - object.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.query_id = options.longs === String ? "0" : 0; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (typeof message.query_id === "number") - object.query_id = options.longs === String ? String(message.query_id) : message.query_id; + object.id = options.longs === String ? "0" : 0; + object.owner = ""; + object.query_type = ""; + object.transactions_filter = ""; + object.connection_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.update_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.update_period = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.last_submitted_result_local_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.last_submitted_result_local_height = options.longs === String ? "0" : 0; + object.last_submitted_result_remote_height = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.submit_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.submit_timeout = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.registered_at_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.registered_at_height = options.longs === String ? "0" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; else - object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + 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.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.query_type != null && message.hasOwnProperty("query_type")) + object.query_type = message.query_type; + if (message.keys && message.keys.length) { + object.keys = []; + for (var j = 0; j < message.keys.length; ++j) + object.keys[j] = $root.neutron.interchainqueries.KVKey.toObject(message.keys[j], options); + } + if (message.transactions_filter != null && message.hasOwnProperty("transactions_filter")) + object.transactions_filter = message.transactions_filter; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.update_period != null && message.hasOwnProperty("update_period")) + if (typeof message.update_period === "number") + object.update_period = options.longs === String ? String(message.update_period) : message.update_period; + else + object.update_period = options.longs === String ? $util.Long.prototype.toString.call(message.update_period) : options.longs === Number ? new $util.LongBits(message.update_period.low >>> 0, message.update_period.high >>> 0).toNumber(true) : message.update_period; + if (message.last_submitted_result_local_height != null && message.hasOwnProperty("last_submitted_result_local_height")) + if (typeof message.last_submitted_result_local_height === "number") + object.last_submitted_result_local_height = options.longs === String ? String(message.last_submitted_result_local_height) : message.last_submitted_result_local_height; + else + object.last_submitted_result_local_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_submitted_result_local_height) : options.longs === Number ? new $util.LongBits(message.last_submitted_result_local_height.low >>> 0, message.last_submitted_result_local_height.high >>> 0).toNumber(true) : message.last_submitted_result_local_height; + if (message.last_submitted_result_remote_height != null && message.hasOwnProperty("last_submitted_result_remote_height")) + object.last_submitted_result_remote_height = $root.ibc.core.client.v1.Height.toObject(message.last_submitted_result_remote_height, options); + if (message.deposit && message.deposit.length) { + object.deposit = []; + for (var j = 0; j < message.deposit.length; ++j) + object.deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.deposit[j], options); + } + if (message.submit_timeout != null && message.hasOwnProperty("submit_timeout")) + if (typeof message.submit_timeout === "number") + object.submit_timeout = options.longs === String ? String(message.submit_timeout) : message.submit_timeout; + else + object.submit_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.submit_timeout) : options.longs === Number ? new $util.LongBits(message.submit_timeout.low >>> 0, message.submit_timeout.high >>> 0).toNumber(true) : message.submit_timeout; + if (message.registered_at_height != null && message.hasOwnProperty("registered_at_height")) + if (typeof message.registered_at_height === "number") + object.registered_at_height = options.longs === String ? String(message.registered_at_height) : message.registered_at_height; + else + object.registered_at_height = options.longs === String ? $util.Long.prototype.toString.call(message.registered_at_height) : options.longs === Number ? new $util.LongBits(message.registered_at_height.low >>> 0, message.registered_at_height.high >>> 0).toNumber(true) : message.registered_at_height; return object; }; /** - * Converts this QueryRegisteredQueryRequest to JSON. + * Converts this RegisteredQuery to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @memberof neutron.interchainqueries.RegisteredQuery * @instance * @returns {Object.} JSON object */ - QueryRegisteredQueryRequest.prototype.toJSON = function toJSON() { + RegisteredQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryRegisteredQueryRequest; + return RegisteredQuery; })(); - interchainqueries.QueryRegisteredQueryResponse = (function() { + interchainqueries.KVKey = (function() { /** - * Properties of a QueryRegisteredQueryResponse. + * Properties of a KVKey. * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueryResponse - * @property {neutron.interchainqueries.IRegisteredQuery|null} [registered_query] QueryRegisteredQueryResponse registered_query + * @interface IKVKey + * @property {string|null} [path] KVKey path + * @property {Uint8Array|null} [key] KVKey key */ /** - * Constructs a new QueryRegisteredQueryResponse. + * Constructs a new KVKey. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueryResponse. - * @implements IQueryRegisteredQueryResponse + * @classdesc Represents a KVKey. + * @implements IKVKey * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IKVKey=} [properties] Properties to set */ - function QueryRegisteredQueryResponse(properties) { + function KVKey(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12671,63 +13377,76 @@ } /** - * QueryRegisteredQueryResponse registered_query. - * @member {neutron.interchainqueries.IRegisteredQuery|null|undefined} registered_query - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * KVKey path. + * @member {string} path + * @memberof neutron.interchainqueries.KVKey * @instance */ - QueryRegisteredQueryResponse.prototype.registered_query = null; + KVKey.prototype.path = ""; /** - * Encodes the specified QueryRegisteredQueryResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * KVKey key. + * @member {Uint8Array} key + * @memberof neutron.interchainqueries.KVKey + * @instance + */ + KVKey.prototype.key = $util.newBuffer([]); + + /** + * Encodes the specified KVKey message. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse} message QueryRegisteredQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IKVKey} message KVKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResponse.encode = function encode(message, writer) { + KVKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.registered_query != null && Object.hasOwnProperty.call(message, "registered_query")) - $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_query, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); return writer; }; /** - * Encodes the specified QueryRegisteredQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * Encodes the specified KVKey message, length delimited. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse} message QueryRegisteredQueryResponse message or plain object to encode + * @param {neutron.interchainqueries.IKVKey} message KVKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + KVKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer. + * Decodes a KVKey message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + * @returns {neutron.interchainqueries.KVKey} KVKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResponse.decode = function decode(reader, length) { + KVKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.KVKey(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.registered_query = $root.neutron.interchainqueries.RegisteredQuery.decode(reader, reader.uint32()); + message.path = reader.string(); + break; + case 2: + message.key = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -12738,112 +13457,127 @@ }; /** - * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a KVKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + * @returns {neutron.interchainqueries.KVKey} KVKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResponse.decodeDelimited = function decodeDelimited(reader) { + KVKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryRegisteredQueryResponse message. + * Verifies a KVKey message. * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryRegisteredQueryResponse.verify = function verify(message) { + KVKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.registered_query != null && message.hasOwnProperty("registered_query")) { - var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_query); - if (error) - return "registered_query." + error; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: 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"; return null; }; /** - * Creates a QueryRegisteredQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a KVKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + * @returns {neutron.interchainqueries.KVKey} KVKey */ - QueryRegisteredQueryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResponse) + KVKey.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.KVKey) return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResponse(); - if (object.registered_query != null) { - if (typeof object.registered_query !== "object") - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueryResponse.registered_query: object expected"); - message.registered_query = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_query); - } + var message = new $root.neutron.interchainqueries.KVKey(); + if (object.path != null) + message.path = String(object.path); + 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; return message; }; /** - * Creates a plain object from a QueryRegisteredQueryResponse message. Also converts values to other types if specified. + * Creates a plain object from a KVKey message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @static - * @param {neutron.interchainqueries.QueryRegisteredQueryResponse} message QueryRegisteredQueryResponse + * @param {neutron.interchainqueries.KVKey} message KVKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryRegisteredQueryResponse.toObject = function toObject(message, options) { + KVKey.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.registered_query = null; - if (message.registered_query != null && message.hasOwnProperty("registered_query")) - object.registered_query = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_query, options); + if (options.defaults) { + object.path = ""; + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + } + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + 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; return object; }; /** - * Converts this QueryRegisteredQueryResponse to JSON. + * Converts this KVKey to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @memberof neutron.interchainqueries.KVKey * @instance * @returns {Object.} JSON object */ - QueryRegisteredQueryResponse.prototype.toJSON = function toJSON() { + KVKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryRegisteredQueryResponse; + return KVKey; })(); - interchainqueries.QueryRegisteredQueryResultRequest = (function() { + interchainqueries.GenesisState = (function() { /** - * Properties of a QueryRegisteredQueryResultRequest. + * Properties of a GenesisState. * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueryResultRequest - * @property {Long|null} [query_id] QueryRegisteredQueryResultRequest query_id + * @interface IGenesisState + * @property {neutron.interchainqueries.IParams|null} [params] GenesisState params + * @property {Array.|null} [registered_queries] GenesisState registered_queries */ /** - * Constructs a new QueryRegisteredQueryResultRequest. + * Constructs a new GenesisState. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueryResultRequest. - * @implements IQueryRegisteredQueryResultRequest + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest=} [properties] Properties to set + * @param {neutron.interchainqueries.IGenesisState=} [properties] Properties to set */ - function QueryRegisteredQueryResultRequest(properties) { + function GenesisState(properties) { + this.registered_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12851,63 +13585,79 @@ } /** - * QueryRegisteredQueryResultRequest query_id. - * @member {Long} query_id - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * GenesisState params. + * @member {neutron.interchainqueries.IParams|null|undefined} params + * @memberof neutron.interchainqueries.GenesisState * @instance */ - QueryRegisteredQueryResultRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GenesisState.prototype.params = null; /** - * Encodes the specified QueryRegisteredQueryResultRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * GenesisState registered_queries. + * @member {Array.} registered_queries + * @memberof neutron.interchainqueries.GenesisState + * @instance + */ + GenesisState.prototype.registered_queries = $util.emptyArray; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest message or plain object to encode + * @param {neutron.interchainqueries.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResultRequest.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.interchainqueries.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.registered_queries != null && message.registered_queries.length) + for (var i = 0; i < message.registered_queries.length; ++i) + $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_queries[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryRegisteredQueryResultRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest message or plain object to encode + * @param {neutron.interchainqueries.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest + * @returns {neutron.interchainqueries.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResultRequest.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.neutron.interchainqueries.QueryRegisteredQueryResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query_id = reader.uint64(); + message.params = $root.neutron.interchainqueries.Params.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.registered_queries && message.registered_queries.length)) + message.registered_queries = []; + message.registered_queries.push($root.neutron.interchainqueries.RegisteredQuery.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12918,121 +13668,323 @@ }; /** - * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest + * @returns {neutron.interchainqueries.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResultRequest.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 QueryRegisteredQueryResultRequest message. + * Verifies a GenesisState message. * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryRegisteredQueryResultRequest.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) - return "query_id: integer|Long expected"; - return null; - }; - - /** - * Creates a QueryRegisteredQueryResultRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest - */ - QueryRegisteredQueryResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest) + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.interchainqueries.Params.verify(message.params); + if (error) + return "params." + error; + } + if (message.registered_queries != null && message.hasOwnProperty("registered_queries")) { + if (!Array.isArray(message.registered_queries)) + return "registered_queries: array expected"; + for (var i = 0; i < message.registered_queries.length; ++i) { + var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_queries[i]); + if (error) + return "registered_queries." + error; + } + } + return null; + }; + + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.GenesisState) return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest(); - if (object.query_id != null) - if ($util.Long) - (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; - else if (typeof object.query_id === "string") - message.query_id = parseInt(object.query_id, 10); - else if (typeof object.query_id === "number") - message.query_id = object.query_id; - else if (typeof object.query_id === "object") - message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + var message = new $root.neutron.interchainqueries.GenesisState(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchainqueries.GenesisState.params: object expected"); + message.params = $root.neutron.interchainqueries.Params.fromObject(object.params); + } + if (object.registered_queries) { + if (!Array.isArray(object.registered_queries)) + throw TypeError(".neutron.interchainqueries.GenesisState.registered_queries: array expected"); + message.registered_queries = []; + for (var i = 0; i < object.registered_queries.length; ++i) { + if (typeof object.registered_queries[i] !== "object") + throw TypeError(".neutron.interchainqueries.GenesisState.registered_queries: object expected"); + message.registered_queries[i] = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_queries[i]); + } + } return message; }; /** - * Creates a plain object from a QueryRegisteredQueryResultRequest 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 neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @static - * @param {neutron.interchainqueries.QueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest + * @param {neutron.interchainqueries.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryRegisteredQueryResultRequest.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.registered_queries = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_id = options.longs === String ? "0" : 0; - if (message.query_id != null && message.hasOwnProperty("query_id")) - if (typeof message.query_id === "number") - object.query_id = options.longs === String ? String(message.query_id) : message.query_id; - else - object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.interchainqueries.Params.toObject(message.params, options); + if (message.registered_queries && message.registered_queries.length) { + object.registered_queries = []; + for (var j = 0; j < message.registered_queries.length; ++j) + object.registered_queries[j] = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_queries[j], options); + } return object; }; /** - * Converts this QueryRegisteredQueryResultRequest to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @memberof neutron.interchainqueries.GenesisState * @instance * @returns {Object.} JSON object */ - QueryRegisteredQueryResultRequest.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryRegisteredQueryResultRequest; + return GenesisState; })(); - interchainqueries.QueryRegisteredQueryResultResponse = (function() { + interchainqueries.Query = (function() { /** - * Properties of a QueryRegisteredQueryResultResponse. + * Constructs a new Query service. * @memberof neutron.interchainqueries - * @interface IQueryRegisteredQueryResultResponse - * @property {neutron.interchainqueries.IQueryResult|null} [result] QueryRegisteredQueryResultResponse result + * @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 QueryRegisteredQueryResultResponse. + * Callback as used by {@link neutron.interchainqueries.Query#params}. + * @memberof neutron.interchainqueries.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.QueryParamsResponse} [response] QueryParamsResponse + */ + + /** + * Calls Params. + * @function params + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.interchainqueries.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.neutron.interchainqueries.QueryParamsRequest, $root.neutron.interchainqueries.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); + + /** + * Calls Params. + * @function params + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Query#registeredQueries}. + * @memberof neutron.interchainqueries.Query + * @typedef RegisteredQueriesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.QueryRegisteredQueriesResponse} [response] QueryRegisteredQueriesResponse + */ + + /** + * Calls RegisteredQueries. + * @function registeredQueries + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} request QueryRegisteredQueriesRequest message or plain object + * @param {neutron.interchainqueries.Query.RegisteredQueriesCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueriesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.registeredQueries = function registeredQueries(request, callback) { + return this.rpcCall(registeredQueries, $root.neutron.interchainqueries.QueryRegisteredQueriesRequest, $root.neutron.interchainqueries.QueryRegisteredQueriesResponse, request, callback); + }, "name", { value: "RegisteredQueries" }); + + /** + * Calls RegisteredQueries. + * @function registeredQueries + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} request QueryRegisteredQueriesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Query#registeredQuery}. + * @memberof neutron.interchainqueries.Query + * @typedef RegisteredQueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.QueryRegisteredQueryResponse} [response] QueryRegisteredQueryResponse + */ + + /** + * Calls RegisteredQuery. + * @function registeredQuery + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} request QueryRegisteredQueryRequest message or plain object + * @param {neutron.interchainqueries.Query.RegisteredQueryCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.registeredQuery = function registeredQuery(request, callback) { + return this.rpcCall(registeredQuery, $root.neutron.interchainqueries.QueryRegisteredQueryRequest, $root.neutron.interchainqueries.QueryRegisteredQueryResponse, request, callback); + }, "name", { value: "RegisteredQuery" }); + + /** + * Calls RegisteredQuery. + * @function registeredQuery + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} request QueryRegisteredQueryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Query#queryResult}. + * @memberof neutron.interchainqueries.Query + * @typedef QueryResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.QueryRegisteredQueryResultResponse} [response] QueryRegisteredQueryResultResponse + */ + + /** + * Calls QueryResult. + * @function queryResult + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} request QueryRegisteredQueryResultRequest message or plain object + * @param {neutron.interchainqueries.Query.QueryResultCallback} callback Node-style callback called with the error, if any, and QueryRegisteredQueryResultResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.queryResult = function queryResult(request, callback) { + return this.rpcCall(queryResult, $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest, $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse, request, callback); + }, "name", { value: "QueryResult" }); + + /** + * Calls QueryResult. + * @function queryResult + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} request QueryRegisteredQueryResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.interchainqueries.Query#lastRemoteHeight}. + * @memberof neutron.interchainqueries.Query + * @typedef LastRemoteHeightCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchainqueries.QueryLastRemoteHeightResponse} [response] QueryLastRemoteHeightResponse + */ + + /** + * Calls LastRemoteHeight. + * @function lastRemoteHeight + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryLastRemoteHeight} request QueryLastRemoteHeight message or plain object + * @param {neutron.interchainqueries.Query.LastRemoteHeightCallback} callback Node-style callback called with the error, if any, and QueryLastRemoteHeightResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.lastRemoteHeight = function lastRemoteHeight(request, callback) { + return this.rpcCall(lastRemoteHeight, $root.neutron.interchainqueries.QueryLastRemoteHeight, $root.neutron.interchainqueries.QueryLastRemoteHeightResponse, request, callback); + }, "name", { value: "LastRemoteHeight" }); + + /** + * Calls LastRemoteHeight. + * @function lastRemoteHeight + * @memberof neutron.interchainqueries.Query + * @instance + * @param {neutron.interchainqueries.IQueryLastRemoteHeight} request QueryLastRemoteHeight message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + interchainqueries.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryRegisteredQueryResultResponse. - * @implements IQueryRegisteredQueryResultResponse + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest * @constructor - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryParamsRequest=} [properties] Properties to set */ - function QueryRegisteredQueryResultResponse(properties) { + function QueryParamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13040,64 +13992,51 @@ } /** - * QueryRegisteredQueryResultResponse result. - * @member {neutron.interchainqueries.IQueryResult|null|undefined} result - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse - * @instance - */ - QueryRegisteredQueryResultResponse.prototype.result = null; - - /** - * Encodes the specified QueryRegisteredQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResultResponse.encode = function encode(message, writer) { + QueryParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.neutron.interchainqueries.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryRegisteredQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static - * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryRegisteredQueryResultResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer. + * Decodes a QueryParamsRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResultResponse.decode = function decode(reader, length) { + 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.neutron.interchainqueries.QueryRegisteredQueryResultResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = $root.neutron.interchainqueries.QueryResult.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -13107,114 +14046,94 @@ }; /** - * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryRegisteredQueryResultResponse.decodeDelimited = function decodeDelimited(reader) { + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryRegisteredQueryResultResponse message. + * Verifies a QueryParamsRequest message. * @function verify - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryRegisteredQueryResultResponse.verify = function verify(message) { + QueryParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.neutron.interchainqueries.QueryResult.verify(message.result); - if (error) - return "result." + error; - } return null; }; /** - * Creates a QueryRegisteredQueryResultResponse 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. * @function fromObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + * @returns {neutron.interchainqueries.QueryParamsRequest} QueryParamsRequest */ - QueryRegisteredQueryResultResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse) + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryParamsRequest) return object; - var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".neutron.interchainqueries.QueryRegisteredQueryResultResponse.result: object expected"); - message.result = $root.neutron.interchainqueries.QueryResult.fromObject(object.result); - } - return message; + return new $root.neutron.interchainqueries.QueryParamsRequest(); }; /** - * Creates a plain object from a QueryRegisteredQueryResultResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @static - * @param {neutron.interchainqueries.QueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse + * @param {neutron.interchainqueries.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryRegisteredQueryResultResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.neutron.interchainqueries.QueryResult.toObject(message.result, options); - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this QueryRegisteredQueryResultResponse to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @memberof neutron.interchainqueries.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - QueryRegisteredQueryResultResponse.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryRegisteredQueryResultResponse; + return QueryParamsRequest; })(); - interchainqueries.Transaction = (function() { + interchainqueries.QueryParamsResponse = (function() { /** - * Properties of a Transaction. + * Properties of a QueryParamsResponse. * @memberof neutron.interchainqueries - * @interface ITransaction - * @property {Long|null} [id] Transaction id - * @property {Long|null} [height] Transaction height - * @property {Uint8Array|null} [data] Transaction data + * @interface IQueryParamsResponse + * @property {neutron.interchainqueries.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new Transaction. + * Constructs a new QueryParamsResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a Transaction. - * @implements ITransaction + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {neutron.interchainqueries.ITransaction=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryParamsResponse=} [properties] Properties to set */ - function Transaction(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13222,89 +14141,63 @@ } /** - * Transaction id. - * @member {Long} id - * @memberof neutron.interchainqueries.Transaction - * @instance - */ - Transaction.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Transaction height. - * @member {Long} height - * @memberof neutron.interchainqueries.Transaction - * @instance - */ - Transaction.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Transaction data. - * @member {Uint8Array} data - * @memberof neutron.interchainqueries.Transaction + * QueryParamsResponse params. + * @member {neutron.interchainqueries.IParams|null|undefined} params + * @memberof neutron.interchainqueries.QueryParamsResponse * @instance */ - Transaction.prototype.data = $util.newBuffer([]); + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified Transaction message. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static - * @param {neutron.interchainqueries.ITransaction} message Transaction message or plain object to encode + * @param {neutron.interchainqueries.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Transaction.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.height); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.interchainqueries.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Transaction message, length delimited. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static - * @param {neutron.interchainqueries.ITransaction} message Transaction message or plain object to encode + * @param {neutron.interchainqueries.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Transaction.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Transaction message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.Transaction} Transaction + * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Transaction.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.neutron.interchainqueries.Transaction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.uint64(); - break; - case 2: - message.height = reader.uint64(); - break; - case 3: - message.data = reader.bytes(); + message.params = $root.neutron.interchainqueries.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13315,161 +14208,115 @@ }; /** - * Decodes a Transaction message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.Transaction} Transaction + * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Transaction.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 Transaction message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Transaction.verify = function verify(message) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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.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.neutron.interchainqueries.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a Transaction 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 neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.Transaction} Transaction + * @returns {neutron.interchainqueries.QueryParamsResponse} QueryParamsResponse */ - Transaction.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.Transaction) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryParamsResponse) return object; - var message = new $root.neutron.interchainqueries.Transaction(); - 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.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = true; - 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(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.neutron.interchainqueries.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchainqueries.QueryParamsResponse.params: object expected"); + message.params = $root.neutron.interchainqueries.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a Transaction 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 neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @static - * @param {neutron.interchainqueries.Transaction} message Transaction + * @param {neutron.interchainqueries.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Transaction.toObject = function toObject(message, options) { + QueryParamsResponse.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.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = 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.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.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(true) : message.height; - 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.neutron.interchainqueries.Params.toObject(message.params, options); return object; }; /** - * Converts this Transaction to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.Transaction + * @memberof neutron.interchainqueries.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - Transaction.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Transaction; + return QueryParamsResponse; })(); - interchainqueries.QueryLastRemoteHeight = (function() { + interchainqueries.QueryRegisteredQueriesRequest = (function() { /** - * Properties of a QueryLastRemoteHeight. + * Properties of a QueryRegisteredQueriesRequest. * @memberof neutron.interchainqueries - * @interface IQueryLastRemoteHeight - * @property {string|null} [connection_id] QueryLastRemoteHeight connection_id + * @interface IQueryRegisteredQueriesRequest + * @property {Array.|null} [owners] QueryRegisteredQueriesRequest owners + * @property {string|null} [connection_id] QueryRegisteredQueriesRequest connection_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryRegisteredQueriesRequest pagination */ /** - * Constructs a new QueryLastRemoteHeight. + * Constructs a new QueryRegisteredQueriesRequest. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryLastRemoteHeight. - * @implements IQueryLastRemoteHeight + * @classdesc Represents a QueryRegisteredQueriesRequest. + * @implements IQueryRegisteredQueriesRequest * @constructor - * @param {neutron.interchainqueries.IQueryLastRemoteHeight=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest=} [properties] Properties to set */ - function QueryLastRemoteHeight(properties) { + function QueryRegisteredQueriesRequest(properties) { + this.owners = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13477,64 +14324,93 @@ } /** - * QueryLastRemoteHeight connection_id. + * QueryRegisteredQueriesRequest owners. + * @member {Array.} owners + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @instance + */ + QueryRegisteredQueriesRequest.prototype.owners = $util.emptyArray; + + /** + * QueryRegisteredQueriesRequest connection_id. * @member {string} connection_id - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @instance */ - QueryLastRemoteHeight.prototype.connection_id = ""; + QueryRegisteredQueriesRequest.prototype.connection_id = ""; /** - * Encodes the specified QueryLastRemoteHeight message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. + * QueryRegisteredQueriesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest + * @instance + */ + QueryRegisteredQueriesRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryRegisteredQueriesRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static - * @param {neutron.interchainqueries.IQueryLastRemoteHeight} message QueryLastRemoteHeight message or plain object to encode + * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryLastRemoteHeight.encode = function encode(message, writer) { + QueryRegisteredQueriesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.owners != null && message.owners.length) + for (var i = 0; i < message.owners.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owners[i]); if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_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 QueryLastRemoteHeight message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. + * Encodes the specified QueryRegisteredQueriesRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static - * @param {neutron.interchainqueries.IQueryLastRemoteHeight} message QueryLastRemoteHeight message or plain object to encode + * @param {neutron.interchainqueries.IQueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryLastRemoteHeight.encodeDelimited = function encodeDelimited(message, writer) { + QueryRegisteredQueriesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryLastRemoteHeight message from the specified reader or buffer. + * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight + * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryLastRemoteHeight.decode = function decode(reader, length) { + QueryRegisteredQueriesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryLastRemoteHeight(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueriesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: + if (!(message.owners && message.owners.length)) + message.owners = []; + message.owners.push(reader.string()); + break; + case 2: message.connection_id = reader.string(); break; + case 3: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -13544,107 +14420,144 @@ }; /** - * Decodes a QueryLastRemoteHeight message from the specified reader or buffer, length delimited. + * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight + * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryLastRemoteHeight.decodeDelimited = function decodeDelimited(reader) { + QueryRegisteredQueriesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryLastRemoteHeight message. + * Verifies a QueryRegisteredQueriesRequest message. * @function verify - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryLastRemoteHeight.verify = function verify(message) { + QueryRegisteredQueriesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.owners != null && message.hasOwnProperty("owners")) { + if (!Array.isArray(message.owners)) + return "owners: array expected"; + for (var i = 0; i < message.owners.length; ++i) + if (!$util.isString(message.owners[i])) + return "owners: string[] expected"; + } if (message.connection_id != null && message.hasOwnProperty("connection_id")) if (!$util.isString(message.connection_id)) return "connection_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 QueryLastRemoteHeight message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRegisteredQueriesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight + * @returns {neutron.interchainqueries.QueryRegisteredQueriesRequest} QueryRegisteredQueriesRequest */ - QueryLastRemoteHeight.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryLastRemoteHeight) + QueryRegisteredQueriesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueriesRequest) return object; - var message = new $root.neutron.interchainqueries.QueryLastRemoteHeight(); + var message = new $root.neutron.interchainqueries.QueryRegisteredQueriesRequest(); + if (object.owners) { + if (!Array.isArray(object.owners)) + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesRequest.owners: array expected"); + message.owners = []; + for (var i = 0; i < object.owners.length; ++i) + message.owners[i] = String(object.owners[i]); + } if (object.connection_id != null) message.connection_id = String(object.connection_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a QueryLastRemoteHeight message. Also converts values to other types if specified. + * Creates a plain object from a QueryRegisteredQueriesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @static - * @param {neutron.interchainqueries.QueryLastRemoteHeight} message QueryLastRemoteHeight + * @param {neutron.interchainqueries.QueryRegisteredQueriesRequest} message QueryRegisteredQueriesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryLastRemoteHeight.toObject = function toObject(message, options) { + QueryRegisteredQueriesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.owners = []; + if (options.defaults) { object.connection_id = ""; + object.pagination = null; + } + if (message.owners && message.owners.length) { + object.owners = []; + for (var j = 0; j < message.owners.length; ++j) + object.owners[j] = message.owners[j]; + } if (message.connection_id != null && message.hasOwnProperty("connection_id")) object.connection_id = message.connection_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryLastRemoteHeight to JSON. + * Converts this QueryRegisteredQueriesRequest to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @memberof neutron.interchainqueries.QueryRegisteredQueriesRequest * @instance * @returns {Object.} JSON object */ - QueryLastRemoteHeight.prototype.toJSON = function toJSON() { + QueryRegisteredQueriesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryLastRemoteHeight; + return QueryRegisteredQueriesRequest; })(); - interchainqueries.QueryLastRemoteHeightResponse = (function() { + interchainqueries.QueryRegisteredQueriesResponse = (function() { /** - * Properties of a QueryLastRemoteHeightResponse. + * Properties of a QueryRegisteredQueriesResponse. * @memberof neutron.interchainqueries - * @interface IQueryLastRemoteHeightResponse - * @property {Long|null} [height] QueryLastRemoteHeightResponse height + * @interface IQueryRegisteredQueriesResponse + * @property {Array.|null} [registered_queries] QueryRegisteredQueriesResponse registered_queries + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryRegisteredQueriesResponse pagination */ /** - * Constructs a new QueryLastRemoteHeightResponse. + * Constructs a new QueryRegisteredQueriesResponse. * @memberof neutron.interchainqueries - * @classdesc Represents a QueryLastRemoteHeightResponse. - * @implements IQueryLastRemoteHeightResponse + * @classdesc Represents a QueryRegisteredQueriesResponse. + * @implements IQueryRegisteredQueriesResponse * @constructor - * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse=} [properties] Properties to set */ - function QueryLastRemoteHeightResponse(properties) { + function QueryRegisteredQueriesResponse(properties) { + this.registered_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13652,63 +14565,79 @@ } /** - * QueryLastRemoteHeightResponse height. - * @member {Long} height - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * QueryRegisteredQueriesResponse registered_queries. + * @member {Array.} registered_queries + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @instance */ - QueryLastRemoteHeightResponse.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryRegisteredQueriesResponse.prototype.registered_queries = $util.emptyArray; /** - * Encodes the specified QueryLastRemoteHeightResponse message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. + * QueryRegisteredQueriesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse + * @instance + */ + QueryRegisteredQueriesResponse.prototype.pagination = null; + + /** + * Encodes the specified QueryRegisteredQueriesResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static - * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryLastRemoteHeightResponse.encode = function encode(message, writer) { + QueryRegisteredQueriesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); + if (message.registered_queries != null && message.registered_queries.length) + for (var i = 0; i < message.registered_queries.length; ++i) + $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_queries[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 QueryLastRemoteHeightResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. + * Encodes the specified QueryRegisteredQueriesResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static - * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryLastRemoteHeightResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryRegisteredQueriesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer. + * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse + * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryLastRemoteHeightResponse.decode = function decode(reader, length) { + QueryRegisteredQueriesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryLastRemoteHeightResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueriesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = reader.uint64(); + if (!(message.registered_queries && message.registered_queries.length)) + message.registered_queries = []; + message.registered_queries.push($root.neutron.interchainqueries.RegisteredQuery.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); @@ -13719,1247 +14648,1133 @@ }; /** - * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse + * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryLastRemoteHeightResponse.decodeDelimited = function decodeDelimited(reader) { + QueryRegisteredQueriesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryLastRemoteHeightResponse message. + * Verifies a QueryRegisteredQueriesResponse message. * @function verify - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryLastRemoteHeightResponse.verify = function verify(message) { + QueryRegisteredQueriesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.registered_queries != null && message.hasOwnProperty("registered_queries")) { + if (!Array.isArray(message.registered_queries)) + return "registered_queries: array expected"; + for (var i = 0; i < message.registered_queries.length; ++i) { + var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_queries[i]); + if (error) + return "registered_queries." + 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 QueryLastRemoteHeightResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryRegisteredQueriesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse + * @returns {neutron.interchainqueries.QueryRegisteredQueriesResponse} QueryRegisteredQueriesResponse */ - QueryLastRemoteHeightResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchainqueries.QueryLastRemoteHeightResponse) + QueryRegisteredQueriesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueriesResponse) return object; - var message = new $root.neutron.interchainqueries.QueryLastRemoteHeightResponse(); - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = true; - 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(true); + var message = new $root.neutron.interchainqueries.QueryRegisteredQueriesResponse(); + if (object.registered_queries) { + if (!Array.isArray(object.registered_queries)) + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.registered_queries: array expected"); + message.registered_queries = []; + for (var i = 0; i < object.registered_queries.length; ++i) { + if (typeof object.registered_queries[i] !== "object") + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.registered_queries: object expected"); + message.registered_queries[i] = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_queries[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueriesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a QueryLastRemoteHeightResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryRegisteredQueriesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @static - * @param {neutron.interchainqueries.QueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse + * @param {neutron.interchainqueries.QueryRegisteredQueriesResponse} message QueryRegisteredQueriesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryLastRemoteHeightResponse.toObject = function toObject(message, options) { + QueryRegisteredQueriesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.registered_queries = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - 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(true) : message.height; + object.pagination = null; + if (message.registered_queries && message.registered_queries.length) { + object.registered_queries = []; + for (var j = 0; j < message.registered_queries.length; ++j) + object.registered_queries[j] = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_queries[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 QueryLastRemoteHeightResponse to JSON. + * Converts this QueryRegisteredQueriesResponse to JSON. * @function toJSON - * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse + * @memberof neutron.interchainqueries.QueryRegisteredQueriesResponse * @instance * @returns {Object.} JSON object */ - QueryLastRemoteHeightResponse.prototype.toJSON = function toJSON() { + QueryRegisteredQueriesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryLastRemoteHeightResponse; + return QueryRegisteredQueriesResponse; })(); - return interchainqueries; - })(); - - neutron.interchaintxs = (function() { + interchainqueries.QueryRegisteredQueryRequest = (function() { - /** - * Namespace interchaintxs. - * @memberof neutron - * @namespace - */ - var interchaintxs = {}; + /** + * Properties of a QueryRegisteredQueryRequest. + * @memberof neutron.interchainqueries + * @interface IQueryRegisteredQueryRequest + * @property {Long|null} [query_id] QueryRegisteredQueryRequest query_id + */ - interchaintxs.v1 = (function() { + /** + * Constructs a new QueryRegisteredQueryRequest. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryRegisteredQueryRequest. + * @implements IQueryRegisteredQueryRequest + * @constructor + * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest=} [properties] Properties to set + */ + function QueryRegisteredQueryRequest(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 v1. - * @memberof neutron.interchaintxs - * @namespace + * QueryRegisteredQueryRequest query_id. + * @member {Long} query_id + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @instance */ - var v1 = {}; + QueryRegisteredQueryRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - v1.Msg = (function() { + /** + * Encodes the specified QueryRegisteredQueryRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} message QueryRegisteredQueryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + return writer; + }; - /** - * Constructs a new Msg service. - * @memberof neutron.interchaintxs.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); - } + /** + * Encodes the specified QueryRegisteredQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryRequest} message QueryRegisteredQueryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + /** + * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.query_id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Callback as used by {@link neutron.interchaintxs.v1.Msg#registerInterchainAccount}. - * @memberof neutron.interchaintxs.v1.Msg - * @typedef RegisterInterchainAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} [response] MsgRegisterInterchainAccountResponse - */ + /** + * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls RegisterInterchainAccount. - * @function registerInterchainAccount - * @memberof neutron.interchaintxs.v1.Msg - * @instance - * @param {neutron.interchaintxs.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object - * @param {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccount, $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse, request, callback); - }, "name", { value: "RegisterInterchainAccount" }); + /** + * Verifies a QueryRegisteredQueryRequest message. + * @function verify + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryRegisteredQueryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) + return "query_id: integer|Long expected"; + return null; + }; - /** - * Calls RegisterInterchainAccount. - * @function registerInterchainAccount - * @memberof neutron.interchaintxs.v1.Msg - * @instance - * @param {neutron.interchaintxs.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a QueryRegisteredQueryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.QueryRegisteredQueryRequest} QueryRegisteredQueryRequest + */ + QueryRegisteredQueryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryRequest) + return object; + var message = new $root.neutron.interchainqueries.QueryRegisteredQueryRequest(); + if (object.query_id != null) + if ($util.Long) + (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; + else if (typeof object.query_id === "string") + message.query_id = parseInt(object.query_id, 10); + else if (typeof object.query_id === "number") + message.query_id = object.query_id; + else if (typeof object.query_id === "object") + message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + return message; + }; - /** - * Callback as used by {@link neutron.interchaintxs.v1.Msg#submitTx}. - * @memberof neutron.interchaintxs.v1.Msg - * @typedef SubmitTxCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchaintxs.v1.MsgSubmitTxResponse} [response] MsgSubmitTxResponse - */ + /** + * Creates a plain object from a QueryRegisteredQueryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @static + * @param {neutron.interchainqueries.QueryRegisteredQueryRequest} message QueryRegisteredQueryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryRegisteredQueryRequest.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.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_id = options.longs === String ? "0" : 0; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (typeof message.query_id === "number") + object.query_id = options.longs === String ? String(message.query_id) : message.query_id; + else + object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + return object; + }; - /** - * Calls SubmitTx. - * @function submitTx - * @memberof neutron.interchaintxs.v1.Msg - * @instance - * @param {neutron.interchaintxs.v1.IMsgSubmitTx} request MsgSubmitTx message or plain object - * @param {neutron.interchaintxs.v1.Msg.SubmitTxCallback} callback Node-style callback called with the error, if any, and MsgSubmitTxResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.submitTx = function submitTx(request, callback) { - return this.rpcCall(submitTx, $root.neutron.interchaintxs.v1.MsgSubmitTx, $root.neutron.interchaintxs.v1.MsgSubmitTxResponse, request, callback); - }, "name", { value: "SubmitTx" }); + /** + * Converts this QueryRegisteredQueryRequest to JSON. + * @function toJSON + * @memberof neutron.interchainqueries.QueryRegisteredQueryRequest + * @instance + * @returns {Object.} JSON object + */ + QueryRegisteredQueryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls SubmitTx. - * @function submitTx - * @memberof neutron.interchaintxs.v1.Msg - * @instance - * @param {neutron.interchaintxs.v1.IMsgSubmitTx} request MsgSubmitTx message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return QueryRegisteredQueryRequest; + })(); - return Msg; - })(); + interchainqueries.QueryRegisteredQueryResponse = (function() { - v1.MsgRegisterInterchainAccount = (function() { + /** + * Properties of a QueryRegisteredQueryResponse. + * @memberof neutron.interchainqueries + * @interface IQueryRegisteredQueryResponse + * @property {neutron.interchainqueries.IRegisteredQuery|null} [registered_query] QueryRegisteredQueryResponse registered_query + */ - /** - * Properties of a MsgRegisterInterchainAccount. - * @memberof neutron.interchaintxs.v1 - * @interface IMsgRegisterInterchainAccount - * @property {string|null} [from_address] MsgRegisterInterchainAccount from_address - * @property {string|null} [connection_id] MsgRegisterInterchainAccount connection_id - * @property {string|null} [interchain_account_id] MsgRegisterInterchainAccount interchain_account_id - */ + /** + * Constructs a new QueryRegisteredQueryResponse. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryRegisteredQueryResponse. + * @implements IQueryRegisteredQueryResponse + * @constructor + * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse=} [properties] Properties to set + */ + function QueryRegisteredQueryResponse(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 MsgRegisterInterchainAccount. - * @memberof neutron.interchaintxs.v1 - * @classdesc Represents a MsgRegisterInterchainAccount. - * @implements IMsgRegisterInterchainAccount - * @constructor - * @param {neutron.interchaintxs.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]]; + /** + * QueryRegisteredQueryResponse registered_query. + * @member {neutron.interchainqueries.IRegisteredQuery|null|undefined} registered_query + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @instance + */ + QueryRegisteredQueryResponse.prototype.registered_query = null; + + /** + * Encodes the specified QueryRegisteredQueryResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse} message QueryRegisteredQueryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.registered_query != null && Object.hasOwnProperty.call(message, "registered_query")) + $root.neutron.interchainqueries.RegisteredQuery.encode(message.registered_query, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryRegisteredQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResponse} message QueryRegisteredQueryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.registered_query = $root.neutron.interchainqueries.RegisteredQuery.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * MsgRegisterInterchainAccount from_address. - * @member {string} from_address - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @instance - */ - MsgRegisterInterchainAccount.prototype.from_address = ""; + /** + * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MsgRegisterInterchainAccount connection_id. - * @member {string} connection_id - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @instance - */ - MsgRegisterInterchainAccount.prototype.connection_id = ""; + /** + * Verifies a QueryRegisteredQueryResponse message. + * @function verify + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryRegisteredQueryResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.registered_query != null && message.hasOwnProperty("registered_query")) { + var error = $root.neutron.interchainqueries.RegisteredQuery.verify(message.registered_query); + if (error) + return "registered_query." + error; + } + return null; + }; - /** - * MsgRegisterInterchainAccount interchain_account_id. - * @member {string} interchain_account_id - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @instance - */ - MsgRegisterInterchainAccount.prototype.interchain_account_id = ""; + /** + * Creates a QueryRegisteredQueryResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.QueryRegisteredQueryResponse} QueryRegisteredQueryResponse + */ + QueryRegisteredQueryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResponse) + return object; + var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResponse(); + if (object.registered_query != null) { + if (typeof object.registered_query !== "object") + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueryResponse.registered_query: object expected"); + message.registered_query = $root.neutron.interchainqueries.RegisteredQuery.fromObject(object.registered_query); + } + return message; + }; - /** - * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccount.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {neutron.interchaintxs.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.from_address != null && Object.hasOwnProperty.call(message, "from_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_address); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); - if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.interchain_account_id); - return writer; - }; + /** + * Creates a plain object from a QueryRegisteredQueryResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @static + * @param {neutron.interchainqueries.QueryRegisteredQueryResponse} message QueryRegisteredQueryResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryRegisteredQueryResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.registered_query = null; + if (message.registered_query != null && message.hasOwnProperty("registered_query")) + object.registered_query = $root.neutron.interchainqueries.RegisteredQuery.toObject(message.registered_query, options); + return object; + }; - /** - * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {neutron.interchaintxs.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(); - }; + /** + * Converts this QueryRegisteredQueryResponse to JSON. + * @function toJSON + * @memberof neutron.interchainqueries.QueryRegisteredQueryResponse + * @instance + * @returns {Object.} JSON object + */ + QueryRegisteredQueryResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccount(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.from_address = reader.string(); - break; - case 2: - message.connection_id = reader.string(); - break; - case 3: - message.interchain_account_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return QueryRegisteredQueryResponse; + })(); - /** - * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.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()); - }; + interchainqueries.QueryRegisteredQueryResultRequest = (function() { - /** - * Verifies a MsgRegisterInterchainAccount message. - * @function verify - * @memberof neutron.interchaintxs.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.from_address != null && message.hasOwnProperty("from_address")) - if (!$util.isString(message.from_address)) - return "from_address: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - if (!$util.isString(message.interchain_account_id)) - return "interchain_account_id: string expected"; - return null; - }; + /** + * Properties of a QueryRegisteredQueryResultRequest. + * @memberof neutron.interchainqueries + * @interface IQueryRegisteredQueryResultRequest + * @property {Long|null} [query_id] QueryRegisteredQueryResultRequest query_id + */ - /** - * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount - */ - MsgRegisterInterchainAccount.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccount) - return object; - var message = new $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccount(); - if (object.from_address != null) - message.from_address = String(object.from_address); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.interchain_account_id != null) - message.interchain_account_id = String(object.interchain_account_id); - return message; - }; - - /** - * Creates a plain object from a MsgRegisterInterchainAccount message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @static - * @param {neutron.interchaintxs.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.from_address = ""; - object.connection_id = ""; - object.interchain_account_id = ""; - } - if (message.from_address != null && message.hasOwnProperty("from_address")) - object.from_address = message.from_address; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - object.interchain_account_id = message.interchain_account_id; - return object; - }; - - /** - * Converts this MsgRegisterInterchainAccount to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterInterchainAccount.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new QueryRegisteredQueryResultRequest. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryRegisteredQueryResultRequest. + * @implements IQueryRegisteredQueryResultRequest + * @constructor + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest=} [properties] Properties to set + */ + function QueryRegisteredQueryResultRequest(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 MsgRegisterInterchainAccount; - })(); + /** + * QueryRegisteredQueryResultRequest query_id. + * @member {Long} query_id + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @instance + */ + QueryRegisteredQueryResultRequest.prototype.query_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - v1.MsgRegisterInterchainAccountResponse = (function() { + /** + * Encodes the specified QueryRegisteredQueryResultRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResultRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.query_id != null && Object.hasOwnProperty.call(message, "query_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.query_id); + return writer; + }; - /** - * Properties of a MsgRegisterInterchainAccountResponse. - * @memberof neutron.interchaintxs.v1 - * @interface IMsgRegisterInterchainAccountResponse - */ + /** + * Encodes the specified QueryRegisteredQueryResultRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new MsgRegisterInterchainAccountResponse. - * @memberof neutron.interchaintxs.v1 - * @classdesc Represents a MsgRegisterInterchainAccountResponse. - * @implements IMsgRegisterInterchainAccountResponse - * @constructor - * @param {neutron.interchaintxs.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]]; + /** + * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResultRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.query_id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {neutron.interchaintxs.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(); - return writer; - }; - - /** - * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {neutron.interchaintxs.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 neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResultRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.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 QueryRegisteredQueryResultRequest message. + * @function verify + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryRegisteredQueryResultRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (!$util.isInteger(message.query_id) && !(message.query_id && $util.isInteger(message.query_id.low) && $util.isInteger(message.query_id.high))) + return "query_id: integer|Long expected"; + return null; + }; - /** - * Verifies a MsgRegisterInterchainAccountResponse message. - * @function verify - * @memberof neutron.interchaintxs.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"; - return null; - }; + /** + * Creates a QueryRegisteredQueryResultRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultRequest} QueryRegisteredQueryResultRequest + */ + QueryRegisteredQueryResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest) + return object; + var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultRequest(); + if (object.query_id != null) + if ($util.Long) + (message.query_id = $util.Long.fromValue(object.query_id)).unsigned = true; + else if (typeof object.query_id === "string") + message.query_id = parseInt(object.query_id, 10); + else if (typeof object.query_id === "number") + message.query_id = object.query_id; + else if (typeof object.query_id === "object") + message.query_id = new $util.LongBits(object.query_id.low >>> 0, object.query_id.high >>> 0).toNumber(true); + return message; + }; - /** - * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse - */ - MsgRegisterInterchainAccountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse) - return object; - return new $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse(); - }; + /** + * Creates a plain object from a QueryRegisteredQueryResultRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @static + * @param {neutron.interchainqueries.QueryRegisteredQueryResultRequest} message QueryRegisteredQueryResultRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryRegisteredQueryResultRequest.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.query_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_id = options.longs === String ? "0" : 0; + if (message.query_id != null && message.hasOwnProperty("query_id")) + if (typeof message.query_id === "number") + object.query_id = options.longs === String ? String(message.query_id) : message.query_id; + else + object.query_id = options.longs === String ? $util.Long.prototype.toString.call(message.query_id) : options.longs === Number ? new $util.LongBits(message.query_id.low >>> 0, message.query_id.high >>> 0).toNumber(true) : message.query_id; + return object; + }; - /** - * Creates a plain object from a MsgRegisterInterchainAccountResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @static - * @param {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterInterchainAccountResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this QueryRegisteredQueryResultRequest to JSON. + * @function toJSON + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultRequest + * @instance + * @returns {Object.} JSON object + */ + QueryRegisteredQueryResultRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MsgRegisterInterchainAccountResponse to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterInterchainAccountResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryRegisteredQueryResultRequest; + })(); - return MsgRegisterInterchainAccountResponse; - })(); + interchainqueries.QueryRegisteredQueryResultResponse = (function() { - v1.MsgSubmitTx = (function() { + /** + * Properties of a QueryRegisteredQueryResultResponse. + * @memberof neutron.interchainqueries + * @interface IQueryRegisteredQueryResultResponse + * @property {neutron.interchainqueries.IQueryResult|null} [result] QueryRegisteredQueryResultResponse result + */ - /** - * Properties of a MsgSubmitTx. - * @memberof neutron.interchaintxs.v1 - * @interface IMsgSubmitTx - * @property {string|null} [from_address] MsgSubmitTx from_address - * @property {string|null} [interchain_account_id] MsgSubmitTx interchain_account_id - * @property {string|null} [connection_id] MsgSubmitTx connection_id - * @property {Array.|null} [msgs] MsgSubmitTx msgs - * @property {string|null} [memo] MsgSubmitTx memo - * @property {Long|null} [timeout] MsgSubmitTx timeout - * @property {neutron.feerefunder.IFee|null} [fee] MsgSubmitTx fee - */ + /** + * Constructs a new QueryRegisteredQueryResultResponse. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryRegisteredQueryResultResponse. + * @implements IQueryRegisteredQueryResultResponse + * @constructor + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse=} [properties] Properties to set + */ + function QueryRegisteredQueryResultResponse(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 MsgSubmitTx. - * @memberof neutron.interchaintxs.v1 - * @classdesc Represents a MsgSubmitTx. - * @implements IMsgSubmitTx - * @constructor - * @param {neutron.interchaintxs.v1.IMsgSubmitTx=} [properties] Properties to set - */ - function MsgSubmitTx(properties) { - this.msgs = []; - 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]]; - } + /** + * QueryRegisteredQueryResultResponse result. + * @member {neutron.interchainqueries.IQueryResult|null|undefined} result + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @instance + */ + QueryRegisteredQueryResultResponse.prototype.result = null; - /** - * MsgSubmitTx from_address. - * @member {string} from_address - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.from_address = ""; + /** + * Encodes the specified QueryRegisteredQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResultResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.neutron.interchainqueries.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * MsgSubmitTx interchain_account_id. - * @member {string} interchain_account_id - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.interchain_account_id = ""; + /** + * Encodes the specified QueryRegisteredQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {neutron.interchainqueries.IQueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryRegisteredQueryResultResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * MsgSubmitTx connection_id. - * @member {string} connection_id - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.connection_id = ""; + /** + * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResultResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.result = $root.neutron.interchainqueries.QueryResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * MsgSubmitTx msgs. - * @member {Array.} msgs - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.msgs = $util.emptyArray; + /** + * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryRegisteredQueryResultResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MsgSubmitTx memo. - * @member {string} memo - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.memo = ""; - - /** - * MsgSubmitTx timeout. - * @member {Long} timeout - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Verifies a QueryRegisteredQueryResultResponse message. + * @function verify + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryRegisteredQueryResultResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.neutron.interchainqueries.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + return null; + }; - /** - * MsgSubmitTx fee. - * @member {neutron.feerefunder.IFee|null|undefined} fee - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - */ - MsgSubmitTx.prototype.fee = null; + /** + * Creates a QueryRegisteredQueryResultResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.QueryRegisteredQueryResultResponse} QueryRegisteredQueryResultResponse + */ + QueryRegisteredQueryResultResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse) + return object; + var message = new $root.neutron.interchainqueries.QueryRegisteredQueryResultResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".neutron.interchainqueries.QueryRegisteredQueryResultResponse.result: object expected"); + message.result = $root.neutron.interchainqueries.QueryResult.fromObject(object.result); + } + return message; + }; - /** - * Encodes the specified MsgSubmitTx message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {neutron.interchaintxs.v1.IMsgSubmitTx} message MsgSubmitTx message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitTx.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.from_address != null && Object.hasOwnProperty.call(message, "from_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_address); - if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.interchain_account_id); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.connection_id); - if (message.msgs != null && message.msgs.length) - for (var i = 0; i < message.msgs.length; ++i) - $root.google.protobuf.Any.encode(message.msgs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timeout); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from a QueryRegisteredQueryResultResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @static + * @param {neutron.interchainqueries.QueryRegisteredQueryResultResponse} message QueryRegisteredQueryResultResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryRegisteredQueryResultResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.neutron.interchainqueries.QueryResult.toObject(message.result, options); + return object; + }; - /** - * Encodes the specified MsgSubmitTx message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {neutron.interchaintxs.v1.IMsgSubmitTx} message MsgSubmitTx message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitTx.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this QueryRegisteredQueryResultResponse to JSON. + * @function toJSON + * @memberof neutron.interchainqueries.QueryRegisteredQueryResultResponse + * @instance + * @returns {Object.} JSON object + */ + QueryRegisteredQueryResultResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MsgSubmitTx message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitTx.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgSubmitTx(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.from_address = reader.string(); - break; - case 2: - message.interchain_account_id = reader.string(); - break; - case 3: - message.connection_id = reader.string(); - break; - case 4: - if (!(message.msgs && message.msgs.length)) - message.msgs = []; - message.msgs.push($root.google.protobuf.Any.decode(reader, reader.uint32())); - break; - case 5: - message.memo = reader.string(); - break; - case 6: - message.timeout = reader.uint64(); - break; - case 7: - message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return QueryRegisteredQueryResultResponse; + })(); - /** - * Decodes a MsgSubmitTx message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitTx.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + interchainqueries.Transaction = (function() { - /** - * Verifies a MsgSubmitTx message. - * @function verify - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgSubmitTx.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.from_address != null && message.hasOwnProperty("from_address")) - if (!$util.isString(message.from_address)) - return "from_address: string expected"; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - if (!$util.isString(message.interchain_account_id)) - return "interchain_account_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.msgs != null && message.hasOwnProperty("msgs")) { - if (!Array.isArray(message.msgs)) - return "msgs: array expected"; - for (var i = 0; i < message.msgs.length; ++i) { - var error = $root.google.protobuf.Any.verify(message.msgs[i]); - if (error) - return "msgs." + error; - } - } - if (message.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) - if (!$util.isInteger(message.timeout) && !(message.timeout && $util.isInteger(message.timeout.low) && $util.isInteger(message.timeout.high))) - return "timeout: integer|Long expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - var error = $root.neutron.feerefunder.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - return null; - }; + /** + * Properties of a Transaction. + * @memberof neutron.interchainqueries + * @interface ITransaction + * @property {Long|null} [id] Transaction id + * @property {Long|null} [height] Transaction height + * @property {Uint8Array|null} [data] Transaction data + */ - /** - * Creates a MsgSubmitTx message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx - */ - MsgSubmitTx.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.v1.MsgSubmitTx) - return object; - var message = new $root.neutron.interchaintxs.v1.MsgSubmitTx(); - if (object.from_address != null) - message.from_address = String(object.from_address); - if (object.interchain_account_id != null) - message.interchain_account_id = String(object.interchain_account_id); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.msgs) { - if (!Array.isArray(object.msgs)) - throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.msgs: array expected"); - message.msgs = []; - for (var i = 0; i < object.msgs.length; ++i) { - if (typeof object.msgs[i] !== "object") - throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.msgs: object expected"); - message.msgs[i] = $root.google.protobuf.Any.fromObject(object.msgs[i]); - } - } - if (object.memo != null) - message.memo = String(object.memo); - if (object.timeout != null) - if ($util.Long) - (message.timeout = $util.Long.fromValue(object.timeout)).unsigned = true; - else if (typeof object.timeout === "string") - message.timeout = parseInt(object.timeout, 10); - else if (typeof object.timeout === "number") - message.timeout = object.timeout; - else if (typeof object.timeout === "object") - message.timeout = new $util.LongBits(object.timeout.low >>> 0, object.timeout.high >>> 0).toNumber(true); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.fee: object expected"); - message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); - } - return message; - }; + /** + * Constructs a new Transaction. + * @memberof neutron.interchainqueries + * @classdesc Represents a Transaction. + * @implements ITransaction + * @constructor + * @param {neutron.interchainqueries.ITransaction=} [properties] Properties to set + */ + function Transaction(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 MsgSubmitTx message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @static - * @param {neutron.interchaintxs.v1.MsgSubmitTx} message MsgSubmitTx - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgSubmitTx.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.msgs = []; - if (options.defaults) { - object.from_address = ""; - object.interchain_account_id = ""; - object.connection_id = ""; - object.memo = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout = options.longs === String ? "0" : 0; - object.fee = null; - } - if (message.from_address != null && message.hasOwnProperty("from_address")) - object.from_address = message.from_address; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - object.interchain_account_id = message.interchain_account_id; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.msgs && message.msgs.length) { - object.msgs = []; - for (var j = 0; j < message.msgs.length; ++j) - object.msgs[j] = $root.google.protobuf.Any.toObject(message.msgs[j], options); - } - if (message.memo != null && message.hasOwnProperty("memo")) - object.memo = message.memo; - if (message.timeout != null && message.hasOwnProperty("timeout")) - if (typeof message.timeout === "number") - object.timeout = options.longs === String ? String(message.timeout) : message.timeout; - else - object.timeout = options.longs === String ? $util.Long.prototype.toString.call(message.timeout) : options.longs === Number ? new $util.LongBits(message.timeout.low >>> 0, message.timeout.high >>> 0).toNumber(true) : message.timeout; - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); - return object; - }; + /** + * Transaction id. + * @member {Long} id + * @memberof neutron.interchainqueries.Transaction + * @instance + */ + Transaction.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Converts this MsgSubmitTx to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.v1.MsgSubmitTx - * @instance - * @returns {Object.} JSON object - */ - MsgSubmitTx.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Transaction height. + * @member {Long} height + * @memberof neutron.interchainqueries.Transaction + * @instance + */ + Transaction.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - return MsgSubmitTx; - })(); + /** + * Transaction data. + * @member {Uint8Array} data + * @memberof neutron.interchainqueries.Transaction + * @instance + */ + Transaction.prototype.data = $util.newBuffer([]); - v1.MsgSubmitTxResponse = (function() { + /** + * Encodes the specified Transaction message. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * @function encode + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {neutron.interchainqueries.ITransaction} message Transaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transaction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.height); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + return writer; + }; - /** - * Properties of a MsgSubmitTxResponse. - * @memberof neutron.interchaintxs.v1 - * @interface IMsgSubmitTxResponse - * @property {Long|null} [sequence_id] MsgSubmitTxResponse sequence_id - * @property {string|null} [channel] MsgSubmitTxResponse channel - */ + /** + * Encodes the specified Transaction message, length delimited. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {neutron.interchainqueries.ITransaction} message Transaction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transaction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new MsgSubmitTxResponse. - * @memberof neutron.interchaintxs.v1 - * @classdesc Represents a MsgSubmitTxResponse. - * @implements IMsgSubmitTxResponse - * @constructor - * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse=} [properties] Properties to set - */ - function MsgSubmitTxResponse(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 Transaction message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchainqueries.Transaction} Transaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transaction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.Transaction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.uint64(); + break; + case 2: + message.height = reader.uint64(); + break; + case 3: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * MsgSubmitTxResponse sequence_id. - * @member {Long} sequence_id - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @instance - */ - MsgSubmitTxResponse.prototype.sequence_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgSubmitTxResponse channel. - * @member {string} channel - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @instance - */ - MsgSubmitTxResponse.prototype.channel = ""; - - /** - * Encodes the specified MsgSubmitTxResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse} message MsgSubmitTxResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitTxResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sequence_id != null && Object.hasOwnProperty.call(message, "sequence_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); - return writer; - }; - - /** - * Encodes the specified MsgSubmitTxResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse} message MsgSubmitTxResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitTxResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MsgSubmitTxResponse message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitTxResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgSubmitTxResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sequence_id = reader.uint64(); - break; - case 2: - message.channel = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MsgSubmitTxResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitTxResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MsgSubmitTxResponse message. - * @function verify - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgSubmitTxResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) - if (!$util.isInteger(message.sequence_id) && !(message.sequence_id && $util.isInteger(message.sequence_id.low) && $util.isInteger(message.sequence_id.high))) - return "sequence_id: integer|Long expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - return null; - }; - - /** - * Creates a MsgSubmitTxResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse - */ - MsgSubmitTxResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.v1.MsgSubmitTxResponse) - return object; - var message = new $root.neutron.interchaintxs.v1.MsgSubmitTxResponse(); - if (object.sequence_id != null) - if ($util.Long) - (message.sequence_id = $util.Long.fromValue(object.sequence_id)).unsigned = true; - else if (typeof object.sequence_id === "string") - message.sequence_id = parseInt(object.sequence_id, 10); - else if (typeof object.sequence_id === "number") - message.sequence_id = object.sequence_id; - else if (typeof object.sequence_id === "object") - message.sequence_id = new $util.LongBits(object.sequence_id.low >>> 0, object.sequence_id.high >>> 0).toNumber(true); - if (object.channel != null) - message.channel = String(object.channel); - return message; - }; - - /** - * Creates a plain object from a MsgSubmitTxResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @static - * @param {neutron.interchaintxs.v1.MsgSubmitTxResponse} message MsgSubmitTxResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgSubmitTxResponse.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_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence_id = options.longs === String ? "0" : 0; - object.channel = ""; - } - if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) - if (typeof message.sequence_id === "number") - object.sequence_id = options.longs === String ? String(message.sequence_id) : message.sequence_id; - else - object.sequence_id = options.longs === String ? $util.Long.prototype.toString.call(message.sequence_id) : options.longs === Number ? new $util.LongBits(message.sequence_id.low >>> 0, message.sequence_id.high >>> 0).toNumber(true) : message.sequence_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - return object; - }; - - /** - * Converts this MsgSubmitTxResponse to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse - * @instance - * @returns {Object.} JSON object - */ - MsgSubmitTxResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgSubmitTxResponse; - })(); - - return v1; - })(); - - interchaintxs.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof neutron.interchaintxs - * @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 neutron.interchaintxs.Query#params}. - * @memberof neutron.interchaintxs.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchaintxs.QueryParamsResponse} [response] QueryParamsResponse - */ + /** + * Decodes a Transaction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchainqueries.Transaction} Transaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transaction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls Params. - * @function params - * @memberof neutron.interchaintxs.Query - * @instance - * @param {neutron.interchaintxs.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.interchaintxs.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.neutron.interchaintxs.QueryParamsRequest, $root.neutron.interchaintxs.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof neutron.interchaintxs.Query - * @instance - * @param {neutron.interchaintxs.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a Transaction message. + * @function verify + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + Transaction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object 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.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.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + return null; + }; /** - * Callback as used by {@link neutron.interchaintxs.Query#interchainAccountAddress}. - * @memberof neutron.interchaintxs.Query - * @typedef InterchainAccountAddressCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.interchaintxs.QueryInterchainAccountAddressResponse} [response] QueryInterchainAccountAddressResponse + * Creates a Transaction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchainqueries.Transaction} Transaction */ + Transaction.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.Transaction) + return object; + var message = new $root.neutron.interchainqueries.Transaction(); + 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.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = true; + 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(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; + }; /** - * Calls InterchainAccountAddress. - * @function interchainAccountAddress - * @memberof neutron.interchaintxs.Query - * @instance - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} request QueryInterchainAccountAddressRequest message or plain object - * @param {neutron.interchaintxs.Query.InterchainAccountAddressCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountAddressResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a Transaction message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchainqueries.Transaction + * @static + * @param {neutron.interchainqueries.Transaction} message Transaction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.interchainAccountAddress = function interchainAccountAddress(request, callback) { - return this.rpcCall(interchainAccountAddress, $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest, $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse, request, callback); - }, "name", { value: "InterchainAccountAddress" }); + Transaction.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.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = 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.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.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(true) : message.height; + 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; + }; /** - * Calls InterchainAccountAddress. - * @function interchainAccountAddress - * @memberof neutron.interchaintxs.Query + * Converts this Transaction to JSON. + * @function toJSON + * @memberof neutron.interchainqueries.Transaction * @instance - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} request QueryInterchainAccountAddressRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + Transaction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return Transaction; })(); - interchaintxs.QueryParamsRequest = (function() { + interchainqueries.QueryLastRemoteHeight = (function() { /** - * Properties of a QueryParamsRequest. - * @memberof neutron.interchaintxs - * @interface IQueryParamsRequest + * Properties of a QueryLastRemoteHeight. + * @memberof neutron.interchainqueries + * @interface IQueryLastRemoteHeight + * @property {string|null} [connection_id] QueryLastRemoteHeight connection_id */ /** - * Constructs a new QueryParamsRequest. - * @memberof neutron.interchaintxs - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest + * Constructs a new QueryLastRemoteHeight. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryLastRemoteHeight. + * @implements IQueryLastRemoteHeight * @constructor - * @param {neutron.interchaintxs.IQueryParamsRequest=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryLastRemoteHeight=} [properties] Properties to set */ - function QueryParamsRequest(properties) { + function QueryLastRemoteHeight(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14967,51 +15782,64 @@ } /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. + * QueryLastRemoteHeight connection_id. + * @member {string} connection_id + * @memberof neutron.interchainqueries.QueryLastRemoteHeight + * @instance + */ + QueryLastRemoteHeight.prototype.connection_id = ""; + + /** + * Encodes the specified QueryLastRemoteHeight message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. * @function encode - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static - * @param {neutron.interchaintxs.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.interchainqueries.IQueryLastRemoteHeight} message QueryLastRemoteHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encode = function encode(message, writer) { + QueryLastRemoteHeight.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); return writer; }; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QueryLastRemoteHeight message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static - * @param {neutron.interchaintxs.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {neutron.interchainqueries.IQueryLastRemoteHeight} message QueryLastRemoteHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryLastRemoteHeight.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a QueryLastRemoteHeight message from the specified reader or buffer. * @function decode - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight * @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) { + QueryLastRemoteHeight.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryLastRemoteHeight(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.connection_id = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -15021,94 +15849,107 @@ }; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryLastRemoteHeight message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight * @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) { + QueryLastRemoteHeight.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsRequest message. + * Verifies a QueryLastRemoteHeight message. * @function verify - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @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) { + QueryLastRemoteHeight.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"; return null; }; /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryLastRemoteHeight message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.QueryParamsRequest} QueryParamsRequest + * @returns {neutron.interchainqueries.QueryLastRemoteHeight} QueryLastRemoteHeight */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.QueryParamsRequest) + QueryLastRemoteHeight.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryLastRemoteHeight) return object; - return new $root.neutron.interchaintxs.QueryParamsRequest(); + var message = new $root.neutron.interchainqueries.QueryLastRemoteHeight(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + return message; }; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryLastRemoteHeight message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @static - * @param {neutron.interchaintxs.QueryParamsRequest} message QueryParamsRequest + * @param {neutron.interchainqueries.QueryLastRemoteHeight} message QueryLastRemoteHeight * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsRequest.toObject = function toObject() { - return {}; + QueryLastRemoteHeight.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; + return object; }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this QueryLastRemoteHeight to JSON. * @function toJSON - * @memberof neutron.interchaintxs.QueryParamsRequest + * @memberof neutron.interchainqueries.QueryLastRemoteHeight * @instance * @returns {Object.} JSON object */ - QueryParamsRequest.prototype.toJSON = function toJSON() { + QueryLastRemoteHeight.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsRequest; + return QueryLastRemoteHeight; })(); - interchaintxs.QueryParamsResponse = (function() { + interchainqueries.QueryLastRemoteHeightResponse = (function() { /** - * Properties of a QueryParamsResponse. - * @memberof neutron.interchaintxs - * @interface IQueryParamsResponse - * @property {neutron.interchaintxs.IParams|null} [params] QueryParamsResponse params + * Properties of a QueryLastRemoteHeightResponse. + * @memberof neutron.interchainqueries + * @interface IQueryLastRemoteHeightResponse + * @property {Long|null} [height] QueryLastRemoteHeightResponse height */ /** - * Constructs a new QueryParamsResponse. - * @memberof neutron.interchaintxs - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse + * Constructs a new QueryLastRemoteHeightResponse. + * @memberof neutron.interchainqueries + * @classdesc Represents a QueryLastRemoteHeightResponse. + * @implements IQueryLastRemoteHeightResponse * @constructor - * @param {neutron.interchaintxs.IQueryParamsResponse=} [properties] Properties to set + * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse=} [properties] Properties to set */ - function QueryParamsResponse(properties) { + function QueryLastRemoteHeightResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15116,63 +15957,63 @@ } /** - * QueryParamsResponse params. - * @member {neutron.interchaintxs.IParams|null|undefined} params - * @memberof neutron.interchaintxs.QueryParamsResponse + * QueryLastRemoteHeightResponse height. + * @member {Long} height + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @instance */ - QueryParamsResponse.prototype.params = null; + QueryLastRemoteHeightResponse.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchaintxs.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryLastRemoteHeightResponse message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. * @function encode - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static - * @param {neutron.interchaintxs.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encode = function encode(message, writer) { + QueryLastRemoteHeightResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.interchaintxs.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); return writer; }; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryLastRemoteHeightResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static - * @param {neutron.interchaintxs.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {neutron.interchainqueries.IQueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryLastRemoteHeightResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer. * @function decode - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse * @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) { + QueryLastRemoteHeightResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchainqueries.QueryLastRemoteHeightResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.neutron.interchaintxs.Params.decode(reader, reader.uint32()); + message.height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -15183,1324 +16024,1545 @@ }; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse * @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) { + QueryLastRemoteHeightResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParamsResponse message. + * Verifies a QueryLastRemoteHeightResponse message. * @function verify - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @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) { + QueryLastRemoteHeightResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.interchaintxs.Params.verify(message.params); - if (error) - return "params." + 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"; return null; }; /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryLastRemoteHeightResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.QueryParamsResponse} QueryParamsResponse + * @returns {neutron.interchainqueries.QueryLastRemoteHeightResponse} QueryLastRemoteHeightResponse */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.QueryParamsResponse) + QueryLastRemoteHeightResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchainqueries.QueryLastRemoteHeightResponse) return object; - var message = new $root.neutron.interchaintxs.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.interchaintxs.QueryParamsResponse.params: object expected"); - message.params = $root.neutron.interchaintxs.Params.fromObject(object.params); - } + var message = new $root.neutron.interchainqueries.QueryLastRemoteHeightResponse(); + if (object.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = true; + 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(true); return message; }; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryLastRemoteHeightResponse message. Also converts values to other types if specified. * @function toObject - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @static - * @param {neutron.interchaintxs.QueryParamsResponse} message QueryParamsResponse + * @param {neutron.interchainqueries.QueryLastRemoteHeightResponse} message QueryLastRemoteHeightResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParamsResponse.toObject = function toObject(message, options) { + QueryLastRemoteHeightResponse.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.neutron.interchaintxs.Params.toObject(message.params, options); + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; + 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(true) : message.height; return object; }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this QueryLastRemoteHeightResponse to JSON. * @function toJSON - * @memberof neutron.interchaintxs.QueryParamsResponse + * @memberof neutron.interchainqueries.QueryLastRemoteHeightResponse * @instance * @returns {Object.} JSON object */ - QueryParamsResponse.prototype.toJSON = function toJSON() { + QueryLastRemoteHeightResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParamsResponse; + return QueryLastRemoteHeightResponse; })(); - interchaintxs.QueryInterchainAccountAddressRequest = (function() { - - /** - * Properties of a QueryInterchainAccountAddressRequest. - * @memberof neutron.interchaintxs - * @interface IQueryInterchainAccountAddressRequest - * @property {string|null} [owner_address] QueryInterchainAccountAddressRequest owner_address - * @property {string|null} [interchain_account_id] QueryInterchainAccountAddressRequest interchain_account_id - * @property {string|null} [connection_id] QueryInterchainAccountAddressRequest connection_id - */ - - /** - * Constructs a new QueryInterchainAccountAddressRequest. - * @memberof neutron.interchaintxs - * @classdesc Represents a QueryInterchainAccountAddressRequest. - * @implements IQueryInterchainAccountAddressRequest - * @constructor - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest=} [properties] Properties to set - */ - function QueryInterchainAccountAddressRequest(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 interchainqueries; + })(); - /** - * QueryInterchainAccountAddressRequest owner_address. - * @member {string} owner_address - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @instance - */ - QueryInterchainAccountAddressRequest.prototype.owner_address = ""; + neutron.interchaintxs = (function() { - /** - * QueryInterchainAccountAddressRequest interchain_account_id. - * @member {string} interchain_account_id - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @instance - */ - QueryInterchainAccountAddressRequest.prototype.interchain_account_id = ""; + /** + * Namespace interchaintxs. + * @memberof neutron + * @namespace + */ + var interchaintxs = {}; - /** - * QueryInterchainAccountAddressRequest connection_id. - * @member {string} connection_id - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @instance - */ - QueryInterchainAccountAddressRequest.prototype.connection_id = ""; + interchaintxs.v1 = (function() { /** - * Encodes the specified QueryInterchainAccountAddressRequest message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Namespace v1. + * @memberof neutron.interchaintxs + * @namespace */ - QueryInterchainAccountAddressRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.owner_address != null && Object.hasOwnProperty.call(message, "owner_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner_address); - if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.interchain_account_id); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.connection_id); - return writer; - }; + var v1 = {}; - /** - * Encodes the specified QueryInterchainAccountAddressRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.Msg = (function() { - /** - * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountAddressRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner_address = reader.string(); - break; - case 2: - message.interchain_account_id = reader.string(); - break; - case 3: - message.connection_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new Msg service. + * @memberof neutron.interchaintxs.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); } - return message; - }; - /** - * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountAddressRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - /** - * Verifies a QueryInterchainAccountAddressRequest message. - * @function verify - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountAddressRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.owner_address != null && message.hasOwnProperty("owner_address")) - if (!$util.isString(message.owner_address)) - return "owner_address: string expected"; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - if (!$util.isString(message.interchain_account_id)) - return "interchain_account_id: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - return null; - }; + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#registerInterchainAccount}. + * @memberof neutron.interchaintxs.v1.Msg + * @typedef RegisterInterchainAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} [response] MsgRegisterInterchainAccountResponse + */ - /** - * Creates a QueryInterchainAccountAddressRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest - */ - QueryInterchainAccountAddressRequest.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest) - return object; - var message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest(); - if (object.owner_address != null) - message.owner_address = String(object.owner_address); - if (object.interchain_account_id != null) - message.interchain_account_id = String(object.interchain_account_id); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - return message; - }; + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @param {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccount, $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse, request, callback); + }, "name", { value: "RegisterInterchainAccount" }); - /** - * Creates a plain object from a QueryInterchainAccountAddressRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @static - * @param {neutron.interchaintxs.QueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountAddressRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.owner_address = ""; - object.interchain_account_id = ""; - object.connection_id = ""; - } - if (message.owner_address != null && message.hasOwnProperty("owner_address")) - object.owner_address = message.owner_address; - if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) - object.interchain_account_id = message.interchain_account_id; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - return object; - }; + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this QueryInterchainAccountAddressRequest to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountAddressRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#submitTx}. + * @memberof neutron.interchaintxs.v1.Msg + * @typedef SubmitTxCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchaintxs.v1.MsgSubmitTxResponse} [response] MsgSubmitTxResponse + */ - return QueryInterchainAccountAddressRequest; - })(); + /** + * Calls SubmitTx. + * @function submitTx + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgSubmitTx} request MsgSubmitTx message or plain object + * @param {neutron.interchaintxs.v1.Msg.SubmitTxCallback} callback Node-style callback called with the error, if any, and MsgSubmitTxResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitTx = function submitTx(request, callback) { + return this.rpcCall(submitTx, $root.neutron.interchaintxs.v1.MsgSubmitTx, $root.neutron.interchaintxs.v1.MsgSubmitTxResponse, request, callback); + }, "name", { value: "SubmitTx" }); - interchaintxs.QueryInterchainAccountAddressResponse = (function() { + /** + * Calls SubmitTx. + * @function submitTx + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgSubmitTx} request MsgSubmitTx message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Properties of a QueryInterchainAccountAddressResponse. - * @memberof neutron.interchaintxs - * @interface IQueryInterchainAccountAddressResponse - * @property {string|null} [interchain_account_address] QueryInterchainAccountAddressResponse interchain_account_address - */ + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#updateParams}. + * @memberof neutron.interchaintxs.v1.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.interchaintxs.v1.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ - /** - * Constructs a new QueryInterchainAccountAddressResponse. - * @memberof neutron.interchaintxs - * @classdesc Represents a QueryInterchainAccountAddressResponse. - * @implements IQueryInterchainAccountAddressResponse - * @constructor - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse=} [properties] Properties to set - */ - function QueryInterchainAccountAddressResponse(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 UpdateParams. + * @function updateParams + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {neutron.interchaintxs.v1.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.neutron.interchaintxs.v1.MsgUpdateParams, $root.neutron.interchaintxs.v1.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); - /** - * QueryInterchainAccountAddressResponse interchain_account_address. - * @member {string} interchain_account_address - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @instance - */ - QueryInterchainAccountAddressResponse.prototype.interchain_account_address = ""; + /** + * Calls UpdateParams. + * @function updateParams + * @memberof neutron.interchaintxs.v1.Msg + * @instance + * @param {neutron.interchaintxs.v1.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified QueryInterchainAccountAddressResponse message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountAddressResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.interchain_account_address != null && Object.hasOwnProperty.call(message, "interchain_account_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.interchain_account_address); - return writer; - }; + return Msg; + })(); - /** - * Encodes the specified QueryInterchainAccountAddressResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.MsgRegisterInterchainAccount = (function() { - /** - * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountAddressResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interchain_account_address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Properties of a MsgRegisterInterchainAccount. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgRegisterInterchainAccount + * @property {string|null} [from_address] MsgRegisterInterchainAccount from_address + * @property {string|null} [connection_id] MsgRegisterInterchainAccount connection_id + * @property {string|null} [interchain_account_id] MsgRegisterInterchainAccount interchain_account_id + */ + + /** + * Constructs a new MsgRegisterInterchainAccount. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgRegisterInterchainAccount. + * @implements IMsgRegisterInterchainAccount + * @constructor + * @param {neutron.interchaintxs.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]]; } - return message; - }; - /** - * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountAddressResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryInterchainAccountAddressResponse message. - * @function verify - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountAddressResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.interchain_account_address != null && message.hasOwnProperty("interchain_account_address")) - if (!$util.isString(message.interchain_account_address)) - return "interchain_account_address: string expected"; - return null; - }; - - /** - * Creates a QueryInterchainAccountAddressResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse - */ - QueryInterchainAccountAddressResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse) - return object; - var message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse(); - if (object.interchain_account_address != null) - message.interchain_account_address = String(object.interchain_account_address); - return message; - }; - - /** - * Creates a plain object from a QueryInterchainAccountAddressResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @static - * @param {neutron.interchaintxs.QueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountAddressResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.interchain_account_address = ""; - if (message.interchain_account_address != null && message.hasOwnProperty("interchain_account_address")) - object.interchain_account_address = message.interchain_account_address; - return object; - }; + /** + * MsgRegisterInterchainAccount from_address. + * @member {string} from_address + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.from_address = ""; - /** - * Converts this QueryInterchainAccountAddressResponse to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountAddressResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * MsgRegisterInterchainAccount connection_id. + * @member {string} connection_id + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.connection_id = ""; - return QueryInterchainAccountAddressResponse; - })(); + /** + * MsgRegisterInterchainAccount interchain_account_id. + * @member {string} interchain_account_id + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.interchain_account_id = ""; - interchaintxs.Params = (function() { + /** + * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {neutron.interchaintxs.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.from_address != null && Object.hasOwnProperty.call(message, "from_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_address); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.interchain_account_id); + return writer; + }; - /** - * Properties of a Params. - * @memberof neutron.interchaintxs - * @interface IParams - * @property {Long|null} [msg_submit_tx_max_messages] Params msg_submit_tx_max_messages - */ + /** + * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {neutron.interchaintxs.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(); + }; - /** - * Constructs a new Params. - * @memberof neutron.interchaintxs - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {neutron.interchaintxs.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]]; - } + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.from_address = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + case 3: + message.interchain_account_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Params msg_submit_tx_max_messages. - * @member {Long} msg_submit_tx_max_messages - * @memberof neutron.interchaintxs.Params - * @instance - */ - Params.prototype.msg_submit_tx_max_messages = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.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()); + }; - /** - * Encodes the specified Params message. Does not implicitly {@link neutron.interchaintxs.Params.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.Params - * @static - * @param {neutron.interchaintxs.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.msg_submit_tx_max_messages != null && Object.hasOwnProperty.call(message, "msg_submit_tx_max_messages")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.msg_submit_tx_max_messages); - return writer; - }; + /** + * Verifies a MsgRegisterInterchainAccount message. + * @function verify + * @memberof neutron.interchaintxs.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.from_address != null && message.hasOwnProperty("from_address")) + if (!$util.isString(message.from_address)) + return "from_address: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + if (!$util.isString(message.interchain_account_id)) + return "interchain_account_id: string expected"; + return null; + }; - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchaintxs.Params.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.Params - * @static - * @param {neutron.interchaintxs.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(); - }; + /** + * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + */ + MsgRegisterInterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccount) + return object; + var message = new $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccount(); + if (object.from_address != null) + message.from_address = String(object.from_address); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.interchain_account_id != null) + message.interchain_account_id = String(object.interchain_account_id); + return message; + }; - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof neutron.interchaintxs.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.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.neutron.interchaintxs.Params(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.msg_submit_tx_max_messages = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a MsgRegisterInterchainAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @static + * @param {neutron.interchaintxs.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.from_address = ""; + object.connection_id = ""; + object.interchain_account_id = ""; } - } - return message; - }; - - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.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 neutron.interchaintxs.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.msg_submit_tx_max_messages != null && message.hasOwnProperty("msg_submit_tx_max_messages")) - if (!$util.isInteger(message.msg_submit_tx_max_messages) && !(message.msg_submit_tx_max_messages && $util.isInteger(message.msg_submit_tx_max_messages.low) && $util.isInteger(message.msg_submit_tx_max_messages.high))) - return "msg_submit_tx_max_messages: integer|Long expected"; - return null; - }; - - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.Params - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.Params) + if (message.from_address != null && message.hasOwnProperty("from_address")) + object.from_address = message.from_address; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + object.interchain_account_id = message.interchain_account_id; return object; - var message = new $root.neutron.interchaintxs.Params(); - if (object.msg_submit_tx_max_messages != null) - if ($util.Long) - (message.msg_submit_tx_max_messages = $util.Long.fromValue(object.msg_submit_tx_max_messages)).unsigned = true; - else if (typeof object.msg_submit_tx_max_messages === "string") - message.msg_submit_tx_max_messages = parseInt(object.msg_submit_tx_max_messages, 10); - else if (typeof object.msg_submit_tx_max_messages === "number") - message.msg_submit_tx_max_messages = object.msg_submit_tx_max_messages; - else if (typeof object.msg_submit_tx_max_messages === "object") - message.msg_submit_tx_max_messages = new $util.LongBits(object.msg_submit_tx_max_messages.low >>> 0, object.msg_submit_tx_max_messages.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 neutron.interchaintxs.Params - * @static - * @param {neutron.interchaintxs.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.msg_submit_tx_max_messages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.msg_submit_tx_max_messages = options.longs === String ? "0" : 0; - if (message.msg_submit_tx_max_messages != null && message.hasOwnProperty("msg_submit_tx_max_messages")) - if (typeof message.msg_submit_tx_max_messages === "number") - object.msg_submit_tx_max_messages = options.longs === String ? String(message.msg_submit_tx_max_messages) : message.msg_submit_tx_max_messages; - else - object.msg_submit_tx_max_messages = options.longs === String ? $util.Long.prototype.toString.call(message.msg_submit_tx_max_messages) : options.longs === Number ? new $util.LongBits(message.msg_submit_tx_max_messages.low >>> 0, message.msg_submit_tx_max_messages.high >>> 0).toNumber(true) : message.msg_submit_tx_max_messages; - return object; - }; + /** + * Converts this MsgRegisterInterchainAccount to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccount + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.Params - * @instance - * @returns {Object.} JSON object - */ - Params.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return MsgRegisterInterchainAccount; + })(); - return Params; - })(); + v1.MsgRegisterInterchainAccountResponse = (function() { - interchaintxs.GenesisState = (function() { + /** + * Properties of a MsgRegisterInterchainAccountResponse. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgRegisterInterchainAccountResponse + */ - /** - * Properties of a GenesisState. - * @memberof neutron.interchaintxs - * @interface IGenesisState - * @property {neutron.interchaintxs.IParams|null} [params] GenesisState params - */ + /** + * Constructs a new MsgRegisterInterchainAccountResponse. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgRegisterInterchainAccountResponse. + * @implements IMsgRegisterInterchainAccountResponse + * @constructor + * @param {neutron.interchaintxs.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]]; + } - /** - * Constructs a new GenesisState. - * @memberof neutron.interchaintxs - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {neutron.interchaintxs.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]]; - } + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {neutron.interchaintxs.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(); + return writer; + }; - /** - * GenesisState params. - * @member {neutron.interchaintxs.IParams|null|undefined} params - * @memberof neutron.interchaintxs.GenesisState - * @instance - */ - GenesisState.prototype.params = null; + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {neutron.interchaintxs.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(); + }; - /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchaintxs.GenesisState.verify|verify} messages. - * @function encode - * @memberof neutron.interchaintxs.GenesisState - * @static - * @param {neutron.interchaintxs.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.params != null && Object.hasOwnProperty.call(message, "params")) - $root.neutron.interchaintxs.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchaintxs.GenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.interchaintxs.GenesisState - * @static - * @param {neutron.interchaintxs.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 neutron.interchaintxs.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.interchaintxs.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.neutron.interchaintxs.GenesisState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.neutron.interchaintxs.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.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.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; - - /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.interchaintxs.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.interchaintxs.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()); - }; - - /** - * Verifies a GenesisState message. - * @function verify - * @memberof neutron.interchaintxs.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.params != null && message.hasOwnProperty("params")) { - var error = $root.neutron.interchaintxs.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + return message; + }; - /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.interchaintxs.GenesisState - * @static - * @param {Object.} object Plain object - * @returns {neutron.interchaintxs.GenesisState} GenesisState - */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.interchaintxs.GenesisState) - return object; - var message = new $root.neutron.interchaintxs.GenesisState(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".neutron.interchaintxs.GenesisState.params: object expected"); - message.params = $root.neutron.interchaintxs.Params.fromObject(object.params); - } - return message; - }; + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.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()); + }; - /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.interchaintxs.GenesisState - * @static - * @param {neutron.interchaintxs.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.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.neutron.interchaintxs.Params.toObject(message.params, options); - return object; - }; + /** + * Verifies a MsgRegisterInterchainAccountResponse message. + * @function verify + * @memberof neutron.interchaintxs.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"; + return null; + }; - /** - * Converts this GenesisState to JSON. - * @function toJSON - * @memberof neutron.interchaintxs.GenesisState - * @instance - * @returns {Object.} JSON object - */ - GenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + */ + MsgRegisterInterchainAccountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse) + return object; + return new $root.neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse(); + }; - return GenesisState; - })(); + /** + * Creates a plain object from a MsgRegisterInterchainAccountResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterInterchainAccountResponse.toObject = function toObject() { + return {}; + }; - return interchaintxs; - })(); + /** + * Converts this MsgRegisterInterchainAccountResponse to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccountResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - neutron.transfer = (function() { + return MsgRegisterInterchainAccountResponse; + })(); - /** - * Namespace transfer. - * @memberof neutron - * @namespace - */ - var transfer = {}; + v1.MsgSubmitTx = (function() { - transfer.Msg = (function() { + /** + * Properties of a MsgSubmitTx. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgSubmitTx + * @property {string|null} [from_address] MsgSubmitTx from_address + * @property {string|null} [interchain_account_id] MsgSubmitTx interchain_account_id + * @property {string|null} [connection_id] MsgSubmitTx connection_id + * @property {Array.|null} [msgs] MsgSubmitTx msgs + * @property {string|null} [memo] MsgSubmitTx memo + * @property {Long|null} [timeout] MsgSubmitTx timeout + * @property {neutron.feerefunder.IFee|null} [fee] MsgSubmitTx fee + */ - /** - * Constructs a new Msg service. - * @memberof neutron.transfer - * @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); - } + /** + * Constructs a new MsgSubmitTx. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgSubmitTx. + * @implements IMsgSubmitTx + * @constructor + * @param {neutron.interchaintxs.v1.IMsgSubmitTx=} [properties] Properties to set + */ + function MsgSubmitTx(properties) { + this.msgs = []; + 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]]; + } - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + /** + * MsgSubmitTx from_address. + * @member {string} from_address + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.from_address = ""; - /** - * Callback as used by {@link neutron.transfer.Msg#transfer}. - * @memberof neutron.transfer.Msg - * @typedef TransferCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {neutron.transfer.MsgTransferResponse} [response] MsgTransferResponse - */ + /** + * MsgSubmitTx interchain_account_id. + * @member {string} interchain_account_id + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.interchain_account_id = ""; - /** - * Calls Transfer. - * @function transfer - * @memberof neutron.transfer.Msg - * @instance - * @param {neutron.transfer.IMsgTransfer} request MsgTransfer message or plain object - * @param {neutron.transfer.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.neutron.transfer.MsgTransfer, $root.neutron.transfer.MsgTransferResponse, request, callback); - }, "name", { value: "Transfer" }); + /** + * MsgSubmitTx connection_id. + * @member {string} connection_id + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.connection_id = ""; - /** - * Calls Transfer. - * @function transfer - * @memberof neutron.transfer.Msg - * @instance - * @param {neutron.transfer.IMsgTransfer} request MsgTransfer message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * MsgSubmitTx msgs. + * @member {Array.} msgs + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.msgs = $util.emptyArray; - return Msg; - })(); + /** + * MsgSubmitTx memo. + * @member {string} memo + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.memo = ""; - transfer.MsgTransfer = (function() { + /** + * MsgSubmitTx timeout. + * @member {Long} timeout + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Properties of a MsgTransfer. - * @memberof neutron.transfer - * @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 - * @property {neutron.feerefunder.IFee|null} [fee] MsgTransfer fee - */ + /** + * MsgSubmitTx fee. + * @member {neutron.feerefunder.IFee|null|undefined} fee + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + */ + MsgSubmitTx.prototype.fee = null; - /** - * Constructs a new MsgTransfer. - * @memberof neutron.transfer - * @classdesc Represents a MsgTransfer. - * @implements IMsgTransfer - * @constructor - * @param {neutron.transfer.IMsgTransfer=} [properties] Properties to set - */ - function MsgTransfer(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 MsgSubmitTx message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {neutron.interchaintxs.v1.IMsgSubmitTx} message MsgSubmitTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitTx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.from_address != null && Object.hasOwnProperty.call(message, "from_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_address); + if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.interchain_account_id); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.connection_id); + if (message.msgs != null && message.msgs.length) + for (var i = 0; i < message.msgs.length; ++i) + $root.google.protobuf.Any.encode(message.msgs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timeout); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; - /** - * MsgTransfer source_port. - * @member {string} source_port - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_port = ""; + /** + * Encodes the specified MsgSubmitTx message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {neutron.interchaintxs.v1.IMsgSubmitTx} message MsgSubmitTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitTx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * MsgTransfer source_channel. - * @member {string} source_channel - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_channel = ""; + /** + * Decodes a MsgSubmitTx message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitTx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgSubmitTx(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.from_address = reader.string(); + break; + case 2: + message.interchain_account_id = reader.string(); + break; + case 3: + message.connection_id = reader.string(); + break; + case 4: + if (!(message.msgs && message.msgs.length)) + message.msgs = []; + message.msgs.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + case 5: + message.memo = reader.string(); + break; + case 6: + message.timeout = reader.uint64(); + break; + case 7: + message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * MsgTransfer token. - * @member {cosmos.base.v1beta1.ICoin|null|undefined} token - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.token = null; + /** + * Decodes a MsgSubmitTx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitTx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * MsgTransfer sender. - * @member {string} sender - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sender = ""; - - /** - * MsgTransfer receiver. - * @member {string} receiver - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.receiver = ""; + /** + * Verifies a MsgSubmitTx message. + * @function verify + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitTx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.from_address != null && message.hasOwnProperty("from_address")) + if (!$util.isString(message.from_address)) + return "from_address: string expected"; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + if (!$util.isString(message.interchain_account_id)) + return "interchain_account_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.msgs != null && message.hasOwnProperty("msgs")) { + if (!Array.isArray(message.msgs)) + return "msgs: array expected"; + for (var i = 0; i < message.msgs.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.msgs[i]); + if (error) + return "msgs." + error; + } + } + if (message.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) + if (!$util.isInteger(message.timeout) && !(message.timeout && $util.isInteger(message.timeout.low) && $util.isInteger(message.timeout.high))) + return "timeout: integer|Long expected"; + if (message.fee != null && message.hasOwnProperty("fee")) { + var error = $root.neutron.feerefunder.Fee.verify(message.fee); + if (error) + return "fee." + error; + } + return null; + }; - /** - * MsgTransfer timeout_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.timeout_height = null; + /** + * Creates a MsgSubmitTx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgSubmitTx} MsgSubmitTx + */ + MsgSubmitTx.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgSubmitTx) + return object; + var message = new $root.neutron.interchaintxs.v1.MsgSubmitTx(); + if (object.from_address != null) + message.from_address = String(object.from_address); + if (object.interchain_account_id != null) + message.interchain_account_id = String(object.interchain_account_id); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.msgs) { + if (!Array.isArray(object.msgs)) + throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.msgs: array expected"); + message.msgs = []; + for (var i = 0; i < object.msgs.length; ++i) { + if (typeof object.msgs[i] !== "object") + throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.msgs: object expected"); + message.msgs[i] = $root.google.protobuf.Any.fromObject(object.msgs[i]); + } + } + if (object.memo != null) + message.memo = String(object.memo); + if (object.timeout != null) + if ($util.Long) + (message.timeout = $util.Long.fromValue(object.timeout)).unsigned = true; + else if (typeof object.timeout === "string") + message.timeout = parseInt(object.timeout, 10); + else if (typeof object.timeout === "number") + message.timeout = object.timeout; + else if (typeof object.timeout === "object") + message.timeout = new $util.LongBits(object.timeout.low >>> 0, object.timeout.high >>> 0).toNumber(true); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".neutron.interchaintxs.v1.MsgSubmitTx.fee: object expected"); + message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); + } + return message; + }; - /** - * MsgTransfer timeout_timestamp. - * @member {Long} timeout_timestamp - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Creates a plain object from a MsgSubmitTx message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @static + * @param {neutron.interchaintxs.v1.MsgSubmitTx} message MsgSubmitTx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitTx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.msgs = []; + if (options.defaults) { + object.from_address = ""; + object.interchain_account_id = ""; + object.connection_id = ""; + object.memo = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout = options.longs === String ? "0" : 0; + object.fee = null; + } + if (message.from_address != null && message.hasOwnProperty("from_address")) + object.from_address = message.from_address; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + object.interchain_account_id = message.interchain_account_id; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.msgs && message.msgs.length) { + object.msgs = []; + for (var j = 0; j < message.msgs.length; ++j) + object.msgs[j] = $root.google.protobuf.Any.toObject(message.msgs[j], options); + } + if (message.memo != null && message.hasOwnProperty("memo")) + object.memo = message.memo; + if (message.timeout != null && message.hasOwnProperty("timeout")) + if (typeof message.timeout === "number") + object.timeout = options.longs === String ? String(message.timeout) : message.timeout; + else + object.timeout = options.longs === String ? $util.Long.prototype.toString.call(message.timeout) : options.longs === Number ? new $util.LongBits(message.timeout.low >>> 0, message.timeout.high >>> 0).toNumber(true) : message.timeout; + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); + return object; + }; - /** - * MsgTransfer memo. - * @member {string} memo - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.memo = ""; + /** + * Converts this MsgSubmitTx to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgSubmitTx + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitTx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MsgTransfer fee. - * @member {neutron.feerefunder.IFee|null|undefined} fee - * @memberof neutron.transfer.MsgTransfer - * @instance - */ - MsgTransfer.prototype.fee = null; + return MsgSubmitTx; + })(); - /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link neutron.transfer.MsgTransfer.verify|verify} messages. - * @function encode - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {neutron.transfer.IMsgTransfer} message MsgTransfer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgTransfer.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.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - return writer; - }; + v1.MsgSubmitTxResponse = (function() { - /** - * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link neutron.transfer.MsgTransfer.verify|verify} messages. - * @function encodeDelimited - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {neutron.transfer.IMsgTransfer} message MsgTransfer message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a MsgSubmitTxResponse. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgSubmitTxResponse + * @property {Long|null} [sequence_id] MsgSubmitTxResponse sequence_id + * @property {string|null} [channel] MsgSubmitTxResponse channel + */ - /** - * Decodes a MsgTransfer message from the specified reader or buffer. - * @function decode - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {neutron.transfer.MsgTransfer} MsgTransfer - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.transfer.MsgTransfer(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.source_port = reader.string(); - break; - case 2: - 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; - case 9: - message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new MsgSubmitTxResponse. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgSubmitTxResponse. + * @implements IMsgSubmitTxResponse + * @constructor + * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse=} [properties] Properties to set + */ + function MsgSubmitTxResponse(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 MsgTransfer message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.transfer.MsgTransfer} MsgTransfer - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MsgSubmitTxResponse sequence_id. + * @member {Long} sequence_id + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @instance + */ + MsgSubmitTxResponse.prototype.sequence_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Verifies a MsgTransfer message. - * @function verify - * @memberof neutron.transfer.MsgTransfer - * @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) { - 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.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - var error = $root.neutron.feerefunder.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - return null; - }; + /** + * MsgSubmitTxResponse channel. + * @member {string} channel + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @instance + */ + MsgSubmitTxResponse.prototype.channel = ""; - /** - * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {Object.} object Plain object - * @returns {neutron.transfer.MsgTransfer} MsgTransfer - */ - MsgTransfer.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.transfer.MsgTransfer) - return object; - var message = new $root.neutron.transfer.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(".neutron.transfer.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(".neutron.transfer.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); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".neutron.transfer.MsgTransfer.fee: object expected"); - message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); - } - return message; - }; + /** + * Encodes the specified MsgSubmitTxResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse} message MsgSubmitTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitTxResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence_id != null && Object.hasOwnProperty.call(message, "sequence_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); + return writer; + }; - /** - * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. - * @function toObject - * @memberof neutron.transfer.MsgTransfer - * @static - * @param {neutron.transfer.MsgTransfer} message MsgTransfer - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgTransfer.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.memo = ""; - object.fee = null; - } - 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; - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); - return object; - }; + /** + * Encodes the specified MsgSubmitTxResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {neutron.interchaintxs.v1.IMsgSubmitTxResponse} message MsgSubmitTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitTxResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this MsgTransfer to JSON. - * @function toJSON - * @memberof neutron.transfer.MsgTransfer - * @instance - * @returns {Object.} JSON object - */ - MsgTransfer.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a MsgSubmitTxResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitTxResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgSubmitTxResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence_id = reader.uint64(); + break; + case 2: + message.channel = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return MsgTransfer; + /** + * Decodes a MsgSubmitTxResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitTxResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgSubmitTxResponse message. + * @function verify + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitTxResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) + if (!$util.isInteger(message.sequence_id) && !(message.sequence_id && $util.isInteger(message.sequence_id.low) && $util.isInteger(message.sequence_id.high))) + return "sequence_id: integer|Long expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + return null; + }; + + /** + * Creates a MsgSubmitTxResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgSubmitTxResponse} MsgSubmitTxResponse + */ + MsgSubmitTxResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgSubmitTxResponse) + return object; + var message = new $root.neutron.interchaintxs.v1.MsgSubmitTxResponse(); + if (object.sequence_id != null) + if ($util.Long) + (message.sequence_id = $util.Long.fromValue(object.sequence_id)).unsigned = true; + else if (typeof object.sequence_id === "string") + message.sequence_id = parseInt(object.sequence_id, 10); + else if (typeof object.sequence_id === "number") + message.sequence_id = object.sequence_id; + else if (typeof object.sequence_id === "object") + message.sequence_id = new $util.LongBits(object.sequence_id.low >>> 0, object.sequence_id.high >>> 0).toNumber(true); + if (object.channel != null) + message.channel = String(object.channel); + return message; + }; + + /** + * Creates a plain object from a MsgSubmitTxResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @static + * @param {neutron.interchaintxs.v1.MsgSubmitTxResponse} message MsgSubmitTxResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitTxResponse.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_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence_id = options.longs === String ? "0" : 0; + object.channel = ""; + } + if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) + if (typeof message.sequence_id === "number") + object.sequence_id = options.longs === String ? String(message.sequence_id) : message.sequence_id; + else + object.sequence_id = options.longs === String ? $util.Long.prototype.toString.call(message.sequence_id) : options.longs === Number ? new $util.LongBits(message.sequence_id.low >>> 0, message.sequence_id.high >>> 0).toNumber(true) : message.sequence_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + return object; + }; + + /** + * Converts this MsgSubmitTxResponse to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgSubmitTxResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitTxResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitTxResponse; + })(); + + v1.MsgUpdateParams = (function() { + + /** + * Properties of a MsgUpdateParams. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {neutron.interchaintxs.IParams|null} [params] MsgUpdateParams params + */ + + /** + * Constructs a new MsgUpdateParams. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams + * @constructor + * @param {neutron.interchaintxs.v1.IMsgUpdateParams=} [properties] Properties to set + */ + function MsgUpdateParams(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]]; + } + + /** + * MsgUpdateParams authority. + * @member {string} authority + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.authority = ""; + + /** + * MsgUpdateParams params. + * @member {neutron.interchaintxs.IParams|null|undefined} params + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @instance + */ + MsgUpdateParams.prototype.params = null; + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParams.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {neutron.interchaintxs.v1.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.interchaintxs.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParams.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {neutron.interchaintxs.v1.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.v1.MsgUpdateParams} MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParams.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgUpdateParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.authority = reader.string(); + break; + case 2: + message.params = $root.neutron.interchaintxs.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.v1.MsgUpdateParams} MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgUpdateParams message. + * @function verify + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgUpdateParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.interchaintxs.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; + + /** + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgUpdateParams} MsgUpdateParams + */ + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgUpdateParams) + return object; + var message = new $root.neutron.interchaintxs.v1.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchaintxs.v1.MsgUpdateParams.params: object expected"); + message.params = $root.neutron.interchaintxs.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @static + * @param {neutron.interchaintxs.v1.MsgUpdateParams} message MsgUpdateParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgUpdateParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.authority = ""; + object.params = null; + } + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.interchaintxs.Params.toObject(message.params, options); + return object; + }; + + /** + * Converts this MsgUpdateParams to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgUpdateParams + * @instance + * @returns {Object.} JSON object + */ + MsgUpdateParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgUpdateParams; + })(); + + v1.MsgUpdateParamsResponse = (function() { + + /** + * Properties of a MsgUpdateParamsResponse. + * @memberof neutron.interchaintxs.v1 + * @interface IMsgUpdateParamsResponse + */ + + /** + * Constructs a new MsgUpdateParamsResponse. + * @memberof neutron.interchaintxs.v1 + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse + * @constructor + * @param {neutron.interchaintxs.v1.IMsgUpdateParamsResponse=} [properties] Properties to set + */ + function MsgUpdateParamsResponse(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 MsgUpdateParamsResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParamsResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {neutron.interchaintxs.v1.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {neutron.interchaintxs.v1.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.v1.MsgUpdateParamsResponse} MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.v1.MsgUpdateParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.v1.MsgUpdateParamsResponse} MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgUpdateParamsResponse message. + * @function verify + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgUpdateParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.v1.MsgUpdateParamsResponse} MsgUpdateParamsResponse + */ + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.v1.MsgUpdateParamsResponse) + return object; + return new $root.neutron.interchaintxs.v1.MsgUpdateParamsResponse(); + }; + + /** + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @static + * @param {neutron.interchaintxs.v1.MsgUpdateParamsResponse} message MsgUpdateParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgUpdateParamsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgUpdateParamsResponse to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.v1.MsgUpdateParamsResponse + * @instance + * @returns {Object.} JSON object + */ + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgUpdateParamsResponse; + })(); + + return v1; })(); - transfer.MsgTransferResponse = (function() { + interchaintxs.Params = (function() { /** - * Properties of a MsgTransferResponse. - * @memberof neutron.transfer - * @interface IMsgTransferResponse - * @property {Long|null} [sequence_id] MsgTransferResponse sequence_id - * @property {string|null} [channel] MsgTransferResponse channel + * Properties of a Params. + * @memberof neutron.interchaintxs + * @interface IParams + * @property {Long|null} [msg_submit_tx_max_messages] Params msg_submit_tx_max_messages */ /** - * Constructs a new MsgTransferResponse. - * @memberof neutron.transfer - * @classdesc Represents a MsgTransferResponse. - * @implements IMsgTransferResponse + * Constructs a new Params. + * @memberof neutron.interchaintxs + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {neutron.transfer.IMsgTransferResponse=} [properties] Properties to set + * @param {neutron.interchaintxs.IParams=} [properties] Properties to set */ - function MsgTransferResponse(properties) { + function Params(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16508,76 +17570,63 @@ } /** - * MsgTransferResponse sequence_id. - * @member {Long} sequence_id - * @memberof neutron.transfer.MsgTransferResponse - * @instance - */ - MsgTransferResponse.prototype.sequence_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgTransferResponse channel. - * @member {string} channel - * @memberof neutron.transfer.MsgTransferResponse + * Params msg_submit_tx_max_messages. + * @member {Long} msg_submit_tx_max_messages + * @memberof neutron.interchaintxs.Params * @instance */ - MsgTransferResponse.prototype.channel = ""; + Params.prototype.msg_submit_tx_max_messages = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified MsgTransferResponse message. Does not implicitly {@link neutron.transfer.MsgTransferResponse.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link neutron.interchaintxs.Params.verify|verify} messages. * @function encode - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static - * @param {neutron.transfer.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {neutron.interchaintxs.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence_id != null && Object.hasOwnProperty.call(message, "sequence_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); + if (message.msg_submit_tx_max_messages != null && Object.hasOwnProperty.call(message, "msg_submit_tx_max_messages")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.msg_submit_tx_max_messages); return writer; }; /** - * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link neutron.transfer.MsgTransferResponse.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchaintxs.Params.verify|verify} messages. * @function encodeDelimited - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static - * @param {neutron.transfer.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {neutron.interchaintxs.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + * @returns {neutron.interchaintxs.Params} Params * @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) { + 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.neutron.transfer.MsgTransferResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence_id = reader.uint64(); - break; - case 2: - message.channel = reader.string(); + message.msg_submit_tx_max_messages = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -16588,117 +17637,108 @@ }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + * @returns {neutron.interchaintxs.Params} Params * @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) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTransferResponse message. + * Verifies a Params message. * @function verify - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @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) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) - if (!$util.isInteger(message.sequence_id) && !(message.sequence_id && $util.isInteger(message.sequence_id.low) && $util.isInteger(message.sequence_id.high))) - return "sequence_id: integer|Long expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; + if (message.msg_submit_tx_max_messages != null && message.hasOwnProperty("msg_submit_tx_max_messages")) + if (!$util.isInteger(message.msg_submit_tx_max_messages) && !(message.msg_submit_tx_max_messages && $util.isInteger(message.msg_submit_tx_max_messages.low) && $util.isInteger(message.msg_submit_tx_max_messages.high))) + return "msg_submit_tx_max_messages: integer|Long expected"; return null; }; /** - * Creates a MsgTransferResponse 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 neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static * @param {Object.} object Plain object - * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + * @returns {neutron.interchaintxs.Params} Params */ - MsgTransferResponse.fromObject = function fromObject(object) { - if (object instanceof $root.neutron.transfer.MsgTransferResponse) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.Params) return object; - var message = new $root.neutron.transfer.MsgTransferResponse(); - if (object.sequence_id != null) + var message = new $root.neutron.interchaintxs.Params(); + if (object.msg_submit_tx_max_messages != null) if ($util.Long) - (message.sequence_id = $util.Long.fromValue(object.sequence_id)).unsigned = true; - else if (typeof object.sequence_id === "string") - message.sequence_id = parseInt(object.sequence_id, 10); - else if (typeof object.sequence_id === "number") - message.sequence_id = object.sequence_id; - else if (typeof object.sequence_id === "object") - message.sequence_id = new $util.LongBits(object.sequence_id.low >>> 0, object.sequence_id.high >>> 0).toNumber(true); - if (object.channel != null) - message.channel = String(object.channel); - return message; - }; + (message.msg_submit_tx_max_messages = $util.Long.fromValue(object.msg_submit_tx_max_messages)).unsigned = true; + else if (typeof object.msg_submit_tx_max_messages === "string") + message.msg_submit_tx_max_messages = parseInt(object.msg_submit_tx_max_messages, 10); + else if (typeof object.msg_submit_tx_max_messages === "number") + message.msg_submit_tx_max_messages = object.msg_submit_tx_max_messages; + else if (typeof object.msg_submit_tx_max_messages === "object") + message.msg_submit_tx_max_messages = new $util.LongBits(object.msg_submit_tx_max_messages.low >>> 0, object.msg_submit_tx_max_messages.high >>> 0).toNumber(true); + return message; + }; /** - * Creates a plain object from a MsgTransferResponse 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 neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @static - * @param {neutron.transfer.MsgTransferResponse} message MsgTransferResponse + * @param {neutron.interchaintxs.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTransferResponse.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, true); - object.sequence_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.msg_submit_tx_max_messages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence_id = options.longs === String ? "0" : 0; - object.channel = ""; - } - if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) - if (typeof message.sequence_id === "number") - object.sequence_id = options.longs === String ? String(message.sequence_id) : message.sequence_id; + object.msg_submit_tx_max_messages = options.longs === String ? "0" : 0; + if (message.msg_submit_tx_max_messages != null && message.hasOwnProperty("msg_submit_tx_max_messages")) + if (typeof message.msg_submit_tx_max_messages === "number") + object.msg_submit_tx_max_messages = options.longs === String ? String(message.msg_submit_tx_max_messages) : message.msg_submit_tx_max_messages; else - object.sequence_id = options.longs === String ? $util.Long.prototype.toString.call(message.sequence_id) : options.longs === Number ? new $util.LongBits(message.sequence_id.low >>> 0, message.sequence_id.high >>> 0).toNumber(true) : message.sequence_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; + object.msg_submit_tx_max_messages = options.longs === String ? $util.Long.prototype.toString.call(message.msg_submit_tx_max_messages) : options.longs === Number ? new $util.LongBits(message.msg_submit_tx_max_messages.low >>> 0, message.msg_submit_tx_max_messages.high >>> 0).toNumber(true) : message.msg_submit_tx_max_messages; return object; }; /** - * Converts this MsgTransferResponse to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof neutron.transfer.MsgTransferResponse + * @memberof neutron.interchaintxs.Params * @instance * @returns {Object.} JSON object */ - MsgTransferResponse.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTransferResponse; + return Params; })(); - transfer.Query = (function() { + interchaintxs.Query = (function() { /** * Constructs a new Query service. - * @memberof neutron.transfer + * @memberof neutron.interchaintxs * @classdesc Represents a Query * @extends $protobuf.rpc.Service * @constructor @@ -16713,4873 +17753,12333 @@ (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Callback as used by {@link neutron.transfer.Query#denomTrace}. - * @memberof neutron.transfer.Query - * @typedef DenomTraceCallback + * Callback as used by {@link neutron.interchaintxs.Query#params}. + * @memberof neutron.interchaintxs.Query + * @typedef ParamsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse + * @param {neutron.interchaintxs.QueryParamsResponse} [response] QueryParamsResponse */ /** - * Calls DenomTrace. - * @function denomTrace - * @memberof neutron.transfer.Query + * Calls Params. + * @function params + * @memberof neutron.interchaintxs.Query * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @param {neutron.transfer.Query.DenomTraceCallback} callback Node-style callback called with the error, if any, and QueryDenomTraceResponse + * @param {neutron.interchaintxs.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.interchaintxs.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse * @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" }); + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.neutron.interchaintxs.QueryParamsRequest, $root.neutron.interchaintxs.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); /** - * Calls DenomTrace. - * @function denomTrace - * @memberof neutron.transfer.Query + * Calls Params. + * @function params + * @memberof neutron.interchaintxs.Query * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @returns {Promise} Promise + * @param {neutron.interchaintxs.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link neutron.transfer.Query#denomTraces}. - * @memberof neutron.transfer.Query - * @typedef DenomTracesCallback + * Callback as used by {@link neutron.interchaintxs.Query#interchainAccountAddress}. + * @memberof neutron.interchaintxs.Query + * @typedef InterchainAccountAddressCallback * @type {function} * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse + * @param {neutron.interchaintxs.QueryInterchainAccountAddressResponse} [response] QueryInterchainAccountAddressResponse */ /** - * Calls DenomTraces. - * @function denomTraces - * @memberof neutron.transfer.Query + * Calls InterchainAccountAddress. + * @function interchainAccountAddress + * @memberof neutron.interchaintxs.Query * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @param {neutron.transfer.Query.DenomTracesCallback} callback Node-style callback called with the error, if any, and QueryDenomTracesResponse + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} request QueryInterchainAccountAddressRequest message or plain object + * @param {neutron.interchaintxs.Query.InterchainAccountAddressCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountAddressResponse * @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" }); + Object.defineProperty(Query.prototype.interchainAccountAddress = function interchainAccountAddress(request, callback) { + return this.rpcCall(interchainAccountAddress, $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest, $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse, request, callback); + }, "name", { value: "InterchainAccountAddress" }); /** - * Calls DenomTraces. - * @function denomTraces - * @memberof neutron.transfer.Query + * Calls InterchainAccountAddress. + * @function interchainAccountAddress + * @memberof neutron.interchaintxs.Query * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @returns {Promise} Promise + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} request QueryInterchainAccountAddressRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ + return Query; + })(); + + interchaintxs.QueryParamsRequest = (function() { + /** - * Callback as used by {@link neutron.transfer.Query#params}. - * @memberof neutron.transfer.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse + * Properties of a QueryParamsRequest. + * @memberof neutron.interchaintxs + * @interface IQueryParamsRequest */ /** - * Calls Params. - * @function params - * @memberof neutron.transfer.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {neutron.transfer.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new QueryParamsRequest. + * @memberof neutron.interchaintxs + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {neutron.interchaintxs.IQueryParamsRequest=} [properties] Properties to set */ - 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" }); + 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]]; + } /** - * Calls Params. - * @function params - * @memberof neutron.transfer.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.QueryParamsRequest + * @static + * @param {neutron.interchaintxs.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; + }; /** - * Callback as used by {@link neutron.transfer.Query#denomHash}. - * @memberof neutron.transfer.Query - * @typedef DenomHashCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} [response] QueryDenomHashResponse + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.QueryParamsRequest + * @static + * @param {neutron.interchaintxs.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(); + }; /** - * Calls DenomHash. - * @function denomHash - * @memberof neutron.transfer.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @param {neutron.transfer.Query.DenomHashCallback} callback Node-style callback called with the error, if any, and QueryDenomHashResponse - * @returns {undefined} - * @variation 1 + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.QueryParamsRequest} QueryParamsRequest + * @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.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" }); + 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.neutron.interchaintxs.QueryParamsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DenomHash. - * @function denomHash - * @memberof neutron.transfer.Query + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.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 neutron.interchaintxs.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 neutron.interchaintxs.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.QueryParamsRequest) + return object; + return new $root.neutron.interchaintxs.QueryParamsRequest(); + }; + + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.QueryParamsRequest + * @static + * @param {neutron.interchaintxs.QueryParamsRequest} message QueryParamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this QueryParamsRequest to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.QueryParamsRequest * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryParamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return QueryParamsRequest; })(); - return transfer; - })(); - - return neutron; - })(); + interchaintxs.QueryParamsResponse = (function() { - $root.gogoproto = (function() { + /** + * Properties of a QueryParamsResponse. + * @memberof neutron.interchaintxs + * @interface IQueryParamsResponse + * @property {neutron.interchaintxs.IParams|null} [params] QueryParamsResponse params + */ - /** - * Namespace gogoproto. - * @exports gogoproto - * @namespace - */ - var gogoproto = {}; + /** + * Constructs a new QueryParamsResponse. + * @memberof neutron.interchaintxs + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {neutron.interchaintxs.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 gogoproto; - })(); + /** + * QueryParamsResponse params. + * @member {neutron.interchaintxs.IParams|null|undefined} params + * @memberof neutron.interchaintxs.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; - $root.cosmos = (function() { + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchaintxs.QueryParamsResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {neutron.interchaintxs.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.neutron.interchaintxs.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Namespace cosmos. - * @exports cosmos - * @namespace - */ - var cosmos = {}; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {neutron.interchaintxs.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(); + }; - cosmos.base = (function() { + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.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.neutron.interchaintxs.QueryParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.neutron.interchaintxs.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Namespace base. - * @memberof cosmos - * @namespace - */ - var base = {}; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.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()); + }; - base.query = (function() { + /** + * Verifies a QueryParamsResponse message. + * @function verify + * @memberof neutron.interchaintxs.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.neutron.interchaintxs.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; /** - * Namespace query. - * @memberof cosmos.base - * @namespace + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.QueryParamsResponse} QueryParamsResponse */ - var query = {}; + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.QueryParamsResponse) + return object; + var message = new $root.neutron.interchaintxs.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchaintxs.QueryParamsResponse.params: object expected"); + message.params = $root.neutron.interchaintxs.Params.fromObject(object.params); + } + return message; + }; - query.v1beta1 = (function() { + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.QueryParamsResponse + * @static + * @param {neutron.interchaintxs.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.neutron.interchaintxs.Params.toObject(message.params, options); + return object; + }; - /** - * Namespace v1beta1. - * @memberof cosmos.base.query - * @namespace - */ - var v1beta1 = {}; + /** + * Converts this QueryParamsResponse to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1beta1.PageRequest = (function() { + return QueryParamsResponse; + })(); - /** - * 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 - */ + interchaintxs.QueryInterchainAccountAddressRequest = (function() { - /** - * 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]]; - } + /** + * Properties of a QueryInterchainAccountAddressRequest. + * @memberof neutron.interchaintxs + * @interface IQueryInterchainAccountAddressRequest + * @property {string|null} [owner_address] QueryInterchainAccountAddressRequest owner_address + * @property {string|null} [interchain_account_id] QueryInterchainAccountAddressRequest interchain_account_id + * @property {string|null} [connection_id] QueryInterchainAccountAddressRequest connection_id + */ - /** - * PageRequest key. - * @member {Uint8Array} key - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.key = $util.newBuffer([]); + /** + * Constructs a new QueryInterchainAccountAddressRequest. + * @memberof neutron.interchaintxs + * @classdesc Represents a QueryInterchainAccountAddressRequest. + * @implements IQueryInterchainAccountAddressRequest + * @constructor + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest=} [properties] Properties to set + */ + function QueryInterchainAccountAddressRequest(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 offset. - * @member {Long} offset - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * QueryInterchainAccountAddressRequest owner_address. + * @member {string} owner_address + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @instance + */ + QueryInterchainAccountAddressRequest.prototype.owner_address = ""; - /** - * PageRequest limit. - * @member {Long} limit - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * QueryInterchainAccountAddressRequest interchain_account_id. + * @member {string} interchain_account_id + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @instance + */ + QueryInterchainAccountAddressRequest.prototype.interchain_account_id = ""; - /** - * PageRequest count_total. - * @member {boolean} count_total - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.count_total = false; + /** + * QueryInterchainAccountAddressRequest connection_id. + * @member {string} connection_id + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @instance + */ + QueryInterchainAccountAddressRequest.prototype.connection_id = ""; - /** - * PageRequest reverse. - * @member {boolean} reverse - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.reverse = false; + /** + * Encodes the specified QueryInterchainAccountAddressRequest message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountAddressRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner_address != null && Object.hasOwnProperty.call(message, "owner_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner_address); + if (message.interchain_account_id != null && Object.hasOwnProperty.call(message, "interchain_account_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.interchain_account_id); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.connection_id); + return writer; + }; - /** - * 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; - }; + /** + * Encodes the specified QueryInterchainAccountAddressRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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 QueryInterchainAccountAddressRequest message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountAddressRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner_address = reader.string(); + break; + case 2: + message.interchain_account_id = reader.string(); + break; + case 3: + message.connection_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountAddressRequest.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, 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()); - }; + /** + * Verifies a QueryInterchainAccountAddressRequest message. + * @function verify + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountAddressRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner_address != null && message.hasOwnProperty("owner_address")) + if (!$util.isString(message.owner_address)) + return "owner_address: string expected"; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + if (!$util.isString(message.interchain_account_id)) + return "interchain_account_id: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + return null; + }; - /** - * 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; - }; + /** + * Creates a QueryInterchainAccountAddressRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressRequest} QueryInterchainAccountAddressRequest + */ + QueryInterchainAccountAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest) + return object; + var message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressRequest(); + if (object.owner_address != null) + message.owner_address = String(object.owner_address); + if (object.interchain_account_id != null) + message.interchain_account_id = String(object.interchain_account_id); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + return message; + }; - /** - * 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; - }; + /** + * Creates a plain object from a QueryInterchainAccountAddressRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @static + * @param {neutron.interchaintxs.QueryInterchainAccountAddressRequest} message QueryInterchainAccountAddressRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountAddressRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.owner_address = ""; + object.interchain_account_id = ""; + object.connection_id = ""; + } + if (message.owner_address != null && message.hasOwnProperty("owner_address")) + object.owner_address = message.owner_address; + if (message.interchain_account_id != null && message.hasOwnProperty("interchain_account_id")) + object.interchain_account_id = message.interchain_account_id; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + return object; + }; - /** - * 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 QueryInterchainAccountAddressRequest to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressRequest + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountAddressRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 QueryInterchainAccountAddressRequest; + })(); - return PageRequest; - })(); + interchaintxs.QueryInterchainAccountAddressResponse = (function() { - v1beta1.PageResponse = (function() { + /** + * Properties of a QueryInterchainAccountAddressResponse. + * @memberof neutron.interchaintxs + * @interface IQueryInterchainAccountAddressResponse + * @property {string|null} [interchain_account_address] QueryInterchainAccountAddressResponse interchain_account_address + */ - /** - * 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 QueryInterchainAccountAddressResponse. + * @memberof neutron.interchaintxs + * @classdesc Represents a QueryInterchainAccountAddressResponse. + * @implements IQueryInterchainAccountAddressResponse + * @constructor + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse=} [properties] Properties to set + */ + function QueryInterchainAccountAddressResponse(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 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]]; - } + /** + * QueryInterchainAccountAddressResponse interchain_account_address. + * @member {string} interchain_account_address + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @instance + */ + QueryInterchainAccountAddressResponse.prototype.interchain_account_address = ""; - /** - * PageResponse next_key. - * @member {Uint8Array} next_key - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - */ - PageResponse.prototype.next_key = $util.newBuffer([]); + /** + * Encodes the specified QueryInterchainAccountAddressResponse message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountAddressResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.interchain_account_address != null && Object.hasOwnProperty.call(message, "interchain_account_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.interchain_account_address); + return writer; + }; - /** - * 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 QueryInterchainAccountAddressResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {neutron.interchaintxs.IQueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - }; + /** + * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountAddressResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interchain_account_address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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 QueryInterchainAccountAddressResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountAddressResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * Verifies a QueryInterchainAccountAddressResponse message. + * @function verify + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountAddressResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.interchain_account_address != null && message.hasOwnProperty("interchain_account_address")) + if (!$util.isString(message.interchain_account_address)) + return "interchain_account_address: string expected"; + return null; + }; - /** - * 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()); - }; + /** + * Creates a QueryInterchainAccountAddressResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.QueryInterchainAccountAddressResponse} QueryInterchainAccountAddressResponse + */ + QueryInterchainAccountAddressResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse) + return object; + var message = new $root.neutron.interchaintxs.QueryInterchainAccountAddressResponse(); + if (object.interchain_account_address != null) + message.interchain_account_address = String(object.interchain_account_address); + return message; + }; - /** - * 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 plain object from a QueryInterchainAccountAddressResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @static + * @param {neutron.interchaintxs.QueryInterchainAccountAddressResponse} message QueryInterchainAccountAddressResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountAddressResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.interchain_account_address = ""; + if (message.interchain_account_address != null && message.hasOwnProperty("interchain_account_address")) + object.interchain_account_address = message.interchain_account_address; + return object; + }; - /** - * 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; - }; + /** + * Converts this QueryInterchainAccountAddressResponse to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.QueryInterchainAccountAddressResponse + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountAddressResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; - }; + return QueryInterchainAccountAddressResponse; + })(); - /** - * 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); - }; + interchaintxs.GenesisState = (function() { - return PageResponse; - })(); + /** + * Properties of a GenesisState. + * @memberof neutron.interchaintxs + * @interface IGenesisState + * @property {neutron.interchaintxs.IParams|null} [params] GenesisState params + */ - return v1beta1; - })(); + /** + * Constructs a new GenesisState. + * @memberof neutron.interchaintxs + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {neutron.interchaintxs.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]]; + } - return query; - })(); + /** + * GenesisState params. + * @member {neutron.interchaintxs.IParams|null|undefined} params + * @memberof neutron.interchaintxs.GenesisState + * @instance + */ + GenesisState.prototype.params = null; - base.v1beta1 = (function() { + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchaintxs.GenesisState.verify|verify} messages. + * @function encode + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {neutron.interchaintxs.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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.neutron.interchaintxs.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Namespace v1beta1. - * @memberof cosmos.base - * @namespace + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchaintxs.GenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {neutron.interchaintxs.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - var v1beta1 = {}; + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - v1beta1.Coin = (function() { + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @function decode + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.interchaintxs.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.neutron.interchaintxs.GenesisState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.neutron.interchaintxs.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a Coin. - * @memberof cosmos.base.v1beta1 - * @interface ICoin - * @property {string|null} [denom] Coin denom - * @property {string|null} [amount] Coin amount - */ + /** + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.interchaintxs.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()); + }; - /** - * 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) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a GenesisState message. + * @function verify + * @memberof neutron.interchaintxs.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.params != null && message.hasOwnProperty("params")) { + var error = $root.neutron.interchaintxs.Params.verify(message.params); + if (error) + return "params." + error; } + return null; + }; - /** - * Coin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.Coin - * @instance - */ - Coin.prototype.denom = ""; - - /** - * Coin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.Coin - * @instance - */ - Coin.prototype.amount = ""; + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {neutron.interchaintxs.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.interchaintxs.GenesisState) + return object; + var message = new $root.neutron.interchaintxs.GenesisState(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".neutron.interchaintxs.GenesisState.params: object expected"); + message.params = $root.neutron.interchaintxs.Params.fromObject(object.params); + } + return message; + }; - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @function encode - * @memberof cosmos.base.v1beta1.Coin - * @static - * @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 - */ - Coin.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); - return writer; - }; - - /** - * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.v1beta1.Coin - * @static - * @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 - */ - Coin.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.interchaintxs.GenesisState + * @static + * @param {neutron.interchaintxs.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.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.neutron.interchaintxs.Params.toObject(message.params, options); + return object; + }; - /** - * Decodes a Coin message from the specified reader or buffer. - * @function decode - * @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.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 - */ - 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.base.v1beta1.Coin(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this GenesisState to JSON. + * @function toJSON + * @memberof neutron.interchaintxs.GenesisState + * @instance + * @returns {Object.} JSON object + */ + GenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a Coin message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.v1beta1.Coin - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - Coin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return GenesisState; + })(); - /** - * Verifies a Coin message. - * @function verify - * @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 - */ - Coin.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"; - return null; - }; + return interchaintxs; + })(); - /** - * Creates a Coin message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.v1beta1.Coin - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.Coin} Coin - */ - Coin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.Coin) - 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); - return message; - }; + neutron.transfer = (function() { - /** - * Creates a plain object from a Coin message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.v1beta1.Coin - * @static - * @param {cosmos.base.v1beta1.Coin} message Coin - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Coin.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - 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; - }; + /** + * Namespace transfer. + * @memberof neutron + * @namespace + */ + var transfer = {}; - /** - * Converts this Coin to JSON. - * @function toJSON - * @memberof cosmos.base.v1beta1.Coin - * @instance - * @returns {Object.} JSON object - */ - Coin.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + transfer.Msg = (function() { - return Coin; - })(); + /** + * Constructs a new Msg service. + * @memberof neutron.transfer + * @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); + } - v1beta1.DecCoin = (function() { + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - /** - * Properties of a DecCoin. - * @memberof cosmos.base.v1beta1 - * @interface IDecCoin - * @property {string|null} [denom] DecCoin denom - * @property {string|null} [amount] DecCoin amount - */ + /** + * Callback as used by {@link neutron.transfer.Msg#transfer}. + * @memberof neutron.transfer.Msg + * @typedef TransferCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {neutron.transfer.MsgTransferResponse} [response] MsgTransferResponse + */ - /** - * Constructs a new DecCoin. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a DecCoin. - * @implements IDecCoin - * @constructor - * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set - */ - function DecCoin(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 Transfer. + * @function transfer + * @memberof neutron.transfer.Msg + * @instance + * @param {neutron.transfer.IMsgTransfer} request MsgTransfer message or plain object + * @param {neutron.transfer.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.neutron.transfer.MsgTransfer, $root.neutron.transfer.MsgTransferResponse, request, callback); + }, "name", { value: "Transfer" }); - /** - * DecCoin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.DecCoin - * @instance - */ - DecCoin.prototype.denom = ""; + /** + * Calls Transfer. + * @function transfer + * @memberof neutron.transfer.Msg + * @instance + * @param {neutron.transfer.IMsgTransfer} request MsgTransfer message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * DecCoin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.DecCoin - * @instance - */ - DecCoin.prototype.amount = ""; + return Msg; + })(); - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @function encode - * @memberof cosmos.base.v1beta1.DecCoin - * @static - * @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 - */ - DecCoin.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); - return writer; - }; + transfer.MsgTransfer = (function() { - /** - * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin - * @static - * @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 - */ - DecCoin.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a MsgTransfer. + * @memberof neutron.transfer + * @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 + * @property {neutron.feerefunder.IFee|null} [fee] MsgTransfer fee + */ - /** - * Decodes a DecCoin message from the specified reader or buffer. - * @function decode - * @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.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 - */ - 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.base.v1beta1.DecCoin(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom = reader.string(); - break; - case 2: - message.amount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new MsgTransfer. + * @memberof neutron.transfer + * @classdesc Represents a MsgTransfer. + * @implements IMsgTransfer + * @constructor + * @param {neutron.transfer.IMsgTransfer=} [properties] Properties to set + */ + function MsgTransfer(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 DecCoin message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DecCoin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MsgTransfer source_port. + * @member {string} source_port + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.source_port = ""; - /** - * Verifies a DecCoin message. - * @function verify - * @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 - */ - DecCoin.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"; - return null; - }; + /** + * MsgTransfer source_channel. + * @member {string} source_channel + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.source_channel = ""; - /** - * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.v1beta1.DecCoin - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin - */ - DecCoin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.DecCoin) - 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); - return message; - }; + /** + * MsgTransfer token. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} token + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.token = null; - /** - * Creates a plain object from a DecCoin message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.v1beta1.DecCoin - * @static - * @param {cosmos.base.v1beta1.DecCoin} message DecCoin - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DecCoin.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - 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; - }; + /** + * MsgTransfer sender. + * @member {string} sender + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.sender = ""; - /** - * Converts this DecCoin to JSON. - * @function toJSON - * @memberof cosmos.base.v1beta1.DecCoin - * @instance - * @returns {Object.} JSON object - */ - DecCoin.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * MsgTransfer receiver. + * @member {string} receiver + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.receiver = ""; - return DecCoin; - })(); + /** + * MsgTransfer timeout_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.timeout_height = null; - v1beta1.IntProto = (function() { + /** + * MsgTransfer timeout_timestamp. + * @member {Long} timeout_timestamp + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Properties of an IntProto. - * @memberof cosmos.base.v1beta1 - * @interface IIntProto - * @property {string|null} [int] IntProto int - */ + /** + * MsgTransfer memo. + * @member {string} memo + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.memo = ""; - /** - * 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]]; - } - - /** - * IntProto int. - * @member {string} int - * @memberof cosmos.base.v1beta1.IntProto - * @instance - */ - IntProto.prototype.int = ""; + /** + * MsgTransfer fee. + * @member {neutron.feerefunder.IFee|null|undefined} fee + * @memberof neutron.transfer.MsgTransfer + * @instance + */ + MsgTransfer.prototype.fee = null; - /** - * 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; - }; + /** + * Encodes the specified MsgTransfer message. Does not implicitly {@link neutron.transfer.MsgTransfer.verify|verify} messages. + * @function encode + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {neutron.transfer.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgTransfer.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.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.neutron.feerefunder.Fee.encode(message.fee, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; - /** - * 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(); - }; + /** + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link neutron.transfer.MsgTransfer.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {neutron.transfer.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - } + /** + * Decodes a MsgTransfer message from the specified reader or buffer. + * @function decode + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.transfer.MsgTransfer} MsgTransfer + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.transfer.MsgTransfer(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.source_port = reader.string(); + break; + case 2: + 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; + case 9: + message.fee = $root.neutron.feerefunder.Fee.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * 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()); - }; + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.transfer.MsgTransfer} MsgTransfer + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * Verifies a MsgTransfer message. + * @function verify + * @memberof neutron.transfer.MsgTransfer + * @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) { + 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.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; + if (message.fee != null && message.hasOwnProperty("fee")) { + var error = $root.neutron.feerefunder.Fee.verify(message.fee); + if (error) + return "fee." + error; + } + return null; + }; - /** - * 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; + /** + * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {Object.} object Plain object + * @returns {neutron.transfer.MsgTransfer} MsgTransfer + */ + MsgTransfer.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.transfer.MsgTransfer) return object; - }; - - /** - * 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); - }; + var message = new $root.neutron.transfer.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(".neutron.transfer.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(".neutron.transfer.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); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".neutron.transfer.MsgTransfer.fee: object expected"); + message.fee = $root.neutron.feerefunder.Fee.fromObject(object.fee); + } + return message; + }; - return IntProto; - })(); + /** + * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.transfer.MsgTransfer + * @static + * @param {neutron.transfer.MsgTransfer} message MsgTransfer + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgTransfer.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.memo = ""; + object.fee = null; + } + 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; + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.neutron.feerefunder.Fee.toObject(message.fee, options); + return object; + }; - v1beta1.DecProto = (function() { + /** + * Converts this MsgTransfer to JSON. + * @function toJSON + * @memberof neutron.transfer.MsgTransfer + * @instance + * @returns {Object.} JSON object + */ + MsgTransfer.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a DecProto. - * @memberof cosmos.base.v1beta1 - * @interface IDecProto - * @property {string|null} [dec] DecProto dec - */ + return MsgTransfer; + })(); - /** - * 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]]; - } + transfer.MsgTransferResponse = (function() { - /** - * DecProto dec. - * @member {string} dec - * @memberof cosmos.base.v1beta1.DecProto - * @instance - */ - DecProto.prototype.dec = ""; + /** + * Properties of a MsgTransferResponse. + * @memberof neutron.transfer + * @interface IMsgTransferResponse + * @property {Long|null} [sequence_id] MsgTransferResponse sequence_id + * @property {string|null} [channel] MsgTransferResponse channel + */ - /** - * 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; - }; + /** + * Constructs a new MsgTransferResponse. + * @memberof neutron.transfer + * @classdesc Represents a MsgTransferResponse. + * @implements IMsgTransferResponse + * @constructor + * @param {neutron.transfer.IMsgTransferResponse=} [properties] Properties to set + */ + function MsgTransferResponse(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 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(); - }; + /** + * MsgTransferResponse sequence_id. + * @member {Long} sequence_id + * @memberof neutron.transfer.MsgTransferResponse + * @instance + */ + MsgTransferResponse.prototype.sequence_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * 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; - }; + /** + * MsgTransferResponse channel. + * @member {string} channel + * @memberof neutron.transfer.MsgTransferResponse + * @instance + */ + MsgTransferResponse.prototype.channel = ""; - /** - * 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()); - }; + /** + * Encodes the specified MsgTransferResponse message. Does not implicitly {@link neutron.transfer.MsgTransferResponse.verify|verify} messages. + * @function encode + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {neutron.transfer.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgTransferResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence_id != null && Object.hasOwnProperty.call(message, "sequence_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); + return writer; + }; - /** - * 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; - }; + /** + * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link neutron.transfer.MsgTransferResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {neutron.transfer.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - }; + /** + * Decodes a MsgTransferResponse message from the specified reader or buffer. + * @function decode + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.neutron.transfer.MsgTransferResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence_id = reader.uint64(); + break; + case 2: + message.channel = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + 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; + /** + * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgTransferResponse message. + * @function verify + * @memberof neutron.transfer.MsgTransferResponse + * @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) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) + if (!$util.isInteger(message.sequence_id) && !(message.sequence_id && $util.isInteger(message.sequence_id.low) && $util.isInteger(message.sequence_id.high))) + return "sequence_id: integer|Long expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + return null; + }; + + /** + * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {Object.} object Plain object + * @returns {neutron.transfer.MsgTransferResponse} MsgTransferResponse + */ + MsgTransferResponse.fromObject = function fromObject(object) { + if (object instanceof $root.neutron.transfer.MsgTransferResponse) return object; - }; + var message = new $root.neutron.transfer.MsgTransferResponse(); + if (object.sequence_id != null) + if ($util.Long) + (message.sequence_id = $util.Long.fromValue(object.sequence_id)).unsigned = true; + else if (typeof object.sequence_id === "string") + message.sequence_id = parseInt(object.sequence_id, 10); + else if (typeof object.sequence_id === "number") + message.sequence_id = object.sequence_id; + else if (typeof object.sequence_id === "object") + message.sequence_id = new $util.LongBits(object.sequence_id.low >>> 0, object.sequence_id.high >>> 0).toNumber(true); + if (object.channel != null) + message.channel = String(object.channel); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof neutron.transfer.MsgTransferResponse + * @static + * @param {neutron.transfer.MsgTransferResponse} message MsgTransferResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgTransferResponse.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_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence_id = options.longs === String ? "0" : 0; + object.channel = ""; + } + if (message.sequence_id != null && message.hasOwnProperty("sequence_id")) + if (typeof message.sequence_id === "number") + object.sequence_id = options.longs === String ? String(message.sequence_id) : message.sequence_id; + else + object.sequence_id = options.longs === String ? $util.Long.prototype.toString.call(message.sequence_id) : options.longs === Number ? new $util.LongBits(message.sequence_id.low >>> 0, message.sequence_id.high >>> 0).toNumber(true) : message.sequence_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + return object; + }; - return DecProto; - })(); + /** + * Converts this MsgTransferResponse to JSON. + * @function toJSON + * @memberof neutron.transfer.MsgTransferResponse + * @instance + * @returns {Object.} JSON object + */ + MsgTransferResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return v1beta1; + return MsgTransferResponse; })(); - return base; + transfer.Query = (function() { + + /** + * Constructs a new Query service. + * @memberof neutron.transfer + * @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 neutron.transfer.Query#denomTrace}. + * @memberof neutron.transfer.Query + * @typedef DenomTraceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse + */ + + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @param {neutron.transfer.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" }); + + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.transfer.Query#denomTraces}. + * @memberof neutron.transfer.Query + * @typedef DenomTracesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse + */ + + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @param {neutron.transfer.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" }); + + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.transfer.Query#params}. + * @memberof neutron.transfer.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse + */ + + /** + * Calls Params. + * @function params + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {neutron.transfer.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" }); + + /** + * Calls Params. + * @function params + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link neutron.transfer.Query#denomHash}. + * @memberof neutron.transfer.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 neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @param {neutron.transfer.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" }); + + /** + * Calls DenomHash. + * @function denomHash + * @memberof neutron.transfer.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + return transfer; })(); - cosmos.upgrade = (function() { + return neutron; + })(); + + $root.gogoproto = (function() { + + /** + * Namespace gogoproto. + * @exports gogoproto + * @namespace + */ + var gogoproto = {}; + + return gogoproto; + })(); + + $root.ibc = (function() { + + /** + * Namespace ibc. + * @exports ibc + * @namespace + */ + var ibc = {}; + + ibc.core = (function() { /** - * Namespace upgrade. - * @memberof cosmos + * Namespace core. + * @memberof ibc * @namespace */ - var upgrade = {}; + var core = {}; - upgrade.v1beta1 = (function() { + core.channel = (function() { /** - * Namespace v1beta1. - * @memberof cosmos.upgrade + * Namespace channel. + * @memberof ibc.core * @namespace */ - var v1beta1 = {}; - - v1beta1.Plan = (function() { + var channel = {}; - /** - * 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 - */ + channel.v1 = (function() { /** - * Constructs a new Plan. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a Plan. - * @implements IPlan - * @constructor - * @param {cosmos.upgrade.v1beta1.IPlan=} [properties] Properties to set + * Namespace v1. + * @memberof ibc.core.channel + * @namespace */ - 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]]; - } + var v1 = {}; - /** - * Plan name. - * @member {string} name - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.name = ""; + v1.Channel = (function() { - /** - * Plan time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.time = null; + /** + * 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 + */ - /** - * Plan height. - * @member {Long} height - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * 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]]; + } - /** - * Plan info. - * @member {string} info - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.info = ""; + /** + * Channel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.state = 0; - /** - * 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; + /** + * Channel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.ordering = 0; - /** - * 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; - }; + /** + * Channel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.counterparty = null; - /** - * 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(); - }; + /** + * Channel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.connection_hops = $util.emptyArray; - /** - * 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) { + /** + * Channel version. + * @member {string} version + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.version = ""; + + /** + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.Channel + * @static + * @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 + */ + 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 Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.channel.v1.Channel + * @static + * @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 + */ + Channel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Channel message from the specified reader or buffer. + * @function decode + * @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.Channel} Channel + * @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) { + 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(); + 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; + } + } + return message; + }; + + /** + * Decodes a Channel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.Channel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Channel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Channel message. + * @function verify + * @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 + */ + 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 Channel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.Channel + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.Channel} Channel + */ + Channel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Channel) + 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.name = reader.string(); + message.state = 1; break; + case "STATE_TRYOPEN": case 2: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.state = 2; break; + case "STATE_OPEN": case 3: - message.height = reader.int64(); + message.state = 3; break; + case "STATE_CLOSED": case 4: - message.info = reader.string(); + message.state = 4; break; - case 5: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + } + switch (object.ordering) { + case "ORDER_NONE_UNSPECIFIED": + case 0: + message.ordering = 0; break; - default: - reader.skipType(tag & 7); + case "ORDER_UNORDERED": + case 1: + message.ordering = 1; + break; + case "ORDER_ORDERED": + case 2: + message.ordering = 2; break; } - } - return message; - }; + 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; + }; - /** - * 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()); - }; + /** + * Creates a plain object from a Channel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.Channel + * @static + * @param {ibc.core.channel.v1.Channel} message Channel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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; + }; - /** - * 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; - }; + /** + * Converts this Channel to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.Channel + * @instance + * @returns {Object.} JSON object + */ + Channel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; - }; + return Channel; + })(); - /** - * 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; - }; + v1.IdentifiedChannel = (function() { - /** - * 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); - }; + /** + * 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 + */ - return Plan; - })(); + /** + * Constructs a new IdentifiedChannel. + * @memberof ibc.core.channel.v1 + * @classdesc Represents an IdentifiedChannel. + * @implements IIdentifiedChannel + * @constructor + * @param {ibc.core.channel.v1.IIdentifiedChannel=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; + } - v1beta1.SoftwareUpgradeProposal = (function() { + /** + * IdentifiedChannel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.state = 0; - /** - * 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 - */ + /** + * IdentifiedChannel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.ordering = 0; - /** - * 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]]; - } + /** + * IdentifiedChannel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.counterparty = null; - /** - * SoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.title = ""; + /** + * IdentifiedChannel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.connection_hops = $util.emptyArray; - /** - * SoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.description = ""; + /** + * IdentifiedChannel version. + * @member {string} version + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.version = ""; - /** - * SoftwareUpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.plan = null; + /** + * IdentifiedChannel port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.port_id = ""; - /** - * 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; - }; + /** + * IdentifiedChannel channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.channel_id = ""; - /** - * 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(); - }; + /** + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @static + * @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 + */ + 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 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); + return writer; + }; - /** - * 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; + /** + * 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.IdentifiedChannel + * @static + * @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 + */ + IdentifiedChannel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IdentifiedChannel message from the specified reader or buffer. + * @function decode + * @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.IdentifiedChannel} IdentifiedChannel + * @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) { + 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(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + IdentifiedChannel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IdentifiedChannel message. + * @function verify + * @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 + */ + 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"; + return null; + }; + + /** + * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + */ + IdentifiedChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.IdentifiedChannel) + 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.description = reader.string(); + message.state = 2; break; + case "STATE_OPEN": case 3: - message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + message.state = 3; break; - default: - reader.skipType(tag & 7); + case "STATE_CLOSED": + case 4: + message.state = 4; break; } - } - return message; - }; + 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); + 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()); - }; + /** + * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @static + * @param {ibc.core.channel.v1.IdentifiedChannel} message IdentifiedChannel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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 = ""; + } + 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; + return object; + }; - /** - * 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; - }; + /** + * Converts this IdentifiedChannel to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + * @returns {Object.} JSON object + */ + IdentifiedChannel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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; - }; + return IdentifiedChannel; + })(); /** - * 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 + * 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 */ - 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; - }; + 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; + })(); /** - * Converts this SoftwareUpgradeProposal to JSON. - * @function toJSON - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - * @returns {Object.} JSON object + * 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 */ - SoftwareUpgradeProposal.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SoftwareUpgradeProposal; - })(); + 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; + })(); - v1beta1.CancelSoftwareUpgradeProposal = (function() { + v1.Counterparty = (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 Counterparty. + * @memberof ibc.core.channel.v1 + * @interface ICounterparty + * @property {string|null} [port_id] Counterparty port_id + * @property {string|null} [channel_id] Counterparty channel_id + */ - /** - * 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]]; - } + /** + * Constructs a new Counterparty. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a Counterparty. + * @implements ICounterparty + * @constructor + * @param {ibc.core.channel.v1.ICounterparty=} [properties] Properties to set + */ + function Counterparty(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 = ""; + /** + * Counterparty port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.port_id = ""; - /** - * CancelSoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal - * @instance - */ - CancelSoftwareUpgradeProposal.prototype.description = ""; + /** + * Counterparty channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.channel_id = ""; - /** - * 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 Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.Counterparty + * @static + * @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 + */ + 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 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(); - }; + /** + * 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.Counterparty + * @static + * @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 + */ + Counterparty.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; + /** + * Decodes a Counterparty message from the specified reader or buffer. + * @function decode + * @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.Counterparty} Counterparty + * @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) { + 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(); + 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; - }; + 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()); - }; + /** + * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.Counterparty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Counterparty.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; - }; + /** + * Verifies a Counterparty message. + * @function verify + * @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 + */ + 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 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 Counterparty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.Counterparty + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.Counterparty} Counterparty + */ + Counterparty.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Counterparty) + 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); + 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; - }; + /** + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.Counterparty + * @static + * @param {ibc.core.channel.v1.Counterparty} message Counterparty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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 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); - }; + /** + * Converts this Counterparty to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.Counterparty + * @instance + * @returns {Object.} JSON object + */ + Counterparty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CancelSoftwareUpgradeProposal; - })(); + return Counterparty; + })(); - v1beta1.ModuleVersion = (function() { + v1.Packet = (function() { - /** - * Properties of a ModuleVersion. - * @memberof cosmos.upgrade.v1beta1 - * @interface IModuleVersion - * @property {string|null} [name] ModuleVersion name - * @property {Long|null} [version] ModuleVersion version - */ + /** + * 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 + */ - /** - * 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]]; - } + /** + * Constructs a new Packet. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a Packet. + * @implements IPacket + * @constructor + * @param {ibc.core.channel.v1.IPacket=} [properties] Properties to set + */ + function Packet(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 = ""; + /** + * Packet sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * ModuleVersion version. - * @member {Long} version - * @memberof cosmos.upgrade.v1beta1.ModuleVersion - * @instance - */ - ModuleVersion.prototype.version = $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 = ""; - /** - * 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; - }; + /** + * Packet source_channel. + * @member {string} source_channel + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.source_channel = ""; - /** - * 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(); - }; + /** + * Packet destination_port. + * @member {string} destination_port + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.destination_port = ""; - /** - * 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; - }; + /** + * Packet destination_channel. + * @member {string} destination_channel + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.destination_channel = ""; - /** - * 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()); - }; + /** + * Packet data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.data = $util.newBuffer([]); - /** - * 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; - }; + /** + * 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; - /** - * 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; - }; + /** + * 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; - /** - * 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; - }; + /** + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.Packet + * @static + * @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 + */ + Packet.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); + return writer; + }; - /** - * 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); - }; + /** + * 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.Packet + * @static + * @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 + */ + Packet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return ModuleVersion; - })(); + /** + * Decodes a Packet message from the specified reader or buffer. + * @function decode + * @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.Packet} Packet + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return v1beta1; - })(); + /** + * Decodes a Packet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.Packet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Packet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return upgrade; - })(); + /** + * Verifies a Packet message. + * @function verify + * @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 + */ + Packet.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 (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"; + return null; + }; - return cosmos; - })(); + /** + * Creates a Packet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.Packet + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.Packet} Packet + */ + Packet.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Packet) + 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); + } + 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; + }; - $root.tendermint = (function() { + /** + * Creates a plain object from a Packet message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.Packet + * @static + * @param {ibc.core.channel.v1.Packet} message Packet + * @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; + }; - /** - * Namespace tendermint. - * @exports tendermint - * @namespace - */ - var tendermint = {}; + /** + * Converts this Packet to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.Packet + * @instance + * @returns {Object.} JSON object + */ + Packet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - tendermint.crypto = (function() { + return Packet; + })(); - /** - * Namespace crypto. - * @memberof tendermint - * @namespace - */ - var crypto = {}; + v1.PacketState = (function() { - crypto.Proof = (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 Proof. - * @memberof tendermint.crypto - * @interface IProof - * @property {Long|null} [total] Proof total - * @property {Long|null} [index] Proof index - * @property {Uint8Array|null} [leaf_hash] Proof leaf_hash - * @property {Array.|null} [aunts] Proof aunts - */ + /** + * Constructs a new PacketState. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a PacketState. + * @implements IPacketState + * @constructor + * @param {ibc.core.channel.v1.IPacketState=} [properties] Properties to set + */ + function PacketState(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 Proof. - * @memberof tendermint.crypto - * @classdesc Represents a Proof. - * @implements IProof - * @constructor - * @param {tendermint.crypto.IProof=} [properties] Properties to set - */ - function Proof(properties) { - this.aunts = []; - 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]]; - } + /** + * PacketState port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.port_id = ""; - /** - * Proof total. - * @member {Long} total - * @memberof tendermint.crypto.Proof - * @instance - */ - Proof.prototype.total = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * PacketState channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.channel_id = ""; - /** - * Proof index. - * @member {Long} index - * @memberof tendermint.crypto.Proof - * @instance - */ - Proof.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * PacketState sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Proof leaf_hash. - * @member {Uint8Array} leaf_hash - * @memberof tendermint.crypto.Proof - * @instance - */ - Proof.prototype.leaf_hash = $util.newBuffer([]); + /** + * PacketState data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.data = $util.newBuffer([]); - /** - * Proof aunts. - * @member {Array.} aunts - * @memberof tendermint.crypto.Proof - * @instance - */ - Proof.prototype.aunts = $util.emptyArray; + /** + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.PacketState + * @static + * @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 + */ + 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 Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.Proof - * @static - * @param {tendermint.crypto.IProof} message Proof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Proof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.total); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.index); - if (message.leaf_hash != null && Object.hasOwnProperty.call(message, "leaf_hash")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.leaf_hash); - if (message.aunts != null && message.aunts.length) - for (var i = 0; i < message.aunts.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.aunts[i]); - return writer; - }; + /** + * 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.PacketState + * @static + * @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 + */ + PacketState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Proof message, length delimited. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.Proof - * @static - * @param {tendermint.crypto.IProof} message Proof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Proof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a PacketState message from the specified reader or buffer. + * @function decode + * @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.PacketState} PacketState + * @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) { + 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(); + 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; + } + } + return message; + }; - /** - * Decodes a Proof message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.Proof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.Proof} Proof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Proof.decode = 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.crypto.Proof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.total = reader.int64(); - break; - case 2: - message.index = reader.int64(); - break; - case 3: - message.leaf_hash = reader.bytes(); - break; - case 4: - if (!(message.aunts && message.aunts.length)) - message.aunts = []; - message.aunts.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a PacketState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.PacketState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + PacketState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a Proof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.Proof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.Proof} Proof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Proof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a PacketState message. + * @function verify + * @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 + */ + 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; + }; - /** - * Verifies a Proof message. - * @function verify - * @memberof tendermint.crypto.Proof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Proof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object 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"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) - return "index: integer|Long expected"; - if (message.leaf_hash != null && message.hasOwnProperty("leaf_hash")) - if (!(message.leaf_hash && typeof message.leaf_hash.length === "number" || $util.isString(message.leaf_hash))) - return "leaf_hash: buffer expected"; - if (message.aunts != null && message.hasOwnProperty("aunts")) { - if (!Array.isArray(message.aunts)) - return "aunts: array expected"; - for (var i = 0; i < message.aunts.length; ++i) - if (!(message.aunts[i] && typeof message.aunts[i].length === "number" || $util.isString(message.aunts[i]))) - return "aunts: buffer[] expected"; - } - return null; - }; + /** + * Creates a PacketState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.PacketState + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.PacketState} PacketState + */ + PacketState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketState) + 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; + return message; + }; - /** - * Creates a Proof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.Proof - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.Proof} Proof - */ - Proof.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.Proof) - return object; - var message = new $root.tendermint.crypto.Proof(); - if (object.total != null) - if ($util.Long) - (message.total = $util.Long.fromValue(object.total)).unsigned = false; - 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(); - if (object.index != null) - if ($util.Long) - (message.index = $util.Long.fromValue(object.index)).unsigned = false; - else if (typeof object.index === "string") - message.index = parseInt(object.index, 10); - else if (typeof object.index === "number") - message.index = object.index; - else if (typeof object.index === "object") - message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); - if (object.leaf_hash != null) - if (typeof object.leaf_hash === "string") - $util.base64.decode(object.leaf_hash, message.leaf_hash = $util.newBuffer($util.base64.length(object.leaf_hash)), 0); - else if (object.leaf_hash.length) - message.leaf_hash = object.leaf_hash; - if (object.aunts) { - if (!Array.isArray(object.aunts)) - throw TypeError(".tendermint.crypto.Proof.aunts: array expected"); - message.aunts = []; - for (var i = 0; i < object.aunts.length; ++i) - if (typeof object.aunts[i] === "string") - $util.base64.decode(object.aunts[i], message.aunts[i] = $util.newBuffer($util.base64.length(object.aunts[i])), 0); - else if (object.aunts[i].length) - message.aunts[i] = object.aunts[i]; - } - return message; - }; + /** + * Creates a plain object from a PacketState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.PacketState + * @static + * @param {ibc.core.channel.v1.PacketState} message PacketState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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; + }; - /** - * Creates a plain object from a Proof message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.Proof - * @static - * @param {tendermint.crypto.Proof} message Proof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Proof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.aunts = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.total = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.index = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.leaf_hash = ""; - else { - object.leaf_hash = []; - if (options.bytes !== Array) - object.leaf_hash = $util.newBuffer(object.leaf_hash); - } - } - 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() : message.total; - if (message.index != null && message.hasOwnProperty("index")) - if (typeof message.index === "number") - object.index = options.longs === String ? String(message.index) : message.index; - else - object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; - if (message.leaf_hash != null && message.hasOwnProperty("leaf_hash")) - object.leaf_hash = options.bytes === String ? $util.base64.encode(message.leaf_hash, 0, message.leaf_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.leaf_hash) : message.leaf_hash; - if (message.aunts && message.aunts.length) { - object.aunts = []; - for (var j = 0; j < message.aunts.length; ++j) - object.aunts[j] = options.bytes === String ? $util.base64.encode(message.aunts[j], 0, message.aunts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.aunts[j]) : message.aunts[j]; - } - return object; - }; + /** + * Converts this PacketState to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.PacketState + * @instance + * @returns {Object.} JSON object + */ + PacketState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Proof to JSON. - * @function toJSON - * @memberof tendermint.crypto.Proof - * @instance - * @returns {Object.} JSON object - */ - Proof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return PacketState; + })(); - return Proof; - })(); + v1.PacketId = (function() { - crypto.ValueOp = (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 ValueOp. - * @memberof tendermint.crypto - * @interface IValueOp - * @property {Uint8Array|null} [key] ValueOp key - * @property {tendermint.crypto.IProof|null} [proof] ValueOp proof - */ + /** + * Constructs a new PacketId. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a PacketId. + * @implements IPacketId + * @constructor + * @param {ibc.core.channel.v1.IPacketId=} [properties] Properties to set + */ + function PacketId(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 ValueOp. - * @memberof tendermint.crypto - * @classdesc Represents a ValueOp. - * @implements IValueOp - * @constructor - * @param {tendermint.crypto.IValueOp=} [properties] Properties to set - */ - function ValueOp(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]]; - } + /** + * PacketId port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketId + * @instance + */ + PacketId.prototype.port_id = ""; - /** - * ValueOp key. - * @member {Uint8Array} key - * @memberof tendermint.crypto.ValueOp - * @instance - */ - ValueOp.prototype.key = $util.newBuffer([]); + /** + * PacketId channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketId + * @instance + */ + PacketId.prototype.channel_id = ""; - /** - * ValueOp proof. - * @member {tendermint.crypto.IProof|null|undefined} proof - * @memberof tendermint.crypto.ValueOp - * @instance - */ - ValueOp.prototype.proof = null; + /** + * PacketId sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketId + * @instance + */ + PacketId.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.ValueOp - * @static - * @param {tendermint.crypto.IValueOp} message ValueOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValueOp.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.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.PacketId + * @static + * @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 + */ + PacketId.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 ValueOp message, length delimited. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.ValueOp - * @static - * @param {tendermint.crypto.IValueOp} message ValueOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValueOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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.PacketId + * @static + * @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 + */ + PacketId.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ValueOp message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.ValueOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.ValueOp} ValueOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValueOp.decode = 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.crypto.ValueOp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a PacketId message from the specified reader or buffer. + * @function decode + * @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.PacketId} PacketId + * @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) { + 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(); + 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 ValueOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.ValueOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.ValueOp} ValueOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValueOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PacketId message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.PacketId + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + PacketId.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ValueOp message. - * @function verify - * @memberof tendermint.crypto.ValueOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ValueOp.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.proof != null && message.hasOwnProperty("proof")) { - var error = $root.tendermint.crypto.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - return null; - }; + /** + * Verifies a PacketId message. + * @function verify + * @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 + */ + PacketId.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; + }; - /** - * Creates a ValueOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.ValueOp - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.ValueOp} ValueOp - */ - ValueOp.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.ValueOp) - return object; - var message = new $root.tendermint.crypto.ValueOp(); - 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.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".tendermint.crypto.ValueOp.proof: object expected"); - message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); - } - return message; - }; + /** + * Creates a PacketId message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.PacketId + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.PacketId} PacketId + */ + PacketId.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketId) + 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); + return message; + }; - /** - * Creates a plain object from a ValueOp message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.ValueOp - * @static - * @param {tendermint.crypto.ValueOp} message ValueOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ValueOp.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.proof = 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.proof != null && message.hasOwnProperty("proof")) - object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); - return object; - }; + /** + * Creates a plain object from a PacketId message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.PacketId + * @static + * @param {ibc.core.channel.v1.PacketId} message PacketId + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PacketId.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 ValueOp to JSON. - * @function toJSON - * @memberof tendermint.crypto.ValueOp - * @instance - * @returns {Object.} JSON object - */ - ValueOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this PacketId to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.PacketId + * @instance + * @returns {Object.} JSON object + */ + PacketId.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ValueOp; - })(); + return PacketId; + })(); - crypto.DominoOp = (function() { + v1.Acknowledgement = (function() { - /** - * Properties of a DominoOp. - * @memberof tendermint.crypto - * @interface IDominoOp - * @property {string|null} [key] DominoOp key - * @property {string|null} [input] DominoOp input - * @property {string|null} [output] DominoOp output - */ + /** + * Properties of an Acknowledgement. + * @memberof ibc.core.channel.v1 + * @interface IAcknowledgement + * @property {Uint8Array|null} [result] Acknowledgement result + * @property {string|null} [error] Acknowledgement error + */ - /** - * Constructs a new DominoOp. - * @memberof tendermint.crypto - * @classdesc Represents a DominoOp. - * @implements IDominoOp - * @constructor - * @param {tendermint.crypto.IDominoOp=} [properties] Properties to set - */ - function DominoOp(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 Acknowledgement. + * @memberof ibc.core.channel.v1 + * @classdesc Represents an Acknowledgement. + * @implements IAcknowledgement + * @constructor + * @param {ibc.core.channel.v1.IAcknowledgement=} [properties] Properties to set + */ + function Acknowledgement(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]]; + } - /** - * DominoOp key. - * @member {string} key - * @memberof tendermint.crypto.DominoOp - * @instance - */ - DominoOp.prototype.key = ""; + /** + * Acknowledgement result. + * @member {Uint8Array|null|undefined} result + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Acknowledgement.prototype.result = null; - /** - * DominoOp input. - * @member {string} input - * @memberof tendermint.crypto.DominoOp - * @instance - */ - DominoOp.prototype.input = ""; + /** + * Acknowledgement error. + * @member {string|null|undefined} error + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Acknowledgement.prototype.error = null; - /** - * DominoOp output. - * @member {string} output - * @memberof tendermint.crypto.DominoOp - * @instance - */ - DominoOp.prototype.output = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.DominoOp - * @static - * @param {tendermint.crypto.IDominoOp} message DominoOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DominoOp.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).string(message.key); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.input); - if (message.output != null && Object.hasOwnProperty.call(message, "output")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.output); - return writer; - }; + /** + * 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 DominoOp message, length delimited. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.DominoOp - * @static - * @param {tendermint.crypto.IDominoOp} message DominoOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DominoOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.Acknowledgement + * @static + * @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 + */ + Acknowledgement.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); + return writer; + }; - /** - * Decodes a DominoOp message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.DominoOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.DominoOp} DominoOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DominoOp.decode = 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.crypto.DominoOp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.input = reader.string(); - break; - case 3: - message.output = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * 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.Acknowledgement + * @static + * @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 + */ + Acknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DominoOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.DominoOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.DominoOp} DominoOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DominoOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an Acknowledgement message from the specified reader or buffer. + * @function decode + * @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.Acknowledgement} Acknowledgement + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 21: + message.result = reader.bytes(); + break; + case 22: + message.error = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a DominoOp message. - * @function verify - * @memberof tendermint.crypto.DominoOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DominoOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.input != null && message.hasOwnProperty("input")) - if (!$util.isString(message.input)) - return "input: string expected"; - if (message.output != null && message.hasOwnProperty("output")) - if (!$util.isString(message.output)) - return "output: string expected"; - return null; - }; + /** + * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.Acknowledgement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Acknowledgement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a DominoOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.DominoOp - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.DominoOp} DominoOp - */ - DominoOp.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.DominoOp) - return object; - var message = new $root.tendermint.crypto.DominoOp(); - if (object.key != null) - message.key = String(object.key); - if (object.input != null) - message.input = String(object.input); - if (object.output != null) - message.output = String(object.output); - return message; - }; + /** + * Verifies an Acknowledgement message. + * @function verify + * @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 + */ + Acknowledgement.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"; + } + return null; + }; - /** - * Creates a plain object from a DominoOp message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.DominoOp - * @static - * @param {tendermint.crypto.DominoOp} message DominoOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DominoOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.key = ""; - object.input = ""; - object.output = ""; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.input != null && message.hasOwnProperty("input")) - object.input = message.input; - if (message.output != null && message.hasOwnProperty("output")) - object.output = message.output; - return object; - }; + /** + * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.Acknowledgement + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + */ + Acknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Acknowledgement) + 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); + return message; + }; - /** - * Converts this DominoOp to JSON. - * @function toJSON - * @memberof tendermint.crypto.DominoOp - * @instance - * @returns {Object.} JSON object - */ - DominoOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.Acknowledgement + * @static + * @param {ibc.core.channel.v1.Acknowledgement} message Acknowledgement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Acknowledgement.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"; + } + return object; + }; - return DominoOp; + /** + * 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; + })(); + + return v1; + })(); + + return channel; })(); - crypto.ProofOp = (function() { + core.client = (function() { /** - * Properties of a ProofOp. - * @memberof tendermint.crypto - * @interface IProofOp - * @property {string|null} [type] ProofOp type - * @property {Uint8Array|null} [key] ProofOp key - * @property {Uint8Array|null} [data] ProofOp data + * Namespace client. + * @memberof ibc.core + * @namespace */ + var client = {}; - /** - * Constructs a new ProofOp. - * @memberof tendermint.crypto - * @classdesc Represents a ProofOp. - * @implements IProofOp - * @constructor - * @param {tendermint.crypto.IProofOp=} [properties] Properties to set - */ - function ProofOp(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]]; - } - - /** - * ProofOp type. - * @member {string} type - * @memberof tendermint.crypto.ProofOp - * @instance - */ - ProofOp.prototype.type = ""; - - /** - * ProofOp key. - * @member {Uint8Array} key - * @memberof tendermint.crypto.ProofOp - * @instance - */ - ProofOp.prototype.key = $util.newBuffer([]); + client.v1 = (function() { - /** - * ProofOp data. - * @member {Uint8Array} data - * @memberof tendermint.crypto.ProofOp - * @instance - */ - ProofOp.prototype.data = $util.newBuffer([]); + /** + * Namespace v1. + * @memberof ibc.core.client + * @namespace + */ + var v1 = {}; - /** - * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.ProofOp - * @static - * @param {tendermint.crypto.IProofOp} message ProofOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofOp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - return writer; - }; + v1.IdentifiedClientState = (function() { - /** - * Encodes the specified ProofOp message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.ProofOp - * @static - * @param {tendermint.crypto.IProofOp} message ProofOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a ProofOp message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.ProofOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.ProofOp} ProofOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofOp.decode = 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.crypto.ProofOp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.key = reader.bytes(); - break; - case 3: - message.data = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new IdentifiedClientState. + * @memberof ibc.core.client.v1 + * @classdesc Represents an IdentifiedClientState. + * @implements IIdentifiedClientState + * @constructor + * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set + */ + function IdentifiedClientState(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 ProofOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.ProofOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.ProofOp} ProofOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * IdentifiedClientState client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.IdentifiedClientState + * @instance + */ + IdentifiedClientState.prototype.client_id = ""; - /** - * Verifies a ProofOp message. - * @function verify - * @memberof tendermint.crypto.ProofOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProofOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: 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.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - return null; - }; + /** + * IdentifiedClientState client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.IdentifiedClientState + * @instance + */ + IdentifiedClientState.prototype.client_state = null; - /** - * Creates a ProofOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.ProofOp - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.ProofOp} ProofOp - */ - ProofOp.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.ProofOp) - return object; - var message = new $root.tendermint.crypto.ProofOp(); - if (object.type != null) - message.type = String(object.type); - 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.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; - }; + /** + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.IdentifiedClientState + * @static + * @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 + */ + IdentifiedClientState.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(); + return writer; + }; - /** - * Creates a plain object from a ProofOp message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.ProofOp - * @static - * @param {tendermint.crypto.ProofOp} message ProofOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProofOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - 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.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; - }; + /** + * 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.IdentifiedClientState + * @static + * @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 + */ + IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this ProofOp to JSON. - * @function toJSON - * @memberof tendermint.crypto.ProofOp - * @instance - * @returns {Object.} JSON object - */ - ProofOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an IdentifiedClientState message from the specified reader or buffer. + * @function decode + * @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.IdentifiedClientState} IdentifiedClientState + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + 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); + break; + } + } + return message; + }; - return ProofOp; - })(); + /** + * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.IdentifiedClientState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - crypto.ProofOps = (function() { + /** + * Verifies an IdentifiedClientState message. + * @function verify + * @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 + */ + IdentifiedClientState.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; + } + return null; + }; - /** - * Properties of a ProofOps. - * @memberof tendermint.crypto - * @interface IProofOps - * @property {Array.|null} [ops] ProofOps ops - */ + /** + * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.IdentifiedClientState + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + */ + IdentifiedClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) + 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); + } + return message; + }; - /** - * Constructs a new ProofOps. - * @memberof tendermint.crypto - * @classdesc Represents a ProofOps. - * @implements IProofOps - * @constructor - * @param {tendermint.crypto.IProofOps=} [properties] Properties to set - */ - function ProofOps(properties) { - this.ops = []; - 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 an IdentifiedClientState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.IdentifiedClientState + * @static + * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IdentifiedClientState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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; + }; - /** - * ProofOps ops. - * @member {Array.} ops - * @memberof tendermint.crypto.ProofOps - * @instance - */ - ProofOps.prototype.ops = $util.emptyArray; + /** + * Converts this IdentifiedClientState to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.IdentifiedClientState + * @instance + * @returns {Object.} JSON object + */ + IdentifiedClientState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.ProofOps - * @static - * @param {tendermint.crypto.IProofOps} message ProofOps message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofOps.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ops != null && message.ops.length) - for (var i = 0; i < message.ops.length; ++i) - $root.tendermint.crypto.ProofOp.encode(message.ops[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + return IdentifiedClientState; + })(); - /** - * Encodes the specified ProofOps message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.ProofOps - * @static - * @param {tendermint.crypto.IProofOps} message ProofOps message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofOps.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1.ConsensusStateWithHeight = (function() { - /** - * Decodes a ProofOps message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.ProofOps - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.ProofOps} ProofOps - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofOps.decode = 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.crypto.ProofOps(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ops && message.ops.length)) - message.ops = []; - message.ops.push($root.tendermint.crypto.ProofOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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 + */ + + /** + * Constructs a new ConsensusStateWithHeight. + * @memberof ibc.core.client.v1 + * @classdesc Represents a ConsensusStateWithHeight. + * @implements IConsensusStateWithHeight + * @constructor + * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set + */ + function ConsensusStateWithHeight(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 ProofOps message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.ProofOps - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.ProofOps} ProofOps - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofOps.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ProofOps message. - * @function verify - * @memberof tendermint.crypto.ProofOps - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProofOps.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ops != null && message.hasOwnProperty("ops")) { - if (!Array.isArray(message.ops)) - return "ops: array expected"; - for (var i = 0; i < message.ops.length; ++i) { - var error = $root.tendermint.crypto.ProofOp.verify(message.ops[i]); - if (error) - return "ops." + error; - } - } - return null; - }; - - /** - * Creates a ProofOps message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.ProofOps - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.ProofOps} ProofOps - */ - ProofOps.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.ProofOps) - return object; - var message = new $root.tendermint.crypto.ProofOps(); - if (object.ops) { - if (!Array.isArray(object.ops)) - throw TypeError(".tendermint.crypto.ProofOps.ops: array expected"); - message.ops = []; - for (var i = 0; i < object.ops.length; ++i) { - if (typeof object.ops[i] !== "object") - throw TypeError(".tendermint.crypto.ProofOps.ops: object expected"); - message.ops[i] = $root.tendermint.crypto.ProofOp.fromObject(object.ops[i]); - } - } - return message; - }; + /** + * ConsensusStateWithHeight height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @instance + */ + ConsensusStateWithHeight.prototype.height = null; - /** - * Creates a plain object from a ProofOps message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.ProofOps - * @static - * @param {tendermint.crypto.ProofOps} message ProofOps - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProofOps.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.ops = []; - if (message.ops && message.ops.length) { - object.ops = []; - for (var j = 0; j < message.ops.length; ++j) - object.ops[j] = $root.tendermint.crypto.ProofOp.toObject(message.ops[j], options); - } - return object; - }; + /** + * ConsensusStateWithHeight consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @instance + */ + ConsensusStateWithHeight.prototype.consensus_state = null; - /** - * Converts this ProofOps to JSON. - * @function toJSON - * @memberof tendermint.crypto.ProofOps - * @instance - * @returns {Object.} JSON object - */ - ProofOps.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @static + * @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 + */ + ConsensusStateWithHeight.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(); + return writer; + }; - return ProofOps; - })(); + /** + * 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.ConsensusStateWithHeight + * @static + * @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 + */ + ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - crypto.PublicKey = (function() { + /** + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * @function decode + * @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.ConsensusStateWithHeight} ConsensusStateWithHeight + * @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) { + 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(); + 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()); + break; + case 2: + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a PublicKey. - * @memberof tendermint.crypto - * @interface IPublicKey - * @property {Uint8Array|null} [ed25519] PublicKey ed25519 - * @property {Uint8Array|null} [secp256k1] PublicKey secp256k1 - */ + /** + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new PublicKey. - * @memberof tendermint.crypto - * @classdesc Represents a PublicKey. - * @implements IPublicKey - * @constructor - * @param {tendermint.crypto.IPublicKey=} [properties] Properties to set - */ - function PublicKey(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 ConsensusStateWithHeight message. + * @function verify + * @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 + */ + ConsensusStateWithHeight.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 (error) + return "consensus_state." + error; + } + return null; + }; - /** - * PublicKey ed25519. - * @member {Uint8Array|null|undefined} ed25519 - * @memberof tendermint.crypto.PublicKey - * @instance - */ - PublicKey.prototype.ed25519 = null; + /** + * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + */ + ConsensusStateWithHeight.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) + 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); + } + return message; + }; - /** - * PublicKey secp256k1. - * @member {Uint8Array|null|undefined} secp256k1 - * @memberof tendermint.crypto.PublicKey - * @instance - */ - PublicKey.prototype.secp256k1 = null; + /** + * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @static + * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsensusStateWithHeight.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); + return object; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Converts this ConsensusStateWithHeight to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @instance + * @returns {Object.} JSON object + */ + ConsensusStateWithHeight.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * PublicKey sum. - * @member {"ed25519"|"secp256k1"|undefined} sum - * @memberof tendermint.crypto.PublicKey - * @instance - */ - Object.defineProperty(PublicKey.prototype, "sum", { - get: $util.oneOfGetter($oneOfFields = ["ed25519", "secp256k1"]), - set: $util.oneOfSetter($oneOfFields) - }); + return ConsensusStateWithHeight; + })(); - /** - * Encodes the specified PublicKey message. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. - * @function encode - * @memberof tendermint.crypto.PublicKey - * @static - * @param {tendermint.crypto.IPublicKey} message PublicKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ed25519 != null && Object.hasOwnProperty.call(message, "ed25519")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ed25519); - if (message.secp256k1 != null && Object.hasOwnProperty.call(message, "secp256k1")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.secp256k1); - return writer; - }; + v1.ClientConsensusStates = (function() { - /** - * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.crypto.PublicKey - * @static - * @param {tendermint.crypto.IPublicKey} message PublicKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicKey.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a PublicKey message from the specified reader or buffer. - * @function decode - * @memberof tendermint.crypto.PublicKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.crypto.PublicKey} PublicKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicKey.decode = 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.crypto.PublicKey(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ed25519 = reader.bytes(); - break; - case 2: - message.secp256k1 = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new ClientConsensusStates. + * @memberof ibc.core.client.v1 + * @classdesc Represents a ClientConsensusStates. + * @implements IClientConsensusStates + * @constructor + * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; } - } - return message; - }; - /** - * Decodes a PublicKey message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.crypto.PublicKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.crypto.PublicKey} PublicKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ClientConsensusStates client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.ClientConsensusStates + * @instance + */ + ClientConsensusStates.prototype.client_id = ""; - /** - * Verifies a PublicKey message. - * @function verify - * @memberof tendermint.crypto.PublicKey - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublicKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.ed25519 != null && message.hasOwnProperty("ed25519")) { - properties.sum = 1; - if (!(message.ed25519 && typeof message.ed25519.length === "number" || $util.isString(message.ed25519))) - return "ed25519: buffer expected"; - } - if (message.secp256k1 != null && message.hasOwnProperty("secp256k1")) { - if (properties.sum === 1) - return "sum: multiple values"; - properties.sum = 1; - if (!(message.secp256k1 && typeof message.secp256k1.length === "number" || $util.isString(message.secp256k1))) - return "secp256k1: buffer expected"; - } - return null; - }; + /** + * ClientConsensusStates consensus_states. + * @member {Array.} consensus_states + * @memberof ibc.core.client.v1.ClientConsensusStates + * @instance + */ + ClientConsensusStates.prototype.consensus_states = $util.emptyArray; - /** - * Creates a PublicKey message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.crypto.PublicKey - * @static - * @param {Object.} object Plain object - * @returns {tendermint.crypto.PublicKey} PublicKey - */ - PublicKey.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.crypto.PublicKey) - return object; - var message = new $root.tendermint.crypto.PublicKey(); - if (object.ed25519 != null) - if (typeof object.ed25519 === "string") - $util.base64.decode(object.ed25519, message.ed25519 = $util.newBuffer($util.base64.length(object.ed25519)), 0); - else if (object.ed25519.length) - message.ed25519 = object.ed25519; - if (object.secp256k1 != null) - if (typeof object.secp256k1 === "string") - $util.base64.decode(object.secp256k1, message.secp256k1 = $util.newBuffer($util.base64.length(object.secp256k1)), 0); - else if (object.secp256k1.length) - message.secp256k1 = object.secp256k1; - return message; - }; + /** + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.ClientConsensusStates + * @static + * @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 + */ + 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.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; + }; - /** - * Creates a plain object from a PublicKey message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.crypto.PublicKey - * @static - * @param {tendermint.crypto.PublicKey} message PublicKey - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PublicKey.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.ed25519 != null && message.hasOwnProperty("ed25519")) { - object.ed25519 = options.bytes === String ? $util.base64.encode(message.ed25519, 0, message.ed25519.length) : options.bytes === Array ? Array.prototype.slice.call(message.ed25519) : message.ed25519; - if (options.oneofs) - object.sum = "ed25519"; - } - if (message.secp256k1 != null && message.hasOwnProperty("secp256k1")) { - object.secp256k1 = options.bytes === String ? $util.base64.encode(message.secp256k1, 0, message.secp256k1.length) : options.bytes === Array ? Array.prototype.slice.call(message.secp256k1) : message.secp256k1; - if (options.oneofs) - object.sum = "secp256k1"; - } - return object; - }; - - /** - * Converts this PublicKey to JSON. - * @function toJSON - * @memberof tendermint.crypto.PublicKey - * @instance - * @returns {Object.} JSON object - */ - PublicKey.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PublicKey; - })(); - - return crypto; - })(); - - tendermint.abci = (function() { + /** + * 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.ClientConsensusStates + * @static + * @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 + */ + ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Namespace abci. - * @memberof tendermint - * @namespace - */ - var abci = {}; + /** + * Decodes a ClientConsensusStates message from the specified reader or buffer. + * @function decode + * @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.ClientConsensusStates} ClientConsensusStates + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + 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())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - abci.Request = (function() { + /** + * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.ClientConsensusStates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a Request. - * @memberof tendermint.abci - * @interface IRequest - * @property {tendermint.abci.IRequestEcho|null} [echo] Request echo - * @property {tendermint.abci.IRequestFlush|null} [flush] Request flush - * @property {tendermint.abci.IRequestInfo|null} [info] Request info - * @property {tendermint.abci.IRequestSetOption|null} [set_option] Request set_option - * @property {tendermint.abci.IRequestInitChain|null} [init_chain] Request init_chain - * @property {tendermint.abci.IRequestQuery|null} [query] Request query - * @property {tendermint.abci.IRequestBeginBlock|null} [begin_block] Request begin_block - * @property {tendermint.abci.IRequestCheckTx|null} [check_tx] Request check_tx - * @property {tendermint.abci.IRequestDeliverTx|null} [deliver_tx] Request deliver_tx - * @property {tendermint.abci.IRequestEndBlock|null} [end_block] Request end_block - * @property {tendermint.abci.IRequestCommit|null} [commit] Request commit - * @property {tendermint.abci.IRequestListSnapshots|null} [list_snapshots] Request list_snapshots - * @property {tendermint.abci.IRequestOfferSnapshot|null} [offer_snapshot] Request offer_snapshot - * @property {tendermint.abci.IRequestLoadSnapshotChunk|null} [load_snapshot_chunk] Request load_snapshot_chunk - * @property {tendermint.abci.IRequestApplySnapshotChunk|null} [apply_snapshot_chunk] Request apply_snapshot_chunk - */ + /** + * Verifies a ClientConsensusStates message. + * @function verify + * @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 + */ + 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.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; + }; - /** - * Constructs a new Request. - * @memberof tendermint.abci - * @classdesc Represents a Request. - * @implements IRequest - * @constructor - * @param {tendermint.abci.IRequest=} [properties] Properties to set - */ - function Request(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 ClientConsensusStates message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.ClientConsensusStates + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + */ + ClientConsensusStates.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) + 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]); + } + } + return message; + }; - /** - * Request echo. - * @member {tendermint.abci.IRequestEcho|null|undefined} echo - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.echo = null; + /** + * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.ClientConsensusStates + * @static + * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientConsensusStates.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); + } + return object; + }; - /** - * Request flush. - * @member {tendermint.abci.IRequestFlush|null|undefined} flush - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.flush = null; + /** + * Converts this ClientConsensusStates to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.ClientConsensusStates + * @instance + * @returns {Object.} JSON object + */ + ClientConsensusStates.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Request info. - * @member {tendermint.abci.IRequestInfo|null|undefined} info - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.info = null; + return ClientConsensusStates; + })(); - /** - * Request set_option. - * @member {tendermint.abci.IRequestSetOption|null|undefined} set_option - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.set_option = null; + v1.ClientUpdateProposal = (function() { - /** - * Request init_chain. - * @member {tendermint.abci.IRequestInitChain|null|undefined} init_chain - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.init_chain = null; + /** + * 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 + */ - /** - * Request query. - * @member {tendermint.abci.IRequestQuery|null|undefined} query - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.query = null; + /** + * Constructs a new ClientUpdateProposal. + * @memberof ibc.core.client.v1 + * @classdesc Represents a ClientUpdateProposal. + * @implements IClientUpdateProposal + * @constructor + * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set + */ + function ClientUpdateProposal(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]]; + } - /** - * Request begin_block. - * @member {tendermint.abci.IRequestBeginBlock|null|undefined} begin_block - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.begin_block = null; + /** + * ClientUpdateProposal title. + * @member {string} title + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.title = ""; - /** - * Request check_tx. - * @member {tendermint.abci.IRequestCheckTx|null|undefined} check_tx - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.check_tx = null; + /** + * ClientUpdateProposal description. + * @member {string} description + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.description = ""; - /** - * Request deliver_tx. - * @member {tendermint.abci.IRequestDeliverTx|null|undefined} deliver_tx - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.deliver_tx = null; + /** + * ClientUpdateProposal subject_client_id. + * @member {string} subject_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.subject_client_id = ""; - /** - * Request end_block. - * @member {tendermint.abci.IRequestEndBlock|null|undefined} end_block - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.end_block = null; + /** + * ClientUpdateProposal substitute_client_id. + * @member {string} substitute_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.substitute_client_id = ""; - /** - * Request commit. - * @member {tendermint.abci.IRequestCommit|null|undefined} commit - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.commit = null; + /** + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @static + * @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 + */ + ClientUpdateProposal.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); + return writer; + }; - /** - * Request list_snapshots. - * @member {tendermint.abci.IRequestListSnapshots|null|undefined} list_snapshots - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.list_snapshots = null; + /** + * 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.ClientUpdateProposal + * @static + * @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 + */ + ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Request offer_snapshot. - * @member {tendermint.abci.IRequestOfferSnapshot|null|undefined} offer_snapshot - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.offer_snapshot = null; + /** + * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * @function decode + * @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.ClientUpdateProposal} ClientUpdateProposal + * @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) { + 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(); + 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.subject_client_id = reader.string(); + break; + case 4: + message.substitute_client_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Request load_snapshot_chunk. - * @member {tendermint.abci.IRequestLoadSnapshotChunk|null|undefined} load_snapshot_chunk - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.load_snapshot_chunk = null; + /** + * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Request apply_snapshot_chunk. - * @member {tendermint.abci.IRequestApplySnapshotChunk|null|undefined} apply_snapshot_chunk - * @memberof tendermint.abci.Request - * @instance - */ - Request.prototype.apply_snapshot_chunk = null; + /** + * Verifies a ClientUpdateProposal message. + * @function verify + * @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 + */ + ClientUpdateProposal.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"; + return null; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + */ + ClientUpdateProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) + 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); + return message; + }; - /** - * Request value. - * @member {"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"|undefined} value - * @memberof tendermint.abci.Request - * @instance + /** + * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @static + * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientUpdateProposal.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 = ""; + } + 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 ClientUpdateProposal to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + * @returns {Object.} JSON object + */ + ClientUpdateProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ClientUpdateProposal; + })(); + + v1.UpgradeProposal = (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 + */ + + /** + * Constructs a new UpgradeProposal. + * @memberof ibc.core.client.v1 + * @classdesc Represents an UpgradeProposal. + * @implements IUpgradeProposal + * @constructor + * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set + */ + function UpgradeProposal(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]]; + } + + /** + * 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 + * @instance + */ + UpgradeProposal.prototype.description = ""; + + /** + * 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.UpgradeProposal + * @static + * @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 + */ + UpgradeProposal.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(); + return writer; + }; + + /** + * 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.UpgradeProposal + * @static + * @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 + */ + UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeProposal message from the specified reader or buffer. + * @function decode + * @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.UpgradeProposal} UpgradeProposal + * @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) { + 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(); + 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; + case 4: + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.UpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeProposal message. + * @function verify + * @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 + */ + UpgradeProposal.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 (error) + return "upgraded_client_state." + error; + } + return null; + }; + + /** + * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.UpgradeProposal + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + */ + UpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) + 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); + } + return message; + }; + + /** + * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.UpgradeProposal + * @static + * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeProposal.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; + } + 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 UpgradeProposal to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.UpgradeProposal + * @instance + * @returns {Object.} JSON object + */ + UpgradeProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpgradeProposal; + })(); + + v1.Height = (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 + */ + + /** + * Constructs a new Height. + * @memberof ibc.core.client.v1 + * @classdesc Represents an Height. + * @implements IHeight + * @constructor + * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set + */ + function Height(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]]; + } + + /** + * Height revision_number. + * @member {Long} revision_number + * @memberof ibc.core.client.v1.Height + * @instance + */ + Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Height revision_height. + * @member {Long} revision_height + * @memberof ibc.core.client.v1.Height + * @instance + */ + Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.Height + * @static + * @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 + */ + Height.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); + return writer; + }; + + /** + * 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.Height + * @static + * @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 + */ + Height.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Height message from the specified reader or buffer. + * @function decode + * @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.Height} Height + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.revision_number = reader.uint64(); + break; + case 2: + message.revision_height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Height message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.Height + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Height.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Height message. + * @function verify + * @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 + */ + Height.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"; + return null; + }; + + /** + * Creates an Height message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.Height + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.client.v1.Height} Height + */ + Height.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.Height) + 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) + 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 an Height message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.Height + * @static + * @param {ibc.core.client.v1.Height} message Height + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Height.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.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.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 Height to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.Height + * @instance + * @returns {Object.} JSON object + */ + Height.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Height; + })(); + + v1.Params = (function() { + + /** + * Properties of a Params. + * @memberof ibc.core.client.v1 + * @interface IParams + * @property {Array.|null} [allowed_clients] Params allowed_clients + */ + + /** + * Constructs a new Params. + * @memberof ibc.core.client.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.core.client.v1.IParams=} [properties] Properties to set + */ + 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]]; + } + + /** + * Params allowed_clients. + * @member {Array.} allowed_clients + * @memberof ibc.core.client.v1.Params + * @instance + */ + Params.prototype.allowed_clients = $util.emptyArray; + + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.Params + * @static + * @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 + */ + Params.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]); + return writer; + }; + + /** + * 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.Params + * @static + * @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 + */ + 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.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.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.core.client.v1.Params(); + 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()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.client.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + 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.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 + */ + Params.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"; + } + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.client.v1.Params + * @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]); + } + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.client.v1.Params + * @static + * @param {ibc.core.client.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.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]; + } + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + return v1; + })(); + + return client; + })(); + + return core; + })(); + + ibc.applications = (function() { + + /** + * Namespace applications. + * @memberof ibc + * @namespace + */ + var applications = {}; + + applications.transfer = (function() { + + /** + * Namespace transfer. + * @memberof ibc.applications + * @namespace + */ + var transfer = {}; + + transfer.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.applications.transfer + * @namespace + */ + var v1 = {}; + + v1.Query = (function() { + + /** + * 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); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + + /** + * 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 + */ + + /** + * 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + 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.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 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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) + 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 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 QueryDenomTraceRequest; + })(); + + v1.QueryDenomTraceResponse = (function() { + + /** + * 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 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]]; + } + + /** + * 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; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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) + 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 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 QueryDenomTraceResponse; + })(); + + v1.QueryDenomTracesRequest = (function() { + + /** + * Properties of a QueryDenomTracesRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTracesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination + */ + + /** + * 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]]; + } + + /** + * QueryDenomTracesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest + * @instance + */ + QueryDenomTracesRequest.prototype.pagination = null; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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) + 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 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 QueryDenomTracesRequest; + })(); + + v1.QueryDenomTracesResponse = (function() { + + /** + * 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 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]]; + } + + /** + * QueryDenomTracesResponse denom_traces. + * @member {Array.} denom_traces + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse + * @instance + */ + QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; + + /** + * 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 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; + }; + + /** + * 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 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; + } + } + 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()); + }; + + /** + * 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; + } + } + 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 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]); + } + } + 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; + } + } + 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()); + }; + + /** + * 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.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 {}; + }; + + /** + * 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); + }; + + return QueryParamsRequest; + })(); + + v1.QueryParamsResponse = (function() { + + /** + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params + */ + + /** + * 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]]; + } + + /** + * QueryParamsResponse params. + * @member {ibc.applications.transfer.v1.IParams|null|undefined} params + * @memberof ibc.applications.transfer.v1.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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) + 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.transfer.v1.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryParamsResponse; + })(); + + v1.QueryDenomHashRequest = (function() { + + /** + * Properties of a QueryDenomHashRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashRequest + * @property {string|null} [trace] QueryDenomHashRequest trace + */ + + /** + * 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]]; + } + + /** + * QueryDenomHashRequest trace. + * @member {string} trace + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest + * @instance + */ + QueryDenomHashRequest.prototype.trace = ""; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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 + */ + 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; + }; + + /** + * Converts this QueryDenomHashRequest to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest + * @instance + * @returns {Object.} JSON object + */ + QueryDenomHashRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryDenomHashRequest; + })(); + + v1.QueryDenomHashResponse = (function() { + + /** + * Properties of a QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashResponse + * @property {string|null} [hash] QueryDenomHashResponse hash + */ + + /** + * Constructs a new QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomHashResponse. + * @implements IQueryDenomHashResponse + * @constructor + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set + */ + function QueryDenomHashResponse(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]]; + } + + /** + * QueryDenomHashResponse hash. + * @member {string} hash + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * @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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this QueryDenomHashResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * @instance + * @returns {Object.} JSON object + */ + QueryDenomHashResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryDenomHashResponse; + })(); + + v1.QueryEscrowAddressRequest = (function() { + + /** + * 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 QueryEscrowAddressRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressRequest. + * @implements IQueryEscrowAddressRequest + * @constructor + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest=} [properties] Properties to set + */ + 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]]; + } + + /** + * QueryEscrowAddressRequest port_id. + * @member {string} port_id + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @instance + */ + QueryEscrowAddressRequest.prototype.port_id = ""; + + /** + * QueryEscrowAddressRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @instance + */ + QueryEscrowAddressRequest.prototype.channel_id = ""; + + /** + * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @static + * @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 + */ + 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_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + return writer; + }; + + /** + * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @static + * @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 + */ + QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. + * @function decode + * @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.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 + */ + 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.applications.transfer.v1.QueryEscrowAddressRequest(); + 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; + }; + + /** + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryEscrowAddressRequest message. + * @function verify + * @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 + */ + 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_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + return null; + }; + + /** + * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @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); + return message; + }; + + /** + * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @static + * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryEscrowAddressRequest.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 QueryEscrowAddressRequest to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @instance + * @returns {Object.} JSON object + */ + QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryEscrowAddressRequest; + })(); + + v1.QueryEscrowAddressResponse = (function() { + + /** + * Properties of a QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryEscrowAddressResponse + * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address + */ + + /** + * Constructs a new QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressResponse. + * @implements IQueryEscrowAddressResponse + * @constructor + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set + */ + function QueryEscrowAddressResponse(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]]; + } + + /** + * QueryEscrowAddressResponse escrow_address. + * @member {string} escrow_address + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @instance + */ + QueryEscrowAddressResponse.prototype.escrow_address = ""; + + /** + * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @static + * @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 + */ + QueryEscrowAddressResponse.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); + return writer; + }; + + /** + * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @static + * @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 + */ + QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. + * @function decode + * @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.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 + */ + 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.applications.transfer.v1.QueryEscrowAddressResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.escrow_address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryEscrowAddressResponse message. + * @function verify + * @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 + */ + QueryEscrowAddressResponse.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"; + return null; + }; + + /** + * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + */ + QueryEscrowAddressResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) + return object; + 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 QueryEscrowAddressResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @static + * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryEscrowAddressResponse.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; + return object; + }; + + /** + * Converts this QueryEscrowAddressResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @instance + * @returns {Object.} JSON object + */ + QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryEscrowAddressResponse; + })(); + + v1.DenomTrace = (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 + */ + + /** + * Constructs a new DenomTrace. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a DenomTrace. + * @implements IDenomTrace + * @constructor + * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set + */ + function DenomTrace(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]]; + } + + /** + * DenomTrace path. + * @member {string} path + * @memberof ibc.applications.transfer.v1.DenomTrace + * @instance + */ + DenomTrace.prototype.path = ""; + + /** + * DenomTrace base_denom. + * @member {string} base_denom + * @memberof ibc.applications.transfer.v1.DenomTrace + * @instance + */ + DenomTrace.prototype.base_denom = ""; + + /** + * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.DenomTrace + * @static + * @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 + */ + DenomTrace.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); + return writer; + }; + + /** + * 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.DenomTrace + * @static + * @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 + */ + DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DenomTrace message from the specified reader or buffer. + * @function decode + * @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.DenomTrace} DenomTrace + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = reader.string(); + break; + case 2: + message.base_denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DenomTrace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.DenomTrace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DenomTrace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DenomTrace message. + * @function verify + * @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 + */ + DenomTrace.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"; + return null; + }; + + /** + * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.DenomTrace + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + */ + DenomTrace.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) + 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); + return message; + }; + + /** + * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.DenomTrace + * @static + * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DenomTrace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.path = ""; + object.base_denom = ""; + } + 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 DenomTrace to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.DenomTrace + * @instance + * @returns {Object.} JSON object + */ + DenomTrace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DenomTrace; + })(); + + v1.Params = (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 + */ + + /** + * Constructs a new Params. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.applications.transfer.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]]; + } + + /** + * Params send_enabled. + * @member {boolean} send_enabled + * @memberof ibc.applications.transfer.v1.Params + * @instance + */ + Params.prototype.send_enabled = false; + + /** + * Params receive_enabled. + * @member {boolean} receive_enabled + * @memberof ibc.applications.transfer.v1.Params + * @instance + */ + Params.prototype.receive_enabled = false; + + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.Params + * @static + * @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 + */ + Params.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); + return writer; + }; + + /** + * 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.v1.Params + * @static + * @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 + */ + 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.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.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.transfer.v1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.send_enabled = reader.bool(); + break; + case 2: + message.receive_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + 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.transfer.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.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 Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.Params + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.Params) + 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); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.Params + * @static + * @param {ibc.applications.transfer.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.send_enabled = false; + object.receive_enabled = false; + } + 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 Params to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + return v1; + })(); + + return transfer; + })(); + + return applications; + })(); + + return ibc; + })(); + + $root.cosmos = (function() { + + /** + * Namespace cosmos. + * @exports cosmos + * @namespace + */ + var cosmos = {}; + + 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.base = (function() { + + /** + * Namespace base. + * @memberof cosmos + * @namespace + */ + var base = {}; + + base.query = (function() { + + /** + * Namespace query. + * @memberof cosmos.base + * @namespace + */ + var query = {}; + + query.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.base.query + * @namespace + */ + var v1beta1 = {}; + + v1beta1.PageRequest = (function() { + + /** + * 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 + */ + + /** + * 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; + + /** + * PageRequest limit. + * @member {Long} limit + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PageRequest count_total. + * @member {boolean} count_total + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.count_total = false; + + /** + * PageRequest reverse. + * @member {boolean} reverse + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.reverse = false; + + /** + * 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; + }; + + /** + * 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 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + })(); + + base.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.base + * @namespace */ - Object.defineProperty(Request.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["echo", "flush", "info", "set_option", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk"]), - set: $util.oneOfSetter($oneOfFields) - }); + var v1beta1 = {}; + + v1beta1.Coin = (function() { + + /** + * 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 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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Coin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.Coin + * @instance + */ + Coin.prototype.denom = ""; + + /** + * Coin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.Coin + * @instance + */ + Coin.prototype.amount = ""; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.Coin + * @static + * @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 + */ + Coin.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); + return writer; + }; + + /** + * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.Coin + * @static + * @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 + */ + Coin.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @function decode + * @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.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 + */ + 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.base.v1beta1.Coin(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Coin message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.Coin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + Coin.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Coin message. + * @function verify + * @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 + */ + Coin.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"; + return null; + }; + + /** + * Creates a Coin message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.Coin + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.Coin} Coin + */ + Coin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.Coin) + 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); + return message; + }; + + /** + * Creates a plain object from a Coin message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.Coin + * @static + * @param {cosmos.base.v1beta1.Coin} message Coin + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Coin.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + 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 Coin to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.Coin + * @instance + * @returns {Object.} JSON object + */ + Coin.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Coin; + })(); + + v1beta1.DecCoin = (function() { + + /** + * 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 DecCoin. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a DecCoin. + * @implements IDecCoin + * @constructor + * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set + */ + function DecCoin(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]]; + } + + /** + * DecCoin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.DecCoin + * @instance + */ + DecCoin.prototype.denom = ""; + + /** + * DecCoin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.DecCoin + * @instance + */ + DecCoin.prototype.amount = ""; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.DecCoin + * @static + * @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 + */ + DecCoin.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); + return writer; + }; + + /** + * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.DecCoin + * @static + * @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 + */ + DecCoin.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @function decode + * @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.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 + */ + 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.base.v1beta1.DecCoin(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.amount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DecCoin message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.DecCoin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DecCoin.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DecCoin message. + * @function verify + * @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 + */ + DecCoin.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"; + return null; + }; + + /** + * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.DecCoin + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + */ + DecCoin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.DecCoin) + 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); + return message; + }; + + /** + * Creates a plain object from a DecCoin message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.DecCoin + * @static + * @param {cosmos.base.v1beta1.DecCoin} message DecCoin + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecCoin.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + 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 DecCoin to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.DecCoin + * @instance + * @returns {Object.} JSON object + */ + DecCoin.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DecCoin; + })(); + + v1beta1.IntProto = (function() { + + /** + * Properties of an IntProto. + * @memberof cosmos.base.v1beta1 + * @interface IIntProto + * @property {string|null} [int] IntProto int + */ + + /** + * 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]]; + } + + /** + * IntProto int. + * @member {string} int + * @memberof cosmos.base.v1beta1.IntProto + * @instance + */ + IntProto.prototype.int = ""; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + return IntProto; + })(); + + v1beta1.DecProto = (function() { + + /** + * Properties of a DecProto. + * @memberof cosmos.base.v1beta1 + * @interface IDecProto + * @property {string|null} [dec] DecProto dec + */ + + /** + * 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]]; + } + + /** + * DecProto dec. + * @member {string} dec + * @memberof cosmos.base.v1beta1.DecProto + * @instance + */ + DecProto.prototype.dec = ""; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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 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 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; + }; + + /** + * 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); + }; + + return DecProto; + })(); + + return v1beta1; + })(); + + return base; + })(); + + cosmos.bank = (function() { + + /** + * Namespace bank. + * @memberof cosmos + * @namespace + */ + var bank = {}; + + bank.v1beta1 = (function() { /** - * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. - * @function encode - * @memberof tendermint.abci.Request - * @static - * @param {tendermint.abci.IRequest} message Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Namespace v1beta1. + * @memberof cosmos.bank + * @namespace */ - Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) - $root.tendermint.abci.RequestEcho.encode(message.echo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.flush != null && Object.hasOwnProperty.call(message, "flush")) - $root.tendermint.abci.RequestFlush.encode(message.flush, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - $root.tendermint.abci.RequestInfo.encode(message.info, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.set_option != null && Object.hasOwnProperty.call(message, "set_option")) - $root.tendermint.abci.RequestSetOption.encode(message.set_option, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.init_chain != null && Object.hasOwnProperty.call(message, "init_chain")) - $root.tendermint.abci.RequestInitChain.encode(message.init_chain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.tendermint.abci.RequestQuery.encode(message.query, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.begin_block != null && Object.hasOwnProperty.call(message, "begin_block")) - $root.tendermint.abci.RequestBeginBlock.encode(message.begin_block, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.check_tx != null && Object.hasOwnProperty.call(message, "check_tx")) - $root.tendermint.abci.RequestCheckTx.encode(message.check_tx, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.deliver_tx != null && Object.hasOwnProperty.call(message, "deliver_tx")) - $root.tendermint.abci.RequestDeliverTx.encode(message.deliver_tx, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.end_block != null && Object.hasOwnProperty.call(message, "end_block")) - $root.tendermint.abci.RequestEndBlock.encode(message.end_block, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) - $root.tendermint.abci.RequestCommit.encode(message.commit, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.list_snapshots != null && Object.hasOwnProperty.call(message, "list_snapshots")) - $root.tendermint.abci.RequestListSnapshots.encode(message.list_snapshots, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.offer_snapshot != null && Object.hasOwnProperty.call(message, "offer_snapshot")) - $root.tendermint.abci.RequestOfferSnapshot.encode(message.offer_snapshot, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.load_snapshot_chunk != null && Object.hasOwnProperty.call(message, "load_snapshot_chunk")) - $root.tendermint.abci.RequestLoadSnapshotChunk.encode(message.load_snapshot_chunk, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.apply_snapshot_chunk != null && Object.hasOwnProperty.call(message, "apply_snapshot_chunk")) - $root.tendermint.abci.RequestApplySnapshotChunk.encode(message.apply_snapshot_chunk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - return writer; - }; + var v1beta1 = {}; + + v1beta1.Params = (function() { + + /** + * Properties of a Params. + * @memberof cosmos.bank.v1beta1 + * @interface IParams + * @property {Array.|null} [send_enabled] Params send_enabled + * @property {boolean|null} [default_send_enabled] Params default_send_enabled + */ + + /** + * Constructs a new Params. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {cosmos.bank.v1beta1.IParams=} [properties] Properties to set + */ + function Params(properties) { + this.send_enabled = []; + 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 send_enabled. + * @member {Array.} send_enabled + * @memberof cosmos.bank.v1beta1.Params + * @instance + */ + Params.prototype.send_enabled = $util.emptyArray; + + /** + * Params default_send_enabled. + * @member {boolean} default_send_enabled + * @memberof cosmos.bank.v1beta1.Params + * @instance + */ + Params.prototype.default_send_enabled = false; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.bank.v1beta1.Params.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.Params + * @static + * @param {cosmos.bank.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.send_enabled != null && message.send_enabled.length) + for (var i = 0; i < message.send_enabled.length; ++i) + $root.cosmos.bank.v1beta1.SendEnabled.encode(message.send_enabled[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.default_send_enabled != null && Object.hasOwnProperty.call(message, "default_send_enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.default_send_enabled); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.Params + * @static + * @param {cosmos.bank.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.bank.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.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.bank.v1beta1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.send_enabled && message.send_enabled.length)) + message.send_enabled = []; + message.send_enabled.push($root.cosmos.bank.v1beta1.SendEnabled.decode(reader, reader.uint32())); + break; + case 2: + message.default_send_enabled = reader.bool(); + 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.bank.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.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.bank.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.send_enabled != null && message.hasOwnProperty("send_enabled")) { + if (!Array.isArray(message.send_enabled)) + return "send_enabled: array expected"; + for (var i = 0; i < message.send_enabled.length; ++i) { + var error = $root.cosmos.bank.v1beta1.SendEnabled.verify(message.send_enabled[i]); + if (error) + return "send_enabled." + error; + } + } + if (message.default_send_enabled != null && message.hasOwnProperty("default_send_enabled")) + if (typeof message.default_send_enabled !== "boolean") + return "default_send_enabled: boolean expected"; + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.Params + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.Params) + return object; + var message = new $root.cosmos.bank.v1beta1.Params(); + if (object.send_enabled) { + if (!Array.isArray(object.send_enabled)) + throw TypeError(".cosmos.bank.v1beta1.Params.send_enabled: array expected"); + message.send_enabled = []; + for (var i = 0; i < object.send_enabled.length; ++i) { + if (typeof object.send_enabled[i] !== "object") + throw TypeError(".cosmos.bank.v1beta1.Params.send_enabled: object expected"); + message.send_enabled[i] = $root.cosmos.bank.v1beta1.SendEnabled.fromObject(object.send_enabled[i]); + } + } + if (object.default_send_enabled != null) + message.default_send_enabled = Boolean(object.default_send_enabled); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.Params + * @static + * @param {cosmos.bank.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.arrays || options.defaults) + object.send_enabled = []; + if (options.defaults) + object.default_send_enabled = false; + if (message.send_enabled && message.send_enabled.length) { + object.send_enabled = []; + for (var j = 0; j < message.send_enabled.length; ++j) + object.send_enabled[j] = $root.cosmos.bank.v1beta1.SendEnabled.toObject(message.send_enabled[j], options); + } + if (message.default_send_enabled != null && message.hasOwnProperty("default_send_enabled")) + object.default_send_enabled = message.default_send_enabled; + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + v1beta1.SendEnabled = (function() { + + /** + * Properties of a SendEnabled. + * @memberof cosmos.bank.v1beta1 + * @interface ISendEnabled + * @property {string|null} [denom] SendEnabled denom + * @property {boolean|null} [enabled] SendEnabled enabled + */ + + /** + * Constructs a new SendEnabled. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents a SendEnabled. + * @implements ISendEnabled + * @constructor + * @param {cosmos.bank.v1beta1.ISendEnabled=} [properties] Properties to set + */ + function SendEnabled(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]]; + } + + /** + * SendEnabled denom. + * @member {string} denom + * @memberof cosmos.bank.v1beta1.SendEnabled + * @instance + */ + SendEnabled.prototype.denom = ""; + + /** + * SendEnabled enabled. + * @member {boolean} enabled + * @memberof cosmos.bank.v1beta1.SendEnabled + * @instance + */ + SendEnabled.prototype.enabled = false; + + /** + * Encodes the specified SendEnabled message. Does not implicitly {@link cosmos.bank.v1beta1.SendEnabled.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {cosmos.bank.v1beta1.ISendEnabled} message SendEnabled message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SendEnabled.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.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified SendEnabled message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.SendEnabled.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {cosmos.bank.v1beta1.ISendEnabled} message SendEnabled message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SendEnabled.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SendEnabled message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.SendEnabled} SendEnabled + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SendEnabled.decode = 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.bank.v1beta1.SendEnabled(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SendEnabled message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.SendEnabled} SendEnabled + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SendEnabled.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SendEnabled message. + * @function verify + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SendEnabled.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.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a SendEnabled message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.SendEnabled} SendEnabled + */ + SendEnabled.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.SendEnabled) + return object; + var message = new $root.cosmos.bank.v1beta1.SendEnabled(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a SendEnabled message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.SendEnabled + * @static + * @param {cosmos.bank.v1beta1.SendEnabled} message SendEnabled + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SendEnabled.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.denom = ""; + object.enabled = false; + } + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this SendEnabled to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.SendEnabled + * @instance + * @returns {Object.} JSON object + */ + SendEnabled.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SendEnabled; + })(); + + v1beta1.Input = (function() { + + /** + * Properties of an Input. + * @memberof cosmos.bank.v1beta1 + * @interface IInput + * @property {string|null} [address] Input address + * @property {Array.|null} [coins] Input coins + */ + + /** + * Constructs a new Input. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents an Input. + * @implements IInput + * @constructor + * @param {cosmos.bank.v1beta1.IInput=} [properties] Properties to set + */ + function Input(properties) { + this.coins = []; + 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]]; + } + + /** + * Input address. + * @member {string} address + * @memberof cosmos.bank.v1beta1.Input + * @instance + */ + Input.prototype.address = ""; + + /** + * Input coins. + * @member {Array.} coins + * @memberof cosmos.bank.v1beta1.Input + * @instance + */ + Input.prototype.coins = $util.emptyArray; + + /** + * Encodes the specified Input message. Does not implicitly {@link cosmos.bank.v1beta1.Input.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {cosmos.bank.v1beta1.IInput} message Input message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Input.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.coins != null && message.coins.length) + for (var i = 0; i < message.coins.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.coins[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Input message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Input.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {cosmos.bank.v1beta1.IInput} message Input message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Input.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Input message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.Input} Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Input.decode = 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.bank.v1beta1.Input(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + if (!(message.coins && message.coins.length)) + message.coins = []; + message.coins.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Input message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.Input} Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Input.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Input message. + * @function verify + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Input.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.coins != null && message.hasOwnProperty("coins")) { + if (!Array.isArray(message.coins)) + return "coins: array expected"; + for (var i = 0; i < message.coins.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.coins[i]); + if (error) + return "coins." + error; + } + } + return null; + }; + + /** + * Creates an Input message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.Input} Input + */ + Input.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.Input) + return object; + var message = new $root.cosmos.bank.v1beta1.Input(); + if (object.address != null) + message.address = String(object.address); + if (object.coins) { + if (!Array.isArray(object.coins)) + throw TypeError(".cosmos.bank.v1beta1.Input.coins: array expected"); + message.coins = []; + for (var i = 0; i < object.coins.length; ++i) { + if (typeof object.coins[i] !== "object") + throw TypeError(".cosmos.bank.v1beta1.Input.coins: object expected"); + message.coins[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.coins[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an Input message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.Input + * @static + * @param {cosmos.bank.v1beta1.Input} message Input + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Input.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.coins = []; + if (options.defaults) + object.address = ""; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.coins && message.coins.length) { + object.coins = []; + for (var j = 0; j < message.coins.length; ++j) + object.coins[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.coins[j], options); + } + return object; + }; + + /** + * Converts this Input to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.Input + * @instance + * @returns {Object.} JSON object + */ + Input.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Input; + })(); + + v1beta1.Output = (function() { + + /** + * Properties of an Output. + * @memberof cosmos.bank.v1beta1 + * @interface IOutput + * @property {string|null} [address] Output address + * @property {Array.|null} [coins] Output coins + */ + + /** + * Constructs a new Output. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents an Output. + * @implements IOutput + * @constructor + * @param {cosmos.bank.v1beta1.IOutput=} [properties] Properties to set + */ + function Output(properties) { + this.coins = []; + 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]]; + } + + /** + * Output address. + * @member {string} address + * @memberof cosmos.bank.v1beta1.Output + * @instance + */ + Output.prototype.address = ""; + + /** + * Output coins. + * @member {Array.} coins + * @memberof cosmos.bank.v1beta1.Output + * @instance + */ + Output.prototype.coins = $util.emptyArray; - /** - * Encodes the specified Request message, length delimited. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.abci.Request - * @static - * @param {tendermint.abci.IRequest} message Request message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Request.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.v1beta1.Output.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {cosmos.bank.v1beta1.IOutput} message Output message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Output.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.coins != null && message.coins.length) + for (var i = 0; i < message.coins.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.coins[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a Request message from the specified reader or buffer. - * @function decode - * @memberof tendermint.abci.Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Request} Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Request.decode = 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.abci.Request(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.echo = $root.tendermint.abci.RequestEcho.decode(reader, reader.uint32()); - break; - case 2: - message.flush = $root.tendermint.abci.RequestFlush.decode(reader, reader.uint32()); - break; - case 3: - message.info = $root.tendermint.abci.RequestInfo.decode(reader, reader.uint32()); - break; - case 4: - message.set_option = $root.tendermint.abci.RequestSetOption.decode(reader, reader.uint32()); - break; - case 5: - message.init_chain = $root.tendermint.abci.RequestInitChain.decode(reader, reader.uint32()); - break; - case 6: - message.query = $root.tendermint.abci.RequestQuery.decode(reader, reader.uint32()); - break; - case 7: - message.begin_block = $root.tendermint.abci.RequestBeginBlock.decode(reader, reader.uint32()); - break; - case 8: - message.check_tx = $root.tendermint.abci.RequestCheckTx.decode(reader, reader.uint32()); - break; - case 9: - message.deliver_tx = $root.tendermint.abci.RequestDeliverTx.decode(reader, reader.uint32()); - break; - case 10: - message.end_block = $root.tendermint.abci.RequestEndBlock.decode(reader, reader.uint32()); - break; - case 11: - message.commit = $root.tendermint.abci.RequestCommit.decode(reader, reader.uint32()); - break; - case 12: - message.list_snapshots = $root.tendermint.abci.RequestListSnapshots.decode(reader, reader.uint32()); - break; - case 13: - message.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.decode(reader, reader.uint32()); - break; - case 14: - message.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 15: - message.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Output message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Output.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {cosmos.bank.v1beta1.IOutput} message Output message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Output.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Output message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.Output} Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Output.decode = 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.bank.v1beta1.Output(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + if (!(message.coins && message.coins.length)) + message.coins = []; + message.coins.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a Request message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.abci.Request - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Request} Request - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an Output message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.Output} Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Output.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Request message. - * @function verify - * @memberof tendermint.abci.Request - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.echo != null && message.hasOwnProperty("echo")) { - properties.value = 1; - { - var error = $root.tendermint.abci.RequestEcho.verify(message.echo); - if (error) - return "echo." + error; + /** + * Verifies an Output message. + * @function verify + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Output.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.coins != null && message.hasOwnProperty("coins")) { + if (!Array.isArray(message.coins)) + return "coins: array expected"; + for (var i = 0; i < message.coins.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.coins[i]); + if (error) + return "coins." + error; + } } - } - if (message.flush != null && message.hasOwnProperty("flush")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestFlush.verify(message.flush); - if (error) - return "flush." + error; + return null; + }; + + /** + * Creates an Output message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.Output} Output + */ + Output.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.Output) + return object; + var message = new $root.cosmos.bank.v1beta1.Output(); + if (object.address != null) + message.address = String(object.address); + if (object.coins) { + if (!Array.isArray(object.coins)) + throw TypeError(".cosmos.bank.v1beta1.Output.coins: array expected"); + message.coins = []; + for (var i = 0; i < object.coins.length; ++i) { + if (typeof object.coins[i] !== "object") + throw TypeError(".cosmos.bank.v1beta1.Output.coins: object expected"); + message.coins[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.coins[i]); + } } - } - if (message.info != null && message.hasOwnProperty("info")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestInfo.verify(message.info); - if (error) - return "info." + error; + return message; + }; + + /** + * Creates a plain object from an Output message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.Output + * @static + * @param {cosmos.bank.v1beta1.Output} message Output + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Output.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.coins = []; + if (options.defaults) + object.address = ""; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.coins && message.coins.length) { + object.coins = []; + for (var j = 0; j < message.coins.length; ++j) + object.coins[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.coins[j], options); } + return object; + }; + + /** + * Converts this Output to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.Output + * @instance + * @returns {Object.} JSON object + */ + Output.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Output; + })(); + + v1beta1.Supply = (function() { + + /** + * Properties of a Supply. + * @memberof cosmos.bank.v1beta1 + * @interface ISupply + * @property {Array.|null} [total] Supply total + */ + + /** + * Constructs a new Supply. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents a Supply. + * @implements ISupply + * @constructor + * @param {cosmos.bank.v1beta1.ISupply=} [properties] Properties to set + */ + function Supply(properties) { + this.total = []; + 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.set_option != null && message.hasOwnProperty("set_option")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestSetOption.verify(message.set_option); - if (error) - return "set_option." + error; + + /** + * Supply total. + * @member {Array.} total + * @memberof cosmos.bank.v1beta1.Supply + * @instance + */ + Supply.prototype.total = $util.emptyArray; + + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.v1beta1.Supply.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {cosmos.bank.v1beta1.ISupply} message Supply message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Supply.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.total != null && message.total.length) + for (var i = 0; i < message.total.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.total[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Supply message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Supply.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {cosmos.bank.v1beta1.ISupply} message Supply message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Supply.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.Supply} Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Supply.decode = 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.bank.v1beta1.Supply(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.total && message.total.length)) + message.total = []; + message.total.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.init_chain != null && message.hasOwnProperty("init_chain")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestInitChain.verify(message.init_chain); - if (error) - return "init_chain." + error; + return message; + }; + + /** + * Decodes a Supply message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.Supply} Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Supply.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Supply message. + * @function verify + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Supply.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.total != null && message.hasOwnProperty("total")) { + if (!Array.isArray(message.total)) + return "total: array expected"; + for (var i = 0; i < message.total.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.total[i]); + if (error) + return "total." + error; + } } - } - if (message.query != null && message.hasOwnProperty("query")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestQuery.verify(message.query); - if (error) - return "query." + error; + return null; + }; + + /** + * Creates a Supply message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.Supply} Supply + */ + Supply.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.Supply) + return object; + var message = new $root.cosmos.bank.v1beta1.Supply(); + if (object.total) { + if (!Array.isArray(object.total)) + throw TypeError(".cosmos.bank.v1beta1.Supply.total: array expected"); + message.total = []; + for (var i = 0; i < object.total.length; ++i) { + if (typeof object.total[i] !== "object") + throw TypeError(".cosmos.bank.v1beta1.Supply.total: object expected"); + message.total[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.total[i]); + } } - } - if (message.begin_block != null && message.hasOwnProperty("begin_block")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestBeginBlock.verify(message.begin_block); - if (error) - return "begin_block." + error; + return message; + }; + + /** + * Creates a plain object from a Supply message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.Supply + * @static + * @param {cosmos.bank.v1beta1.Supply} message Supply + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Supply.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.total = []; + if (message.total && message.total.length) { + object.total = []; + for (var j = 0; j < message.total.length; ++j) + object.total[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.total[j], options); } + return object; + }; + + /** + * Converts this Supply to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.Supply + * @instance + * @returns {Object.} JSON object + */ + Supply.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Supply; + })(); + + v1beta1.DenomUnit = (function() { + + /** + * Properties of a DenomUnit. + * @memberof cosmos.bank.v1beta1 + * @interface IDenomUnit + * @property {string|null} [denom] DenomUnit denom + * @property {number|null} [exponent] DenomUnit exponent + * @property {Array.|null} [aliases] DenomUnit aliases + */ + + /** + * Constructs a new DenomUnit. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents a DenomUnit. + * @implements IDenomUnit + * @constructor + * @param {cosmos.bank.v1beta1.IDenomUnit=} [properties] Properties to set + */ + function DenomUnit(properties) { + this.aliases = []; + 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.check_tx != null && message.hasOwnProperty("check_tx")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestCheckTx.verify(message.check_tx); - if (error) - return "check_tx." + error; + + /** + * DenomUnit denom. + * @member {string} denom + * @memberof cosmos.bank.v1beta1.DenomUnit + * @instance + */ + DenomUnit.prototype.denom = ""; + + /** + * DenomUnit exponent. + * @member {number} exponent + * @memberof cosmos.bank.v1beta1.DenomUnit + * @instance + */ + DenomUnit.prototype.exponent = 0; + + /** + * DenomUnit aliases. + * @member {Array.} aliases + * @memberof cosmos.bank.v1beta1.DenomUnit + * @instance + */ + DenomUnit.prototype.aliases = $util.emptyArray; + + /** + * Encodes the specified DenomUnit message. Does not implicitly {@link cosmos.bank.v1beta1.DenomUnit.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {cosmos.bank.v1beta1.IDenomUnit} message DenomUnit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenomUnit.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.exponent != null && Object.hasOwnProperty.call(message, "exponent")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.exponent); + if (message.aliases != null && message.aliases.length) + for (var i = 0; i < message.aliases.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.aliases[i]); + return writer; + }; + + /** + * Encodes the specified DenomUnit message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.DenomUnit.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {cosmos.bank.v1beta1.IDenomUnit} message DenomUnit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenomUnit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DenomUnit message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.DenomUnit} DenomUnit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenomUnit.decode = 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.bank.v1beta1.DenomUnit(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + case 2: + message.exponent = reader.uint32(); + break; + case 3: + if (!(message.aliases && message.aliases.length)) + message.aliases = []; + message.aliases.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestDeliverTx.verify(message.deliver_tx); - if (error) - return "deliver_tx." + error; + return message; + }; + + /** + * Decodes a DenomUnit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.DenomUnit} DenomUnit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenomUnit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DenomUnit message. + * @function verify + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DenomUnit.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.exponent != null && message.hasOwnProperty("exponent")) + if (!$util.isInteger(message.exponent)) + return "exponent: integer expected"; + if (message.aliases != null && message.hasOwnProperty("aliases")) { + if (!Array.isArray(message.aliases)) + return "aliases: array expected"; + for (var i = 0; i < message.aliases.length; ++i) + if (!$util.isString(message.aliases[i])) + return "aliases: string[] expected"; } - } - if (message.end_block != null && message.hasOwnProperty("end_block")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestEndBlock.verify(message.end_block); - if (error) - return "end_block." + error; + return null; + }; + + /** + * Creates a DenomUnit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.DenomUnit} DenomUnit + */ + DenomUnit.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.DenomUnit) + return object; + var message = new $root.cosmos.bank.v1beta1.DenomUnit(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.exponent != null) + message.exponent = object.exponent >>> 0; + if (object.aliases) { + if (!Array.isArray(object.aliases)) + throw TypeError(".cosmos.bank.v1beta1.DenomUnit.aliases: array expected"); + message.aliases = []; + for (var i = 0; i < object.aliases.length; ++i) + message.aliases[i] = String(object.aliases[i]); } - } - if (message.commit != null && message.hasOwnProperty("commit")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestCommit.verify(message.commit); - if (error) - return "commit." + error; + return message; + }; + + /** + * Creates a plain object from a DenomUnit message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.DenomUnit + * @static + * @param {cosmos.bank.v1beta1.DenomUnit} message DenomUnit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DenomUnit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.aliases = []; + if (options.defaults) { + object.denom = ""; + object.exponent = 0; } - } - if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestListSnapshots.verify(message.list_snapshots); - if (error) - return "list_snapshots." + error; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.exponent != null && message.hasOwnProperty("exponent")) + object.exponent = message.exponent; + if (message.aliases && message.aliases.length) { + object.aliases = []; + for (var j = 0; j < message.aliases.length; ++j) + object.aliases[j] = message.aliases[j]; } + return object; + }; + + /** + * Converts this DenomUnit to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.DenomUnit + * @instance + * @returns {Object.} JSON object + */ + DenomUnit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DenomUnit; + })(); + + v1beta1.Metadata = (function() { + + /** + * Properties of a Metadata. + * @memberof cosmos.bank.v1beta1 + * @interface IMetadata + * @property {string|null} [description] Metadata description + * @property {Array.|null} [denom_units] Metadata denom_units + * @property {string|null} [base] Metadata base + * @property {string|null} [display] Metadata display + * @property {string|null} [name] Metadata name + * @property {string|null} [symbol] Metadata symbol + */ + + /** + * Constructs a new Metadata. + * @memberof cosmos.bank.v1beta1 + * @classdesc Represents a Metadata. + * @implements IMetadata + * @constructor + * @param {cosmos.bank.v1beta1.IMetadata=} [properties] Properties to set + */ + function Metadata(properties) { + this.denom_units = []; + 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.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestOfferSnapshot.verify(message.offer_snapshot); - if (error) - return "offer_snapshot." + error; + + /** + * Metadata description. + * @member {string} description + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.description = ""; + + /** + * Metadata denom_units. + * @member {Array.} denom_units + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.denom_units = $util.emptyArray; + + /** + * Metadata base. + * @member {string} base + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.base = ""; + + /** + * Metadata display. + * @member {string} display + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.display = ""; + + /** + * Metadata name. + * @member {string} name + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.name = ""; + + /** + * Metadata symbol. + * @member {string} symbol + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + */ + Metadata.prototype.symbol = ""; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.v1beta1.Metadata.verify|verify} messages. + * @function encode + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {cosmos.bank.v1beta1.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.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.denom_units != null && message.denom_units.length) + for (var i = 0; i < message.denom_units.length; ++i) + $root.cosmos.bank.v1beta1.DenomUnit.encode(message.denom_units[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.base != null && Object.hasOwnProperty.call(message, "base")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.base); + if (message.display != null && Object.hasOwnProperty.call(message, "display")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.display); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.symbol); + return writer; + }; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Metadata.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {cosmos.bank.v1beta1.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(); + }; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @function decode + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.bank.v1beta1.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.cosmos.bank.v1beta1.Metadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + if (!(message.denom_units && message.denom_units.length)) + message.denom_units = []; + message.denom_units.push($root.cosmos.bank.v1beta1.DenomUnit.decode(reader, reader.uint32())); + break; + case 3: + message.base = reader.string(); + break; + case 4: + message.display = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + case 6: + message.symbol = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestLoadSnapshotChunk.verify(message.load_snapshot_chunk); - if (error) - return "load_snapshot_chunk." + error; + return message; + }; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.bank.v1beta1.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()); + }; + + /** + * Verifies a Metadata message. + * @function verify + * @memberof cosmos.bank.v1beta1.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.denom_units != null && message.hasOwnProperty("denom_units")) { + if (!Array.isArray(message.denom_units)) + return "denom_units: array expected"; + for (var i = 0; i < message.denom_units.length; ++i) { + var error = $root.cosmos.bank.v1beta1.DenomUnit.verify(message.denom_units[i]); + if (error) + return "denom_units." + error; + } } - } - if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.RequestApplySnapshotChunk.verify(message.apply_snapshot_chunk); - if (error) - return "apply_snapshot_chunk." + error; + if (message.base != null && message.hasOwnProperty("base")) + if (!$util.isString(message.base)) + return "base: string expected"; + if (message.display != null && message.hasOwnProperty("display")) + if (!$util.isString(message.display)) + return "display: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.symbol != null && message.hasOwnProperty("symbol")) + if (!$util.isString(message.symbol)) + return "symbol: string expected"; + return null; + }; + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {Object.} object Plain object + * @returns {cosmos.bank.v1beta1.Metadata} Metadata + */ + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.bank.v1beta1.Metadata) + return object; + var message = new $root.cosmos.bank.v1beta1.Metadata(); + if (object.description != null) + message.description = String(object.description); + if (object.denom_units) { + if (!Array.isArray(object.denom_units)) + throw TypeError(".cosmos.bank.v1beta1.Metadata.denom_units: array expected"); + message.denom_units = []; + for (var i = 0; i < object.denom_units.length; ++i) { + if (typeof object.denom_units[i] !== "object") + throw TypeError(".cosmos.bank.v1beta1.Metadata.denom_units: object expected"); + message.denom_units[i] = $root.cosmos.bank.v1beta1.DenomUnit.fromObject(object.denom_units[i]); + } } - } - return null; - }; + if (object.base != null) + message.base = String(object.base); + if (object.display != null) + message.display = String(object.display); + if (object.name != null) + message.name = String(object.name); + if (object.symbol != null) + message.symbol = String(object.symbol); + return message; + }; - /** - * Creates a Request message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.abci.Request - * @static - * @param {Object.} object Plain object - * @returns {tendermint.abci.Request} Request - */ - Request.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Request) + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.bank.v1beta1.Metadata + * @static + * @param {cosmos.bank.v1beta1.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.arrays || options.defaults) + object.denom_units = []; + if (options.defaults) { + object.description = ""; + object.base = ""; + object.display = ""; + object.name = ""; + object.symbol = ""; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.denom_units && message.denom_units.length) { + object.denom_units = []; + for (var j = 0; j < message.denom_units.length; ++j) + object.denom_units[j] = $root.cosmos.bank.v1beta1.DenomUnit.toObject(message.denom_units[j], options); + } + if (message.base != null && message.hasOwnProperty("base")) + object.base = message.base; + if (message.display != null && message.hasOwnProperty("display")) + object.display = message.display; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.symbol != null && message.hasOwnProperty("symbol")) + object.symbol = message.symbol; return object; - var message = new $root.tendermint.abci.Request(); - if (object.echo != null) { - if (typeof object.echo !== "object") - throw TypeError(".tendermint.abci.Request.echo: object expected"); - message.echo = $root.tendermint.abci.RequestEcho.fromObject(object.echo); - } - if (object.flush != null) { - if (typeof object.flush !== "object") - throw TypeError(".tendermint.abci.Request.flush: object expected"); - message.flush = $root.tendermint.abci.RequestFlush.fromObject(object.flush); - } - if (object.info != null) { - if (typeof object.info !== "object") - throw TypeError(".tendermint.abci.Request.info: object expected"); - message.info = $root.tendermint.abci.RequestInfo.fromObject(object.info); - } - if (object.set_option != null) { - if (typeof object.set_option !== "object") - throw TypeError(".tendermint.abci.Request.set_option: object expected"); - message.set_option = $root.tendermint.abci.RequestSetOption.fromObject(object.set_option); - } - if (object.init_chain != null) { - if (typeof object.init_chain !== "object") - throw TypeError(".tendermint.abci.Request.init_chain: object expected"); - message.init_chain = $root.tendermint.abci.RequestInitChain.fromObject(object.init_chain); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".tendermint.abci.Request.query: object expected"); - message.query = $root.tendermint.abci.RequestQuery.fromObject(object.query); - } - if (object.begin_block != null) { - if (typeof object.begin_block !== "object") - throw TypeError(".tendermint.abci.Request.begin_block: object expected"); - message.begin_block = $root.tendermint.abci.RequestBeginBlock.fromObject(object.begin_block); - } - if (object.check_tx != null) { - if (typeof object.check_tx !== "object") - throw TypeError(".tendermint.abci.Request.check_tx: object expected"); - message.check_tx = $root.tendermint.abci.RequestCheckTx.fromObject(object.check_tx); - } - if (object.deliver_tx != null) { - if (typeof object.deliver_tx !== "object") - throw TypeError(".tendermint.abci.Request.deliver_tx: object expected"); - message.deliver_tx = $root.tendermint.abci.RequestDeliverTx.fromObject(object.deliver_tx); - } - if (object.end_block != null) { - if (typeof object.end_block !== "object") - throw TypeError(".tendermint.abci.Request.end_block: object expected"); - message.end_block = $root.tendermint.abci.RequestEndBlock.fromObject(object.end_block); - } - if (object.commit != null) { - if (typeof object.commit !== "object") - throw TypeError(".tendermint.abci.Request.commit: object expected"); - message.commit = $root.tendermint.abci.RequestCommit.fromObject(object.commit); - } - if (object.list_snapshots != null) { - if (typeof object.list_snapshots !== "object") - throw TypeError(".tendermint.abci.Request.list_snapshots: object expected"); - message.list_snapshots = $root.tendermint.abci.RequestListSnapshots.fromObject(object.list_snapshots); - } - if (object.offer_snapshot != null) { - if (typeof object.offer_snapshot !== "object") - throw TypeError(".tendermint.abci.Request.offer_snapshot: object expected"); - message.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.fromObject(object.offer_snapshot); - } - if (object.load_snapshot_chunk != null) { - if (typeof object.load_snapshot_chunk !== "object") - throw TypeError(".tendermint.abci.Request.load_snapshot_chunk: object expected"); - message.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.fromObject(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk != null) { - if (typeof object.apply_snapshot_chunk !== "object") - throw TypeError(".tendermint.abci.Request.apply_snapshot_chunk: object expected"); - message.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.fromObject(object.apply_snapshot_chunk); - } - return message; - }; + }; - /** - * Creates a plain object from a Request message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.Request - * @static - * @param {tendermint.abci.Request} message Request - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Request.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.echo != null && message.hasOwnProperty("echo")) { - object.echo = $root.tendermint.abci.RequestEcho.toObject(message.echo, options); - if (options.oneofs) - object.value = "echo"; - } - if (message.flush != null && message.hasOwnProperty("flush")) { - object.flush = $root.tendermint.abci.RequestFlush.toObject(message.flush, options); - if (options.oneofs) - object.value = "flush"; - } - if (message.info != null && message.hasOwnProperty("info")) { - object.info = $root.tendermint.abci.RequestInfo.toObject(message.info, options); - if (options.oneofs) - object.value = "info"; - } - if (message.set_option != null && message.hasOwnProperty("set_option")) { - object.set_option = $root.tendermint.abci.RequestSetOption.toObject(message.set_option, options); - if (options.oneofs) - object.value = "set_option"; - } - if (message.init_chain != null && message.hasOwnProperty("init_chain")) { - object.init_chain = $root.tendermint.abci.RequestInitChain.toObject(message.init_chain, options); - if (options.oneofs) - object.value = "init_chain"; - } - if (message.query != null && message.hasOwnProperty("query")) { - object.query = $root.tendermint.abci.RequestQuery.toObject(message.query, options); - if (options.oneofs) - object.value = "query"; - } - if (message.begin_block != null && message.hasOwnProperty("begin_block")) { - object.begin_block = $root.tendermint.abci.RequestBeginBlock.toObject(message.begin_block, options); - if (options.oneofs) - object.value = "begin_block"; - } - if (message.check_tx != null && message.hasOwnProperty("check_tx")) { - object.check_tx = $root.tendermint.abci.RequestCheckTx.toObject(message.check_tx, options); - if (options.oneofs) - object.value = "check_tx"; - } - if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { - object.deliver_tx = $root.tendermint.abci.RequestDeliverTx.toObject(message.deliver_tx, options); - if (options.oneofs) - object.value = "deliver_tx"; - } - if (message.end_block != null && message.hasOwnProperty("end_block")) { - object.end_block = $root.tendermint.abci.RequestEndBlock.toObject(message.end_block, options); - if (options.oneofs) - object.value = "end_block"; - } - if (message.commit != null && message.hasOwnProperty("commit")) { - object.commit = $root.tendermint.abci.RequestCommit.toObject(message.commit, options); - if (options.oneofs) - object.value = "commit"; - } - if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { - object.list_snapshots = $root.tendermint.abci.RequestListSnapshots.toObject(message.list_snapshots, options); - if (options.oneofs) - object.value = "list_snapshots"; - } - if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { - object.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.toObject(message.offer_snapshot, options); - if (options.oneofs) - object.value = "offer_snapshot"; - } - if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { - object.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.toObject(message.load_snapshot_chunk, options); - if (options.oneofs) - object.value = "load_snapshot_chunk"; - } - if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { - object.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.toObject(message.apply_snapshot_chunk, options); - if (options.oneofs) - object.value = "apply_snapshot_chunk"; - } - return object; - }; + /** + * Converts this Metadata to JSON. + * @function toJSON + * @memberof cosmos.bank.v1beta1.Metadata + * @instance + * @returns {Object.} JSON object + */ + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metadata; + })(); + + return v1beta1; + })(); + + return bank; + })(); + + return cosmos; + })(); + + $root.cosmos_proto = (function() { + + /** + * Namespace cosmos_proto. + * @exports cosmos_proto + * @namespace + */ + var cosmos_proto = {}; + + cosmos_proto.InterfaceDescriptor = (function() { + + /** + * Properties of an InterfaceDescriptor. + * @memberof cosmos_proto + * @interface IInterfaceDescriptor + * @property {string|null} [name] InterfaceDescriptor name + * @property {string|null} [description] InterfaceDescriptor description + */ + + /** + * 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(); + }; - /** - * Converts this Request to JSON. - * @function toJSON - * @memberof tendermint.abci.Request - * @instance - * @returns {Object.} JSON object - */ - Request.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return Request; - })(); + /** + * 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()); + }; - abci.RequestEcho = (function() { + /** + * 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; + }; - /** - * Properties of a RequestEcho. - * @memberof tendermint.abci - * @interface IRequestEcho - * @property {string|null} [message] RequestEcho message - */ + /** + * 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; + }; - /** - * Constructs a new RequestEcho. - * @memberof tendermint.abci - * @classdesc Represents a RequestEcho. - * @implements IRequestEcho - * @constructor - * @param {tendermint.abci.IRequestEcho=} [properties] Properties to set - */ - function RequestEcho(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 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; + }; - /** - * RequestEcho message. - * @member {string} message - * @memberof tendermint.abci.RequestEcho - * @instance - */ - RequestEcho.prototype.message = ""; - - /** - * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. - * @function encode - * @memberof tendermint.abci.RequestEcho - * @static - * @param {tendermint.abci.IRequestEcho} message RequestEcho message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestEcho.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); - return writer; - }; + /** + * 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); + }; - /** - * Encodes the specified RequestEcho message, length delimited. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.abci.RequestEcho - * @static - * @param {tendermint.abci.IRequestEcho} message RequestEcho message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestEcho.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return InterfaceDescriptor; + })(); - /** - * Decodes a RequestEcho message from the specified reader or buffer. - * @function decode - * @memberof tendermint.abci.RequestEcho - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestEcho} RequestEcho - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestEcho.decode = 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.abci.RequestEcho(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + cosmos_proto.ScalarDescriptor = (function() { - /** - * Decodes a RequestEcho message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.abci.RequestEcho - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestEcho} RequestEcho - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestEcho.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 + * @property {string|null} [legacy_amino_encoding] ScalarDescriptor legacy_amino_encoding + */ - /** - * Verifies a RequestEcho message. - * @function verify - * @memberof tendermint.abci.RequestEcho - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RequestEcho.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; + /** + * 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]]; + } - /** - * Creates a RequestEcho message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.abci.RequestEcho - * @static - * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestEcho} RequestEcho - */ - RequestEcho.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestEcho) - return object; - var message = new $root.tendermint.abci.RequestEcho(); - if (object.message != null) - message.message = String(object.message); - return message; - }; + /** + * ScalarDescriptor name. + * @member {string} name + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.name = ""; - /** - * Creates a plain object from a RequestEcho message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.RequestEcho - * @static - * @param {tendermint.abci.RequestEcho} message RequestEcho - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RequestEcho.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; + /** + * ScalarDescriptor description. + * @member {string} description + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.description = ""; - /** - * Converts this RequestEcho to JSON. - * @function toJSON - * @memberof tendermint.abci.RequestEcho - * @instance - * @returns {Object.} JSON object - */ - RequestEcho.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ScalarDescriptor field_type. + * @member {Array.} field_type + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.field_type = $util.emptyArray; - return RequestEcho; - })(); + /** + * ScalarDescriptor legacy_amino_encoding. + * @member {string} legacy_amino_encoding + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.legacy_amino_encoding = ""; - abci.RequestFlush = (function() { + /** + * 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(); + } + if (message.legacy_amino_encoding != null && Object.hasOwnProperty.call(message, "legacy_amino_encoding")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.legacy_amino_encoding); + return writer; + }; - /** - * Properties of a RequestFlush. - * @memberof tendermint.abci - * @interface IRequestFlush - */ + /** + * 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(); + }; - /** - * Constructs a new RequestFlush. - * @memberof tendermint.abci - * @classdesc Represents a RequestFlush. - * @implements IRequestFlush - * @constructor - * @param {tendermint.abci.IRequestFlush=} [properties] Properties to set - */ - function RequestFlush(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 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; + case 4: + message.legacy_amino_encoding = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. - * @function encode - * @memberof tendermint.abci.RequestFlush - * @static - * @param {tendermint.abci.IRequestFlush} message RequestFlush message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestFlush.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * 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()); + }; - /** - * Encodes the specified RequestFlush message, length delimited. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.abci.RequestFlush - * @static - * @param {tendermint.abci.IRequestFlush} message RequestFlush message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestFlush.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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: + case 2: + break; + } + } + if (message.legacy_amino_encoding != null && message.hasOwnProperty("legacy_amino_encoding")) + if (!$util.isString(message.legacy_amino_encoding)) + return "legacy_amino_encoding: string expected"; + return null; + }; - /** - * Decodes a RequestFlush message from the specified reader or buffer. - * @function decode - * @memberof tendermint.abci.RequestFlush - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestFlush} RequestFlush - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestFlush.decode = 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.abci.RequestFlush(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * 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; - }; + } + if (object.legacy_amino_encoding != null) + message.legacy_amino_encoding = String(object.legacy_amino_encoding); + return message; + }; - /** - * Decodes a RequestFlush message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.abci.RequestFlush - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestFlush} RequestFlush - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestFlush.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 = ""; + object.legacy_amino_encoding = ""; + } + 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]; + } + if (message.legacy_amino_encoding != null && message.hasOwnProperty("legacy_amino_encoding")) + object.legacy_amino_encoding = message.legacy_amino_encoding; + return object; + }; - /** - * Verifies a RequestFlush message. - * @function verify - * @memberof tendermint.abci.RequestFlush - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RequestFlush.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - 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); + }; - /** - * Creates a RequestFlush message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.abci.RequestFlush - * @static - * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestFlush} RequestFlush - */ - RequestFlush.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestFlush) - return object; - return new $root.tendermint.abci.RequestFlush(); - }; + return ScalarDescriptor; + })(); - /** - * Creates a plain object from a RequestFlush message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.RequestFlush - * @static - * @param {tendermint.abci.RequestFlush} message RequestFlush - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RequestFlush.toObject = function toObject() { - return {}; - }; + /** + * 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; + })(); - /** - * Converts this RequestFlush to JSON. - * @function toJSON - * @memberof tendermint.abci.RequestFlush - * @instance - * @returns {Object.} JSON object - */ - RequestFlush.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return cosmos_proto; + })(); - return RequestFlush; - })(); + $root.tendermint = (function() { - abci.RequestInfo = (function() { + /** + * Namespace tendermint. + * @exports tendermint + * @namespace + */ + var tendermint = {}; + + tendermint.crypto = (function() { + + /** + * Namespace crypto. + * @memberof tendermint + * @namespace + */ + var crypto = {}; + + crypto.Proof = (function() { /** - * Properties of a RequestInfo. - * @memberof tendermint.abci - * @interface IRequestInfo - * @property {string|null} [version] RequestInfo version - * @property {Long|null} [block_version] RequestInfo block_version - * @property {Long|null} [p2p_version] RequestInfo p2p_version + * Properties of a Proof. + * @memberof tendermint.crypto + * @interface IProof + * @property {Long|null} [total] Proof total + * @property {Long|null} [index] Proof index + * @property {Uint8Array|null} [leaf_hash] Proof leaf_hash + * @property {Array.|null} [aunts] Proof aunts */ /** - * Constructs a new RequestInfo. - * @memberof tendermint.abci - * @classdesc Represents a RequestInfo. - * @implements IRequestInfo + * Constructs a new Proof. + * @memberof tendermint.crypto + * @classdesc Represents a Proof. + * @implements IProof * @constructor - * @param {tendermint.abci.IRequestInfo=} [properties] Properties to set + * @param {tendermint.crypto.IProof=} [properties] Properties to set */ - function RequestInfo(properties) { + function Proof(properties) { + this.aunts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21587,323 +30087,105 @@ } /** - * RequestInfo version. - * @member {string} version - * @memberof tendermint.abci.RequestInfo - * @instance - */ - RequestInfo.prototype.version = ""; - - /** - * RequestInfo block_version. - * @member {Long} block_version - * @memberof tendermint.abci.RequestInfo - * @instance - */ - RequestInfo.prototype.block_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * RequestInfo p2p_version. - * @member {Long} p2p_version - * @memberof tendermint.abci.RequestInfo + * Proof total. + * @member {Long} total + * @memberof tendermint.crypto.Proof * @instance */ - RequestInfo.prototype.p2p_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. - * @function encode - * @memberof tendermint.abci.RequestInfo - * @static - * @param {tendermint.abci.IRequestInfo} message RequestInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestInfo.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.block_version != null && Object.hasOwnProperty.call(message, "block_version")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.block_version); - if (message.p2p_version != null && Object.hasOwnProperty.call(message, "p2p_version")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.p2p_version); - return writer; - }; - - /** - * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.abci.RequestInfo - * @static - * @param {tendermint.abci.IRequestInfo} message RequestInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RequestInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RequestInfo message from the specified reader or buffer. - * @function decode - * @memberof tendermint.abci.RequestInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestInfo} RequestInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestInfo.decode = 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.abci.RequestInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.block_version = reader.uint64(); - break; - case 3: - message.p2p_version = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RequestInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.abci.RequestInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestInfo} RequestInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RequestInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RequestInfo message. - * @function verify - * @memberof tendermint.abci.RequestInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RequestInfo.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.block_version != null && message.hasOwnProperty("block_version")) - if (!$util.isInteger(message.block_version) && !(message.block_version && $util.isInteger(message.block_version.low) && $util.isInteger(message.block_version.high))) - return "block_version: integer|Long expected"; - if (message.p2p_version != null && message.hasOwnProperty("p2p_version")) - if (!$util.isInteger(message.p2p_version) && !(message.p2p_version && $util.isInteger(message.p2p_version.low) && $util.isInteger(message.p2p_version.high))) - return "p2p_version: integer|Long expected"; - return null; - }; - - /** - * Creates a RequestInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.abci.RequestInfo - * @static - * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestInfo} RequestInfo - */ - RequestInfo.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestInfo) - return object; - var message = new $root.tendermint.abci.RequestInfo(); - if (object.version != null) - message.version = String(object.version); - if (object.block_version != null) - if ($util.Long) - (message.block_version = $util.Long.fromValue(object.block_version)).unsigned = true; - else if (typeof object.block_version === "string") - message.block_version = parseInt(object.block_version, 10); - else if (typeof object.block_version === "number") - message.block_version = object.block_version; - else if (typeof object.block_version === "object") - message.block_version = new $util.LongBits(object.block_version.low >>> 0, object.block_version.high >>> 0).toNumber(true); - if (object.p2p_version != null) - if ($util.Long) - (message.p2p_version = $util.Long.fromValue(object.p2p_version)).unsigned = true; - else if (typeof object.p2p_version === "string") - message.p2p_version = parseInt(object.p2p_version, 10); - else if (typeof object.p2p_version === "number") - message.p2p_version = object.p2p_version; - else if (typeof object.p2p_version === "object") - message.p2p_version = new $util.LongBits(object.p2p_version.low >>> 0, object.p2p_version.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a RequestInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.RequestInfo - * @static - * @param {tendermint.abci.RequestInfo} message RequestInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RequestInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.block_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.block_version = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.p2p_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.p2p_version = options.longs === String ? "0" : 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.block_version != null && message.hasOwnProperty("block_version")) - if (typeof message.block_version === "number") - object.block_version = options.longs === String ? String(message.block_version) : message.block_version; - else - object.block_version = options.longs === String ? $util.Long.prototype.toString.call(message.block_version) : options.longs === Number ? new $util.LongBits(message.block_version.low >>> 0, message.block_version.high >>> 0).toNumber(true) : message.block_version; - if (message.p2p_version != null && message.hasOwnProperty("p2p_version")) - if (typeof message.p2p_version === "number") - object.p2p_version = options.longs === String ? String(message.p2p_version) : message.p2p_version; - else - object.p2p_version = options.longs === String ? $util.Long.prototype.toString.call(message.p2p_version) : options.longs === Number ? new $util.LongBits(message.p2p_version.low >>> 0, message.p2p_version.high >>> 0).toNumber(true) : message.p2p_version; - return object; - }; + Proof.prototype.total = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Converts this RequestInfo to JSON. - * @function toJSON - * @memberof tendermint.abci.RequestInfo + * Proof index. + * @member {Long} index + * @memberof tendermint.crypto.Proof * @instance - * @returns {Object.} JSON object - */ - RequestInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RequestInfo; - })(); - - abci.RequestSetOption = (function() { - - /** - * Properties of a RequestSetOption. - * @memberof tendermint.abci - * @interface IRequestSetOption - * @property {string|null} [key] RequestSetOption key - * @property {string|null} [value] RequestSetOption value - */ - - /** - * Constructs a new RequestSetOption. - * @memberof tendermint.abci - * @classdesc Represents a RequestSetOption. - * @implements IRequestSetOption - * @constructor - * @param {tendermint.abci.IRequestSetOption=} [properties] Properties to set */ - function RequestSetOption(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]]; - } + Proof.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RequestSetOption key. - * @member {string} key - * @memberof tendermint.abci.RequestSetOption + * Proof leaf_hash. + * @member {Uint8Array} leaf_hash + * @memberof tendermint.crypto.Proof * @instance */ - RequestSetOption.prototype.key = ""; + Proof.prototype.leaf_hash = $util.newBuffer([]); /** - * RequestSetOption value. - * @member {string} value - * @memberof tendermint.abci.RequestSetOption + * Proof aunts. + * @member {Array.} aunts + * @memberof tendermint.crypto.Proof * @instance */ - RequestSetOption.prototype.value = ""; + Proof.prototype.aunts = $util.emptyArray; /** - * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static - * @param {tendermint.abci.IRequestSetOption} message RequestSetOption message or plain object to encode + * @param {tendermint.crypto.IProof} message Proof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestSetOption.encode = function encode(message, writer) { + Proof.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).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.total); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.index); + if (message.leaf_hash != null && Object.hasOwnProperty.call(message, "leaf_hash")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.leaf_hash); + if (message.aunts != null && message.aunts.length) + for (var i = 0; i < message.aunts.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.aunts[i]); return writer; }; /** - * Encodes the specified RequestSetOption message, length delimited. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. + * Encodes the specified Proof message, length delimited. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static - * @param {tendermint.abci.IRequestSetOption} message RequestSetOption message or plain object to encode + * @param {tendermint.crypto.IProof} message Proof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestSetOption.encodeDelimited = function encodeDelimited(message, writer) { + Proof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestSetOption message from the specified reader or buffer. + * Decodes a Proof message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestSetOption} RequestSetOption + * @returns {tendermint.crypto.Proof} Proof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestSetOption.decode = function decode(reader, length) { + Proof.decode = 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.abci.RequestSetOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.Proof(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key = reader.string(); + message.total = reader.int64(); break; case 2: - message.value = reader.string(); + message.index = reader.int64(); + break; + case 3: + message.leaf_hash = reader.bytes(); + break; + case 4: + if (!(message.aunts && message.aunts.length)) + message.aunts = []; + message.aunts.push(reader.bytes()); break; default: reader.skipType(tag & 7); @@ -21914,122 +30196,186 @@ }; /** - * Decodes a RequestSetOption message from the specified reader or buffer, length delimited. + * Decodes a Proof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestSetOption} RequestSetOption + * @returns {tendermint.crypto.Proof} Proof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestSetOption.decodeDelimited = function decodeDelimited(reader) { + Proof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestSetOption message. + * Verifies a Proof message. * @function verify - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestSetOption.verify = function verify(message) { + Proof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string 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"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) + return "index: integer|Long expected"; + if (message.leaf_hash != null && message.hasOwnProperty("leaf_hash")) + if (!(message.leaf_hash && typeof message.leaf_hash.length === "number" || $util.isString(message.leaf_hash))) + return "leaf_hash: buffer expected"; + if (message.aunts != null && message.hasOwnProperty("aunts")) { + if (!Array.isArray(message.aunts)) + return "aunts: array expected"; + for (var i = 0; i < message.aunts.length; ++i) + if (!(message.aunts[i] && typeof message.aunts[i].length === "number" || $util.isString(message.aunts[i]))) + return "aunts: buffer[] expected"; + } return null; }; /** - * Creates a RequestSetOption message from a plain object. Also converts values to their respective internal types. + * Creates a Proof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestSetOption} RequestSetOption + * @returns {tendermint.crypto.Proof} Proof */ - RequestSetOption.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestSetOption) + Proof.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.Proof) return object; - var message = new $root.tendermint.abci.RequestSetOption(); - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = String(object.value); + var message = new $root.tendermint.crypto.Proof(); + if (object.total != null) + if ($util.Long) + (message.total = $util.Long.fromValue(object.total)).unsigned = false; + 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(); + if (object.index != null) + if ($util.Long) + (message.index = $util.Long.fromValue(object.index)).unsigned = false; + else if (typeof object.index === "string") + message.index = parseInt(object.index, 10); + else if (typeof object.index === "number") + message.index = object.index; + else if (typeof object.index === "object") + message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); + if (object.leaf_hash != null) + if (typeof object.leaf_hash === "string") + $util.base64.decode(object.leaf_hash, message.leaf_hash = $util.newBuffer($util.base64.length(object.leaf_hash)), 0); + else if (object.leaf_hash.length) + message.leaf_hash = object.leaf_hash; + if (object.aunts) { + if (!Array.isArray(object.aunts)) + throw TypeError(".tendermint.crypto.Proof.aunts: array expected"); + message.aunts = []; + for (var i = 0; i < object.aunts.length; ++i) + if (typeof object.aunts[i] === "string") + $util.base64.decode(object.aunts[i], message.aunts[i] = $util.newBuffer($util.base64.length(object.aunts[i])), 0); + else if (object.aunts[i].length) + message.aunts[i] = object.aunts[i]; + } return message; }; /** - * Creates a plain object from a RequestSetOption message. Also converts values to other types if specified. + * Creates a plain object from a Proof message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @static - * @param {tendermint.abci.RequestSetOption} message RequestSetOption + * @param {tendermint.crypto.Proof} message Proof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestSetOption.toObject = function toObject(message, options) { + Proof.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.aunts = []; if (options.defaults) { - object.key = ""; - object.value = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.total = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.index = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.leaf_hash = ""; + else { + object.leaf_hash = []; + if (options.bytes !== Array) + object.leaf_hash = $util.newBuffer(object.leaf_hash); + } + } + 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() : message.total; + if (message.index != null && message.hasOwnProperty("index")) + if (typeof message.index === "number") + object.index = options.longs === String ? String(message.index) : message.index; + else + object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; + if (message.leaf_hash != null && message.hasOwnProperty("leaf_hash")) + object.leaf_hash = options.bytes === String ? $util.base64.encode(message.leaf_hash, 0, message.leaf_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.leaf_hash) : message.leaf_hash; + if (message.aunts && message.aunts.length) { + object.aunts = []; + for (var j = 0; j < message.aunts.length; ++j) + object.aunts[j] = options.bytes === String ? $util.base64.encode(message.aunts[j], 0, message.aunts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.aunts[j]) : message.aunts[j]; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; return object; }; /** - * Converts this RequestSetOption to JSON. + * Converts this Proof to JSON. * @function toJSON - * @memberof tendermint.abci.RequestSetOption + * @memberof tendermint.crypto.Proof * @instance * @returns {Object.} JSON object */ - RequestSetOption.prototype.toJSON = function toJSON() { + Proof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestSetOption; + return Proof; })(); - abci.RequestInitChain = (function() { + crypto.ValueOp = (function() { /** - * Properties of a RequestInitChain. - * @memberof tendermint.abci - * @interface IRequestInitChain - * @property {google.protobuf.ITimestamp|null} [time] RequestInitChain time - * @property {string|null} [chain_id] RequestInitChain chain_id - * @property {tendermint.abci.IConsensusParams|null} [consensus_params] RequestInitChain consensus_params - * @property {Array.|null} [validators] RequestInitChain validators - * @property {Uint8Array|null} [app_state_bytes] RequestInitChain app_state_bytes - * @property {Long|null} [initial_height] RequestInitChain initial_height + * Properties of a ValueOp. + * @memberof tendermint.crypto + * @interface IValueOp + * @property {Uint8Array|null} [key] ValueOp key + * @property {tendermint.crypto.IProof|null} [proof] ValueOp proof */ /** - * Constructs a new RequestInitChain. - * @memberof tendermint.abci - * @classdesc Represents a RequestInitChain. - * @implements IRequestInitChain + * Constructs a new ValueOp. + * @memberof tendermint.crypto + * @classdesc Represents a ValueOp. + * @implements IValueOp * @constructor - * @param {tendermint.abci.IRequestInitChain=} [properties] Properties to set + * @param {tendermint.crypto.IValueOp=} [properties] Properties to set */ - function RequestInitChain(properties) { - this.validators = []; + function ValueOp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22037,131 +30383,76 @@ } /** - * RequestInitChain time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof tendermint.abci.RequestInitChain - * @instance - */ - RequestInitChain.prototype.time = null; - - /** - * RequestInitChain chain_id. - * @member {string} chain_id - * @memberof tendermint.abci.RequestInitChain - * @instance - */ - RequestInitChain.prototype.chain_id = ""; - - /** - * RequestInitChain consensus_params. - * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_params - * @memberof tendermint.abci.RequestInitChain - * @instance - */ - RequestInitChain.prototype.consensus_params = null; - - /** - * RequestInitChain validators. - * @member {Array.} validators - * @memberof tendermint.abci.RequestInitChain - * @instance - */ - RequestInitChain.prototype.validators = $util.emptyArray; - - /** - * RequestInitChain app_state_bytes. - * @member {Uint8Array} app_state_bytes - * @memberof tendermint.abci.RequestInitChain + * ValueOp key. + * @member {Uint8Array} key + * @memberof tendermint.crypto.ValueOp * @instance */ - RequestInitChain.prototype.app_state_bytes = $util.newBuffer([]); + ValueOp.prototype.key = $util.newBuffer([]); /** - * RequestInitChain initial_height. - * @member {Long} initial_height - * @memberof tendermint.abci.RequestInitChain + * ValueOp proof. + * @member {tendermint.crypto.IProof|null|undefined} proof + * @memberof tendermint.crypto.ValueOp * @instance */ - RequestInitChain.prototype.initial_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ValueOp.prototype.proof = null; /** - * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. + * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static - * @param {tendermint.abci.IRequestInitChain} message RequestInitChain message or plain object to encode + * @param {tendermint.crypto.IValueOp} message ValueOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestInitChain.encode = function encode(message, writer) { + ValueOp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.chain_id); - if (message.consensus_params != null && Object.hasOwnProperty.call(message, "consensus_params")) - $root.tendermint.abci.ConsensusParams.encode(message.consensus_params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.validators != null && message.validators.length) - for (var i = 0; i < message.validators.length; ++i) - $root.tendermint.abci.ValidatorUpdate.encode(message.validators[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.app_state_bytes != null && Object.hasOwnProperty.call(message, "app_state_bytes")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.app_state_bytes); - if (message.initial_height != null && Object.hasOwnProperty.call(message, "initial_height")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.initial_height); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RequestInitChain message, length delimited. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. + * Encodes the specified ValueOp message, length delimited. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static - * @param {tendermint.abci.IRequestInitChain} message RequestInitChain message or plain object to encode + * @param {tendermint.crypto.IValueOp} message ValueOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestInitChain.encodeDelimited = function encodeDelimited(message, writer) { + ValueOp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestInitChain message from the specified reader or buffer. + * Decodes a ValueOp message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestInitChain} RequestInitChain + * @returns {tendermint.crypto.ValueOp} ValueOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestInitChain.decode = function decode(reader, length) { + ValueOp.decode = 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.abci.RequestInitChain(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.ValueOp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.key = reader.bytes(); break; case 2: - message.chain_id = reader.string(); - break; - case 3: - message.consensus_params = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.validators && message.validators.length)) - message.validators = []; - message.validators.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 5: - message.app_state_bytes = reader.bytes(); - break; - case 6: - message.initial_height = reader.int64(); + message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22172,202 +30463,132 @@ }; /** - * Decodes a RequestInitChain message from the specified reader or buffer, length delimited. + * Decodes a ValueOp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestInitChain} RequestInitChain + * @returns {tendermint.crypto.ValueOp} ValueOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestInitChain.decodeDelimited = function decodeDelimited(reader) { + ValueOp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestInitChain message. + * Verifies a ValueOp message. * @function verify - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestInitChain.verify = function verify(message) { + ValueOp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.time != null && message.hasOwnProperty("time")) { - var error = $root.google.protobuf.Timestamp.verify(message.time); - if (error) - return "time." + error; - } - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - if (!$util.isString(message.chain_id)) - return "chain_id: string expected"; - if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) { - var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_params); + 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.proof != null && message.hasOwnProperty("proof")) { + var error = $root.tendermint.crypto.Proof.verify(message.proof); if (error) - return "consensus_params." + error; - } - if (message.validators != null && message.hasOwnProperty("validators")) { - if (!Array.isArray(message.validators)) - return "validators: array expected"; - for (var i = 0; i < message.validators.length; ++i) { - var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validators[i]); - if (error) - return "validators." + error; - } + return "proof." + error; } - if (message.app_state_bytes != null && message.hasOwnProperty("app_state_bytes")) - if (!(message.app_state_bytes && typeof message.app_state_bytes.length === "number" || $util.isString(message.app_state_bytes))) - return "app_state_bytes: buffer expected"; - if (message.initial_height != null && message.hasOwnProperty("initial_height")) - if (!$util.isInteger(message.initial_height) && !(message.initial_height && $util.isInteger(message.initial_height.low) && $util.isInteger(message.initial_height.high))) - return "initial_height: integer|Long expected"; return null; }; /** - * Creates a RequestInitChain message from a plain object. Also converts values to their respective internal types. + * Creates a ValueOp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestInitChain} RequestInitChain + * @returns {tendermint.crypto.ValueOp} ValueOp */ - RequestInitChain.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestInitChain) + ValueOp.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.ValueOp) return object; - var message = new $root.tendermint.abci.RequestInitChain(); - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".tendermint.abci.RequestInitChain.time: object expected"); - message.time = $root.google.protobuf.Timestamp.fromObject(object.time); - } - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - if (object.consensus_params != null) { - if (typeof object.consensus_params !== "object") - throw TypeError(".tendermint.abci.RequestInitChain.consensus_params: object expected"); - message.consensus_params = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_params); - } - if (object.validators) { - if (!Array.isArray(object.validators)) - throw TypeError(".tendermint.abci.RequestInitChain.validators: array expected"); - message.validators = []; - for (var i = 0; i < object.validators.length; ++i) { - if (typeof object.validators[i] !== "object") - throw TypeError(".tendermint.abci.RequestInitChain.validators: object expected"); - message.validators[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validators[i]); - } + var message = new $root.tendermint.crypto.ValueOp(); + 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.proof != null) { + if (typeof object.proof !== "object") + throw TypeError(".tendermint.crypto.ValueOp.proof: object expected"); + message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); } - if (object.app_state_bytes != null) - if (typeof object.app_state_bytes === "string") - $util.base64.decode(object.app_state_bytes, message.app_state_bytes = $util.newBuffer($util.base64.length(object.app_state_bytes)), 0); - else if (object.app_state_bytes.length) - message.app_state_bytes = object.app_state_bytes; - if (object.initial_height != null) - if ($util.Long) - (message.initial_height = $util.Long.fromValue(object.initial_height)).unsigned = false; - else if (typeof object.initial_height === "string") - message.initial_height = parseInt(object.initial_height, 10); - else if (typeof object.initial_height === "number") - message.initial_height = object.initial_height; - else if (typeof object.initial_height === "object") - message.initial_height = new $util.LongBits(object.initial_height.low >>> 0, object.initial_height.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RequestInitChain message. Also converts values to other types if specified. + * Creates a plain object from a ValueOp message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @static - * @param {tendermint.abci.RequestInitChain} message RequestInitChain + * @param {tendermint.crypto.ValueOp} message ValueOp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestInitChain.toObject = function toObject(message, options) { + ValueOp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.validators = []; if (options.defaults) { - object.time = null; - object.chain_id = ""; - object.consensus_params = null; if (options.bytes === String) - object.app_state_bytes = ""; + object.key = ""; else { - object.app_state_bytes = []; + object.key = []; if (options.bytes !== Array) - object.app_state_bytes = $util.newBuffer(object.app_state_bytes); + object.key = $util.newBuffer(object.key); } - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.initial_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.initial_height = options.longs === String ? "0" : 0; - } - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) - object.consensus_params = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_params, options); - if (message.validators && message.validators.length) { - object.validators = []; - for (var j = 0; j < message.validators.length; ++j) - object.validators[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validators[j], options); + object.proof = null; } - if (message.app_state_bytes != null && message.hasOwnProperty("app_state_bytes")) - object.app_state_bytes = options.bytes === String ? $util.base64.encode(message.app_state_bytes, 0, message.app_state_bytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_state_bytes) : message.app_state_bytes; - if (message.initial_height != null && message.hasOwnProperty("initial_height")) - if (typeof message.initial_height === "number") - object.initial_height = options.longs === String ? String(message.initial_height) : message.initial_height; - else - object.initial_height = options.longs === String ? $util.Long.prototype.toString.call(message.initial_height) : options.longs === Number ? new $util.LongBits(message.initial_height.low >>> 0, message.initial_height.high >>> 0).toNumber() : message.initial_height; + 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.proof != null && message.hasOwnProperty("proof")) + object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); return object; }; /** - * Converts this RequestInitChain to JSON. + * Converts this ValueOp to JSON. * @function toJSON - * @memberof tendermint.abci.RequestInitChain + * @memberof tendermint.crypto.ValueOp * @instance * @returns {Object.} JSON object */ - RequestInitChain.prototype.toJSON = function toJSON() { + ValueOp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestInitChain; + return ValueOp; })(); - abci.RequestQuery = (function() { + crypto.DominoOp = (function() { /** - * Properties of a RequestQuery. - * @memberof tendermint.abci - * @interface IRequestQuery - * @property {Uint8Array|null} [data] RequestQuery data - * @property {string|null} [path] RequestQuery path - * @property {Long|null} [height] RequestQuery height - * @property {boolean|null} [prove] RequestQuery prove + * Properties of a DominoOp. + * @memberof tendermint.crypto + * @interface IDominoOp + * @property {string|null} [key] DominoOp key + * @property {string|null} [input] DominoOp input + * @property {string|null} [output] DominoOp output */ /** - * Constructs a new RequestQuery. - * @memberof tendermint.abci - * @classdesc Represents a RequestQuery. - * @implements IRequestQuery + * Constructs a new DominoOp. + * @memberof tendermint.crypto + * @classdesc Represents a DominoOp. + * @implements IDominoOp * @constructor - * @param {tendermint.abci.IRequestQuery=} [properties] Properties to set + * @param {tendermint.crypto.IDominoOp=} [properties] Properties to set */ - function RequestQuery(properties) { + function DominoOp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22375,102 +30596,89 @@ } /** - * RequestQuery data. - * @member {Uint8Array} data - * @memberof tendermint.abci.RequestQuery - * @instance - */ - RequestQuery.prototype.data = $util.newBuffer([]); - - /** - * RequestQuery path. - * @member {string} path - * @memberof tendermint.abci.RequestQuery + * DominoOp key. + * @member {string} key + * @memberof tendermint.crypto.DominoOp * @instance */ - RequestQuery.prototype.path = ""; + DominoOp.prototype.key = ""; /** - * RequestQuery height. - * @member {Long} height - * @memberof tendermint.abci.RequestQuery + * DominoOp input. + * @member {string} input + * @memberof tendermint.crypto.DominoOp * @instance */ - RequestQuery.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DominoOp.prototype.input = ""; /** - * RequestQuery prove. - * @member {boolean} prove - * @memberof tendermint.abci.RequestQuery + * DominoOp output. + * @member {string} output + * @memberof tendermint.crypto.DominoOp * @instance */ - RequestQuery.prototype.prove = false; + DominoOp.prototype.output = ""; /** - * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. + * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static - * @param {tendermint.abci.IRequestQuery} message RequestQuery message or plain object to encode + * @param {tendermint.crypto.IDominoOp} message DominoOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestQuery.encode = function encode(message, writer) { + DominoOp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); - if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.prove); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.input); + if (message.output != null && Object.hasOwnProperty.call(message, "output")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.output); return writer; }; /** - * Encodes the specified RequestQuery message, length delimited. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. + * Encodes the specified DominoOp message, length delimited. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static - * @param {tendermint.abci.IRequestQuery} message RequestQuery message or plain object to encode + * @param {tendermint.crypto.IDominoOp} message DominoOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestQuery.encodeDelimited = function encodeDelimited(message, writer) { + DominoOp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestQuery message from the specified reader or buffer. + * Decodes a DominoOp message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestQuery} RequestQuery + * @returns {tendermint.crypto.DominoOp} DominoOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestQuery.decode = function decode(reader, length) { + DominoOp.decode = 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.abci.RequestQuery(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.DominoOp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.data = reader.bytes(); + message.key = reader.string(); break; case 2: - message.path = reader.string(); + message.input = reader.string(); break; case 3: - message.height = reader.int64(); - break; - case 4: - message.prove = reader.bool(); + message.output = reader.string(); break; default: reader.skipType(tag & 7); @@ -22481,159 +30689,126 @@ }; /** - * Decodes a RequestQuery message from the specified reader or buffer, length delimited. + * Decodes a DominoOp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestQuery} RequestQuery + * @returns {tendermint.crypto.DominoOp} DominoOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestQuery.decodeDelimited = function decodeDelimited(reader) { + DominoOp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestQuery message. + * Verifies a DominoOp message. * @function verify - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestQuery.verify = function verify(message) { + DominoOp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - 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.prove != null && message.hasOwnProperty("prove")) - if (typeof message.prove !== "boolean") - return "prove: boolean expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.input != null && message.hasOwnProperty("input")) + if (!$util.isString(message.input)) + return "input: string expected"; + if (message.output != null && message.hasOwnProperty("output")) + if (!$util.isString(message.output)) + return "output: string expected"; return null; }; /** - * Creates a RequestQuery message from a plain object. Also converts values to their respective internal types. + * Creates a DominoOp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestQuery} RequestQuery + * @returns {tendermint.crypto.DominoOp} DominoOp */ - RequestQuery.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestQuery) + DominoOp.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.DominoOp) return object; - var message = new $root.tendermint.abci.RequestQuery(); - 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.path != null) - message.path = String(object.path); - 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.prove != null) - message.prove = Boolean(object.prove); + var message = new $root.tendermint.crypto.DominoOp(); + if (object.key != null) + message.key = String(object.key); + if (object.input != null) + message.input = String(object.input); + if (object.output != null) + message.output = String(object.output); return message; }; /** - * Creates a plain object from a RequestQuery message. Also converts values to other types if specified. + * Creates a plain object from a DominoOp message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @static - * @param {tendermint.abci.RequestQuery} message RequestQuery + * @param {tendermint.crypto.DominoOp} message DominoOp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestQuery.toObject = function toObject(message, options) { + DominoOp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.path = ""; - 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.prove = false; + object.key = ""; + object.input = ""; + object.output = ""; } - 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.path != null && message.hasOwnProperty("path")) - object.path = message.path; - 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.prove != null && message.hasOwnProperty("prove")) - object.prove = message.prove; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.input != null && message.hasOwnProperty("input")) + object.input = message.input; + if (message.output != null && message.hasOwnProperty("output")) + object.output = message.output; return object; }; /** - * Converts this RequestQuery to JSON. + * Converts this DominoOp to JSON. * @function toJSON - * @memberof tendermint.abci.RequestQuery + * @memberof tendermint.crypto.DominoOp * @instance * @returns {Object.} JSON object */ - RequestQuery.prototype.toJSON = function toJSON() { + DominoOp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestQuery; + return DominoOp; })(); - abci.RequestBeginBlock = (function() { + crypto.ProofOp = (function() { /** - * Properties of a RequestBeginBlock. - * @memberof tendermint.abci - * @interface IRequestBeginBlock - * @property {Uint8Array|null} [hash] RequestBeginBlock hash - * @property {tendermint.types.IHeader|null} [header] RequestBeginBlock header - * @property {tendermint.abci.ILastCommitInfo|null} [last_commit_info] RequestBeginBlock last_commit_info - * @property {Array.|null} [byzantine_validators] RequestBeginBlock byzantine_validators + * Properties of a ProofOp. + * @memberof tendermint.crypto + * @interface IProofOp + * @property {string|null} [type] ProofOp type + * @property {Uint8Array|null} [key] ProofOp key + * @property {Uint8Array|null} [data] ProofOp data */ /** - * Constructs a new RequestBeginBlock. - * @memberof tendermint.abci - * @classdesc Represents a RequestBeginBlock. - * @implements IRequestBeginBlock + * Constructs a new ProofOp. + * @memberof tendermint.crypto + * @classdesc Represents a ProofOp. + * @implements IProofOp * @constructor - * @param {tendermint.abci.IRequestBeginBlock=} [properties] Properties to set + * @param {tendermint.crypto.IProofOp=} [properties] Properties to set */ - function RequestBeginBlock(properties) { - this.byzantine_validators = []; + function ProofOp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22641,105 +30816,89 @@ } /** - * RequestBeginBlock hash. - * @member {Uint8Array} hash - * @memberof tendermint.abci.RequestBeginBlock - * @instance - */ - RequestBeginBlock.prototype.hash = $util.newBuffer([]); - - /** - * RequestBeginBlock header. - * @member {tendermint.types.IHeader|null|undefined} header - * @memberof tendermint.abci.RequestBeginBlock + * ProofOp type. + * @member {string} type + * @memberof tendermint.crypto.ProofOp * @instance */ - RequestBeginBlock.prototype.header = null; + ProofOp.prototype.type = ""; /** - * RequestBeginBlock last_commit_info. - * @member {tendermint.abci.ILastCommitInfo|null|undefined} last_commit_info - * @memberof tendermint.abci.RequestBeginBlock + * ProofOp key. + * @member {Uint8Array} key + * @memberof tendermint.crypto.ProofOp * @instance */ - RequestBeginBlock.prototype.last_commit_info = null; + ProofOp.prototype.key = $util.newBuffer([]); /** - * RequestBeginBlock byzantine_validators. - * @member {Array.} byzantine_validators - * @memberof tendermint.abci.RequestBeginBlock + * ProofOp data. + * @member {Uint8Array} data + * @memberof tendermint.crypto.ProofOp * @instance */ - RequestBeginBlock.prototype.byzantine_validators = $util.emptyArray; + ProofOp.prototype.data = $util.newBuffer([]); /** - * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static - * @param {tendermint.abci.IRequestBeginBlock} message RequestBeginBlock message or plain object to encode + * @param {tendermint.crypto.IProofOp} message ProofOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestBeginBlock.encode = function encode(message, writer) { + ProofOp.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.header != null && Object.hasOwnProperty.call(message, "header")) - $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.last_commit_info != null && Object.hasOwnProperty.call(message, "last_commit_info")) - $root.tendermint.abci.LastCommitInfo.encode(message.last_commit_info, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.byzantine_validators != null && message.byzantine_validators.length) - for (var i = 0; i < message.byzantine_validators.length; ++i) - $root.tendermint.abci.Evidence.encode(message.byzantine_validators[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); return writer; }; /** - * Encodes the specified RequestBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. + * Encodes the specified ProofOp message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static - * @param {tendermint.abci.IRequestBeginBlock} message RequestBeginBlock message or plain object to encode + * @param {tendermint.crypto.IProofOp} message ProofOp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestBeginBlock.encodeDelimited = function encodeDelimited(message, writer) { + ProofOp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestBeginBlock message from the specified reader or buffer. + * Decodes a ProofOp message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock + * @returns {tendermint.crypto.ProofOp} ProofOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestBeginBlock.decode = function decode(reader, length) { + ProofOp.decode = 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.abci.RequestBeginBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.ProofOp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hash = reader.bytes(); + message.type = reader.string(); break; case 2: - message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); + message.key = reader.bytes(); break; case 3: - message.last_commit_info = $root.tendermint.abci.LastCommitInfo.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.byzantine_validators && message.byzantine_validators.length)) - message.byzantine_validators = []; - message.byzantine_validators.push($root.tendermint.abci.Evidence.decode(reader, reader.uint32())); + message.data = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -22750,261 +30909,210 @@ }; /** - * Decodes a RequestBeginBlock message from the specified reader or buffer, length delimited. + * Decodes a ProofOp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock + * @returns {tendermint.crypto.ProofOp} ProofOp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestBeginBlock.decodeDelimited = function decodeDelimited(reader) { + ProofOp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestBeginBlock message. + * Verifies a ProofOp message. * @function verify - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestBeginBlock.verify = function verify(message) { + ProofOp.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.header != null && message.hasOwnProperty("header")) { - var error = $root.tendermint.types.Header.verify(message.header); - if (error) - return "header." + error; - } - if (message.last_commit_info != null && message.hasOwnProperty("last_commit_info")) { - var error = $root.tendermint.abci.LastCommitInfo.verify(message.last_commit_info); - if (error) - return "last_commit_info." + error; - } - if (message.byzantine_validators != null && message.hasOwnProperty("byzantine_validators")) { - if (!Array.isArray(message.byzantine_validators)) - return "byzantine_validators: array expected"; - for (var i = 0; i < message.byzantine_validators.length; ++i) { - var error = $root.tendermint.abci.Evidence.verify(message.byzantine_validators[i]); - if (error) - return "byzantine_validators." + error; - } - } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: 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.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 RequestBeginBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ProofOp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock + * @returns {tendermint.crypto.ProofOp} ProofOp */ - RequestBeginBlock.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestBeginBlock) + ProofOp.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.ProofOp) return object; - var message = new $root.tendermint.abci.RequestBeginBlock(); - 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; - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".tendermint.abci.RequestBeginBlock.header: object expected"); - message.header = $root.tendermint.types.Header.fromObject(object.header); - } - if (object.last_commit_info != null) { - if (typeof object.last_commit_info !== "object") - throw TypeError(".tendermint.abci.RequestBeginBlock.last_commit_info: object expected"); - message.last_commit_info = $root.tendermint.abci.LastCommitInfo.fromObject(object.last_commit_info); - } - if (object.byzantine_validators) { - if (!Array.isArray(object.byzantine_validators)) - throw TypeError(".tendermint.abci.RequestBeginBlock.byzantine_validators: array expected"); - message.byzantine_validators = []; - for (var i = 0; i < object.byzantine_validators.length; ++i) { - if (typeof object.byzantine_validators[i] !== "object") - throw TypeError(".tendermint.abci.RequestBeginBlock.byzantine_validators: object expected"); - message.byzantine_validators[i] = $root.tendermint.abci.Evidence.fromObject(object.byzantine_validators[i]); - } - } + var message = new $root.tendermint.crypto.ProofOp(); + if (object.type != null) + message.type = String(object.type); + 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.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 RequestBeginBlock message. Also converts values to other types if specified. + * Creates a plain object from a ProofOp message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @static - * @param {tendermint.abci.RequestBeginBlock} message RequestBeginBlock + * @param {tendermint.crypto.ProofOp} message ProofOp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestBeginBlock.toObject = function toObject(message, options) { + ProofOp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.byzantine_validators = []; if (options.defaults) { + object.type = ""; if (options.bytes === String) - object.hash = ""; + object.key = ""; else { - object.hash = []; + object.key = []; if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); } - object.header = null; - object.last_commit_info = null; - } - 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; - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.tendermint.types.Header.toObject(message.header, options); - if (message.last_commit_info != null && message.hasOwnProperty("last_commit_info")) - object.last_commit_info = $root.tendermint.abci.LastCommitInfo.toObject(message.last_commit_info, options); - if (message.byzantine_validators && message.byzantine_validators.length) { - object.byzantine_validators = []; - for (var j = 0; j < message.byzantine_validators.length; ++j) - object.byzantine_validators[j] = $root.tendermint.abci.Evidence.toObject(message.byzantine_validators[j], options); } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + 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.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 RequestBeginBlock to JSON. + * Converts this ProofOp to JSON. * @function toJSON - * @memberof tendermint.abci.RequestBeginBlock + * @memberof tendermint.crypto.ProofOp * @instance * @returns {Object.} JSON object */ - RequestBeginBlock.prototype.toJSON = function toJSON() { + ProofOp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestBeginBlock; - })(); - - /** - * CheckTxType enum. - * @name tendermint.abci.CheckTxType - * @enum {number} - * @property {number} NEW=0 NEW value - * @property {number} RECHECK=1 RECHECK value - */ - abci.CheckTxType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NEW"] = 0; - values[valuesById[1] = "RECHECK"] = 1; - return values; + return ProofOp; })(); - abci.RequestCheckTx = (function() { + crypto.ProofOps = (function() { /** - * Properties of a RequestCheckTx. - * @memberof tendermint.abci - * @interface IRequestCheckTx - * @property {Uint8Array|null} [tx] RequestCheckTx tx - * @property {tendermint.abci.CheckTxType|null} [type] RequestCheckTx type + * Properties of a ProofOps. + * @memberof tendermint.crypto + * @interface IProofOps + * @property {Array.|null} [ops] ProofOps ops */ /** - * Constructs a new RequestCheckTx. - * @memberof tendermint.abci - * @classdesc Represents a RequestCheckTx. - * @implements IRequestCheckTx + * Constructs a new ProofOps. + * @memberof tendermint.crypto + * @classdesc Represents a ProofOps. + * @implements IProofOps * @constructor - * @param {tendermint.abci.IRequestCheckTx=} [properties] Properties to set + * @param {tendermint.crypto.IProofOps=} [properties] Properties to set */ - function RequestCheckTx(properties) { + function ProofOps(properties) { + this.ops = []; 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]]; - } - - /** - * RequestCheckTx tx. - * @member {Uint8Array} tx - * @memberof tendermint.abci.RequestCheckTx - * @instance - */ - RequestCheckTx.prototype.tx = $util.newBuffer([]); + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * RequestCheckTx type. - * @member {tendermint.abci.CheckTxType} type - * @memberof tendermint.abci.RequestCheckTx + * ProofOps ops. + * @member {Array.} ops + * @memberof tendermint.crypto.ProofOps * @instance */ - RequestCheckTx.prototype.type = 0; + ProofOps.prototype.ops = $util.emptyArray; /** - * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. + * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static - * @param {tendermint.abci.IRequestCheckTx} message RequestCheckTx message or plain object to encode + * @param {tendermint.crypto.IProofOps} message ProofOps message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestCheckTx.encode = function encode(message, writer) { + ProofOps.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tx); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.ops != null && message.ops.length) + for (var i = 0; i < message.ops.length; ++i) + $root.tendermint.crypto.ProofOp.encode(message.ops[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RequestCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. + * Encodes the specified ProofOps message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static - * @param {tendermint.abci.IRequestCheckTx} message RequestCheckTx message or plain object to encode + * @param {tendermint.crypto.IProofOps} message ProofOps message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestCheckTx.encodeDelimited = function encodeDelimited(message, writer) { + ProofOps.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestCheckTx message from the specified reader or buffer. + * Decodes a ProofOps message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx + * @returns {tendermint.crypto.ProofOps} ProofOps * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestCheckTx.decode = function decode(reader, length) { + ProofOps.decode = 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.abci.RequestCheckTx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.ProofOps(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tx = reader.bytes(); - break; - case 2: - message.type = reader.int32(); + if (!(message.ops && message.ops.length)) + message.ops = []; + message.ops.push($root.tendermint.crypto.ProofOp.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23015,138 +31123,125 @@ }; /** - * Decodes a RequestCheckTx message from the specified reader or buffer, length delimited. + * Decodes a ProofOps message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx + * @returns {tendermint.crypto.ProofOps} ProofOps * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestCheckTx.decodeDelimited = function decodeDelimited(reader) { + ProofOps.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestCheckTx message. + * Verifies a ProofOps message. * @function verify - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestCheckTx.verify = function verify(message) { + ProofOps.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tx != null && message.hasOwnProperty("tx")) - if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) - return "tx: buffer expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; + if (message.ops != null && message.hasOwnProperty("ops")) { + if (!Array.isArray(message.ops)) + return "ops: array expected"; + for (var i = 0; i < message.ops.length; ++i) { + var error = $root.tendermint.crypto.ProofOp.verify(message.ops[i]); + if (error) + return "ops." + error; } + } return null; }; /** - * Creates a RequestCheckTx message from a plain object. Also converts values to their respective internal types. + * Creates a ProofOps message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx + * @returns {tendermint.crypto.ProofOps} ProofOps */ - RequestCheckTx.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestCheckTx) + ProofOps.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.ProofOps) return object; - var message = new $root.tendermint.abci.RequestCheckTx(); - if (object.tx != null) - if (typeof object.tx === "string") - $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); - else if (object.tx.length) - message.tx = object.tx; - switch (object.type) { - case "NEW": - case 0: - message.type = 0; - break; - case "RECHECK": - case 1: - message.type = 1; - break; + var message = new $root.tendermint.crypto.ProofOps(); + if (object.ops) { + if (!Array.isArray(object.ops)) + throw TypeError(".tendermint.crypto.ProofOps.ops: array expected"); + message.ops = []; + for (var i = 0; i < object.ops.length; ++i) { + if (typeof object.ops[i] !== "object") + throw TypeError(".tendermint.crypto.ProofOps.ops: object expected"); + message.ops[i] = $root.tendermint.crypto.ProofOp.fromObject(object.ops[i]); + } } return message; }; /** - * Creates a plain object from a RequestCheckTx message. Also converts values to other types if specified. + * Creates a plain object from a ProofOps message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @static - * @param {tendermint.abci.RequestCheckTx} message RequestCheckTx + * @param {tendermint.crypto.ProofOps} message ProofOps * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestCheckTx.toObject = function toObject(message, options) { + ProofOps.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.tx = ""; - else { - object.tx = []; - if (options.bytes !== Array) - object.tx = $util.newBuffer(object.tx); - } - object.type = options.enums === String ? "NEW" : 0; + if (options.arrays || options.defaults) + object.ops = []; + if (message.ops && message.ops.length) { + object.ops = []; + for (var j = 0; j < message.ops.length; ++j) + object.ops[j] = $root.tendermint.crypto.ProofOp.toObject(message.ops[j], options); } - if (message.tx != null && message.hasOwnProperty("tx")) - object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.tendermint.abci.CheckTxType[message.type] : message.type; return object; }; /** - * Converts this RequestCheckTx to JSON. + * Converts this ProofOps to JSON. * @function toJSON - * @memberof tendermint.abci.RequestCheckTx + * @memberof tendermint.crypto.ProofOps * @instance * @returns {Object.} JSON object */ - RequestCheckTx.prototype.toJSON = function toJSON() { + ProofOps.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestCheckTx; + return ProofOps; })(); - abci.RequestDeliverTx = (function() { + crypto.PublicKey = (function() { /** - * Properties of a RequestDeliverTx. - * @memberof tendermint.abci - * @interface IRequestDeliverTx - * @property {Uint8Array|null} [tx] RequestDeliverTx tx + * Properties of a PublicKey. + * @memberof tendermint.crypto + * @interface IPublicKey + * @property {Uint8Array|null} [ed25519] PublicKey ed25519 + * @property {Uint8Array|null} [secp256k1] PublicKey secp256k1 */ /** - * Constructs a new RequestDeliverTx. - * @memberof tendermint.abci - * @classdesc Represents a RequestDeliverTx. - * @implements IRequestDeliverTx + * Constructs a new PublicKey. + * @memberof tendermint.crypto + * @classdesc Represents a PublicKey. + * @implements IPublicKey * @constructor - * @param {tendermint.abci.IRequestDeliverTx=} [properties] Properties to set + * @param {tendermint.crypto.IPublicKey=} [properties] Properties to set */ - function RequestDeliverTx(properties) { + function PublicKey(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23154,63 +31249,90 @@ } /** - * RequestDeliverTx tx. - * @member {Uint8Array} tx - * @memberof tendermint.abci.RequestDeliverTx + * PublicKey ed25519. + * @member {Uint8Array|null|undefined} ed25519 + * @memberof tendermint.crypto.PublicKey * @instance */ - RequestDeliverTx.prototype.tx = $util.newBuffer([]); + PublicKey.prototype.ed25519 = null; /** - * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. + * PublicKey secp256k1. + * @member {Uint8Array|null|undefined} secp256k1 + * @memberof tendermint.crypto.PublicKey + * @instance + */ + PublicKey.prototype.secp256k1 = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PublicKey sum. + * @member {"ed25519"|"secp256k1"|undefined} sum + * @memberof tendermint.crypto.PublicKey + * @instance + */ + Object.defineProperty(PublicKey.prototype, "sum", { + get: $util.oneOfGetter($oneOfFields = ["ed25519", "secp256k1"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified PublicKey message. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static - * @param {tendermint.abci.IRequestDeliverTx} message RequestDeliverTx message or plain object to encode + * @param {tendermint.crypto.IPublicKey} message PublicKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestDeliverTx.encode = function encode(message, writer) { + PublicKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tx); + if (message.ed25519 != null && Object.hasOwnProperty.call(message, "ed25519")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ed25519); + if (message.secp256k1 != null && Object.hasOwnProperty.call(message, "secp256k1")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.secp256k1); return writer; }; /** - * Encodes the specified RequestDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. + * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static - * @param {tendermint.abci.IRequestDeliverTx} message RequestDeliverTx message or plain object to encode + * @param {tendermint.crypto.IPublicKey} message PublicKey message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestDeliverTx.encodeDelimited = function encodeDelimited(message, writer) { + PublicKey.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestDeliverTx message from the specified reader or buffer. + * Decodes a PublicKey message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx + * @returns {tendermint.crypto.PublicKey} PublicKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestDeliverTx.decode = function decode(reader, length) { + PublicKey.decode = 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.abci.RequestDeliverTx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.crypto.PublicKey(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tx = reader.bytes(); + message.ed25519 = reader.bytes(); + break; + case 2: + message.secp256k1 = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -23221,116 +31343,157 @@ }; /** - * Decodes a RequestDeliverTx message from the specified reader or buffer, length delimited. + * Decodes a PublicKey message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx + * @returns {tendermint.crypto.PublicKey} PublicKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestDeliverTx.decodeDelimited = function decodeDelimited(reader) { + PublicKey.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestDeliverTx message. + * Verifies a PublicKey message. * @function verify - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestDeliverTx.verify = function verify(message) { + PublicKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tx != null && message.hasOwnProperty("tx")) - if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) - return "tx: buffer expected"; + var properties = {}; + if (message.ed25519 != null && message.hasOwnProperty("ed25519")) { + properties.sum = 1; + if (!(message.ed25519 && typeof message.ed25519.length === "number" || $util.isString(message.ed25519))) + return "ed25519: buffer expected"; + } + if (message.secp256k1 != null && message.hasOwnProperty("secp256k1")) { + if (properties.sum === 1) + return "sum: multiple values"; + properties.sum = 1; + if (!(message.secp256k1 && typeof message.secp256k1.length === "number" || $util.isString(message.secp256k1))) + return "secp256k1: buffer expected"; + } return null; }; /** - * Creates a RequestDeliverTx message from a plain object. Also converts values to their respective internal types. + * Creates a PublicKey message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx + * @returns {tendermint.crypto.PublicKey} PublicKey */ - RequestDeliverTx.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestDeliverTx) + PublicKey.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.crypto.PublicKey) return object; - var message = new $root.tendermint.abci.RequestDeliverTx(); - if (object.tx != null) - if (typeof object.tx === "string") - $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); - else if (object.tx.length) - message.tx = object.tx; + var message = new $root.tendermint.crypto.PublicKey(); + if (object.ed25519 != null) + if (typeof object.ed25519 === "string") + $util.base64.decode(object.ed25519, message.ed25519 = $util.newBuffer($util.base64.length(object.ed25519)), 0); + else if (object.ed25519.length) + message.ed25519 = object.ed25519; + if (object.secp256k1 != null) + if (typeof object.secp256k1 === "string") + $util.base64.decode(object.secp256k1, message.secp256k1 = $util.newBuffer($util.base64.length(object.secp256k1)), 0); + else if (object.secp256k1.length) + message.secp256k1 = object.secp256k1; return message; }; /** - * Creates a plain object from a RequestDeliverTx message. Also converts values to other types if specified. + * Creates a plain object from a PublicKey message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @static - * @param {tendermint.abci.RequestDeliverTx} message RequestDeliverTx + * @param {tendermint.crypto.PublicKey} message PublicKey * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestDeliverTx.toObject = function toObject(message, options) { + PublicKey.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.tx = ""; - else { - object.tx = []; - if (options.bytes !== Array) - object.tx = $util.newBuffer(object.tx); - } - if (message.tx != null && message.hasOwnProperty("tx")) - object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; + if (message.ed25519 != null && message.hasOwnProperty("ed25519")) { + object.ed25519 = options.bytes === String ? $util.base64.encode(message.ed25519, 0, message.ed25519.length) : options.bytes === Array ? Array.prototype.slice.call(message.ed25519) : message.ed25519; + if (options.oneofs) + object.sum = "ed25519"; + } + if (message.secp256k1 != null && message.hasOwnProperty("secp256k1")) { + object.secp256k1 = options.bytes === String ? $util.base64.encode(message.secp256k1, 0, message.secp256k1.length) : options.bytes === Array ? Array.prototype.slice.call(message.secp256k1) : message.secp256k1; + if (options.oneofs) + object.sum = "secp256k1"; + } return object; }; /** - * Converts this RequestDeliverTx to JSON. + * Converts this PublicKey to JSON. * @function toJSON - * @memberof tendermint.abci.RequestDeliverTx + * @memberof tendermint.crypto.PublicKey * @instance * @returns {Object.} JSON object */ - RequestDeliverTx.prototype.toJSON = function toJSON() { + PublicKey.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestDeliverTx; + return PublicKey; })(); - abci.RequestEndBlock = (function() { + return crypto; + })(); + + tendermint.abci = (function() { + + /** + * Namespace abci. + * @memberof tendermint + * @namespace + */ + var abci = {}; + + abci.Request = (function() { /** - * Properties of a RequestEndBlock. + * Properties of a Request. * @memberof tendermint.abci - * @interface IRequestEndBlock - * @property {Long|null} [height] RequestEndBlock height + * @interface IRequest + * @property {tendermint.abci.IRequestEcho|null} [echo] Request echo + * @property {tendermint.abci.IRequestFlush|null} [flush] Request flush + * @property {tendermint.abci.IRequestInfo|null} [info] Request info + * @property {tendermint.abci.IRequestSetOption|null} [set_option] Request set_option + * @property {tendermint.abci.IRequestInitChain|null} [init_chain] Request init_chain + * @property {tendermint.abci.IRequestQuery|null} [query] Request query + * @property {tendermint.abci.IRequestBeginBlock|null} [begin_block] Request begin_block + * @property {tendermint.abci.IRequestCheckTx|null} [check_tx] Request check_tx + * @property {tendermint.abci.IRequestDeliverTx|null} [deliver_tx] Request deliver_tx + * @property {tendermint.abci.IRequestEndBlock|null} [end_block] Request end_block + * @property {tendermint.abci.IRequestCommit|null} [commit] Request commit + * @property {tendermint.abci.IRequestListSnapshots|null} [list_snapshots] Request list_snapshots + * @property {tendermint.abci.IRequestOfferSnapshot|null} [offer_snapshot] Request offer_snapshot + * @property {tendermint.abci.IRequestLoadSnapshotChunk|null} [load_snapshot_chunk] Request load_snapshot_chunk + * @property {tendermint.abci.IRequestApplySnapshotChunk|null} [apply_snapshot_chunk] Request apply_snapshot_chunk */ /** - * Constructs a new RequestEndBlock. + * Constructs a new Request. * @memberof tendermint.abci - * @classdesc Represents a RequestEndBlock. - * @implements IRequestEndBlock + * @classdesc Represents a Request. + * @implements IRequest * @constructor - * @param {tendermint.abci.IRequestEndBlock=} [properties] Properties to set + * @param {tendermint.abci.IRequest=} [properties] Properties to set */ - function RequestEndBlock(properties) { + function Request(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23338,63 +31501,259 @@ } /** - * RequestEndBlock height. - * @member {Long} height - * @memberof tendermint.abci.RequestEndBlock + * Request echo. + * @member {tendermint.abci.IRequestEcho|null|undefined} echo + * @memberof tendermint.abci.Request * @instance */ - RequestEndBlock.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Request.prototype.echo = null; + + /** + * Request flush. + * @member {tendermint.abci.IRequestFlush|null|undefined} flush + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.flush = null; + + /** + * Request info. + * @member {tendermint.abci.IRequestInfo|null|undefined} info + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.info = null; + + /** + * Request set_option. + * @member {tendermint.abci.IRequestSetOption|null|undefined} set_option + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.set_option = null; + + /** + * Request init_chain. + * @member {tendermint.abci.IRequestInitChain|null|undefined} init_chain + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.init_chain = null; + + /** + * Request query. + * @member {tendermint.abci.IRequestQuery|null|undefined} query + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.query = null; + + /** + * Request begin_block. + * @member {tendermint.abci.IRequestBeginBlock|null|undefined} begin_block + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.begin_block = null; + + /** + * Request check_tx. + * @member {tendermint.abci.IRequestCheckTx|null|undefined} check_tx + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.check_tx = null; + + /** + * Request deliver_tx. + * @member {tendermint.abci.IRequestDeliverTx|null|undefined} deliver_tx + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.deliver_tx = null; + + /** + * Request end_block. + * @member {tendermint.abci.IRequestEndBlock|null|undefined} end_block + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.end_block = null; + + /** + * Request commit. + * @member {tendermint.abci.IRequestCommit|null|undefined} commit + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.commit = null; + + /** + * Request list_snapshots. + * @member {tendermint.abci.IRequestListSnapshots|null|undefined} list_snapshots + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.list_snapshots = null; + + /** + * Request offer_snapshot. + * @member {tendermint.abci.IRequestOfferSnapshot|null|undefined} offer_snapshot + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.offer_snapshot = null; + + /** + * Request load_snapshot_chunk. + * @member {tendermint.abci.IRequestLoadSnapshotChunk|null|undefined} load_snapshot_chunk + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.load_snapshot_chunk = null; + + /** + * Request apply_snapshot_chunk. + * @member {tendermint.abci.IRequestApplySnapshotChunk|null|undefined} apply_snapshot_chunk + * @memberof tendermint.abci.Request + * @instance + */ + Request.prototype.apply_snapshot_chunk = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Request value. + * @member {"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"|undefined} value + * @memberof tendermint.abci.Request + * @instance + */ + Object.defineProperty(Request.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["echo", "flush", "info", "set_option", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static - * @param {tendermint.abci.IRequestEndBlock} message RequestEndBlock message or plain object to encode + * @param {tendermint.abci.IRequest} message Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestEndBlock.encode = function encode(message, writer) { + Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); + if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) + $root.tendermint.abci.RequestEcho.encode(message.echo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flush != null && Object.hasOwnProperty.call(message, "flush")) + $root.tendermint.abci.RequestFlush.encode(message.flush, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + $root.tendermint.abci.RequestInfo.encode(message.info, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.set_option != null && Object.hasOwnProperty.call(message, "set_option")) + $root.tendermint.abci.RequestSetOption.encode(message.set_option, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.init_chain != null && Object.hasOwnProperty.call(message, "init_chain")) + $root.tendermint.abci.RequestInitChain.encode(message.init_chain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.tendermint.abci.RequestQuery.encode(message.query, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.begin_block != null && Object.hasOwnProperty.call(message, "begin_block")) + $root.tendermint.abci.RequestBeginBlock.encode(message.begin_block, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.check_tx != null && Object.hasOwnProperty.call(message, "check_tx")) + $root.tendermint.abci.RequestCheckTx.encode(message.check_tx, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.deliver_tx != null && Object.hasOwnProperty.call(message, "deliver_tx")) + $root.tendermint.abci.RequestDeliverTx.encode(message.deliver_tx, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.end_block != null && Object.hasOwnProperty.call(message, "end_block")) + $root.tendermint.abci.RequestEndBlock.encode(message.end_block, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) + $root.tendermint.abci.RequestCommit.encode(message.commit, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.list_snapshots != null && Object.hasOwnProperty.call(message, "list_snapshots")) + $root.tendermint.abci.RequestListSnapshots.encode(message.list_snapshots, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.offer_snapshot != null && Object.hasOwnProperty.call(message, "offer_snapshot")) + $root.tendermint.abci.RequestOfferSnapshot.encode(message.offer_snapshot, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.load_snapshot_chunk != null && Object.hasOwnProperty.call(message, "load_snapshot_chunk")) + $root.tendermint.abci.RequestLoadSnapshotChunk.encode(message.load_snapshot_chunk, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.apply_snapshot_chunk != null && Object.hasOwnProperty.call(message, "apply_snapshot_chunk")) + $root.tendermint.abci.RequestApplySnapshotChunk.encode(message.apply_snapshot_chunk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; /** - * Encodes the specified RequestEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. + * Encodes the specified Request message, length delimited. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static - * @param {tendermint.abci.IRequestEndBlock} message RequestEndBlock message or plain object to encode + * @param {tendermint.abci.IRequest} message Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestEndBlock.encodeDelimited = function encodeDelimited(message, writer) { + Request.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestEndBlock message from the specified reader or buffer. + * Decodes a Request message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock + * @returns {tendermint.abci.Request} Request * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestEndBlock.decode = function decode(reader, length) { + Request.decode = 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.abci.RequestEndBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.Request(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = reader.int64(); + message.echo = $root.tendermint.abci.RequestEcho.decode(reader, reader.uint32()); + break; + case 2: + message.flush = $root.tendermint.abci.RequestFlush.decode(reader, reader.uint32()); + break; + case 3: + message.info = $root.tendermint.abci.RequestInfo.decode(reader, reader.uint32()); + break; + case 4: + message.set_option = $root.tendermint.abci.RequestSetOption.decode(reader, reader.uint32()); + break; + case 5: + message.init_chain = $root.tendermint.abci.RequestInitChain.decode(reader, reader.uint32()); + break; + case 6: + message.query = $root.tendermint.abci.RequestQuery.decode(reader, reader.uint32()); + break; + case 7: + message.begin_block = $root.tendermint.abci.RequestBeginBlock.decode(reader, reader.uint32()); + break; + case 8: + message.check_tx = $root.tendermint.abci.RequestCheckTx.decode(reader, reader.uint32()); + break; + case 9: + message.deliver_tx = $root.tendermint.abci.RequestDeliverTx.decode(reader, reader.uint32()); + break; + case 10: + message.end_block = $root.tendermint.abci.RequestEndBlock.decode(reader, reader.uint32()); + break; + case 11: + message.commit = $root.tendermint.abci.RequestCommit.decode(reader, reader.uint32()); + break; + case 12: + message.list_snapshots = $root.tendermint.abci.RequestListSnapshots.decode(reader, reader.uint32()); + break; + case 13: + message.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.decode(reader, reader.uint32()); + break; + case 14: + message.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 15: + message.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23405,120 +31764,397 @@ }; /** - * Decodes a RequestEndBlock message from the specified reader or buffer, length delimited. + * Decodes a Request message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock + * @returns {tendermint.abci.Request} Request * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestEndBlock.decodeDelimited = function decodeDelimited(reader) { + Request.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestEndBlock message. + * Verifies a Request message. * @function verify - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestEndBlock.verify = function verify(message) { + Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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"; + var properties = {}; + if (message.echo != null && message.hasOwnProperty("echo")) { + properties.value = 1; + { + var error = $root.tendermint.abci.RequestEcho.verify(message.echo); + if (error) + return "echo." + error; + } + } + if (message.flush != null && message.hasOwnProperty("flush")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestFlush.verify(message.flush); + if (error) + return "flush." + error; + } + } + if (message.info != null && message.hasOwnProperty("info")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestInfo.verify(message.info); + if (error) + return "info." + error; + } + } + if (message.set_option != null && message.hasOwnProperty("set_option")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestSetOption.verify(message.set_option); + if (error) + return "set_option." + error; + } + } + if (message.init_chain != null && message.hasOwnProperty("init_chain")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestInitChain.verify(message.init_chain); + if (error) + return "init_chain." + error; + } + } + if (message.query != null && message.hasOwnProperty("query")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestQuery.verify(message.query); + if (error) + return "query." + error; + } + } + if (message.begin_block != null && message.hasOwnProperty("begin_block")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestBeginBlock.verify(message.begin_block); + if (error) + return "begin_block." + error; + } + } + if (message.check_tx != null && message.hasOwnProperty("check_tx")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestCheckTx.verify(message.check_tx); + if (error) + return "check_tx." + error; + } + } + if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestDeliverTx.verify(message.deliver_tx); + if (error) + return "deliver_tx." + error; + } + } + if (message.end_block != null && message.hasOwnProperty("end_block")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestEndBlock.verify(message.end_block); + if (error) + return "end_block." + error; + } + } + if (message.commit != null && message.hasOwnProperty("commit")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestCommit.verify(message.commit); + if (error) + return "commit." + error; + } + } + if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestListSnapshots.verify(message.list_snapshots); + if (error) + return "list_snapshots." + error; + } + } + if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestOfferSnapshot.verify(message.offer_snapshot); + if (error) + return "offer_snapshot." + error; + } + } + if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestLoadSnapshotChunk.verify(message.load_snapshot_chunk); + if (error) + return "load_snapshot_chunk." + error; + } + } + if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.RequestApplySnapshotChunk.verify(message.apply_snapshot_chunk); + if (error) + return "apply_snapshot_chunk." + error; + } + } return null; }; /** - * Creates a RequestEndBlock message from a plain object. Also converts values to their respective internal types. + * Creates a Request message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock + * @returns {tendermint.abci.Request} Request */ - RequestEndBlock.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestEndBlock) + Request.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Request) return object; - var message = new $root.tendermint.abci.RequestEndBlock(); - 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(); + var message = new $root.tendermint.abci.Request(); + if (object.echo != null) { + if (typeof object.echo !== "object") + throw TypeError(".tendermint.abci.Request.echo: object expected"); + message.echo = $root.tendermint.abci.RequestEcho.fromObject(object.echo); + } + if (object.flush != null) { + if (typeof object.flush !== "object") + throw TypeError(".tendermint.abci.Request.flush: object expected"); + message.flush = $root.tendermint.abci.RequestFlush.fromObject(object.flush); + } + if (object.info != null) { + if (typeof object.info !== "object") + throw TypeError(".tendermint.abci.Request.info: object expected"); + message.info = $root.tendermint.abci.RequestInfo.fromObject(object.info); + } + if (object.set_option != null) { + if (typeof object.set_option !== "object") + throw TypeError(".tendermint.abci.Request.set_option: object expected"); + message.set_option = $root.tendermint.abci.RequestSetOption.fromObject(object.set_option); + } + if (object.init_chain != null) { + if (typeof object.init_chain !== "object") + throw TypeError(".tendermint.abci.Request.init_chain: object expected"); + message.init_chain = $root.tendermint.abci.RequestInitChain.fromObject(object.init_chain); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".tendermint.abci.Request.query: object expected"); + message.query = $root.tendermint.abci.RequestQuery.fromObject(object.query); + } + if (object.begin_block != null) { + if (typeof object.begin_block !== "object") + throw TypeError(".tendermint.abci.Request.begin_block: object expected"); + message.begin_block = $root.tendermint.abci.RequestBeginBlock.fromObject(object.begin_block); + } + if (object.check_tx != null) { + if (typeof object.check_tx !== "object") + throw TypeError(".tendermint.abci.Request.check_tx: object expected"); + message.check_tx = $root.tendermint.abci.RequestCheckTx.fromObject(object.check_tx); + } + if (object.deliver_tx != null) { + if (typeof object.deliver_tx !== "object") + throw TypeError(".tendermint.abci.Request.deliver_tx: object expected"); + message.deliver_tx = $root.tendermint.abci.RequestDeliverTx.fromObject(object.deliver_tx); + } + if (object.end_block != null) { + if (typeof object.end_block !== "object") + throw TypeError(".tendermint.abci.Request.end_block: object expected"); + message.end_block = $root.tendermint.abci.RequestEndBlock.fromObject(object.end_block); + } + if (object.commit != null) { + if (typeof object.commit !== "object") + throw TypeError(".tendermint.abci.Request.commit: object expected"); + message.commit = $root.tendermint.abci.RequestCommit.fromObject(object.commit); + } + if (object.list_snapshots != null) { + if (typeof object.list_snapshots !== "object") + throw TypeError(".tendermint.abci.Request.list_snapshots: object expected"); + message.list_snapshots = $root.tendermint.abci.RequestListSnapshots.fromObject(object.list_snapshots); + } + if (object.offer_snapshot != null) { + if (typeof object.offer_snapshot !== "object") + throw TypeError(".tendermint.abci.Request.offer_snapshot: object expected"); + message.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.fromObject(object.offer_snapshot); + } + if (object.load_snapshot_chunk != null) { + if (typeof object.load_snapshot_chunk !== "object") + throw TypeError(".tendermint.abci.Request.load_snapshot_chunk: object expected"); + message.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.fromObject(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk != null) { + if (typeof object.apply_snapshot_chunk !== "object") + throw TypeError(".tendermint.abci.Request.apply_snapshot_chunk: object expected"); + message.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.fromObject(object.apply_snapshot_chunk); + } return message; }; /** - * Creates a plain object from a RequestEndBlock message. Also converts values to other types if specified. + * Creates a plain object from a Request message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @static - * @param {tendermint.abci.RequestEndBlock} message RequestEndBlock + * @param {tendermint.abci.Request} message Request * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestEndBlock.toObject = function toObject(message, options) { + Request.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.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - 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.echo != null && message.hasOwnProperty("echo")) { + object.echo = $root.tendermint.abci.RequestEcho.toObject(message.echo, options); + if (options.oneofs) + object.value = "echo"; + } + if (message.flush != null && message.hasOwnProperty("flush")) { + object.flush = $root.tendermint.abci.RequestFlush.toObject(message.flush, options); + if (options.oneofs) + object.value = "flush"; + } + if (message.info != null && message.hasOwnProperty("info")) { + object.info = $root.tendermint.abci.RequestInfo.toObject(message.info, options); + if (options.oneofs) + object.value = "info"; + } + if (message.set_option != null && message.hasOwnProperty("set_option")) { + object.set_option = $root.tendermint.abci.RequestSetOption.toObject(message.set_option, options); + if (options.oneofs) + object.value = "set_option"; + } + if (message.init_chain != null && message.hasOwnProperty("init_chain")) { + object.init_chain = $root.tendermint.abci.RequestInitChain.toObject(message.init_chain, options); + if (options.oneofs) + object.value = "init_chain"; + } + if (message.query != null && message.hasOwnProperty("query")) { + object.query = $root.tendermint.abci.RequestQuery.toObject(message.query, options); + if (options.oneofs) + object.value = "query"; + } + if (message.begin_block != null && message.hasOwnProperty("begin_block")) { + object.begin_block = $root.tendermint.abci.RequestBeginBlock.toObject(message.begin_block, options); + if (options.oneofs) + object.value = "begin_block"; + } + if (message.check_tx != null && message.hasOwnProperty("check_tx")) { + object.check_tx = $root.tendermint.abci.RequestCheckTx.toObject(message.check_tx, options); + if (options.oneofs) + object.value = "check_tx"; + } + if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { + object.deliver_tx = $root.tendermint.abci.RequestDeliverTx.toObject(message.deliver_tx, options); + if (options.oneofs) + object.value = "deliver_tx"; + } + if (message.end_block != null && message.hasOwnProperty("end_block")) { + object.end_block = $root.tendermint.abci.RequestEndBlock.toObject(message.end_block, options); + if (options.oneofs) + object.value = "end_block"; + } + if (message.commit != null && message.hasOwnProperty("commit")) { + object.commit = $root.tendermint.abci.RequestCommit.toObject(message.commit, options); + if (options.oneofs) + object.value = "commit"; + } + if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { + object.list_snapshots = $root.tendermint.abci.RequestListSnapshots.toObject(message.list_snapshots, options); + if (options.oneofs) + object.value = "list_snapshots"; + } + if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { + object.offer_snapshot = $root.tendermint.abci.RequestOfferSnapshot.toObject(message.offer_snapshot, options); + if (options.oneofs) + object.value = "offer_snapshot"; + } + if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { + object.load_snapshot_chunk = $root.tendermint.abci.RequestLoadSnapshotChunk.toObject(message.load_snapshot_chunk, options); + if (options.oneofs) + object.value = "load_snapshot_chunk"; + } + if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { + object.apply_snapshot_chunk = $root.tendermint.abci.RequestApplySnapshotChunk.toObject(message.apply_snapshot_chunk, options); + if (options.oneofs) + object.value = "apply_snapshot_chunk"; + } return object; }; /** - * Converts this RequestEndBlock to JSON. + * Converts this Request to JSON. * @function toJSON - * @memberof tendermint.abci.RequestEndBlock + * @memberof tendermint.abci.Request * @instance * @returns {Object.} JSON object */ - RequestEndBlock.prototype.toJSON = function toJSON() { + Request.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestEndBlock; + return Request; })(); - abci.RequestCommit = (function() { + abci.RequestEcho = (function() { /** - * Properties of a RequestCommit. + * Properties of a RequestEcho. * @memberof tendermint.abci - * @interface IRequestCommit + * @interface IRequestEcho + * @property {string|null} [message] RequestEcho message */ /** - * Constructs a new RequestCommit. + * Constructs a new RequestEcho. * @memberof tendermint.abci - * @classdesc Represents a RequestCommit. - * @implements IRequestCommit + * @classdesc Represents a RequestEcho. + * @implements IRequestEcho * @constructor - * @param {tendermint.abci.IRequestCommit=} [properties] Properties to set + * @param {tendermint.abci.IRequestEcho=} [properties] Properties to set */ - function RequestCommit(properties) { + function RequestEcho(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23526,51 +32162,64 @@ } /** - * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. + * RequestEcho message. + * @member {string} message + * @memberof tendermint.abci.RequestEcho + * @instance + */ + RequestEcho.prototype.message = ""; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static - * @param {tendermint.abci.IRequestCommit} message RequestCommit message or plain object to encode + * @param {tendermint.abci.IRequestEcho} message RequestEcho message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestCommit.encode = function encode(message, writer) { + RequestEcho.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); return writer; }; /** - * Encodes the specified RequestCommit message, length delimited. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. + * Encodes the specified RequestEcho message, length delimited. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static - * @param {tendermint.abci.IRequestCommit} message RequestCommit message or plain object to encode + * @param {tendermint.abci.IRequestEcho} message RequestEcho message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestCommit.encodeDelimited = function encodeDelimited(message, writer) { + RequestEcho.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestCommit message from the specified reader or buffer. + * Decodes a RequestEcho message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestCommit} RequestCommit + * @returns {tendermint.abci.RequestEcho} RequestEcho * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestCommit.decode = function decode(reader, length) { + RequestEcho.decode = 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.abci.RequestCommit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestEcho(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.message = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -23580,93 +32229,106 @@ }; /** - * Decodes a RequestCommit message from the specified reader or buffer, length delimited. + * Decodes a RequestEcho message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestCommit} RequestCommit + * @returns {tendermint.abci.RequestEcho} RequestEcho * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestCommit.decodeDelimited = function decodeDelimited(reader) { + RequestEcho.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestCommit message. + * Verifies a RequestEcho message. * @function verify - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestCommit.verify = function verify(message) { + RequestEcho.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a RequestCommit message from a plain object. Also converts values to their respective internal types. + * Creates a RequestEcho message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestCommit} RequestCommit + * @returns {tendermint.abci.RequestEcho} RequestEcho */ - RequestCommit.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestCommit) + RequestEcho.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestEcho) return object; - return new $root.tendermint.abci.RequestCommit(); + var message = new $root.tendermint.abci.RequestEcho(); + if (object.message != null) + message.message = String(object.message); + return message; }; /** - * Creates a plain object from a RequestCommit message. Also converts values to other types if specified. + * Creates a plain object from a RequestEcho message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @static - * @param {tendermint.abci.RequestCommit} message RequestCommit + * @param {tendermint.abci.RequestEcho} message RequestEcho * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestCommit.toObject = function toObject() { - return {}; + RequestEcho.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.message = ""; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + return object; }; /** - * Converts this RequestCommit to JSON. + * Converts this RequestEcho to JSON. * @function toJSON - * @memberof tendermint.abci.RequestCommit + * @memberof tendermint.abci.RequestEcho * @instance * @returns {Object.} JSON object */ - RequestCommit.prototype.toJSON = function toJSON() { + RequestEcho.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestCommit; + return RequestEcho; })(); - abci.RequestListSnapshots = (function() { + abci.RequestFlush = (function() { /** - * Properties of a RequestListSnapshots. + * Properties of a RequestFlush. * @memberof tendermint.abci - * @interface IRequestListSnapshots + * @interface IRequestFlush */ /** - * Constructs a new RequestListSnapshots. + * Constructs a new RequestFlush. * @memberof tendermint.abci - * @classdesc Represents a RequestListSnapshots. - * @implements IRequestListSnapshots + * @classdesc Represents a RequestFlush. + * @implements IRequestFlush * @constructor - * @param {tendermint.abci.IRequestListSnapshots=} [properties] Properties to set + * @param {tendermint.abci.IRequestFlush=} [properties] Properties to set */ - function RequestListSnapshots(properties) { + function RequestFlush(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23674,48 +32336,48 @@ } /** - * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static - * @param {tendermint.abci.IRequestListSnapshots} message RequestListSnapshots message or plain object to encode + * @param {tendermint.abci.IRequestFlush} message RequestFlush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestListSnapshots.encode = function encode(message, writer) { + RequestFlush.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified RequestListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * Encodes the specified RequestFlush message, length delimited. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static - * @param {tendermint.abci.IRequestListSnapshots} message RequestListSnapshots message or plain object to encode + * @param {tendermint.abci.IRequestFlush} message RequestFlush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestListSnapshots.encodeDelimited = function encodeDelimited(message, writer) { + RequestFlush.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestListSnapshots message from the specified reader or buffer. + * Decodes a RequestFlush message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots + * @returns {tendermint.abci.RequestFlush} RequestFlush * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestListSnapshots.decode = function decode(reader, length) { + RequestFlush.decode = 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.abci.RequestListSnapshots(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestFlush(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23728,95 +32390,96 @@ }; /** - * Decodes a RequestListSnapshots message from the specified reader or buffer, length delimited. + * Decodes a RequestFlush message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots + * @returns {tendermint.abci.RequestFlush} RequestFlush * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestListSnapshots.decodeDelimited = function decodeDelimited(reader) { + RequestFlush.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestListSnapshots message. + * Verifies a RequestFlush message. * @function verify - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestListSnapshots.verify = function verify(message) { + RequestFlush.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a RequestListSnapshots message from a plain object. Also converts values to their respective internal types. + * Creates a RequestFlush message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots + * @returns {tendermint.abci.RequestFlush} RequestFlush */ - RequestListSnapshots.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestListSnapshots) + RequestFlush.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestFlush) return object; - return new $root.tendermint.abci.RequestListSnapshots(); + return new $root.tendermint.abci.RequestFlush(); }; /** - * Creates a plain object from a RequestListSnapshots message. Also converts values to other types if specified. + * Creates a plain object from a RequestFlush message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @static - * @param {tendermint.abci.RequestListSnapshots} message RequestListSnapshots + * @param {tendermint.abci.RequestFlush} message RequestFlush * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestListSnapshots.toObject = function toObject() { + RequestFlush.toObject = function toObject() { return {}; }; /** - * Converts this RequestListSnapshots to JSON. + * Converts this RequestFlush to JSON. * @function toJSON - * @memberof tendermint.abci.RequestListSnapshots + * @memberof tendermint.abci.RequestFlush * @instance * @returns {Object.} JSON object */ - RequestListSnapshots.prototype.toJSON = function toJSON() { + RequestFlush.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestListSnapshots; + return RequestFlush; })(); - abci.RequestOfferSnapshot = (function() { + abci.RequestInfo = (function() { /** - * Properties of a RequestOfferSnapshot. + * Properties of a RequestInfo. * @memberof tendermint.abci - * @interface IRequestOfferSnapshot - * @property {tendermint.abci.ISnapshot|null} [snapshot] RequestOfferSnapshot snapshot - * @property {Uint8Array|null} [app_hash] RequestOfferSnapshot app_hash + * @interface IRequestInfo + * @property {string|null} [version] RequestInfo version + * @property {Long|null} [block_version] RequestInfo block_version + * @property {Long|null} [p2p_version] RequestInfo p2p_version */ /** - * Constructs a new RequestOfferSnapshot. + * Constructs a new RequestInfo. * @memberof tendermint.abci - * @classdesc Represents a RequestOfferSnapshot. - * @implements IRequestOfferSnapshot + * @classdesc Represents a RequestInfo. + * @implements IRequestInfo * @constructor - * @param {tendermint.abci.IRequestOfferSnapshot=} [properties] Properties to set + * @param {tendermint.abci.IRequestInfo=} [properties] Properties to set */ - function RequestOfferSnapshot(properties) { + function RequestInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23824,76 +32487,89 @@ } /** - * RequestOfferSnapshot snapshot. - * @member {tendermint.abci.ISnapshot|null|undefined} snapshot - * @memberof tendermint.abci.RequestOfferSnapshot + * RequestInfo version. + * @member {string} version + * @memberof tendermint.abci.RequestInfo * @instance */ - RequestOfferSnapshot.prototype.snapshot = null; + RequestInfo.prototype.version = ""; /** - * RequestOfferSnapshot app_hash. - * @member {Uint8Array} app_hash - * @memberof tendermint.abci.RequestOfferSnapshot + * RequestInfo block_version. + * @member {Long} block_version + * @memberof tendermint.abci.RequestInfo * @instance */ - RequestOfferSnapshot.prototype.app_hash = $util.newBuffer([]); + RequestInfo.prototype.block_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * RequestInfo p2p_version. + * @member {Long} p2p_version + * @memberof tendermint.abci.RequestInfo + * @instance + */ + RequestInfo.prototype.p2p_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static - * @param {tendermint.abci.IRequestOfferSnapshot} message RequestOfferSnapshot message or plain object to encode + * @param {tendermint.abci.IRequestInfo} message RequestInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestOfferSnapshot.encode = function encode(message, writer) { + RequestInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) - $root.tendermint.abci.Snapshot.encode(message.snapshot, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.app_hash); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.block_version != null && Object.hasOwnProperty.call(message, "block_version")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.block_version); + if (message.p2p_version != null && Object.hasOwnProperty.call(message, "p2p_version")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.p2p_version); return writer; }; /** - * Encodes the specified RequestOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static - * @param {tendermint.abci.IRequestOfferSnapshot} message RequestOfferSnapshot message or plain object to encode + * @param {tendermint.abci.IRequestInfo} message RequestInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestOfferSnapshot.encodeDelimited = function encodeDelimited(message, writer) { + RequestInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestOfferSnapshot message from the specified reader or buffer. + * Decodes a RequestInfo message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot + * @returns {tendermint.abci.RequestInfo} RequestInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestOfferSnapshot.decode = function decode(reader, length) { + RequestInfo.decode = 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.abci.RequestOfferSnapshot(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.snapshot = $root.tendermint.abci.Snapshot.decode(reader, reader.uint32()); + message.version = reader.string(); break; case 2: - message.app_hash = reader.bytes(); + message.block_version = reader.uint64(); + break; + case 3: + message.p2p_version = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -23904,132 +32580,153 @@ }; /** - * Decodes a RequestOfferSnapshot message from the specified reader or buffer, length delimited. + * Decodes a RequestInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot + * @returns {tendermint.abci.RequestInfo} RequestInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestOfferSnapshot.decodeDelimited = function decodeDelimited(reader) { + RequestInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestOfferSnapshot message. + * Verifies a RequestInfo message. * @function verify - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestOfferSnapshot.verify = function verify(message) { + RequestInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snapshot != null && message.hasOwnProperty("snapshot")) { - var error = $root.tendermint.abci.Snapshot.verify(message.snapshot); - if (error) - return "snapshot." + error; - } - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) - return "app_hash: buffer expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.block_version != null && message.hasOwnProperty("block_version")) + if (!$util.isInteger(message.block_version) && !(message.block_version && $util.isInteger(message.block_version.low) && $util.isInteger(message.block_version.high))) + return "block_version: integer|Long expected"; + if (message.p2p_version != null && message.hasOwnProperty("p2p_version")) + if (!$util.isInteger(message.p2p_version) && !(message.p2p_version && $util.isInteger(message.p2p_version.low) && $util.isInteger(message.p2p_version.high))) + return "p2p_version: integer|Long expected"; return null; }; /** - * Creates a RequestOfferSnapshot message from a plain object. Also converts values to their respective internal types. + * Creates a RequestInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot + * @returns {tendermint.abci.RequestInfo} RequestInfo */ - RequestOfferSnapshot.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestOfferSnapshot) + RequestInfo.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestInfo) return object; - var message = new $root.tendermint.abci.RequestOfferSnapshot(); - if (object.snapshot != null) { - if (typeof object.snapshot !== "object") - throw TypeError(".tendermint.abci.RequestOfferSnapshot.snapshot: object expected"); - message.snapshot = $root.tendermint.abci.Snapshot.fromObject(object.snapshot); - } - if (object.app_hash != null) - if (typeof object.app_hash === "string") - $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); - else if (object.app_hash.length) - message.app_hash = object.app_hash; + var message = new $root.tendermint.abci.RequestInfo(); + if (object.version != null) + message.version = String(object.version); + if (object.block_version != null) + if ($util.Long) + (message.block_version = $util.Long.fromValue(object.block_version)).unsigned = true; + else if (typeof object.block_version === "string") + message.block_version = parseInt(object.block_version, 10); + else if (typeof object.block_version === "number") + message.block_version = object.block_version; + else if (typeof object.block_version === "object") + message.block_version = new $util.LongBits(object.block_version.low >>> 0, object.block_version.high >>> 0).toNumber(true); + if (object.p2p_version != null) + if ($util.Long) + (message.p2p_version = $util.Long.fromValue(object.p2p_version)).unsigned = true; + else if (typeof object.p2p_version === "string") + message.p2p_version = parseInt(object.p2p_version, 10); + else if (typeof object.p2p_version === "number") + message.p2p_version = object.p2p_version; + else if (typeof object.p2p_version === "object") + message.p2p_version = new $util.LongBits(object.p2p_version.low >>> 0, object.p2p_version.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a RequestOfferSnapshot message. Also converts values to other types if specified. + * Creates a plain object from a RequestInfo message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @static - * @param {tendermint.abci.RequestOfferSnapshot} message RequestOfferSnapshot + * @param {tendermint.abci.RequestInfo} message RequestInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestOfferSnapshot.toObject = function toObject(message, options) { + RequestInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.snapshot = null; - if (options.bytes === String) - object.app_hash = ""; - else { - object.app_hash = []; - if (options.bytes !== Array) - object.app_hash = $util.newBuffer(object.app_hash); - } + object.version = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.block_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.block_version = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.p2p_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.p2p_version = options.longs === String ? "0" : 0; } - if (message.snapshot != null && message.hasOwnProperty("snapshot")) - object.snapshot = $root.tendermint.abci.Snapshot.toObject(message.snapshot, options); - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.block_version != null && message.hasOwnProperty("block_version")) + if (typeof message.block_version === "number") + object.block_version = options.longs === String ? String(message.block_version) : message.block_version; + else + object.block_version = options.longs === String ? $util.Long.prototype.toString.call(message.block_version) : options.longs === Number ? new $util.LongBits(message.block_version.low >>> 0, message.block_version.high >>> 0).toNumber(true) : message.block_version; + if (message.p2p_version != null && message.hasOwnProperty("p2p_version")) + if (typeof message.p2p_version === "number") + object.p2p_version = options.longs === String ? String(message.p2p_version) : message.p2p_version; + else + object.p2p_version = options.longs === String ? $util.Long.prototype.toString.call(message.p2p_version) : options.longs === Number ? new $util.LongBits(message.p2p_version.low >>> 0, message.p2p_version.high >>> 0).toNumber(true) : message.p2p_version; return object; }; /** - * Converts this RequestOfferSnapshot to JSON. + * Converts this RequestInfo to JSON. * @function toJSON - * @memberof tendermint.abci.RequestOfferSnapshot + * @memberof tendermint.abci.RequestInfo * @instance * @returns {Object.} JSON object */ - RequestOfferSnapshot.prototype.toJSON = function toJSON() { + RequestInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestOfferSnapshot; + return RequestInfo; })(); - abci.RequestLoadSnapshotChunk = (function() { + abci.RequestSetOption = (function() { /** - * Properties of a RequestLoadSnapshotChunk. + * Properties of a RequestSetOption. * @memberof tendermint.abci - * @interface IRequestLoadSnapshotChunk - * @property {Long|null} [height] RequestLoadSnapshotChunk height - * @property {number|null} [format] RequestLoadSnapshotChunk format - * @property {number|null} [chunk] RequestLoadSnapshotChunk chunk + * @interface IRequestSetOption + * @property {string|null} [key] RequestSetOption key + * @property {string|null} [value] RequestSetOption value */ /** - * Constructs a new RequestLoadSnapshotChunk. + * Constructs a new RequestSetOption. * @memberof tendermint.abci - * @classdesc Represents a RequestLoadSnapshotChunk. - * @implements IRequestLoadSnapshotChunk + * @classdesc Represents a RequestSetOption. + * @implements IRequestSetOption * @constructor - * @param {tendermint.abci.IRequestLoadSnapshotChunk=} [properties] Properties to set + * @param {tendermint.abci.IRequestSetOption=} [properties] Properties to set */ - function RequestLoadSnapshotChunk(properties) { + function RequestSetOption(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24037,89 +32734,76 @@ } /** - * RequestLoadSnapshotChunk height. - * @member {Long} height - * @memberof tendermint.abci.RequestLoadSnapshotChunk - * @instance - */ - RequestLoadSnapshotChunk.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * RequestLoadSnapshotChunk format. - * @member {number} format - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * RequestSetOption key. + * @member {string} key + * @memberof tendermint.abci.RequestSetOption * @instance */ - RequestLoadSnapshotChunk.prototype.format = 0; + RequestSetOption.prototype.key = ""; /** - * RequestLoadSnapshotChunk chunk. - * @member {number} chunk - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * RequestSetOption value. + * @member {string} value + * @memberof tendermint.abci.RequestSetOption * @instance */ - RequestLoadSnapshotChunk.prototype.chunk = 0; + RequestSetOption.prototype.value = ""; /** - * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static - * @param {tendermint.abci.IRequestLoadSnapshotChunk} message RequestLoadSnapshotChunk message or plain object to encode + * @param {tendermint.abci.IRequestSetOption} message RequestSetOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestLoadSnapshotChunk.encode = function encode(message, writer) { + RequestSetOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.format); - if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.chunk); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); return writer; }; /** - * Encodes the specified RequestLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * Encodes the specified RequestSetOption message, length delimited. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static - * @param {tendermint.abci.IRequestLoadSnapshotChunk} message RequestLoadSnapshotChunk message or plain object to encode + * @param {tendermint.abci.IRequestSetOption} message RequestSetOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestLoadSnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { + RequestSetOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. + * Decodes a RequestSetOption message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk + * @returns {tendermint.abci.RequestSetOption} RequestSetOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestLoadSnapshotChunk.decode = function decode(reader, length) { + RequestSetOption.decode = 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.abci.RequestLoadSnapshotChunk(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestSetOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = reader.uint64(); + message.key = reader.string(); break; case 2: - message.format = reader.uint32(); - break; - case 3: - message.chunk = reader.uint32(); + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -24130,140 +32814,122 @@ }; /** - * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a RequestSetOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk + * @returns {tendermint.abci.RequestSetOption} RequestSetOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestLoadSnapshotChunk.decodeDelimited = function decodeDelimited(reader) { + RequestSetOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestLoadSnapshotChunk message. + * Verifies a RequestSetOption message. * @function verify - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestLoadSnapshotChunk.verify = function verify(message) { + RequestSetOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.format != null && message.hasOwnProperty("format")) - if (!$util.isInteger(message.format)) - return "format: integer expected"; - if (message.chunk != null && message.hasOwnProperty("chunk")) - if (!$util.isInteger(message.chunk)) - return "chunk: integer expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a RequestLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a RequestSetOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk + * @returns {tendermint.abci.RequestSetOption} RequestSetOption */ - RequestLoadSnapshotChunk.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestLoadSnapshotChunk) + RequestSetOption.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestSetOption) return object; - var message = new $root.tendermint.abci.RequestLoadSnapshotChunk(); - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = true; - 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(true); - if (object.format != null) - message.format = object.format >>> 0; - if (object.chunk != null) - message.chunk = object.chunk >>> 0; + var message = new $root.tendermint.abci.RequestSetOption(); + if (object.key != null) + message.key = String(object.key); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a RequestLoadSnapshotChunk message. Also converts values to other types if specified. + * Creates a plain object from a RequestSetOption message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @static - * @param {tendermint.abci.RequestLoadSnapshotChunk} message RequestLoadSnapshotChunk + * @param {tendermint.abci.RequestSetOption} message RequestSetOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestLoadSnapshotChunk.toObject = function toObject(message, options) { + RequestSetOption.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.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - object.format = 0; - object.chunk = 0; + object.key = ""; + object.value = ""; } - 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(true) : message.height; - if (message.format != null && message.hasOwnProperty("format")) - object.format = message.format; - if (message.chunk != null && message.hasOwnProperty("chunk")) - object.chunk = message.chunk; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this RequestLoadSnapshotChunk to JSON. + * Converts this RequestSetOption to JSON. * @function toJSON - * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @memberof tendermint.abci.RequestSetOption * @instance * @returns {Object.} JSON object */ - RequestLoadSnapshotChunk.prototype.toJSON = function toJSON() { + RequestSetOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestLoadSnapshotChunk; + return RequestSetOption; })(); - abci.RequestApplySnapshotChunk = (function() { + abci.RequestInitChain = (function() { /** - * Properties of a RequestApplySnapshotChunk. + * Properties of a RequestInitChain. * @memberof tendermint.abci - * @interface IRequestApplySnapshotChunk - * @property {number|null} [index] RequestApplySnapshotChunk index - * @property {Uint8Array|null} [chunk] RequestApplySnapshotChunk chunk - * @property {string|null} [sender] RequestApplySnapshotChunk sender + * @interface IRequestInitChain + * @property {google.protobuf.ITimestamp|null} [time] RequestInitChain time + * @property {string|null} [chain_id] RequestInitChain chain_id + * @property {tendermint.abci.IConsensusParams|null} [consensus_params] RequestInitChain consensus_params + * @property {Array.|null} [validators] RequestInitChain validators + * @property {Uint8Array|null} [app_state_bytes] RequestInitChain app_state_bytes + * @property {Long|null} [initial_height] RequestInitChain initial_height */ /** - * Constructs a new RequestApplySnapshotChunk. + * Constructs a new RequestInitChain. * @memberof tendermint.abci - * @classdesc Represents a RequestApplySnapshotChunk. - * @implements IRequestApplySnapshotChunk + * @classdesc Represents a RequestInitChain. + * @implements IRequestInitChain * @constructor - * @param {tendermint.abci.IRequestApplySnapshotChunk=} [properties] Properties to set + * @param {tendermint.abci.IRequestInitChain=} [properties] Properties to set */ - function RequestApplySnapshotChunk(properties) { + function RequestInitChain(properties) { + this.validators = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24271,89 +32937,131 @@ } /** - * RequestApplySnapshotChunk index. - * @member {number} index - * @memberof tendermint.abci.RequestApplySnapshotChunk + * RequestInitChain time. + * @member {google.protobuf.ITimestamp|null|undefined} time + * @memberof tendermint.abci.RequestInitChain * @instance */ - RequestApplySnapshotChunk.prototype.index = 0; + RequestInitChain.prototype.time = null; /** - * RequestApplySnapshotChunk chunk. - * @member {Uint8Array} chunk - * @memberof tendermint.abci.RequestApplySnapshotChunk + * RequestInitChain chain_id. + * @member {string} chain_id + * @memberof tendermint.abci.RequestInitChain * @instance */ - RequestApplySnapshotChunk.prototype.chunk = $util.newBuffer([]); + RequestInitChain.prototype.chain_id = ""; /** - * RequestApplySnapshotChunk sender. - * @member {string} sender - * @memberof tendermint.abci.RequestApplySnapshotChunk + * RequestInitChain consensus_params. + * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_params + * @memberof tendermint.abci.RequestInitChain * @instance */ - RequestApplySnapshotChunk.prototype.sender = ""; + RequestInitChain.prototype.consensus_params = null; /** - * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * RequestInitChain validators. + * @member {Array.} validators + * @memberof tendermint.abci.RequestInitChain + * @instance + */ + RequestInitChain.prototype.validators = $util.emptyArray; + + /** + * RequestInitChain app_state_bytes. + * @member {Uint8Array} app_state_bytes + * @memberof tendermint.abci.RequestInitChain + * @instance + */ + RequestInitChain.prototype.app_state_bytes = $util.newBuffer([]); + + /** + * RequestInitChain initial_height. + * @member {Long} initial_height + * @memberof tendermint.abci.RequestInitChain + * @instance + */ + RequestInitChain.prototype.initial_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. * @function encode - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static - * @param {tendermint.abci.IRequestApplySnapshotChunk} message RequestApplySnapshotChunk message or plain object to encode + * @param {tendermint.abci.IRequestInitChain} message RequestInitChain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestApplySnapshotChunk.encode = function encode(message, writer) { + RequestInitChain.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); - if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.chunk); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.chain_id); + if (message.consensus_params != null && Object.hasOwnProperty.call(message, "consensus_params")) + $root.tendermint.abci.ConsensusParams.encode(message.consensus_params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.validators != null && message.validators.length) + for (var i = 0; i < message.validators.length; ++i) + $root.tendermint.abci.ValidatorUpdate.encode(message.validators[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.app_state_bytes != null && Object.hasOwnProperty.call(message, "app_state_bytes")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.app_state_bytes); + if (message.initial_height != null && Object.hasOwnProperty.call(message, "initial_height")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.initial_height); return writer; }; /** - * Encodes the specified RequestApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * Encodes the specified RequestInitChain message, length delimited. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static - * @param {tendermint.abci.IRequestApplySnapshotChunk} message RequestApplySnapshotChunk message or plain object to encode + * @param {tendermint.abci.IRequestInitChain} message RequestInitChain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestApplySnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { + RequestInitChain.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. + * Decodes a RequestInitChain message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk + * @returns {tendermint.abci.RequestInitChain} RequestInitChain * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestApplySnapshotChunk.decode = function decode(reader, length) { + RequestInitChain.decode = 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.abci.RequestApplySnapshotChunk(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestInitChain(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.index = reader.uint32(); + message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.chunk = reader.bytes(); + message.chain_id = reader.string(); break; case 3: - message.sender = reader.string(); + message.consensus_params = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.validators && message.validators.length)) + message.validators = []; + message.validators.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); + break; + case 5: + message.app_state_bytes = reader.bytes(); + break; + case 6: + message.initial_height = reader.int64(); break; default: reader.skipType(tag & 7); @@ -24364,148 +33072,202 @@ }; /** - * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a RequestInitChain message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk + * @returns {tendermint.abci.RequestInitChain} RequestInitChain * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestApplySnapshotChunk.decodeDelimited = function decodeDelimited(reader) { + RequestInitChain.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RequestApplySnapshotChunk message. + * Verifies a RequestInitChain message. * @function verify - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestApplySnapshotChunk.verify = function verify(message) { + RequestInitChain.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.chunk != null && message.hasOwnProperty("chunk")) - if (!(message.chunk && typeof message.chunk.length === "number" || $util.isString(message.chunk))) - return "chunk: buffer expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: 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.chain_id != null && message.hasOwnProperty("chain_id")) + if (!$util.isString(message.chain_id)) + return "chain_id: string expected"; + if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) { + var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_params); + if (error) + return "consensus_params." + error; + } + if (message.validators != null && message.hasOwnProperty("validators")) { + if (!Array.isArray(message.validators)) + return "validators: array expected"; + for (var i = 0; i < message.validators.length; ++i) { + var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validators[i]); + if (error) + return "validators." + error; + } + } + if (message.app_state_bytes != null && message.hasOwnProperty("app_state_bytes")) + if (!(message.app_state_bytes && typeof message.app_state_bytes.length === "number" || $util.isString(message.app_state_bytes))) + return "app_state_bytes: buffer expected"; + if (message.initial_height != null && message.hasOwnProperty("initial_height")) + if (!$util.isInteger(message.initial_height) && !(message.initial_height && $util.isInteger(message.initial_height.low) && $util.isInteger(message.initial_height.high))) + return "initial_height: integer|Long expected"; return null; }; /** - * Creates a RequestApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a RequestInitChain message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk + * @returns {tendermint.abci.RequestInitChain} RequestInitChain */ - RequestApplySnapshotChunk.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.RequestApplySnapshotChunk) + RequestInitChain.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestInitChain) return object; - var message = new $root.tendermint.abci.RequestApplySnapshotChunk(); - if (object.index != null) - message.index = object.index >>> 0; - if (object.chunk != null) - if (typeof object.chunk === "string") - $util.base64.decode(object.chunk, message.chunk = $util.newBuffer($util.base64.length(object.chunk)), 0); - else if (object.chunk.length) - message.chunk = object.chunk; - if (object.sender != null) - message.sender = String(object.sender); + var message = new $root.tendermint.abci.RequestInitChain(); + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".tendermint.abci.RequestInitChain.time: object expected"); + message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + } + if (object.chain_id != null) + message.chain_id = String(object.chain_id); + if (object.consensus_params != null) { + if (typeof object.consensus_params !== "object") + throw TypeError(".tendermint.abci.RequestInitChain.consensus_params: object expected"); + message.consensus_params = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_params); + } + if (object.validators) { + if (!Array.isArray(object.validators)) + throw TypeError(".tendermint.abci.RequestInitChain.validators: array expected"); + message.validators = []; + for (var i = 0; i < object.validators.length; ++i) { + if (typeof object.validators[i] !== "object") + throw TypeError(".tendermint.abci.RequestInitChain.validators: object expected"); + message.validators[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validators[i]); + } + } + if (object.app_state_bytes != null) + if (typeof object.app_state_bytes === "string") + $util.base64.decode(object.app_state_bytes, message.app_state_bytes = $util.newBuffer($util.base64.length(object.app_state_bytes)), 0); + else if (object.app_state_bytes.length) + message.app_state_bytes = object.app_state_bytes; + if (object.initial_height != null) + if ($util.Long) + (message.initial_height = $util.Long.fromValue(object.initial_height)).unsigned = false; + else if (typeof object.initial_height === "string") + message.initial_height = parseInt(object.initial_height, 10); + else if (typeof object.initial_height === "number") + message.initial_height = object.initial_height; + else if (typeof object.initial_height === "object") + message.initial_height = new $util.LongBits(object.initial_height.low >>> 0, object.initial_height.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RequestApplySnapshotChunk message. Also converts values to other types if specified. + * Creates a plain object from a RequestInitChain message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @static - * @param {tendermint.abci.RequestApplySnapshotChunk} message RequestApplySnapshotChunk + * @param {tendermint.abci.RequestInitChain} message RequestInitChain * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestApplySnapshotChunk.toObject = function toObject(message, options) { + RequestInitChain.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.validators = []; if (options.defaults) { - object.index = 0; + object.time = null; + object.chain_id = ""; + object.consensus_params = null; if (options.bytes === String) - object.chunk = ""; + object.app_state_bytes = ""; else { - object.chunk = []; + object.app_state_bytes = []; if (options.bytes !== Array) - object.chunk = $util.newBuffer(object.chunk); + object.app_state_bytes = $util.newBuffer(object.app_state_bytes); } - object.sender = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.initial_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.initial_height = options.longs === String ? "0" : 0; } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.chunk != null && message.hasOwnProperty("chunk")) - object.chunk = options.bytes === String ? $util.base64.encode(message.chunk, 0, message.chunk.length) : options.bytes === Array ? Array.prototype.slice.call(message.chunk) : message.chunk; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + object.chain_id = message.chain_id; + if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) + object.consensus_params = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_params, options); + if (message.validators && message.validators.length) { + object.validators = []; + for (var j = 0; j < message.validators.length; ++j) + object.validators[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validators[j], options); + } + if (message.app_state_bytes != null && message.hasOwnProperty("app_state_bytes")) + object.app_state_bytes = options.bytes === String ? $util.base64.encode(message.app_state_bytes, 0, message.app_state_bytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_state_bytes) : message.app_state_bytes; + if (message.initial_height != null && message.hasOwnProperty("initial_height")) + if (typeof message.initial_height === "number") + object.initial_height = options.longs === String ? String(message.initial_height) : message.initial_height; + else + object.initial_height = options.longs === String ? $util.Long.prototype.toString.call(message.initial_height) : options.longs === Number ? new $util.LongBits(message.initial_height.low >>> 0, message.initial_height.high >>> 0).toNumber() : message.initial_height; return object; }; /** - * Converts this RequestApplySnapshotChunk to JSON. + * Converts this RequestInitChain to JSON. * @function toJSON - * @memberof tendermint.abci.RequestApplySnapshotChunk + * @memberof tendermint.abci.RequestInitChain * @instance * @returns {Object.} JSON object */ - RequestApplySnapshotChunk.prototype.toJSON = function toJSON() { + RequestInitChain.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RequestApplySnapshotChunk; + return RequestInitChain; })(); - abci.Response = (function() { + abci.RequestQuery = (function() { /** - * Properties of a Response. + * Properties of a RequestQuery. * @memberof tendermint.abci - * @interface IResponse - * @property {tendermint.abci.IResponseException|null} [exception] Response exception - * @property {tendermint.abci.IResponseEcho|null} [echo] Response echo - * @property {tendermint.abci.IResponseFlush|null} [flush] Response flush - * @property {tendermint.abci.IResponseInfo|null} [info] Response info - * @property {tendermint.abci.IResponseSetOption|null} [set_option] Response set_option - * @property {tendermint.abci.IResponseInitChain|null} [init_chain] Response init_chain - * @property {tendermint.abci.IResponseQuery|null} [query] Response query - * @property {tendermint.abci.IResponseBeginBlock|null} [begin_block] Response begin_block - * @property {tendermint.abci.IResponseCheckTx|null} [check_tx] Response check_tx - * @property {tendermint.abci.IResponseDeliverTx|null} [deliver_tx] Response deliver_tx - * @property {tendermint.abci.IResponseEndBlock|null} [end_block] Response end_block - * @property {tendermint.abci.IResponseCommit|null} [commit] Response commit - * @property {tendermint.abci.IResponseListSnapshots|null} [list_snapshots] Response list_snapshots - * @property {tendermint.abci.IResponseOfferSnapshot|null} [offer_snapshot] Response offer_snapshot - * @property {tendermint.abci.IResponseLoadSnapshotChunk|null} [load_snapshot_chunk] Response load_snapshot_chunk - * @property {tendermint.abci.IResponseApplySnapshotChunk|null} [apply_snapshot_chunk] Response apply_snapshot_chunk + * @interface IRequestQuery + * @property {Uint8Array|null} [data] RequestQuery data + * @property {string|null} [path] RequestQuery path + * @property {Long|null} [height] RequestQuery height + * @property {boolean|null} [prove] RequestQuery prove */ /** - * Constructs a new Response. + * Constructs a new RequestQuery. * @memberof tendermint.abci - * @classdesc Represents a Response. - * @implements IResponse + * @classdesc Represents a RequestQuery. + * @implements IRequestQuery * @constructor - * @param {tendermint.abci.IResponse=} [properties] Properties to set + * @param {tendermint.abci.IRequestQuery=} [properties] Properties to set */ - function Response(properties) { + function RequestQuery(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24513,272 +33275,102 @@ } /** - * Response exception. - * @member {tendermint.abci.IResponseException|null|undefined} exception - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.exception = null; - - /** - * Response echo. - * @member {tendermint.abci.IResponseEcho|null|undefined} echo - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.echo = null; - - /** - * Response flush. - * @member {tendermint.abci.IResponseFlush|null|undefined} flush - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.flush = null; - - /** - * Response info. - * @member {tendermint.abci.IResponseInfo|null|undefined} info - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.info = null; - - /** - * Response set_option. - * @member {tendermint.abci.IResponseSetOption|null|undefined} set_option - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.set_option = null; - - /** - * Response init_chain. - * @member {tendermint.abci.IResponseInitChain|null|undefined} init_chain - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.init_chain = null; - - /** - * Response query. - * @member {tendermint.abci.IResponseQuery|null|undefined} query - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.query = null; - - /** - * Response begin_block. - * @member {tendermint.abci.IResponseBeginBlock|null|undefined} begin_block - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.begin_block = null; - - /** - * Response check_tx. - * @member {tendermint.abci.IResponseCheckTx|null|undefined} check_tx - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.check_tx = null; - - /** - * Response deliver_tx. - * @member {tendermint.abci.IResponseDeliverTx|null|undefined} deliver_tx - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.deliver_tx = null; - - /** - * Response end_block. - * @member {tendermint.abci.IResponseEndBlock|null|undefined} end_block - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.end_block = null; - - /** - * Response commit. - * @member {tendermint.abci.IResponseCommit|null|undefined} commit - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.commit = null; - - /** - * Response list_snapshots. - * @member {tendermint.abci.IResponseListSnapshots|null|undefined} list_snapshots - * @memberof tendermint.abci.Response - * @instance - */ - Response.prototype.list_snapshots = null; - - /** - * Response offer_snapshot. - * @member {tendermint.abci.IResponseOfferSnapshot|null|undefined} offer_snapshot - * @memberof tendermint.abci.Response + * RequestQuery data. + * @member {Uint8Array} data + * @memberof tendermint.abci.RequestQuery * @instance */ - Response.prototype.offer_snapshot = null; + RequestQuery.prototype.data = $util.newBuffer([]); /** - * Response load_snapshot_chunk. - * @member {tendermint.abci.IResponseLoadSnapshotChunk|null|undefined} load_snapshot_chunk - * @memberof tendermint.abci.Response + * RequestQuery path. + * @member {string} path + * @memberof tendermint.abci.RequestQuery * @instance */ - Response.prototype.load_snapshot_chunk = null; + RequestQuery.prototype.path = ""; /** - * Response apply_snapshot_chunk. - * @member {tendermint.abci.IResponseApplySnapshotChunk|null|undefined} apply_snapshot_chunk - * @memberof tendermint.abci.Response + * RequestQuery height. + * @member {Long} height + * @memberof tendermint.abci.RequestQuery * @instance */ - Response.prototype.apply_snapshot_chunk = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Response value. - * @member {"exception"|"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"|undefined} value - * @memberof tendermint.abci.Response + RequestQuery.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RequestQuery prove. + * @member {boolean} prove + * @memberof tendermint.abci.RequestQuery * @instance */ - Object.defineProperty(Response.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["exception", "echo", "flush", "info", "set_option", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk"]), - set: $util.oneOfSetter($oneOfFields) - }); + RequestQuery.prototype.prove = false; /** - * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. * @function encode - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static - * @param {tendermint.abci.IResponse} message Response message or plain object to encode + * @param {tendermint.abci.IRequestQuery} message RequestQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Response.encode = function encode(message, writer) { + RequestQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) - $root.tendermint.abci.ResponseException.encode(message.exception, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) - $root.tendermint.abci.ResponseEcho.encode(message.echo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.flush != null && Object.hasOwnProperty.call(message, "flush")) - $root.tendermint.abci.ResponseFlush.encode(message.flush, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - $root.tendermint.abci.ResponseInfo.encode(message.info, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.set_option != null && Object.hasOwnProperty.call(message, "set_option")) - $root.tendermint.abci.ResponseSetOption.encode(message.set_option, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.init_chain != null && Object.hasOwnProperty.call(message, "init_chain")) - $root.tendermint.abci.ResponseInitChain.encode(message.init_chain, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.tendermint.abci.ResponseQuery.encode(message.query, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.begin_block != null && Object.hasOwnProperty.call(message, "begin_block")) - $root.tendermint.abci.ResponseBeginBlock.encode(message.begin_block, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.check_tx != null && Object.hasOwnProperty.call(message, "check_tx")) - $root.tendermint.abci.ResponseCheckTx.encode(message.check_tx, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.deliver_tx != null && Object.hasOwnProperty.call(message, "deliver_tx")) - $root.tendermint.abci.ResponseDeliverTx.encode(message.deliver_tx, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.end_block != null && Object.hasOwnProperty.call(message, "end_block")) - $root.tendermint.abci.ResponseEndBlock.encode(message.end_block, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) - $root.tendermint.abci.ResponseCommit.encode(message.commit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.list_snapshots != null && Object.hasOwnProperty.call(message, "list_snapshots")) - $root.tendermint.abci.ResponseListSnapshots.encode(message.list_snapshots, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.offer_snapshot != null && Object.hasOwnProperty.call(message, "offer_snapshot")) - $root.tendermint.abci.ResponseOfferSnapshot.encode(message.offer_snapshot, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.load_snapshot_chunk != null && Object.hasOwnProperty.call(message, "load_snapshot_chunk")) - $root.tendermint.abci.ResponseLoadSnapshotChunk.encode(message.load_snapshot_chunk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.apply_snapshot_chunk != null && Object.hasOwnProperty.call(message, "apply_snapshot_chunk")) - $root.tendermint.abci.ResponseApplySnapshotChunk.encode(message.apply_snapshot_chunk, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); + if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.prove); return writer; }; /** - * Encodes the specified Response message, length delimited. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. + * Encodes the specified RequestQuery message, length delimited. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static - * @param {tendermint.abci.IResponse} message Response message or plain object to encode + * @param {tendermint.abci.IRequestQuery} message RequestQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Response.encodeDelimited = function encodeDelimited(message, writer) { + RequestQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Response message from the specified reader or buffer. + * Decodes a RequestQuery message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Response} Response + * @returns {tendermint.abci.RequestQuery} RequestQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Response.decode = function decode(reader, length) { + RequestQuery.decode = 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.abci.Response(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestQuery(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.exception = $root.tendermint.abci.ResponseException.decode(reader, reader.uint32()); + message.data = reader.bytes(); break; case 2: - message.echo = $root.tendermint.abci.ResponseEcho.decode(reader, reader.uint32()); + message.path = reader.string(); break; case 3: - message.flush = $root.tendermint.abci.ResponseFlush.decode(reader, reader.uint32()); + message.height = reader.int64(); break; case 4: - message.info = $root.tendermint.abci.ResponseInfo.decode(reader, reader.uint32()); - break; - case 5: - message.set_option = $root.tendermint.abci.ResponseSetOption.decode(reader, reader.uint32()); - break; - case 6: - message.init_chain = $root.tendermint.abci.ResponseInitChain.decode(reader, reader.uint32()); - break; - case 7: - message.query = $root.tendermint.abci.ResponseQuery.decode(reader, reader.uint32()); - break; - case 8: - message.begin_block = $root.tendermint.abci.ResponseBeginBlock.decode(reader, reader.uint32()); - break; - case 9: - message.check_tx = $root.tendermint.abci.ResponseCheckTx.decode(reader, reader.uint32()); - break; - case 10: - message.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); - break; - case 11: - message.end_block = $root.tendermint.abci.ResponseEndBlock.decode(reader, reader.uint32()); - break; - case 12: - message.commit = $root.tendermint.abci.ResponseCommit.decode(reader, reader.uint32()); - break; - case 13: - message.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.decode(reader, reader.uint32()); - break; - case 14: - message.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.decode(reader, reader.uint32()); - break; - case 15: - message.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); - break; - case 16: - message.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.decode(reader, reader.uint32()); + message.prove = reader.bool(); break; default: reader.skipType(tag & 7); @@ -24789,417 +33381,159 @@ }; /** - * Decodes a Response message from the specified reader or buffer, length delimited. + * Decodes a RequestQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Response} Response + * @returns {tendermint.abci.RequestQuery} RequestQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Response.decodeDelimited = function decodeDelimited(reader) { + RequestQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Response message. + * Verifies a RequestQuery message. * @function verify - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Response.verify = function verify(message) { + RequestQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.exception != null && message.hasOwnProperty("exception")) { - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseException.verify(message.exception); - if (error) - return "exception." + error; - } - } - if (message.echo != null && message.hasOwnProperty("echo")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseEcho.verify(message.echo); - if (error) - return "echo." + error; - } - } - if (message.flush != null && message.hasOwnProperty("flush")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseFlush.verify(message.flush); - if (error) - return "flush." + error; - } - } - if (message.info != null && message.hasOwnProperty("info")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseInfo.verify(message.info); - if (error) - return "info." + error; - } - } - if (message.set_option != null && message.hasOwnProperty("set_option")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseSetOption.verify(message.set_option); - if (error) - return "set_option." + error; - } - } - if (message.init_chain != null && message.hasOwnProperty("init_chain")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseInitChain.verify(message.init_chain); - if (error) - return "init_chain." + error; - } - } - if (message.query != null && message.hasOwnProperty("query")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseQuery.verify(message.query); - if (error) - return "query." + error; - } - } - if (message.begin_block != null && message.hasOwnProperty("begin_block")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseBeginBlock.verify(message.begin_block); - if (error) - return "begin_block." + error; - } - } - if (message.check_tx != null && message.hasOwnProperty("check_tx")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseCheckTx.verify(message.check_tx); - if (error) - return "check_tx." + error; - } - } - if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.deliver_tx); - if (error) - return "deliver_tx." + error; - } - } - if (message.end_block != null && message.hasOwnProperty("end_block")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseEndBlock.verify(message.end_block); - if (error) - return "end_block." + error; - } - } - if (message.commit != null && message.hasOwnProperty("commit")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseCommit.verify(message.commit); - if (error) - return "commit." + error; - } - } - if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseListSnapshots.verify(message.list_snapshots); - if (error) - return "list_snapshots." + error; - } - } - if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseOfferSnapshot.verify(message.offer_snapshot); - if (error) - return "offer_snapshot." + error; - } - } - if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseLoadSnapshotChunk.verify(message.load_snapshot_chunk); - if (error) - return "load_snapshot_chunk." + error; - } - } - if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.tendermint.abci.ResponseApplySnapshotChunk.verify(message.apply_snapshot_chunk); - if (error) - return "apply_snapshot_chunk." + error; - } - } + 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.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + 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.prove != null && message.hasOwnProperty("prove")) + if (typeof message.prove !== "boolean") + return "prove: boolean expected"; return null; }; /** - * Creates a Response message from a plain object. Also converts values to their respective internal types. + * Creates a RequestQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.Response} Response + * @returns {tendermint.abci.RequestQuery} RequestQuery */ - Response.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Response) + RequestQuery.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestQuery) return object; - var message = new $root.tendermint.abci.Response(); - if (object.exception != null) { - if (typeof object.exception !== "object") - throw TypeError(".tendermint.abci.Response.exception: object expected"); - message.exception = $root.tendermint.abci.ResponseException.fromObject(object.exception); - } - if (object.echo != null) { - if (typeof object.echo !== "object") - throw TypeError(".tendermint.abci.Response.echo: object expected"); - message.echo = $root.tendermint.abci.ResponseEcho.fromObject(object.echo); - } - if (object.flush != null) { - if (typeof object.flush !== "object") - throw TypeError(".tendermint.abci.Response.flush: object expected"); - message.flush = $root.tendermint.abci.ResponseFlush.fromObject(object.flush); - } - if (object.info != null) { - if (typeof object.info !== "object") - throw TypeError(".tendermint.abci.Response.info: object expected"); - message.info = $root.tendermint.abci.ResponseInfo.fromObject(object.info); - } - if (object.set_option != null) { - if (typeof object.set_option !== "object") - throw TypeError(".tendermint.abci.Response.set_option: object expected"); - message.set_option = $root.tendermint.abci.ResponseSetOption.fromObject(object.set_option); - } - if (object.init_chain != null) { - if (typeof object.init_chain !== "object") - throw TypeError(".tendermint.abci.Response.init_chain: object expected"); - message.init_chain = $root.tendermint.abci.ResponseInitChain.fromObject(object.init_chain); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".tendermint.abci.Response.query: object expected"); - message.query = $root.tendermint.abci.ResponseQuery.fromObject(object.query); - } - if (object.begin_block != null) { - if (typeof object.begin_block !== "object") - throw TypeError(".tendermint.abci.Response.begin_block: object expected"); - message.begin_block = $root.tendermint.abci.ResponseBeginBlock.fromObject(object.begin_block); - } - if (object.check_tx != null) { - if (typeof object.check_tx !== "object") - throw TypeError(".tendermint.abci.Response.check_tx: object expected"); - message.check_tx = $root.tendermint.abci.ResponseCheckTx.fromObject(object.check_tx); - } - if (object.deliver_tx != null) { - if (typeof object.deliver_tx !== "object") - throw TypeError(".tendermint.abci.Response.deliver_tx: object expected"); - message.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.deliver_tx); - } - if (object.end_block != null) { - if (typeof object.end_block !== "object") - throw TypeError(".tendermint.abci.Response.end_block: object expected"); - message.end_block = $root.tendermint.abci.ResponseEndBlock.fromObject(object.end_block); - } - if (object.commit != null) { - if (typeof object.commit !== "object") - throw TypeError(".tendermint.abci.Response.commit: object expected"); - message.commit = $root.tendermint.abci.ResponseCommit.fromObject(object.commit); - } - if (object.list_snapshots != null) { - if (typeof object.list_snapshots !== "object") - throw TypeError(".tendermint.abci.Response.list_snapshots: object expected"); - message.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.fromObject(object.list_snapshots); - } - if (object.offer_snapshot != null) { - if (typeof object.offer_snapshot !== "object") - throw TypeError(".tendermint.abci.Response.offer_snapshot: object expected"); - message.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.fromObject(object.offer_snapshot); - } - if (object.load_snapshot_chunk != null) { - if (typeof object.load_snapshot_chunk !== "object") - throw TypeError(".tendermint.abci.Response.load_snapshot_chunk: object expected"); - message.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.fromObject(object.load_snapshot_chunk); - } - if (object.apply_snapshot_chunk != null) { - if (typeof object.apply_snapshot_chunk !== "object") - throw TypeError(".tendermint.abci.Response.apply_snapshot_chunk: object expected"); - message.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.fromObject(object.apply_snapshot_chunk); - } + var message = new $root.tendermint.abci.RequestQuery(); + 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.path != null) + message.path = String(object.path); + 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.prove != null) + message.prove = Boolean(object.prove); return message; }; /** - * Creates a plain object from a Response message. Also converts values to other types if specified. + * Creates a plain object from a RequestQuery message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @static - * @param {tendermint.abci.Response} message Response + * @param {tendermint.abci.RequestQuery} message RequestQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Response.toObject = function toObject(message, options) { + RequestQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.exception != null && message.hasOwnProperty("exception")) { - object.exception = $root.tendermint.abci.ResponseException.toObject(message.exception, options); - if (options.oneofs) - object.value = "exception"; - } - if (message.echo != null && message.hasOwnProperty("echo")) { - object.echo = $root.tendermint.abci.ResponseEcho.toObject(message.echo, options); - if (options.oneofs) - object.value = "echo"; - } - if (message.flush != null && message.hasOwnProperty("flush")) { - object.flush = $root.tendermint.abci.ResponseFlush.toObject(message.flush, options); - if (options.oneofs) - object.value = "flush"; - } - if (message.info != null && message.hasOwnProperty("info")) { - object.info = $root.tendermint.abci.ResponseInfo.toObject(message.info, options); - if (options.oneofs) - object.value = "info"; - } - if (message.set_option != null && message.hasOwnProperty("set_option")) { - object.set_option = $root.tendermint.abci.ResponseSetOption.toObject(message.set_option, options); - if (options.oneofs) - object.value = "set_option"; - } - if (message.init_chain != null && message.hasOwnProperty("init_chain")) { - object.init_chain = $root.tendermint.abci.ResponseInitChain.toObject(message.init_chain, options); - if (options.oneofs) - object.value = "init_chain"; - } - if (message.query != null && message.hasOwnProperty("query")) { - object.query = $root.tendermint.abci.ResponseQuery.toObject(message.query, options); - if (options.oneofs) - object.value = "query"; - } - if (message.begin_block != null && message.hasOwnProperty("begin_block")) { - object.begin_block = $root.tendermint.abci.ResponseBeginBlock.toObject(message.begin_block, options); - if (options.oneofs) - object.value = "begin_block"; - } - if (message.check_tx != null && message.hasOwnProperty("check_tx")) { - object.check_tx = $root.tendermint.abci.ResponseCheckTx.toObject(message.check_tx, options); - if (options.oneofs) - object.value = "check_tx"; - } - if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { - object.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.toObject(message.deliver_tx, options); - if (options.oneofs) - object.value = "deliver_tx"; - } - if (message.end_block != null && message.hasOwnProperty("end_block")) { - object.end_block = $root.tendermint.abci.ResponseEndBlock.toObject(message.end_block, options); - if (options.oneofs) - object.value = "end_block"; - } - if (message.commit != null && message.hasOwnProperty("commit")) { - object.commit = $root.tendermint.abci.ResponseCommit.toObject(message.commit, options); - if (options.oneofs) - object.value = "commit"; - } - if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { - object.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.toObject(message.list_snapshots, options); - if (options.oneofs) - object.value = "list_snapshots"; - } - if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { - object.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.toObject(message.offer_snapshot, options); - if (options.oneofs) - object.value = "offer_snapshot"; - } - if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { - object.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.toObject(message.load_snapshot_chunk, options); - if (options.oneofs) - object.value = "load_snapshot_chunk"; - } - if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { - object.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.toObject(message.apply_snapshot_chunk, options); - if (options.oneofs) - object.value = "apply_snapshot_chunk"; + if (options.defaults) { + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.path = ""; + 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.prove = false; } + 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.path != null && message.hasOwnProperty("path")) + object.path = message.path; + 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.prove != null && message.hasOwnProperty("prove")) + object.prove = message.prove; return object; }; /** - * Converts this Response to JSON. + * Converts this RequestQuery to JSON. * @function toJSON - * @memberof tendermint.abci.Response + * @memberof tendermint.abci.RequestQuery * @instance * @returns {Object.} JSON object */ - Response.prototype.toJSON = function toJSON() { + RequestQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Response; + return RequestQuery; })(); - abci.ResponseException = (function() { + abci.RequestBeginBlock = (function() { /** - * Properties of a ResponseException. + * Properties of a RequestBeginBlock. * @memberof tendermint.abci - * @interface IResponseException - * @property {string|null} [error] ResponseException error + * @interface IRequestBeginBlock + * @property {Uint8Array|null} [hash] RequestBeginBlock hash + * @property {tendermint.types.IHeader|null} [header] RequestBeginBlock header + * @property {tendermint.abci.ILastCommitInfo|null} [last_commit_info] RequestBeginBlock last_commit_info + * @property {Array.|null} [byzantine_validators] RequestBeginBlock byzantine_validators */ /** - * Constructs a new ResponseException. + * Constructs a new RequestBeginBlock. * @memberof tendermint.abci - * @classdesc Represents a ResponseException. - * @implements IResponseException + * @classdesc Represents a RequestBeginBlock. + * @implements IRequestBeginBlock * @constructor - * @param {tendermint.abci.IResponseException=} [properties] Properties to set + * @param {tendermint.abci.IRequestBeginBlock=} [properties] Properties to set */ - function ResponseException(properties) { + function RequestBeginBlock(properties) { + this.byzantine_validators = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25207,63 +33541,105 @@ } /** - * ResponseException error. - * @member {string} error - * @memberof tendermint.abci.ResponseException + * RequestBeginBlock hash. + * @member {Uint8Array} hash + * @memberof tendermint.abci.RequestBeginBlock * @instance */ - ResponseException.prototype.error = ""; + RequestBeginBlock.prototype.hash = $util.newBuffer([]); /** - * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. + * RequestBeginBlock header. + * @member {tendermint.types.IHeader|null|undefined} header + * @memberof tendermint.abci.RequestBeginBlock + * @instance + */ + RequestBeginBlock.prototype.header = null; + + /** + * RequestBeginBlock last_commit_info. + * @member {tendermint.abci.ILastCommitInfo|null|undefined} last_commit_info + * @memberof tendermint.abci.RequestBeginBlock + * @instance + */ + RequestBeginBlock.prototype.last_commit_info = null; + + /** + * RequestBeginBlock byzantine_validators. + * @member {Array.} byzantine_validators + * @memberof tendermint.abci.RequestBeginBlock + * @instance + */ + RequestBeginBlock.prototype.byzantine_validators = $util.emptyArray; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static - * @param {tendermint.abci.IResponseException} message ResponseException message or plain object to encode + * @param {tendermint.abci.IRequestBeginBlock} message RequestBeginBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseException.encode = function encode(message, writer) { + RequestBeginBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.error); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); + if (message.header != null && Object.hasOwnProperty.call(message, "header")) + $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.last_commit_info != null && Object.hasOwnProperty.call(message, "last_commit_info")) + $root.tendermint.abci.LastCommitInfo.encode(message.last_commit_info, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.byzantine_validators != null && message.byzantine_validators.length) + for (var i = 0; i < message.byzantine_validators.length; ++i) + $root.tendermint.abci.Evidence.encode(message.byzantine_validators[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResponseException message, length delimited. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. + * Encodes the specified RequestBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static - * @param {tendermint.abci.IResponseException} message ResponseException message or plain object to encode + * @param {tendermint.abci.IRequestBeginBlock} message RequestBeginBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseException.encodeDelimited = function encodeDelimited(message, writer) { + RequestBeginBlock.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseException message from the specified reader or buffer. + * Decodes a RequestBeginBlock message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseException} ResponseException + * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseException.decode = function decode(reader, length) { + RequestBeginBlock.decode = 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.abci.ResponseException(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestBeginBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.error = reader.string(); + message.hash = reader.bytes(); + break; + case 2: + message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); + break; + case 3: + message.last_commit_info = $root.tendermint.abci.LastCommitInfo.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.byzantine_validators && message.byzantine_validators.length)) + message.byzantine_validators = []; + message.byzantine_validators.push($root.tendermint.abci.Evidence.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -25274,107 +33650,184 @@ }; /** - * Decodes a ResponseException message from the specified reader or buffer, length delimited. + * Decodes a RequestBeginBlock message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseException} ResponseException + * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseException.decodeDelimited = function decodeDelimited(reader) { + RequestBeginBlock.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseException message. + * Verifies a RequestBeginBlock message. * @function verify - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseException.verify = function verify(message) { + RequestBeginBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string 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.header != null && message.hasOwnProperty("header")) { + var error = $root.tendermint.types.Header.verify(message.header); + if (error) + return "header." + error; + } + if (message.last_commit_info != null && message.hasOwnProperty("last_commit_info")) { + var error = $root.tendermint.abci.LastCommitInfo.verify(message.last_commit_info); + if (error) + return "last_commit_info." + error; + } + if (message.byzantine_validators != null && message.hasOwnProperty("byzantine_validators")) { + if (!Array.isArray(message.byzantine_validators)) + return "byzantine_validators: array expected"; + for (var i = 0; i < message.byzantine_validators.length; ++i) { + var error = $root.tendermint.abci.Evidence.verify(message.byzantine_validators[i]); + if (error) + return "byzantine_validators." + error; + } + } return null; }; /** - * Creates a ResponseException message from a plain object. Also converts values to their respective internal types. + * Creates a RequestBeginBlock message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseException} ResponseException + * @returns {tendermint.abci.RequestBeginBlock} RequestBeginBlock */ - ResponseException.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseException) + RequestBeginBlock.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestBeginBlock) return object; - var message = new $root.tendermint.abci.ResponseException(); - if (object.error != null) - message.error = String(object.error); + var message = new $root.tendermint.abci.RequestBeginBlock(); + 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; + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".tendermint.abci.RequestBeginBlock.header: object expected"); + message.header = $root.tendermint.types.Header.fromObject(object.header); + } + if (object.last_commit_info != null) { + if (typeof object.last_commit_info !== "object") + throw TypeError(".tendermint.abci.RequestBeginBlock.last_commit_info: object expected"); + message.last_commit_info = $root.tendermint.abci.LastCommitInfo.fromObject(object.last_commit_info); + } + if (object.byzantine_validators) { + if (!Array.isArray(object.byzantine_validators)) + throw TypeError(".tendermint.abci.RequestBeginBlock.byzantine_validators: array expected"); + message.byzantine_validators = []; + for (var i = 0; i < object.byzantine_validators.length; ++i) { + if (typeof object.byzantine_validators[i] !== "object") + throw TypeError(".tendermint.abci.RequestBeginBlock.byzantine_validators: object expected"); + message.byzantine_validators[i] = $root.tendermint.abci.Evidence.fromObject(object.byzantine_validators[i]); + } + } return message; }; /** - * Creates a plain object from a ResponseException message. Also converts values to other types if specified. + * Creates a plain object from a RequestBeginBlock message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @static - * @param {tendermint.abci.ResponseException} message ResponseException + * @param {tendermint.abci.RequestBeginBlock} message RequestBeginBlock * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseException.toObject = function toObject(message, options) { + RequestBeginBlock.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.error = ""; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; + if (options.arrays || options.defaults) + object.byzantine_validators = []; + if (options.defaults) { + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } + object.header = null; + object.last_commit_info = null; + } + 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; + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.tendermint.types.Header.toObject(message.header, options); + if (message.last_commit_info != null && message.hasOwnProperty("last_commit_info")) + object.last_commit_info = $root.tendermint.abci.LastCommitInfo.toObject(message.last_commit_info, options); + if (message.byzantine_validators && message.byzantine_validators.length) { + object.byzantine_validators = []; + for (var j = 0; j < message.byzantine_validators.length; ++j) + object.byzantine_validators[j] = $root.tendermint.abci.Evidence.toObject(message.byzantine_validators[j], options); + } return object; }; /** - * Converts this ResponseException to JSON. + * Converts this RequestBeginBlock to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseException + * @memberof tendermint.abci.RequestBeginBlock * @instance * @returns {Object.} JSON object */ - ResponseException.prototype.toJSON = function toJSON() { + RequestBeginBlock.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseException; + return RequestBeginBlock; })(); - abci.ResponseEcho = (function() { + /** + * CheckTxType enum. + * @name tendermint.abci.CheckTxType + * @enum {number} + * @property {number} NEW=0 NEW value + * @property {number} RECHECK=1 RECHECK value + */ + abci.CheckTxType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NEW"] = 0; + values[valuesById[1] = "RECHECK"] = 1; + return values; + })(); + + abci.RequestCheckTx = (function() { /** - * Properties of a ResponseEcho. + * Properties of a RequestCheckTx. * @memberof tendermint.abci - * @interface IResponseEcho - * @property {string|null} [message] ResponseEcho message + * @interface IRequestCheckTx + * @property {Uint8Array|null} [tx] RequestCheckTx tx + * @property {tendermint.abci.CheckTxType|null} [type] RequestCheckTx type */ /** - * Constructs a new ResponseEcho. + * Constructs a new RequestCheckTx. * @memberof tendermint.abci - * @classdesc Represents a ResponseEcho. - * @implements IResponseEcho + * @classdesc Represents a RequestCheckTx. + * @implements IRequestCheckTx * @constructor - * @param {tendermint.abci.IResponseEcho=} [properties] Properties to set + * @param {tendermint.abci.IRequestCheckTx=} [properties] Properties to set */ - function ResponseEcho(properties) { + function RequestCheckTx(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25382,63 +33835,76 @@ } /** - * ResponseEcho message. - * @member {string} message - * @memberof tendermint.abci.ResponseEcho + * RequestCheckTx tx. + * @member {Uint8Array} tx + * @memberof tendermint.abci.RequestCheckTx * @instance */ - ResponseEcho.prototype.message = ""; + RequestCheckTx.prototype.tx = $util.newBuffer([]); /** - * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. + * RequestCheckTx type. + * @member {tendermint.abci.CheckTxType} type + * @memberof tendermint.abci.RequestCheckTx + * @instance + */ + RequestCheckTx.prototype.type = 0; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static - * @param {tendermint.abci.IResponseEcho} message ResponseEcho message or plain object to encode + * @param {tendermint.abci.IRequestCheckTx} message RequestCheckTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseEcho.encode = function encode(message, writer) { + RequestCheckTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); + if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tx); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); return writer; }; /** - * Encodes the specified ResponseEcho message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. + * Encodes the specified RequestCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static - * @param {tendermint.abci.IResponseEcho} message ResponseEcho message or plain object to encode + * @param {tendermint.abci.IRequestCheckTx} message RequestCheckTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseEcho.encodeDelimited = function encodeDelimited(message, writer) { + RequestCheckTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseEcho message from the specified reader or buffer. + * Decodes a RequestCheckTx message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseEcho} ResponseEcho + * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseEcho.decode = function decode(reader, length) { + RequestCheckTx.decode = 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.abci.ResponseEcho(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestCheckTx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.message = reader.string(); + message.tx = reader.bytes(); + break; + case 2: + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -25449,106 +33915,138 @@ }; /** - * Decodes a ResponseEcho message from the specified reader or buffer, length delimited. + * Decodes a RequestCheckTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseEcho} ResponseEcho + * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseEcho.decodeDelimited = function decodeDelimited(reader) { + RequestCheckTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseEcho message. + * Verifies a RequestCheckTx message. * @function verify - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseEcho.verify = function verify(message) { + RequestCheckTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.tx != null && message.hasOwnProperty("tx")) + if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) + return "tx: buffer expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a ResponseEcho message from a plain object. Also converts values to their respective internal types. + * Creates a RequestCheckTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseEcho} ResponseEcho + * @returns {tendermint.abci.RequestCheckTx} RequestCheckTx */ - ResponseEcho.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseEcho) + RequestCheckTx.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestCheckTx) return object; - var message = new $root.tendermint.abci.ResponseEcho(); - if (object.message != null) - message.message = String(object.message); + var message = new $root.tendermint.abci.RequestCheckTx(); + if (object.tx != null) + if (typeof object.tx === "string") + $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); + else if (object.tx.length) + message.tx = object.tx; + switch (object.type) { + case "NEW": + case 0: + message.type = 0; + break; + case "RECHECK": + case 1: + message.type = 1; + break; + } return message; }; /** - * Creates a plain object from a ResponseEcho message. Also converts values to other types if specified. + * Creates a plain object from a RequestCheckTx message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @static - * @param {tendermint.abci.ResponseEcho} message ResponseEcho + * @param {tendermint.abci.RequestCheckTx} message RequestCheckTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseEcho.toObject = function toObject(message, options) { + RequestCheckTx.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (options.defaults) { + if (options.bytes === String) + object.tx = ""; + else { + object.tx = []; + if (options.bytes !== Array) + object.tx = $util.newBuffer(object.tx); + } + object.type = options.enums === String ? "NEW" : 0; + } + if (message.tx != null && message.hasOwnProperty("tx")) + object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.tendermint.abci.CheckTxType[message.type] : message.type; return object; }; /** - * Converts this ResponseEcho to JSON. + * Converts this RequestCheckTx to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseEcho + * @memberof tendermint.abci.RequestCheckTx * @instance * @returns {Object.} JSON object */ - ResponseEcho.prototype.toJSON = function toJSON() { + RequestCheckTx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseEcho; + return RequestCheckTx; })(); - abci.ResponseFlush = (function() { + abci.RequestDeliverTx = (function() { /** - * Properties of a ResponseFlush. + * Properties of a RequestDeliverTx. * @memberof tendermint.abci - * @interface IResponseFlush + * @interface IRequestDeliverTx + * @property {Uint8Array|null} [tx] RequestDeliverTx tx */ /** - * Constructs a new ResponseFlush. + * Constructs a new RequestDeliverTx. * @memberof tendermint.abci - * @classdesc Represents a ResponseFlush. - * @implements IResponseFlush + * @classdesc Represents a RequestDeliverTx. + * @implements IRequestDeliverTx * @constructor - * @param {tendermint.abci.IResponseFlush=} [properties] Properties to set + * @param {tendermint.abci.IRequestDeliverTx=} [properties] Properties to set */ - function ResponseFlush(properties) { + function RequestDeliverTx(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25556,51 +34054,64 @@ } /** - * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. + * RequestDeliverTx tx. + * @member {Uint8Array} tx + * @memberof tendermint.abci.RequestDeliverTx + * @instance + */ + RequestDeliverTx.prototype.tx = $util.newBuffer([]); + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static - * @param {tendermint.abci.IResponseFlush} message ResponseFlush message or plain object to encode + * @param {tendermint.abci.IRequestDeliverTx} message RequestDeliverTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseFlush.encode = function encode(message, writer) { + RequestDeliverTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tx); return writer; }; /** - * Encodes the specified ResponseFlush message, length delimited. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. + * Encodes the specified RequestDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static - * @param {tendermint.abci.IResponseFlush} message ResponseFlush message or plain object to encode + * @param {tendermint.abci.IRequestDeliverTx} message RequestDeliverTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseFlush.encodeDelimited = function encodeDelimited(message, writer) { + RequestDeliverTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseFlush message from the specified reader or buffer. + * Decodes a RequestDeliverTx message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseFlush} ResponseFlush + * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseFlush.decode = function decode(reader, length) { + RequestDeliverTx.decode = 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.abci.ResponseFlush(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestDeliverTx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.tx = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -25610,98 +34121,116 @@ }; /** - * Decodes a ResponseFlush message from the specified reader or buffer, length delimited. + * Decodes a RequestDeliverTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseFlush} ResponseFlush + * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseFlush.decodeDelimited = function decodeDelimited(reader) { + RequestDeliverTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseFlush message. + * Verifies a RequestDeliverTx message. * @function verify - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseFlush.verify = function verify(message) { + RequestDeliverTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tx != null && message.hasOwnProperty("tx")) + if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) + return "tx: buffer expected"; return null; }; /** - * Creates a ResponseFlush message from a plain object. Also converts values to their respective internal types. + * Creates a RequestDeliverTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseFlush} ResponseFlush + * @returns {tendermint.abci.RequestDeliverTx} RequestDeliverTx */ - ResponseFlush.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseFlush) + RequestDeliverTx.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestDeliverTx) return object; - return new $root.tendermint.abci.ResponseFlush(); + var message = new $root.tendermint.abci.RequestDeliverTx(); + if (object.tx != null) + if (typeof object.tx === "string") + $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); + else if (object.tx.length) + message.tx = object.tx; + return message; }; /** - * Creates a plain object from a ResponseFlush message. Also converts values to other types if specified. + * Creates a plain object from a RequestDeliverTx message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @static - * @param {tendermint.abci.ResponseFlush} message ResponseFlush + * @param {tendermint.abci.RequestDeliverTx} message RequestDeliverTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseFlush.toObject = function toObject() { - return {}; + RequestDeliverTx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.tx = ""; + else { + object.tx = []; + if (options.bytes !== Array) + object.tx = $util.newBuffer(object.tx); + } + if (message.tx != null && message.hasOwnProperty("tx")) + object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; + return object; }; /** - * Converts this ResponseFlush to JSON. + * Converts this RequestDeliverTx to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseFlush + * @memberof tendermint.abci.RequestDeliverTx * @instance * @returns {Object.} JSON object */ - ResponseFlush.prototype.toJSON = function toJSON() { + RequestDeliverTx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseFlush; + return RequestDeliverTx; })(); - abci.ResponseInfo = (function() { + abci.RequestEndBlock = (function() { /** - * Properties of a ResponseInfo. + * Properties of a RequestEndBlock. * @memberof tendermint.abci - * @interface IResponseInfo - * @property {string|null} [data] ResponseInfo data - * @property {string|null} [version] ResponseInfo version - * @property {Long|null} [app_version] ResponseInfo app_version - * @property {Long|null} [last_block_height] ResponseInfo last_block_height - * @property {Uint8Array|null} [last_block_app_hash] ResponseInfo last_block_app_hash + * @interface IRequestEndBlock + * @property {Long|null} [height] RequestEndBlock height */ /** - * Constructs a new ResponseInfo. + * Constructs a new RequestEndBlock. * @memberof tendermint.abci - * @classdesc Represents a ResponseInfo. - * @implements IResponseInfo + * @classdesc Represents a RequestEndBlock. + * @implements IRequestEndBlock * @constructor - * @param {tendermint.abci.IResponseInfo=} [properties] Properties to set + * @param {tendermint.abci.IRequestEndBlock=} [properties] Properties to set */ - function ResponseInfo(properties) { + function RequestEndBlock(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25709,115 +34238,63 @@ } /** - * ResponseInfo data. - * @member {string} data - * @memberof tendermint.abci.ResponseInfo - * @instance - */ - ResponseInfo.prototype.data = ""; - - /** - * ResponseInfo version. - * @member {string} version - * @memberof tendermint.abci.ResponseInfo - * @instance - */ - ResponseInfo.prototype.version = ""; - - /** - * ResponseInfo app_version. - * @member {Long} app_version - * @memberof tendermint.abci.ResponseInfo - * @instance - */ - ResponseInfo.prototype.app_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ResponseInfo last_block_height. - * @member {Long} last_block_height - * @memberof tendermint.abci.ResponseInfo - * @instance - */ - ResponseInfo.prototype.last_block_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResponseInfo last_block_app_hash. - * @member {Uint8Array} last_block_app_hash - * @memberof tendermint.abci.ResponseInfo + * RequestEndBlock height. + * @member {Long} height + * @memberof tendermint.abci.RequestEndBlock * @instance */ - ResponseInfo.prototype.last_block_app_hash = $util.newBuffer([]); + RequestEndBlock.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static - * @param {tendermint.abci.IResponseInfo} message ResponseInfo message or plain object to encode + * @param {tendermint.abci.IRequestEndBlock} message RequestEndBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseInfo.encode = function encode(message, writer) { + RequestEndBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.data); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.app_version); - if (message.last_block_height != null && Object.hasOwnProperty.call(message, "last_block_height")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.last_block_height); - if (message.last_block_app_hash != null && Object.hasOwnProperty.call(message, "last_block_app_hash")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.last_block_app_hash); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); return writer; }; /** - * Encodes the specified ResponseInfo message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. + * Encodes the specified RequestEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static - * @param {tendermint.abci.IResponseInfo} message ResponseInfo message or plain object to encode + * @param {tendermint.abci.IRequestEndBlock} message RequestEndBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseInfo.encodeDelimited = function encodeDelimited(message, writer) { + RequestEndBlock.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseInfo message from the specified reader or buffer. + * Decodes a RequestEndBlock message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseInfo} ResponseInfo + * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseInfo.decode = function decode(reader, length) { + RequestEndBlock.decode = 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.abci.ResponseInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestEndBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.data = reader.string(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.app_version = reader.uint64(); - break; - case 4: - message.last_block_height = reader.int64(); - break; - case 5: - message.last_block_app_hash = reader.bytes(); + message.height = reader.int64(); break; default: reader.skipType(tag & 7); @@ -25828,179 +34305,120 @@ }; /** - * Decodes a ResponseInfo message from the specified reader or buffer, length delimited. + * Decodes a RequestEndBlock message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseInfo} ResponseInfo + * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseInfo.decodeDelimited = function decodeDelimited(reader) { + RequestEndBlock.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseInfo message. + * Verifies a RequestEndBlock message. * @function verify - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseInfo.verify = function verify(message) { + RequestEndBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!$util.isString(message.data)) - return "data: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (!$util.isInteger(message.app_version) && !(message.app_version && $util.isInteger(message.app_version.low) && $util.isInteger(message.app_version.high))) - return "app_version: integer|Long expected"; - if (message.last_block_height != null && message.hasOwnProperty("last_block_height")) - if (!$util.isInteger(message.last_block_height) && !(message.last_block_height && $util.isInteger(message.last_block_height.low) && $util.isInteger(message.last_block_height.high))) - return "last_block_height: integer|Long expected"; - if (message.last_block_app_hash != null && message.hasOwnProperty("last_block_app_hash")) - if (!(message.last_block_app_hash && typeof message.last_block_app_hash.length === "number" || $util.isString(message.last_block_app_hash))) - return "last_block_app_hash: buffer expected"; + 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"; return null; }; /** - * Creates a ResponseInfo message from a plain object. Also converts values to their respective internal types. + * Creates a RequestEndBlock message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseInfo} ResponseInfo + * @returns {tendermint.abci.RequestEndBlock} RequestEndBlock */ - ResponseInfo.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseInfo) + RequestEndBlock.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestEndBlock) return object; - var message = new $root.tendermint.abci.ResponseInfo(); - if (object.data != null) - message.data = String(object.data); - if (object.version != null) - message.version = String(object.version); - if (object.app_version != null) - if ($util.Long) - (message.app_version = $util.Long.fromValue(object.app_version)).unsigned = true; - else if (typeof object.app_version === "string") - message.app_version = parseInt(object.app_version, 10); - else if (typeof object.app_version === "number") - message.app_version = object.app_version; - else if (typeof object.app_version === "object") - message.app_version = new $util.LongBits(object.app_version.low >>> 0, object.app_version.high >>> 0).toNumber(true); - if (object.last_block_height != null) + var message = new $root.tendermint.abci.RequestEndBlock(); + if (object.height != null) if ($util.Long) - (message.last_block_height = $util.Long.fromValue(object.last_block_height)).unsigned = false; - else if (typeof object.last_block_height === "string") - message.last_block_height = parseInt(object.last_block_height, 10); - else if (typeof object.last_block_height === "number") - message.last_block_height = object.last_block_height; - else if (typeof object.last_block_height === "object") - message.last_block_height = new $util.LongBits(object.last_block_height.low >>> 0, object.last_block_height.high >>> 0).toNumber(); - if (object.last_block_app_hash != null) - if (typeof object.last_block_app_hash === "string") - $util.base64.decode(object.last_block_app_hash, message.last_block_app_hash = $util.newBuffer($util.base64.length(object.last_block_app_hash)), 0); - else if (object.last_block_app_hash.length) - message.last_block_app_hash = object.last_block_app_hash; + (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(); return message; }; /** - * Creates a plain object from a ResponseInfo message. Also converts values to other types if specified. + * Creates a plain object from a RequestEndBlock message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @static - * @param {tendermint.abci.ResponseInfo} message ResponseInfo + * @param {tendermint.abci.RequestEndBlock} message RequestEndBlock * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseInfo.toObject = function toObject(message, options) { + RequestEndBlock.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.data = ""; - object.version = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.app_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.app_version = options.longs === String ? "0" : 0; + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, false); - object.last_block_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.last_block_height = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.last_block_app_hash = ""; - else { - object.last_block_app_hash = []; - if (options.bytes !== Array) - object.last_block_app_hash = $util.newBuffer(object.last_block_app_hash); - } - } - if (message.data != null && message.hasOwnProperty("data")) - object.data = message.data; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (typeof message.app_version === "number") - object.app_version = options.longs === String ? String(message.app_version) : message.app_version; - else - object.app_version = options.longs === String ? $util.Long.prototype.toString.call(message.app_version) : options.longs === Number ? new $util.LongBits(message.app_version.low >>> 0, message.app_version.high >>> 0).toNumber(true) : message.app_version; - if (message.last_block_height != null && message.hasOwnProperty("last_block_height")) - if (typeof message.last_block_height === "number") - object.last_block_height = options.longs === String ? String(message.last_block_height) : message.last_block_height; + object.height = options.longs === String ? "0" : 0; + if (message.height != null && message.hasOwnProperty("height")) + if (typeof message.height === "number") + object.height = options.longs === String ? String(message.height) : message.height; else - object.last_block_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_block_height) : options.longs === Number ? new $util.LongBits(message.last_block_height.low >>> 0, message.last_block_height.high >>> 0).toNumber() : message.last_block_height; - if (message.last_block_app_hash != null && message.hasOwnProperty("last_block_app_hash")) - object.last_block_app_hash = options.bytes === String ? $util.base64.encode(message.last_block_app_hash, 0, message.last_block_app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_block_app_hash) : message.last_block_app_hash; + 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; return object; }; /** - * Converts this ResponseInfo to JSON. + * Converts this RequestEndBlock to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseInfo + * @memberof tendermint.abci.RequestEndBlock * @instance * @returns {Object.} JSON object */ - ResponseInfo.prototype.toJSON = function toJSON() { + RequestEndBlock.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseInfo; + return RequestEndBlock; })(); - abci.ResponseSetOption = (function() { + abci.RequestCommit = (function() { /** - * Properties of a ResponseSetOption. + * Properties of a RequestCommit. * @memberof tendermint.abci - * @interface IResponseSetOption - * @property {number|null} [code] ResponseSetOption code - * @property {string|null} [log] ResponseSetOption log - * @property {string|null} [info] ResponseSetOption info + * @interface IRequestCommit */ /** - * Constructs a new ResponseSetOption. + * Constructs a new RequestCommit. * @memberof tendermint.abci - * @classdesc Represents a ResponseSetOption. - * @implements IResponseSetOption + * @classdesc Represents a RequestCommit. + * @implements IRequestCommit * @constructor - * @param {tendermint.abci.IResponseSetOption=} [properties] Properties to set + * @param {tendermint.abci.IRequestCommit=} [properties] Properties to set */ - function ResponseSetOption(properties) { + function RequestCommit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26008,90 +34426,51 @@ } /** - * ResponseSetOption code. - * @member {number} code - * @memberof tendermint.abci.ResponseSetOption - * @instance - */ - ResponseSetOption.prototype.code = 0; - - /** - * ResponseSetOption log. - * @member {string} log - * @memberof tendermint.abci.ResponseSetOption - * @instance - */ - ResponseSetOption.prototype.log = ""; - - /** - * ResponseSetOption info. - * @member {string} info - * @memberof tendermint.abci.ResponseSetOption - * @instance - */ - ResponseSetOption.prototype.info = ""; - - /** - * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static - * @param {tendermint.abci.IResponseSetOption} message ResponseSetOption message or plain object to encode + * @param {tendermint.abci.IRequestCommit} message RequestCommit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseSetOption.encode = function encode(message, writer) { + RequestCommit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.log != null && Object.hasOwnProperty.call(message, "log")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); return writer; }; /** - * Encodes the specified ResponseSetOption message, length delimited. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. + * Encodes the specified RequestCommit message, length delimited. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static - * @param {tendermint.abci.IResponseSetOption} message ResponseSetOption message or plain object to encode + * @param {tendermint.abci.IRequestCommit} message RequestCommit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseSetOption.encodeDelimited = function encodeDelimited(message, writer) { + RequestCommit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseSetOption message from the specified reader or buffer. + * Decodes a RequestCommit message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption + * @returns {tendermint.abci.RequestCommit} RequestCommit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseSetOption.decode = function decode(reader, length) { + RequestCommit.decode = 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.abci.ResponseSetOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestCommit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -26101,127 +34480,93 @@ }; /** - * Decodes a ResponseSetOption message from the specified reader or buffer, length delimited. + * Decodes a RequestCommit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption + * @returns {tendermint.abci.RequestCommit} RequestCommit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseSetOption.decodeDelimited = function decodeDelimited(reader) { + RequestCommit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseSetOption message. + * Verifies a RequestCommit message. * @function verify - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseSetOption.verify = function verify(message) { + RequestCommit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer expected"; - if (message.log != null && message.hasOwnProperty("log")) - if (!$util.isString(message.log)) - return "log: string expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; return null; }; /** - * Creates a ResponseSetOption message from a plain object. Also converts values to their respective internal types. + * Creates a RequestCommit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption + * @returns {tendermint.abci.RequestCommit} RequestCommit */ - ResponseSetOption.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseSetOption) + RequestCommit.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestCommit) return object; - var message = new $root.tendermint.abci.ResponseSetOption(); - if (object.code != null) - message.code = object.code >>> 0; - if (object.log != null) - message.log = String(object.log); - if (object.info != null) - message.info = String(object.info); - return message; + return new $root.tendermint.abci.RequestCommit(); }; /** - * Creates a plain object from a ResponseSetOption message. Also converts values to other types if specified. + * Creates a plain object from a RequestCommit message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @static - * @param {tendermint.abci.ResponseSetOption} message ResponseSetOption + * @param {tendermint.abci.RequestCommit} message RequestCommit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseSetOption.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.code = 0; - object.log = ""; - object.info = ""; - } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.log != null && message.hasOwnProperty("log")) - object.log = message.log; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - return object; + RequestCommit.toObject = function toObject() { + return {}; }; /** - * Converts this ResponseSetOption to JSON. + * Converts this RequestCommit to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseSetOption + * @memberof tendermint.abci.RequestCommit * @instance * @returns {Object.} JSON object */ - ResponseSetOption.prototype.toJSON = function toJSON() { + RequestCommit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseSetOption; + return RequestCommit; })(); - abci.ResponseInitChain = (function() { + abci.RequestListSnapshots = (function() { /** - * Properties of a ResponseInitChain. + * Properties of a RequestListSnapshots. * @memberof tendermint.abci - * @interface IResponseInitChain - * @property {tendermint.abci.IConsensusParams|null} [consensus_params] ResponseInitChain consensus_params - * @property {Array.|null} [validators] ResponseInitChain validators - * @property {Uint8Array|null} [app_hash] ResponseInitChain app_hash + * @interface IRequestListSnapshots */ /** - * Constructs a new ResponseInitChain. + * Constructs a new RequestListSnapshots. * @memberof tendermint.abci - * @classdesc Represents a ResponseInitChain. - * @implements IResponseInitChain + * @classdesc Represents a RequestListSnapshots. + * @implements IRequestListSnapshots * @constructor - * @param {tendermint.abci.IResponseInitChain=} [properties] Properties to set + * @param {tendermint.abci.IRequestListSnapshots=} [properties] Properties to set */ - function ResponseInitChain(properties) { - this.validators = []; + function RequestListSnapshots(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26229,93 +34574,51 @@ } /** - * ResponseInitChain consensus_params. - * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_params - * @memberof tendermint.abci.ResponseInitChain - * @instance - */ - ResponseInitChain.prototype.consensus_params = null; - - /** - * ResponseInitChain validators. - * @member {Array.} validators - * @memberof tendermint.abci.ResponseInitChain - * @instance - */ - ResponseInitChain.prototype.validators = $util.emptyArray; - - /** - * ResponseInitChain app_hash. - * @member {Uint8Array} app_hash - * @memberof tendermint.abci.ResponseInitChain - * @instance - */ - ResponseInitChain.prototype.app_hash = $util.newBuffer([]); - - /** - * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. + * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static - * @param {tendermint.abci.IResponseInitChain} message ResponseInitChain message or plain object to encode + * @param {tendermint.abci.IRequestListSnapshots} message RequestListSnapshots message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseInitChain.encode = function encode(message, writer) { + RequestListSnapshots.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_params != null && Object.hasOwnProperty.call(message, "consensus_params")) - $root.tendermint.abci.ConsensusParams.encode(message.consensus_params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.validators != null && message.validators.length) - for (var i = 0; i < message.validators.length; ++i) - $root.tendermint.abci.ValidatorUpdate.encode(message.validators[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.app_hash); return writer; }; /** - * Encodes the specified ResponseInitChain message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. + * Encodes the specified RequestListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static - * @param {tendermint.abci.IResponseInitChain} message ResponseInitChain message or plain object to encode + * @param {tendermint.abci.IRequestListSnapshots} message RequestListSnapshots message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseInitChain.encodeDelimited = function encodeDelimited(message, writer) { + RequestListSnapshots.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseInitChain message from the specified reader or buffer. + * Decodes a RequestListSnapshots message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain + * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseInitChain.decode = function decode(reader, length) { + RequestListSnapshots.decode = 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.abci.ResponseInitChain(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestListSnapshots(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.consensus_params = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.validators && message.validators.length)) - message.validators = []; - message.validators.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 3: - message.app_hash = reader.bytes(); - break; default: reader.skipType(tag & 7); break; @@ -26325,164 +34628,95 @@ }; /** - * Decodes a ResponseInitChain message from the specified reader or buffer, length delimited. + * Decodes a RequestListSnapshots message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain + * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseInitChain.decodeDelimited = function decodeDelimited(reader) { + RequestListSnapshots.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseInitChain message. + * Verifies a RequestListSnapshots message. * @function verify - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseInitChain.verify = function verify(message) { + RequestListSnapshots.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) { - var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_params); - if (error) - return "consensus_params." + error; - } - if (message.validators != null && message.hasOwnProperty("validators")) { - if (!Array.isArray(message.validators)) - return "validators: array expected"; - for (var i = 0; i < message.validators.length; ++i) { - var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validators[i]); - if (error) - return "validators." + error; - } - } - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) - return "app_hash: buffer expected"; return null; }; /** - * Creates a ResponseInitChain message from a plain object. Also converts values to their respective internal types. + * Creates a RequestListSnapshots message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain + * @returns {tendermint.abci.RequestListSnapshots} RequestListSnapshots */ - ResponseInitChain.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseInitChain) + RequestListSnapshots.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestListSnapshots) return object; - var message = new $root.tendermint.abci.ResponseInitChain(); - if (object.consensus_params != null) { - if (typeof object.consensus_params !== "object") - throw TypeError(".tendermint.abci.ResponseInitChain.consensus_params: object expected"); - message.consensus_params = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_params); - } - if (object.validators) { - if (!Array.isArray(object.validators)) - throw TypeError(".tendermint.abci.ResponseInitChain.validators: array expected"); - message.validators = []; - for (var i = 0; i < object.validators.length; ++i) { - if (typeof object.validators[i] !== "object") - throw TypeError(".tendermint.abci.ResponseInitChain.validators: object expected"); - message.validators[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validators[i]); - } - } - if (object.app_hash != null) - if (typeof object.app_hash === "string") - $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); - else if (object.app_hash.length) - message.app_hash = object.app_hash; - return message; + return new $root.tendermint.abci.RequestListSnapshots(); }; /** - * Creates a plain object from a ResponseInitChain message. Also converts values to other types if specified. + * Creates a plain object from a RequestListSnapshots message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @static - * @param {tendermint.abci.ResponseInitChain} message ResponseInitChain + * @param {tendermint.abci.RequestListSnapshots} message RequestListSnapshots * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseInitChain.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.validators = []; - if (options.defaults) { - object.consensus_params = null; - if (options.bytes === String) - object.app_hash = ""; - else { - object.app_hash = []; - if (options.bytes !== Array) - object.app_hash = $util.newBuffer(object.app_hash); - } - } - if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) - object.consensus_params = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_params, options); - if (message.validators && message.validators.length) { - object.validators = []; - for (var j = 0; j < message.validators.length; ++j) - object.validators[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validators[j], options); - } - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; - return object; + RequestListSnapshots.toObject = function toObject() { + return {}; }; /** - * Converts this ResponseInitChain to JSON. + * Converts this RequestListSnapshots to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseInitChain + * @memberof tendermint.abci.RequestListSnapshots * @instance * @returns {Object.} JSON object */ - ResponseInitChain.prototype.toJSON = function toJSON() { + RequestListSnapshots.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseInitChain; + return RequestListSnapshots; })(); - abci.ResponseQuery = (function() { + abci.RequestOfferSnapshot = (function() { /** - * Properties of a ResponseQuery. + * Properties of a RequestOfferSnapshot. * @memberof tendermint.abci - * @interface IResponseQuery - * @property {number|null} [code] ResponseQuery code - * @property {string|null} [log] ResponseQuery log - * @property {string|null} [info] ResponseQuery info - * @property {Long|null} [index] ResponseQuery index - * @property {Uint8Array|null} [key] ResponseQuery key - * @property {Uint8Array|null} [value] ResponseQuery value - * @property {tendermint.crypto.IProofOps|null} [proof_ops] ResponseQuery proof_ops - * @property {Long|null} [height] ResponseQuery height - * @property {string|null} [codespace] ResponseQuery codespace + * @interface IRequestOfferSnapshot + * @property {tendermint.abci.ISnapshot|null} [snapshot] RequestOfferSnapshot snapshot + * @property {Uint8Array|null} [app_hash] RequestOfferSnapshot app_hash */ /** - * Constructs a new ResponseQuery. + * Constructs a new RequestOfferSnapshot. * @memberof tendermint.abci - * @classdesc Represents a ResponseQuery. - * @implements IResponseQuery + * @classdesc Represents a RequestOfferSnapshot. + * @implements IRequestOfferSnapshot * @constructor - * @param {tendermint.abci.IResponseQuery=} [properties] Properties to set + * @param {tendermint.abci.IRequestOfferSnapshot=} [properties] Properties to set */ - function ResponseQuery(properties) { + function RequestOfferSnapshot(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26490,167 +34724,76 @@ } /** - * ResponseQuery code. - * @member {number} code - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.code = 0; - - /** - * ResponseQuery log. - * @member {string} log - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.log = ""; - - /** - * ResponseQuery info. - * @member {string} info - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.info = ""; - - /** - * ResponseQuery index. - * @member {Long} index - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResponseQuery key. - * @member {Uint8Array} key - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.key = $util.newBuffer([]); - - /** - * ResponseQuery value. - * @member {Uint8Array} value - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.value = $util.newBuffer([]); - - /** - * ResponseQuery proof_ops. - * @member {tendermint.crypto.IProofOps|null|undefined} proof_ops - * @memberof tendermint.abci.ResponseQuery - * @instance - */ - ResponseQuery.prototype.proof_ops = null; - - /** - * ResponseQuery height. - * @member {Long} height - * @memberof tendermint.abci.ResponseQuery + * RequestOfferSnapshot snapshot. + * @member {tendermint.abci.ISnapshot|null|undefined} snapshot + * @memberof tendermint.abci.RequestOfferSnapshot * @instance */ - ResponseQuery.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RequestOfferSnapshot.prototype.snapshot = null; /** - * ResponseQuery codespace. - * @member {string} codespace - * @memberof tendermint.abci.ResponseQuery + * RequestOfferSnapshot app_hash. + * @member {Uint8Array} app_hash + * @memberof tendermint.abci.RequestOfferSnapshot * @instance */ - ResponseQuery.prototype.codespace = ""; + RequestOfferSnapshot.prototype.app_hash = $util.newBuffer([]); /** - * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. + * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static - * @param {tendermint.abci.IResponseQuery} message ResponseQuery message or plain object to encode + * @param {tendermint.abci.IRequestOfferSnapshot} message RequestOfferSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseQuery.encode = function encode(message, writer) { + RequestOfferSnapshot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.log != null && Object.hasOwnProperty.call(message, "log")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.index); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.value); - if (message.proof_ops != null && Object.hasOwnProperty.call(message, "proof_ops")) - $root.tendermint.crypto.ProofOps.encode(message.proof_ops, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.height); - if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.codespace); + if (message.snapshot != null && Object.hasOwnProperty.call(message, "snapshot")) + $root.tendermint.abci.Snapshot.encode(message.snapshot, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.app_hash); return writer; }; /** - * Encodes the specified ResponseQuery message, length delimited. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. + * Encodes the specified RequestOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static - * @param {tendermint.abci.IResponseQuery} message ResponseQuery message or plain object to encode + * @param {tendermint.abci.IRequestOfferSnapshot} message RequestOfferSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseQuery.encodeDelimited = function encodeDelimited(message, writer) { + RequestOfferSnapshot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseQuery message from the specified reader or buffer. + * Decodes a RequestOfferSnapshot message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseQuery} ResponseQuery + * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseQuery.decode = function decode(reader, length) { + RequestOfferSnapshot.decode = 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.abci.ResponseQuery(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestOfferSnapshot(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.uint32(); - break; - case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.index = reader.int64(); - break; - case 6: - message.key = reader.bytes(); - break; - case 7: - message.value = reader.bytes(); - break; - case 8: - message.proof_ops = $root.tendermint.crypto.ProofOps.decode(reader, reader.uint32()); - break; - case 9: - message.height = reader.int64(); + message.snapshot = $root.tendermint.abci.Snapshot.decode(reader, reader.uint32()); break; - case 10: - message.codespace = reader.string(); + case 2: + message.app_hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -26661,291 +34804,222 @@ }; /** - * Decodes a ResponseQuery message from the specified reader or buffer, length delimited. + * Decodes a RequestOfferSnapshot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseQuery} ResponseQuery + * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseQuery.decodeDelimited = function decodeDelimited(reader) { + RequestOfferSnapshot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseQuery message. + * Verifies a RequestOfferSnapshot message. * @function verify - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseQuery.verify = function verify(message) { + RequestOfferSnapshot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer expected"; - if (message.log != null && message.hasOwnProperty("log")) - if (!$util.isString(message.log)) - return "log: string expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) - return "index: integer|Long 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.proof_ops != null && message.hasOwnProperty("proof_ops")) { - var error = $root.tendermint.crypto.ProofOps.verify(message.proof_ops); + if (message.snapshot != null && message.hasOwnProperty("snapshot")) { + var error = $root.tendermint.abci.Snapshot.verify(message.snapshot); if (error) - return "proof_ops." + error; + return "snapshot." + 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.codespace != null && message.hasOwnProperty("codespace")) - if (!$util.isString(message.codespace)) - return "codespace: string expected"; + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) + return "app_hash: buffer expected"; return null; }; /** - * Creates a ResponseQuery message from a plain object. Also converts values to their respective internal types. + * Creates a RequestOfferSnapshot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseQuery} ResponseQuery + * @returns {tendermint.abci.RequestOfferSnapshot} RequestOfferSnapshot */ - ResponseQuery.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseQuery) + RequestOfferSnapshot.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestOfferSnapshot) return object; - var message = new $root.tendermint.abci.ResponseQuery(); - if (object.code != null) - message.code = object.code >>> 0; - if (object.log != null) - message.log = String(object.log); - if (object.info != null) - message.info = String(object.info); - if (object.index != null) - if ($util.Long) - (message.index = $util.Long.fromValue(object.index)).unsigned = false; - else if (typeof object.index === "string") - message.index = parseInt(object.index, 10); - else if (typeof object.index === "number") - message.index = object.index; - else if (typeof object.index === "object") - message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); - 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.proof_ops != null) { - if (typeof object.proof_ops !== "object") - throw TypeError(".tendermint.abci.ResponseQuery.proof_ops: object expected"); - message.proof_ops = $root.tendermint.crypto.ProofOps.fromObject(object.proof_ops); + var message = new $root.tendermint.abci.RequestOfferSnapshot(); + if (object.snapshot != null) { + if (typeof object.snapshot !== "object") + throw TypeError(".tendermint.abci.RequestOfferSnapshot.snapshot: object expected"); + message.snapshot = $root.tendermint.abci.Snapshot.fromObject(object.snapshot); } - 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.codespace != null) - message.codespace = String(object.codespace); + if (object.app_hash != null) + if (typeof object.app_hash === "string") + $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); + else if (object.app_hash.length) + message.app_hash = object.app_hash; return message; }; /** - * Creates a plain object from a ResponseQuery message. Also converts values to other types if specified. + * Creates a plain object from a RequestOfferSnapshot message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @static - * @param {tendermint.abci.ResponseQuery} message ResponseQuery + * @param {tendermint.abci.RequestOfferSnapshot} message RequestOfferSnapshot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseQuery.toObject = function toObject(message, options) { + RequestOfferSnapshot.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.code = 0; - object.log = ""; - object.info = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.index = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } + object.snapshot = null; if (options.bytes === String) - object.value = ""; + object.app_hash = ""; else { - object.value = []; + object.app_hash = []; if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); + object.app_hash = $util.newBuffer(object.app_hash); } - object.proof_ops = 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.codespace = ""; } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.log != null && message.hasOwnProperty("log")) - object.log = message.log; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - if (message.index != null && message.hasOwnProperty("index")) - if (typeof message.index === "number") - object.index = options.longs === String ? String(message.index) : message.index; - else - object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; - 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.proof_ops != null && message.hasOwnProperty("proof_ops")) - object.proof_ops = $root.tendermint.crypto.ProofOps.toObject(message.proof_ops, 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.codespace != null && message.hasOwnProperty("codespace")) - object.codespace = message.codespace; + if (message.snapshot != null && message.hasOwnProperty("snapshot")) + object.snapshot = $root.tendermint.abci.Snapshot.toObject(message.snapshot, options); + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; return object; }; /** - * Converts this ResponseQuery to JSON. + * Converts this RequestOfferSnapshot to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseQuery + * @memberof tendermint.abci.RequestOfferSnapshot * @instance * @returns {Object.} JSON object */ - ResponseQuery.prototype.toJSON = function toJSON() { + RequestOfferSnapshot.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseQuery; + return RequestOfferSnapshot; })(); - abci.ResponseBeginBlock = (function() { + abci.RequestLoadSnapshotChunk = (function() { /** - * Properties of a ResponseBeginBlock. + * Properties of a RequestLoadSnapshotChunk. * @memberof tendermint.abci - * @interface IResponseBeginBlock - * @property {Array.|null} [events] ResponseBeginBlock events + * @interface IRequestLoadSnapshotChunk + * @property {Long|null} [height] RequestLoadSnapshotChunk height + * @property {number|null} [format] RequestLoadSnapshotChunk format + * @property {number|null} [chunk] RequestLoadSnapshotChunk chunk */ /** - * Constructs a new ResponseBeginBlock. + * Constructs a new RequestLoadSnapshotChunk. * @memberof tendermint.abci - * @classdesc Represents a ResponseBeginBlock. - * @implements IResponseBeginBlock + * @classdesc Represents a RequestLoadSnapshotChunk. + * @implements IRequestLoadSnapshotChunk * @constructor - * @param {tendermint.abci.IResponseBeginBlock=} [properties] Properties to set + * @param {tendermint.abci.IRequestLoadSnapshotChunk=} [properties] Properties to set + */ + function RequestLoadSnapshotChunk(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]]; + } + + /** + * RequestLoadSnapshotChunk height. + * @member {Long} height + * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @instance + */ + RequestLoadSnapshotChunk.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * RequestLoadSnapshotChunk format. + * @member {number} format + * @memberof tendermint.abci.RequestLoadSnapshotChunk + * @instance */ - function ResponseBeginBlock(properties) { - this.events = []; - 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]]; - } + RequestLoadSnapshotChunk.prototype.format = 0; /** - * ResponseBeginBlock events. - * @member {Array.} events - * @memberof tendermint.abci.ResponseBeginBlock + * RequestLoadSnapshotChunk chunk. + * @member {number} chunk + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @instance */ - ResponseBeginBlock.prototype.events = $util.emptyArray; + RequestLoadSnapshotChunk.prototype.chunk = 0; /** - * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. + * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static - * @param {tendermint.abci.IResponseBeginBlock} message ResponseBeginBlock message or plain object to encode + * @param {tendermint.abci.IRequestLoadSnapshotChunk} message RequestLoadSnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseBeginBlock.encode = function encode(message, writer) { + RequestLoadSnapshotChunk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.format); + if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.chunk); return writer; }; /** - * Encodes the specified ResponseBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. + * Encodes the specified RequestLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static - * @param {tendermint.abci.IResponseBeginBlock} message ResponseBeginBlock message or plain object to encode + * @param {tendermint.abci.IRequestLoadSnapshotChunk} message RequestLoadSnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseBeginBlock.encodeDelimited = function encodeDelimited(message, writer) { + RequestLoadSnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer. + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock + * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseBeginBlock.decode = function decode(reader, length) { + RequestLoadSnapshotChunk.decode = 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.abci.ResponseBeginBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestLoadSnapshotChunk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); + message.height = reader.uint64(); + break; + case 2: + message.format = reader.uint32(); + break; + case 3: + message.chunk = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -26956,132 +35030,140 @@ }; /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer, length delimited. + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock + * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseBeginBlock.decodeDelimited = function decodeDelimited(reader) { + RequestLoadSnapshotChunk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseBeginBlock message. + * Verifies a RequestLoadSnapshotChunk message. * @function verify - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseBeginBlock.verify = function verify(message) { + RequestLoadSnapshotChunk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.tendermint.abci.Event.verify(message.events[i]); - if (error) - return "events." + 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.format != null && message.hasOwnProperty("format")) + if (!$util.isInteger(message.format)) + return "format: integer expected"; + if (message.chunk != null && message.hasOwnProperty("chunk")) + if (!$util.isInteger(message.chunk)) + return "chunk: integer expected"; return null; }; /** - * Creates a ResponseBeginBlock message from a plain object. Also converts values to their respective internal types. + * Creates a RequestLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock + * @returns {tendermint.abci.RequestLoadSnapshotChunk} RequestLoadSnapshotChunk */ - ResponseBeginBlock.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseBeginBlock) + RequestLoadSnapshotChunk.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestLoadSnapshotChunk) return object; - var message = new $root.tendermint.abci.ResponseBeginBlock(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".tendermint.abci.ResponseBeginBlock.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".tendermint.abci.ResponseBeginBlock.events: object expected"); - message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); - } - } + var message = new $root.tendermint.abci.RequestLoadSnapshotChunk(); + if (object.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = true; + 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(true); + if (object.format != null) + message.format = object.format >>> 0; + if (object.chunk != null) + message.chunk = object.chunk >>> 0; return message; }; /** - * Creates a plain object from a ResponseBeginBlock message. Also converts values to other types if specified. + * Creates a plain object from a RequestLoadSnapshotChunk message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @static - * @param {tendermint.abci.ResponseBeginBlock} message ResponseBeginBlock + * @param {tendermint.abci.RequestLoadSnapshotChunk} message RequestLoadSnapshotChunk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseBeginBlock.toObject = function toObject(message, options) { + RequestLoadSnapshotChunk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; + object.format = 0; + object.chunk = 0; } + 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(true) : message.height; + if (message.format != null && message.hasOwnProperty("format")) + object.format = message.format; + if (message.chunk != null && message.hasOwnProperty("chunk")) + object.chunk = message.chunk; return object; }; /** - * Converts this ResponseBeginBlock to JSON. + * Converts this RequestLoadSnapshotChunk to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseBeginBlock + * @memberof tendermint.abci.RequestLoadSnapshotChunk * @instance * @returns {Object.} JSON object */ - ResponseBeginBlock.prototype.toJSON = function toJSON() { + RequestLoadSnapshotChunk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseBeginBlock; + return RequestLoadSnapshotChunk; })(); - abci.ResponseCheckTx = (function() { + abci.RequestApplySnapshotChunk = (function() { /** - * Properties of a ResponseCheckTx. + * Properties of a RequestApplySnapshotChunk. * @memberof tendermint.abci - * @interface IResponseCheckTx - * @property {number|null} [code] ResponseCheckTx code - * @property {Uint8Array|null} [data] ResponseCheckTx data - * @property {string|null} [log] ResponseCheckTx log - * @property {string|null} [info] ResponseCheckTx info - * @property {Long|null} [gas_wanted] ResponseCheckTx gas_wanted - * @property {Long|null} [gas_used] ResponseCheckTx gas_used - * @property {Array.|null} [events] ResponseCheckTx events - * @property {string|null} [codespace] ResponseCheckTx codespace + * @interface IRequestApplySnapshotChunk + * @property {number|null} [index] RequestApplySnapshotChunk index + * @property {Uint8Array|null} [chunk] RequestApplySnapshotChunk chunk + * @property {string|null} [sender] RequestApplySnapshotChunk sender */ /** - * Constructs a new ResponseCheckTx. + * Constructs a new RequestApplySnapshotChunk. * @memberof tendermint.abci - * @classdesc Represents a ResponseCheckTx. - * @implements IResponseCheckTx + * @classdesc Represents a RequestApplySnapshotChunk. + * @implements IRequestApplySnapshotChunk * @constructor - * @param {tendermint.abci.IResponseCheckTx=} [properties] Properties to set + * @param {tendermint.abci.IRequestApplySnapshotChunk=} [properties] Properties to set */ - function ResponseCheckTx(properties) { - this.events = []; + function RequestApplySnapshotChunk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27089,157 +35171,89 @@ } /** - * ResponseCheckTx code. - * @member {number} code - * @memberof tendermint.abci.ResponseCheckTx - * @instance - */ - ResponseCheckTx.prototype.code = 0; - - /** - * ResponseCheckTx data. - * @member {Uint8Array} data - * @memberof tendermint.abci.ResponseCheckTx - * @instance - */ - ResponseCheckTx.prototype.data = $util.newBuffer([]); - - /** - * ResponseCheckTx log. - * @member {string} log - * @memberof tendermint.abci.ResponseCheckTx - * @instance - */ - ResponseCheckTx.prototype.log = ""; - - /** - * ResponseCheckTx info. - * @member {string} info - * @memberof tendermint.abci.ResponseCheckTx - * @instance - */ - ResponseCheckTx.prototype.info = ""; - - /** - * ResponseCheckTx gas_wanted. - * @member {Long} gas_wanted - * @memberof tendermint.abci.ResponseCheckTx - * @instance - */ - ResponseCheckTx.prototype.gas_wanted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResponseCheckTx gas_used. - * @member {Long} gas_used - * @memberof tendermint.abci.ResponseCheckTx + * RequestApplySnapshotChunk index. + * @member {number} index + * @memberof tendermint.abci.RequestApplySnapshotChunk * @instance */ - ResponseCheckTx.prototype.gas_used = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RequestApplySnapshotChunk.prototype.index = 0; /** - * ResponseCheckTx events. - * @member {Array.} events - * @memberof tendermint.abci.ResponseCheckTx + * RequestApplySnapshotChunk chunk. + * @member {Uint8Array} chunk + * @memberof tendermint.abci.RequestApplySnapshotChunk * @instance */ - ResponseCheckTx.prototype.events = $util.emptyArray; + RequestApplySnapshotChunk.prototype.chunk = $util.newBuffer([]); /** - * ResponseCheckTx codespace. - * @member {string} codespace - * @memberof tendermint.abci.ResponseCheckTx + * RequestApplySnapshotChunk sender. + * @member {string} sender + * @memberof tendermint.abci.RequestApplySnapshotChunk * @instance */ - ResponseCheckTx.prototype.codespace = ""; + RequestApplySnapshotChunk.prototype.sender = ""; /** - * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. + * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static - * @param {tendermint.abci.IResponseCheckTx} message ResponseCheckTx message or plain object to encode + * @param {tendermint.abci.IRequestApplySnapshotChunk} message RequestApplySnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseCheckTx.encode = function encode(message, writer) { + RequestApplySnapshotChunk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.log != null && Object.hasOwnProperty.call(message, "log")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); - if (message.gas_wanted != null && Object.hasOwnProperty.call(message, "gas_wanted")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gas_wanted); - if (message.gas_used != null && Object.hasOwnProperty.call(message, "gas_used")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.gas_used); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.codespace); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); + if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.chunk); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); return writer; }; /** - * Encodes the specified ResponseCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. + * Encodes the specified RequestApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static - * @param {tendermint.abci.IResponseCheckTx} message ResponseCheckTx message or plain object to encode + * @param {tendermint.abci.IRequestApplySnapshotChunk} message RequestApplySnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseCheckTx.encodeDelimited = function encodeDelimited(message, writer) { + RequestApplySnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseCheckTx message from the specified reader or buffer. + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx + * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseCheckTx.decode = function decode(reader, length) { + RequestApplySnapshotChunk.decode = 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.abci.ResponseCheckTx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.RequestApplySnapshotChunk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.uint32(); + message.index = reader.uint32(); break; case 2: - message.data = reader.bytes(); + message.chunk = reader.bytes(); break; case 3: - message.log = reader.string(); - break; - case 4: - message.info = reader.string(); - break; - case 5: - message.gas_wanted = reader.int64(); - break; - case 6: - message.gas_used = reader.int64(); - break; - case 7: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); - break; - case 8: - message.codespace = reader.string(); + message.sender = reader.string(); break; default: reader.skipType(tag & 7); @@ -27250,227 +35264,148 @@ }; /** - * Decodes a ResponseCheckTx message from the specified reader or buffer, length delimited. + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx + * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseCheckTx.decodeDelimited = function decodeDelimited(reader) { + RequestApplySnapshotChunk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseCheckTx message. + * Verifies a RequestApplySnapshotChunk message. * @function verify - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseCheckTx.verify = function verify(message) { + RequestApplySnapshotChunk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer 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.log != null && message.hasOwnProperty("log")) - if (!$util.isString(message.log)) - return "log: string expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) - if (!$util.isInteger(message.gas_wanted) && !(message.gas_wanted && $util.isInteger(message.gas_wanted.low) && $util.isInteger(message.gas_wanted.high))) - return "gas_wanted: integer|Long expected"; - if (message.gas_used != null && message.hasOwnProperty("gas_used")) - if (!$util.isInteger(message.gas_used) && !(message.gas_used && $util.isInteger(message.gas_used.low) && $util.isInteger(message.gas_used.high))) - return "gas_used: integer|Long expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.tendermint.abci.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } - if (message.codespace != null && message.hasOwnProperty("codespace")) - if (!$util.isString(message.codespace)) - return "codespace: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.chunk != null && message.hasOwnProperty("chunk")) + if (!(message.chunk && typeof message.chunk.length === "number" || $util.isString(message.chunk))) + return "chunk: buffer expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; return null; }; /** - * Creates a ResponseCheckTx message from a plain object. Also converts values to their respective internal types. + * Creates a RequestApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx + * @returns {tendermint.abci.RequestApplySnapshotChunk} RequestApplySnapshotChunk */ - ResponseCheckTx.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseCheckTx) + RequestApplySnapshotChunk.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.RequestApplySnapshotChunk) return object; - var message = new $root.tendermint.abci.ResponseCheckTx(); - if (object.code != null) - message.code = object.code >>> 0; - 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.log != null) - message.log = String(object.log); - if (object.info != null) - message.info = String(object.info); - if (object.gas_wanted != null) - if ($util.Long) - (message.gas_wanted = $util.Long.fromValue(object.gas_wanted)).unsigned = false; - else if (typeof object.gas_wanted === "string") - message.gas_wanted = parseInt(object.gas_wanted, 10); - else if (typeof object.gas_wanted === "number") - message.gas_wanted = object.gas_wanted; - else if (typeof object.gas_wanted === "object") - message.gas_wanted = new $util.LongBits(object.gas_wanted.low >>> 0, object.gas_wanted.high >>> 0).toNumber(); - if (object.gas_used != null) - if ($util.Long) - (message.gas_used = $util.Long.fromValue(object.gas_used)).unsigned = false; - else if (typeof object.gas_used === "string") - message.gas_used = parseInt(object.gas_used, 10); - else if (typeof object.gas_used === "number") - message.gas_used = object.gas_used; - else if (typeof object.gas_used === "object") - message.gas_used = new $util.LongBits(object.gas_used.low >>> 0, object.gas_used.high >>> 0).toNumber(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".tendermint.abci.ResponseCheckTx.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".tendermint.abci.ResponseCheckTx.events: object expected"); - message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); - } - } - if (object.codespace != null) - message.codespace = String(object.codespace); + var message = new $root.tendermint.abci.RequestApplySnapshotChunk(); + if (object.index != null) + message.index = object.index >>> 0; + if (object.chunk != null) + if (typeof object.chunk === "string") + $util.base64.decode(object.chunk, message.chunk = $util.newBuffer($util.base64.length(object.chunk)), 0); + else if (object.chunk.length) + message.chunk = object.chunk; + if (object.sender != null) + message.sender = String(object.sender); return message; }; /** - * Creates a plain object from a ResponseCheckTx message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.ResponseCheckTx - * @static - * @param {tendermint.abci.ResponseCheckTx} message ResponseCheckTx - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResponseCheckTx.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) { - object.code = 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.log = ""; - object.info = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gas_wanted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gas_wanted = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gas_used = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gas_used = options.longs === String ? "0" : 0; - object.codespace = ""; - } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - 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.log != null && message.hasOwnProperty("log")) - object.log = message.log; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) - if (typeof message.gas_wanted === "number") - object.gas_wanted = options.longs === String ? String(message.gas_wanted) : message.gas_wanted; - else - object.gas_wanted = options.longs === String ? $util.Long.prototype.toString.call(message.gas_wanted) : options.longs === Number ? new $util.LongBits(message.gas_wanted.low >>> 0, message.gas_wanted.high >>> 0).toNumber() : message.gas_wanted; - if (message.gas_used != null && message.hasOwnProperty("gas_used")) - if (typeof message.gas_used === "number") - object.gas_used = options.longs === String ? String(message.gas_used) : message.gas_used; - else - object.gas_used = options.longs === String ? $util.Long.prototype.toString.call(message.gas_used) : options.longs === Number ? new $util.LongBits(message.gas_used.low >>> 0, message.gas_used.high >>> 0).toNumber() : message.gas_used; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); + * Creates a plain object from a RequestApplySnapshotChunk message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.RequestApplySnapshotChunk + * @static + * @param {tendermint.abci.RequestApplySnapshotChunk} message RequestApplySnapshotChunk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RequestApplySnapshotChunk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.index = 0; + if (options.bytes === String) + object.chunk = ""; + else { + object.chunk = []; + if (options.bytes !== Array) + object.chunk = $util.newBuffer(object.chunk); + } + object.sender = ""; } - if (message.codespace != null && message.hasOwnProperty("codespace")) - object.codespace = message.codespace; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.chunk != null && message.hasOwnProperty("chunk")) + object.chunk = options.bytes === String ? $util.base64.encode(message.chunk, 0, message.chunk.length) : options.bytes === Array ? Array.prototype.slice.call(message.chunk) : message.chunk; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; return object; }; /** - * Converts this ResponseCheckTx to JSON. + * Converts this RequestApplySnapshotChunk to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseCheckTx + * @memberof tendermint.abci.RequestApplySnapshotChunk * @instance * @returns {Object.} JSON object */ - ResponseCheckTx.prototype.toJSON = function toJSON() { + RequestApplySnapshotChunk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseCheckTx; + return RequestApplySnapshotChunk; })(); - abci.ResponseDeliverTx = (function() { + abci.Response = (function() { /** - * Properties of a ResponseDeliverTx. + * Properties of a Response. * @memberof tendermint.abci - * @interface IResponseDeliverTx - * @property {number|null} [code] ResponseDeliverTx code - * @property {Uint8Array|null} [data] ResponseDeliverTx data - * @property {string|null} [log] ResponseDeliverTx log - * @property {string|null} [info] ResponseDeliverTx info - * @property {Long|null} [gas_wanted] ResponseDeliverTx gas_wanted - * @property {Long|null} [gas_used] ResponseDeliverTx gas_used - * @property {Array.|null} [events] ResponseDeliverTx events - * @property {string|null} [codespace] ResponseDeliverTx codespace + * @interface IResponse + * @property {tendermint.abci.IResponseException|null} [exception] Response exception + * @property {tendermint.abci.IResponseEcho|null} [echo] Response echo + * @property {tendermint.abci.IResponseFlush|null} [flush] Response flush + * @property {tendermint.abci.IResponseInfo|null} [info] Response info + * @property {tendermint.abci.IResponseSetOption|null} [set_option] Response set_option + * @property {tendermint.abci.IResponseInitChain|null} [init_chain] Response init_chain + * @property {tendermint.abci.IResponseQuery|null} [query] Response query + * @property {tendermint.abci.IResponseBeginBlock|null} [begin_block] Response begin_block + * @property {tendermint.abci.IResponseCheckTx|null} [check_tx] Response check_tx + * @property {tendermint.abci.IResponseDeliverTx|null} [deliver_tx] Response deliver_tx + * @property {tendermint.abci.IResponseEndBlock|null} [end_block] Response end_block + * @property {tendermint.abci.IResponseCommit|null} [commit] Response commit + * @property {tendermint.abci.IResponseListSnapshots|null} [list_snapshots] Response list_snapshots + * @property {tendermint.abci.IResponseOfferSnapshot|null} [offer_snapshot] Response offer_snapshot + * @property {tendermint.abci.IResponseLoadSnapshotChunk|null} [load_snapshot_chunk] Response load_snapshot_chunk + * @property {tendermint.abci.IResponseApplySnapshotChunk|null} [apply_snapshot_chunk] Response apply_snapshot_chunk */ /** - * Constructs a new ResponseDeliverTx. + * Constructs a new Response. * @memberof tendermint.abci - * @classdesc Represents a ResponseDeliverTx. - * @implements IResponseDeliverTx + * @classdesc Represents a Response. + * @implements IResponse * @constructor - * @param {tendermint.abci.IResponseDeliverTx=} [properties] Properties to set + * @param {tendermint.abci.IResponse=} [properties] Properties to set */ - function ResponseDeliverTx(properties) { - this.events = []; + function Response(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27478,157 +35413,272 @@ } /** - * ResponseDeliverTx code. - * @member {number} code - * @memberof tendermint.abci.ResponseDeliverTx + * Response exception. + * @member {tendermint.abci.IResponseException|null|undefined} exception + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.code = 0; + Response.prototype.exception = null; /** - * ResponseDeliverTx data. - * @member {Uint8Array} data - * @memberof tendermint.abci.ResponseDeliverTx + * Response echo. + * @member {tendermint.abci.IResponseEcho|null|undefined} echo + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.data = $util.newBuffer([]); + Response.prototype.echo = null; /** - * ResponseDeliverTx log. - * @member {string} log - * @memberof tendermint.abci.ResponseDeliverTx + * Response flush. + * @member {tendermint.abci.IResponseFlush|null|undefined} flush + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.log = ""; + Response.prototype.flush = null; /** - * ResponseDeliverTx info. - * @member {string} info - * @memberof tendermint.abci.ResponseDeliverTx + * Response info. + * @member {tendermint.abci.IResponseInfo|null|undefined} info + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.info = ""; + Response.prototype.info = null; /** - * ResponseDeliverTx gas_wanted. - * @member {Long} gas_wanted - * @memberof tendermint.abci.ResponseDeliverTx + * Response set_option. + * @member {tendermint.abci.IResponseSetOption|null|undefined} set_option + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.gas_wanted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Response.prototype.set_option = null; /** - * ResponseDeliverTx gas_used. - * @member {Long} gas_used - * @memberof tendermint.abci.ResponseDeliverTx + * Response init_chain. + * @member {tendermint.abci.IResponseInitChain|null|undefined} init_chain + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.gas_used = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Response.prototype.init_chain = null; /** - * ResponseDeliverTx events. - * @member {Array.} events - * @memberof tendermint.abci.ResponseDeliverTx + * Response query. + * @member {tendermint.abci.IResponseQuery|null|undefined} query + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.events = $util.emptyArray; + Response.prototype.query = null; /** - * ResponseDeliverTx codespace. - * @member {string} codespace - * @memberof tendermint.abci.ResponseDeliverTx + * Response begin_block. + * @member {tendermint.abci.IResponseBeginBlock|null|undefined} begin_block + * @memberof tendermint.abci.Response * @instance */ - ResponseDeliverTx.prototype.codespace = ""; + Response.prototype.begin_block = null; /** - * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. + * Response check_tx. + * @member {tendermint.abci.IResponseCheckTx|null|undefined} check_tx + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.check_tx = null; + + /** + * Response deliver_tx. + * @member {tendermint.abci.IResponseDeliverTx|null|undefined} deliver_tx + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.deliver_tx = null; + + /** + * Response end_block. + * @member {tendermint.abci.IResponseEndBlock|null|undefined} end_block + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.end_block = null; + + /** + * Response commit. + * @member {tendermint.abci.IResponseCommit|null|undefined} commit + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.commit = null; + + /** + * Response list_snapshots. + * @member {tendermint.abci.IResponseListSnapshots|null|undefined} list_snapshots + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.list_snapshots = null; + + /** + * Response offer_snapshot. + * @member {tendermint.abci.IResponseOfferSnapshot|null|undefined} offer_snapshot + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.offer_snapshot = null; + + /** + * Response load_snapshot_chunk. + * @member {tendermint.abci.IResponseLoadSnapshotChunk|null|undefined} load_snapshot_chunk + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.load_snapshot_chunk = null; + + /** + * Response apply_snapshot_chunk. + * @member {tendermint.abci.IResponseApplySnapshotChunk|null|undefined} apply_snapshot_chunk + * @memberof tendermint.abci.Response + * @instance + */ + Response.prototype.apply_snapshot_chunk = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Response value. + * @member {"exception"|"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"|undefined} value + * @memberof tendermint.abci.Response + * @instance + */ + Object.defineProperty(Response.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["exception", "echo", "flush", "info", "set_option", "init_chain", "query", "begin_block", "check_tx", "deliver_tx", "end_block", "commit", "list_snapshots", "offer_snapshot", "load_snapshot_chunk", "apply_snapshot_chunk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static - * @param {tendermint.abci.IResponseDeliverTx} message ResponseDeliverTx message or plain object to encode + * @param {tendermint.abci.IResponse} message Response message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseDeliverTx.encode = function encode(message, writer) { + Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.log != null && Object.hasOwnProperty.call(message, "log")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); + if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) + $root.tendermint.abci.ResponseException.encode(message.exception, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) + $root.tendermint.abci.ResponseEcho.encode(message.echo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.flush != null && Object.hasOwnProperty.call(message, "flush")) + $root.tendermint.abci.ResponseFlush.encode(message.flush, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); - if (message.gas_wanted != null && Object.hasOwnProperty.call(message, "gas_wanted")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gas_wanted); - if (message.gas_used != null && Object.hasOwnProperty.call(message, "gas_used")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.gas_used); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.codespace); + $root.tendermint.abci.ResponseInfo.encode(message.info, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.set_option != null && Object.hasOwnProperty.call(message, "set_option")) + $root.tendermint.abci.ResponseSetOption.encode(message.set_option, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.init_chain != null && Object.hasOwnProperty.call(message, "init_chain")) + $root.tendermint.abci.ResponseInitChain.encode(message.init_chain, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.tendermint.abci.ResponseQuery.encode(message.query, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.begin_block != null && Object.hasOwnProperty.call(message, "begin_block")) + $root.tendermint.abci.ResponseBeginBlock.encode(message.begin_block, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.check_tx != null && Object.hasOwnProperty.call(message, "check_tx")) + $root.tendermint.abci.ResponseCheckTx.encode(message.check_tx, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.deliver_tx != null && Object.hasOwnProperty.call(message, "deliver_tx")) + $root.tendermint.abci.ResponseDeliverTx.encode(message.deliver_tx, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.end_block != null && Object.hasOwnProperty.call(message, "end_block")) + $root.tendermint.abci.ResponseEndBlock.encode(message.end_block, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) + $root.tendermint.abci.ResponseCommit.encode(message.commit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.list_snapshots != null && Object.hasOwnProperty.call(message, "list_snapshots")) + $root.tendermint.abci.ResponseListSnapshots.encode(message.list_snapshots, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.offer_snapshot != null && Object.hasOwnProperty.call(message, "offer_snapshot")) + $root.tendermint.abci.ResponseOfferSnapshot.encode(message.offer_snapshot, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.load_snapshot_chunk != null && Object.hasOwnProperty.call(message, "load_snapshot_chunk")) + $root.tendermint.abci.ResponseLoadSnapshotChunk.encode(message.load_snapshot_chunk, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.apply_snapshot_chunk != null && Object.hasOwnProperty.call(message, "apply_snapshot_chunk")) + $root.tendermint.abci.ResponseApplySnapshotChunk.encode(message.apply_snapshot_chunk, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResponseDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. + * Encodes the specified Response message, length delimited. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static - * @param {tendermint.abci.IResponseDeliverTx} message ResponseDeliverTx message or plain object to encode + * @param {tendermint.abci.IResponse} message Response message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseDeliverTx.encodeDelimited = function encodeDelimited(message, writer) { + Response.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer. + * Decodes a Response message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx + * @returns {tendermint.abci.Response} Response * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseDeliverTx.decode = function decode(reader, length) { + Response.decode = 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.abci.ResponseDeliverTx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.Response(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.uint32(); + message.exception = $root.tendermint.abci.ResponseException.decode(reader, reader.uint32()); break; case 2: - message.data = reader.bytes(); + message.echo = $root.tendermint.abci.ResponseEcho.decode(reader, reader.uint32()); break; case 3: - message.log = reader.string(); + message.flush = $root.tendermint.abci.ResponseFlush.decode(reader, reader.uint32()); break; case 4: - message.info = reader.string(); + message.info = $root.tendermint.abci.ResponseInfo.decode(reader, reader.uint32()); break; case 5: - message.gas_wanted = reader.int64(); + message.set_option = $root.tendermint.abci.ResponseSetOption.decode(reader, reader.uint32()); break; case 6: - message.gas_used = reader.int64(); + message.init_chain = $root.tendermint.abci.ResponseInitChain.decode(reader, reader.uint32()); break; case 7: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); + message.query = $root.tendermint.abci.ResponseQuery.decode(reader, reader.uint32()); break; case 8: - message.codespace = reader.string(); + message.begin_block = $root.tendermint.abci.ResponseBeginBlock.decode(reader, reader.uint32()); + break; + case 9: + message.check_tx = $root.tendermint.abci.ResponseCheckTx.decode(reader, reader.uint32()); + break; + case 10: + message.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); + break; + case 11: + message.end_block = $root.tendermint.abci.ResponseEndBlock.decode(reader, reader.uint32()); + break; + case 12: + message.commit = $root.tendermint.abci.ResponseCommit.decode(reader, reader.uint32()); + break; + case 13: + message.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.decode(reader, reader.uint32()); + break; + case 14: + message.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.decode(reader, reader.uint32()); + break; + case 15: + message.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.decode(reader, reader.uint32()); + break; + case 16: + message.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27639,223 +35689,417 @@ }; /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer, length delimited. + * Decodes a Response message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx + * @returns {tendermint.abci.Response} Response * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseDeliverTx.decodeDelimited = function decodeDelimited(reader) { + Response.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseDeliverTx message. + * Verifies a Response message. * @function verify - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseDeliverTx.verify = function verify(message) { + Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer 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.log != null && message.hasOwnProperty("log")) - if (!$util.isString(message.log)) - return "log: string expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) - if (!$util.isInteger(message.gas_wanted) && !(message.gas_wanted && $util.isInteger(message.gas_wanted.low) && $util.isInteger(message.gas_wanted.high))) - return "gas_wanted: integer|Long expected"; - if (message.gas_used != null && message.hasOwnProperty("gas_used")) - if (!$util.isInteger(message.gas_used) && !(message.gas_used && $util.isInteger(message.gas_used.low) && $util.isInteger(message.gas_used.high))) - return "gas_used: integer|Long expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.tendermint.abci.Event.verify(message.events[i]); + var properties = {}; + if (message.exception != null && message.hasOwnProperty("exception")) { + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseException.verify(message.exception); + if (error) + return "exception." + error; + } + } + if (message.echo != null && message.hasOwnProperty("echo")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseEcho.verify(message.echo); + if (error) + return "echo." + error; + } + } + if (message.flush != null && message.hasOwnProperty("flush")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseFlush.verify(message.flush); + if (error) + return "flush." + error; + } + } + if (message.info != null && message.hasOwnProperty("info")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseInfo.verify(message.info); + if (error) + return "info." + error; + } + } + if (message.set_option != null && message.hasOwnProperty("set_option")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseSetOption.verify(message.set_option); + if (error) + return "set_option." + error; + } + } + if (message.init_chain != null && message.hasOwnProperty("init_chain")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseInitChain.verify(message.init_chain); + if (error) + return "init_chain." + error; + } + } + if (message.query != null && message.hasOwnProperty("query")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseQuery.verify(message.query); + if (error) + return "query." + error; + } + } + if (message.begin_block != null && message.hasOwnProperty("begin_block")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseBeginBlock.verify(message.begin_block); + if (error) + return "begin_block." + error; + } + } + if (message.check_tx != null && message.hasOwnProperty("check_tx")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseCheckTx.verify(message.check_tx); + if (error) + return "check_tx." + error; + } + } + if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.deliver_tx); + if (error) + return "deliver_tx." + error; + } + } + if (message.end_block != null && message.hasOwnProperty("end_block")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseEndBlock.verify(message.end_block); + if (error) + return "end_block." + error; + } + } + if (message.commit != null && message.hasOwnProperty("commit")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseCommit.verify(message.commit); + if (error) + return "commit." + error; + } + } + if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseListSnapshots.verify(message.list_snapshots); + if (error) + return "list_snapshots." + error; + } + } + if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseOfferSnapshot.verify(message.offer_snapshot); + if (error) + return "offer_snapshot." + error; + } + } + if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseLoadSnapshotChunk.verify(message.load_snapshot_chunk); if (error) - return "events." + error; + return "load_snapshot_chunk." + error; + } + } + if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.tendermint.abci.ResponseApplySnapshotChunk.verify(message.apply_snapshot_chunk); + if (error) + return "apply_snapshot_chunk." + error; } } - if (message.codespace != null && message.hasOwnProperty("codespace")) - if (!$util.isString(message.codespace)) - return "codespace: string expected"; return null; }; /** - * Creates a ResponseDeliverTx message from a plain object. Also converts values to their respective internal types. + * Creates a Response message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx + * @returns {tendermint.abci.Response} Response */ - ResponseDeliverTx.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseDeliverTx) + Response.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Response) return object; - var message = new $root.tendermint.abci.ResponseDeliverTx(); - if (object.code != null) - message.code = object.code >>> 0; - 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.log != null) - message.log = String(object.log); - if (object.info != null) - message.info = String(object.info); - if (object.gas_wanted != null) - if ($util.Long) - (message.gas_wanted = $util.Long.fromValue(object.gas_wanted)).unsigned = false; - else if (typeof object.gas_wanted === "string") - message.gas_wanted = parseInt(object.gas_wanted, 10); - else if (typeof object.gas_wanted === "number") - message.gas_wanted = object.gas_wanted; - else if (typeof object.gas_wanted === "object") - message.gas_wanted = new $util.LongBits(object.gas_wanted.low >>> 0, object.gas_wanted.high >>> 0).toNumber(); - if (object.gas_used != null) - if ($util.Long) - (message.gas_used = $util.Long.fromValue(object.gas_used)).unsigned = false; - else if (typeof object.gas_used === "string") - message.gas_used = parseInt(object.gas_used, 10); - else if (typeof object.gas_used === "number") - message.gas_used = object.gas_used; - else if (typeof object.gas_used === "object") - message.gas_used = new $util.LongBits(object.gas_used.low >>> 0, object.gas_used.high >>> 0).toNumber(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".tendermint.abci.ResponseDeliverTx.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".tendermint.abci.ResponseDeliverTx.events: object expected"); - message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); - } + var message = new $root.tendermint.abci.Response(); + if (object.exception != null) { + if (typeof object.exception !== "object") + throw TypeError(".tendermint.abci.Response.exception: object expected"); + message.exception = $root.tendermint.abci.ResponseException.fromObject(object.exception); + } + if (object.echo != null) { + if (typeof object.echo !== "object") + throw TypeError(".tendermint.abci.Response.echo: object expected"); + message.echo = $root.tendermint.abci.ResponseEcho.fromObject(object.echo); + } + if (object.flush != null) { + if (typeof object.flush !== "object") + throw TypeError(".tendermint.abci.Response.flush: object expected"); + message.flush = $root.tendermint.abci.ResponseFlush.fromObject(object.flush); + } + if (object.info != null) { + if (typeof object.info !== "object") + throw TypeError(".tendermint.abci.Response.info: object expected"); + message.info = $root.tendermint.abci.ResponseInfo.fromObject(object.info); + } + if (object.set_option != null) { + if (typeof object.set_option !== "object") + throw TypeError(".tendermint.abci.Response.set_option: object expected"); + message.set_option = $root.tendermint.abci.ResponseSetOption.fromObject(object.set_option); + } + if (object.init_chain != null) { + if (typeof object.init_chain !== "object") + throw TypeError(".tendermint.abci.Response.init_chain: object expected"); + message.init_chain = $root.tendermint.abci.ResponseInitChain.fromObject(object.init_chain); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".tendermint.abci.Response.query: object expected"); + message.query = $root.tendermint.abci.ResponseQuery.fromObject(object.query); + } + if (object.begin_block != null) { + if (typeof object.begin_block !== "object") + throw TypeError(".tendermint.abci.Response.begin_block: object expected"); + message.begin_block = $root.tendermint.abci.ResponseBeginBlock.fromObject(object.begin_block); + } + if (object.check_tx != null) { + if (typeof object.check_tx !== "object") + throw TypeError(".tendermint.abci.Response.check_tx: object expected"); + message.check_tx = $root.tendermint.abci.ResponseCheckTx.fromObject(object.check_tx); + } + if (object.deliver_tx != null) { + if (typeof object.deliver_tx !== "object") + throw TypeError(".tendermint.abci.Response.deliver_tx: object expected"); + message.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.deliver_tx); + } + if (object.end_block != null) { + if (typeof object.end_block !== "object") + throw TypeError(".tendermint.abci.Response.end_block: object expected"); + message.end_block = $root.tendermint.abci.ResponseEndBlock.fromObject(object.end_block); + } + if (object.commit != null) { + if (typeof object.commit !== "object") + throw TypeError(".tendermint.abci.Response.commit: object expected"); + message.commit = $root.tendermint.abci.ResponseCommit.fromObject(object.commit); + } + if (object.list_snapshots != null) { + if (typeof object.list_snapshots !== "object") + throw TypeError(".tendermint.abci.Response.list_snapshots: object expected"); + message.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.fromObject(object.list_snapshots); + } + if (object.offer_snapshot != null) { + if (typeof object.offer_snapshot !== "object") + throw TypeError(".tendermint.abci.Response.offer_snapshot: object expected"); + message.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.fromObject(object.offer_snapshot); + } + if (object.load_snapshot_chunk != null) { + if (typeof object.load_snapshot_chunk !== "object") + throw TypeError(".tendermint.abci.Response.load_snapshot_chunk: object expected"); + message.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.fromObject(object.load_snapshot_chunk); + } + if (object.apply_snapshot_chunk != null) { + if (typeof object.apply_snapshot_chunk !== "object") + throw TypeError(".tendermint.abci.Response.apply_snapshot_chunk: object expected"); + message.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.fromObject(object.apply_snapshot_chunk); } - if (object.codespace != null) - message.codespace = String(object.codespace); return message; }; /** - * Creates a plain object from a ResponseDeliverTx message. Also converts values to other types if specified. + * Creates a plain object from a Response message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @static - * @param {tendermint.abci.ResponseDeliverTx} message ResponseDeliverTx + * @param {tendermint.abci.Response} message Response * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseDeliverTx.toObject = function toObject(message, options) { + Response.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) { - object.code = 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.log = ""; - object.info = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gas_wanted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gas_wanted = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.gas_used = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.gas_used = options.longs === String ? "0" : 0; - object.codespace = ""; + if (message.exception != null && message.hasOwnProperty("exception")) { + object.exception = $root.tendermint.abci.ResponseException.toObject(message.exception, options); + if (options.oneofs) + object.value = "exception"; } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - 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.log != null && message.hasOwnProperty("log")) - object.log = message.log; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) - if (typeof message.gas_wanted === "number") - object.gas_wanted = options.longs === String ? String(message.gas_wanted) : message.gas_wanted; - else - object.gas_wanted = options.longs === String ? $util.Long.prototype.toString.call(message.gas_wanted) : options.longs === Number ? new $util.LongBits(message.gas_wanted.low >>> 0, message.gas_wanted.high >>> 0).toNumber() : message.gas_wanted; - if (message.gas_used != null && message.hasOwnProperty("gas_used")) - if (typeof message.gas_used === "number") - object.gas_used = options.longs === String ? String(message.gas_used) : message.gas_used; - else - object.gas_used = options.longs === String ? $util.Long.prototype.toString.call(message.gas_used) : options.longs === Number ? new $util.LongBits(message.gas_used.low >>> 0, message.gas_used.high >>> 0).toNumber() : message.gas_used; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); + if (message.echo != null && message.hasOwnProperty("echo")) { + object.echo = $root.tendermint.abci.ResponseEcho.toObject(message.echo, options); + if (options.oneofs) + object.value = "echo"; + } + if (message.flush != null && message.hasOwnProperty("flush")) { + object.flush = $root.tendermint.abci.ResponseFlush.toObject(message.flush, options); + if (options.oneofs) + object.value = "flush"; + } + if (message.info != null && message.hasOwnProperty("info")) { + object.info = $root.tendermint.abci.ResponseInfo.toObject(message.info, options); + if (options.oneofs) + object.value = "info"; + } + if (message.set_option != null && message.hasOwnProperty("set_option")) { + object.set_option = $root.tendermint.abci.ResponseSetOption.toObject(message.set_option, options); + if (options.oneofs) + object.value = "set_option"; + } + if (message.init_chain != null && message.hasOwnProperty("init_chain")) { + object.init_chain = $root.tendermint.abci.ResponseInitChain.toObject(message.init_chain, options); + if (options.oneofs) + object.value = "init_chain"; + } + if (message.query != null && message.hasOwnProperty("query")) { + object.query = $root.tendermint.abci.ResponseQuery.toObject(message.query, options); + if (options.oneofs) + object.value = "query"; + } + if (message.begin_block != null && message.hasOwnProperty("begin_block")) { + object.begin_block = $root.tendermint.abci.ResponseBeginBlock.toObject(message.begin_block, options); + if (options.oneofs) + object.value = "begin_block"; + } + if (message.check_tx != null && message.hasOwnProperty("check_tx")) { + object.check_tx = $root.tendermint.abci.ResponseCheckTx.toObject(message.check_tx, options); + if (options.oneofs) + object.value = "check_tx"; + } + if (message.deliver_tx != null && message.hasOwnProperty("deliver_tx")) { + object.deliver_tx = $root.tendermint.abci.ResponseDeliverTx.toObject(message.deliver_tx, options); + if (options.oneofs) + object.value = "deliver_tx"; + } + if (message.end_block != null && message.hasOwnProperty("end_block")) { + object.end_block = $root.tendermint.abci.ResponseEndBlock.toObject(message.end_block, options); + if (options.oneofs) + object.value = "end_block"; + } + if (message.commit != null && message.hasOwnProperty("commit")) { + object.commit = $root.tendermint.abci.ResponseCommit.toObject(message.commit, options); + if (options.oneofs) + object.value = "commit"; + } + if (message.list_snapshots != null && message.hasOwnProperty("list_snapshots")) { + object.list_snapshots = $root.tendermint.abci.ResponseListSnapshots.toObject(message.list_snapshots, options); + if (options.oneofs) + object.value = "list_snapshots"; + } + if (message.offer_snapshot != null && message.hasOwnProperty("offer_snapshot")) { + object.offer_snapshot = $root.tendermint.abci.ResponseOfferSnapshot.toObject(message.offer_snapshot, options); + if (options.oneofs) + object.value = "offer_snapshot"; + } + if (message.load_snapshot_chunk != null && message.hasOwnProperty("load_snapshot_chunk")) { + object.load_snapshot_chunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.toObject(message.load_snapshot_chunk, options); + if (options.oneofs) + object.value = "load_snapshot_chunk"; + } + if (message.apply_snapshot_chunk != null && message.hasOwnProperty("apply_snapshot_chunk")) { + object.apply_snapshot_chunk = $root.tendermint.abci.ResponseApplySnapshotChunk.toObject(message.apply_snapshot_chunk, options); + if (options.oneofs) + object.value = "apply_snapshot_chunk"; } - if (message.codespace != null && message.hasOwnProperty("codespace")) - object.codespace = message.codespace; return object; }; /** - * Converts this ResponseDeliverTx to JSON. + * Converts this Response to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseDeliverTx + * @memberof tendermint.abci.Response * @instance * @returns {Object.} JSON object */ - ResponseDeliverTx.prototype.toJSON = function toJSON() { + Response.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseDeliverTx; + return Response; })(); - abci.ResponseEndBlock = (function() { + abci.ResponseException = (function() { /** - * Properties of a ResponseEndBlock. + * Properties of a ResponseException. * @memberof tendermint.abci - * @interface IResponseEndBlock - * @property {Array.|null} [validator_updates] ResponseEndBlock validator_updates - * @property {tendermint.abci.IConsensusParams|null} [consensus_param_updates] ResponseEndBlock consensus_param_updates - * @property {Array.|null} [events] ResponseEndBlock events + * @interface IResponseException + * @property {string|null} [error] ResponseException error */ /** - * Constructs a new ResponseEndBlock. + * Constructs a new ResponseException. * @memberof tendermint.abci - * @classdesc Represents a ResponseEndBlock. - * @implements IResponseEndBlock + * @classdesc Represents a ResponseException. + * @implements IResponseException * @constructor - * @param {tendermint.abci.IResponseEndBlock=} [properties] Properties to set + * @param {tendermint.abci.IResponseException=} [properties] Properties to set */ - function ResponseEndBlock(properties) { - this.validator_updates = []; - this.events = []; + function ResponseException(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27863,95 +36107,63 @@ } /** - * ResponseEndBlock validator_updates. - * @member {Array.} validator_updates - * @memberof tendermint.abci.ResponseEndBlock - * @instance - */ - ResponseEndBlock.prototype.validator_updates = $util.emptyArray; - - /** - * ResponseEndBlock consensus_param_updates. - * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_param_updates - * @memberof tendermint.abci.ResponseEndBlock - * @instance - */ - ResponseEndBlock.prototype.consensus_param_updates = null; - - /** - * ResponseEndBlock events. - * @member {Array.} events - * @memberof tendermint.abci.ResponseEndBlock + * ResponseException error. + * @member {string} error + * @memberof tendermint.abci.ResponseException * @instance */ - ResponseEndBlock.prototype.events = $util.emptyArray; + ResponseException.prototype.error = ""; /** - * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static - * @param {tendermint.abci.IResponseEndBlock} message ResponseEndBlock message or plain object to encode + * @param {tendermint.abci.IResponseException} message ResponseException message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseEndBlock.encode = function encode(message, writer) { + ResponseException.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.validator_updates != null && message.validator_updates.length) - for (var i = 0; i < message.validator_updates.length; ++i) - $root.tendermint.abci.ValidatorUpdate.encode(message.validator_updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.consensus_param_updates != null && Object.hasOwnProperty.call(message, "consensus_param_updates")) - $root.tendermint.abci.ConsensusParams.encode(message.consensus_param_updates, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.error); return writer; }; /** - * Encodes the specified ResponseEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. + * Encodes the specified ResponseException message, length delimited. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static - * @param {tendermint.abci.IResponseEndBlock} message ResponseEndBlock message or plain object to encode + * @param {tendermint.abci.IResponseException} message ResponseException message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseEndBlock.encodeDelimited = function encodeDelimited(message, writer) { + ResponseException.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseEndBlock message from the specified reader or buffer. + * Decodes a ResponseException message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock + * @returns {tendermint.abci.ResponseException} ResponseException * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseEndBlock.decode = function decode(reader, length) { + ResponseException.decode = 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.abci.ResponseEndBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseException(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.validator_updates && message.validator_updates.length)) - message.validator_updates = []; - message.validator_updates.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); - break; - case 2: - message.consensus_param_updates = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); + message.error = reader.string(); break; default: reader.skipType(tag & 7); @@ -27962,165 +36174,107 @@ }; /** - * Decodes a ResponseEndBlock message from the specified reader or buffer, length delimited. + * Decodes a ResponseException message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock + * @returns {tendermint.abci.ResponseException} ResponseException * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseEndBlock.decodeDelimited = function decodeDelimited(reader) { + ResponseException.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseEndBlock message. + * Verifies a ResponseException message. * @function verify - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseEndBlock.verify = function verify(message) { + ResponseException.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.validator_updates != null && message.hasOwnProperty("validator_updates")) { - if (!Array.isArray(message.validator_updates)) - return "validator_updates: array expected"; - for (var i = 0; i < message.validator_updates.length; ++i) { - var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validator_updates[i]); - if (error) - return "validator_updates." + error; - } - } - if (message.consensus_param_updates != null && message.hasOwnProperty("consensus_param_updates")) { - var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_param_updates); - if (error) - return "consensus_param_updates." + error; - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.tendermint.abci.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; return null; }; /** - * Creates a ResponseEndBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseException message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock + * @returns {tendermint.abci.ResponseException} ResponseException */ - ResponseEndBlock.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseEndBlock) + ResponseException.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseException) return object; - var message = new $root.tendermint.abci.ResponseEndBlock(); - if (object.validator_updates) { - if (!Array.isArray(object.validator_updates)) - throw TypeError(".tendermint.abci.ResponseEndBlock.validator_updates: array expected"); - message.validator_updates = []; - for (var i = 0; i < object.validator_updates.length; ++i) { - if (typeof object.validator_updates[i] !== "object") - throw TypeError(".tendermint.abci.ResponseEndBlock.validator_updates: object expected"); - message.validator_updates[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validator_updates[i]); - } - } - if (object.consensus_param_updates != null) { - if (typeof object.consensus_param_updates !== "object") - throw TypeError(".tendermint.abci.ResponseEndBlock.consensus_param_updates: object expected"); - message.consensus_param_updates = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_param_updates); - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".tendermint.abci.ResponseEndBlock.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".tendermint.abci.ResponseEndBlock.events: object expected"); - message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); - } - } + var message = new $root.tendermint.abci.ResponseException(); + if (object.error != null) + message.error = String(object.error); return message; }; /** - * Creates a plain object from a ResponseEndBlock message. Also converts values to other types if specified. + * Creates a plain object from a ResponseException message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @static - * @param {tendermint.abci.ResponseEndBlock} message ResponseEndBlock + * @param {tendermint.abci.ResponseException} message ResponseException * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseEndBlock.toObject = function toObject(message, options) { + ResponseException.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.validator_updates = []; - object.events = []; - } if (options.defaults) - object.consensus_param_updates = null; - if (message.validator_updates && message.validator_updates.length) { - object.validator_updates = []; - for (var j = 0; j < message.validator_updates.length; ++j) - object.validator_updates[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validator_updates[j], options); - } - if (message.consensus_param_updates != null && message.hasOwnProperty("consensus_param_updates")) - object.consensus_param_updates = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_param_updates, options); - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); - } + object.error = ""; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; return object; }; /** - * Converts this ResponseEndBlock to JSON. + * Converts this ResponseException to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseEndBlock + * @memberof tendermint.abci.ResponseException * @instance * @returns {Object.} JSON object */ - ResponseEndBlock.prototype.toJSON = function toJSON() { + ResponseException.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseEndBlock; + return ResponseException; })(); - abci.ResponseCommit = (function() { + abci.ResponseEcho = (function() { /** - * Properties of a ResponseCommit. + * Properties of a ResponseEcho. * @memberof tendermint.abci - * @interface IResponseCommit - * @property {Uint8Array|null} [data] ResponseCommit data - * @property {Long|null} [retain_height] ResponseCommit retain_height + * @interface IResponseEcho + * @property {string|null} [message] ResponseEcho message */ /** - * Constructs a new ResponseCommit. + * Constructs a new ResponseEcho. * @memberof tendermint.abci - * @classdesc Represents a ResponseCommit. - * @implements IResponseCommit + * @classdesc Represents a ResponseEcho. + * @implements IResponseEcho * @constructor - * @param {tendermint.abci.IResponseCommit=} [properties] Properties to set + * @param {tendermint.abci.IResponseEcho=} [properties] Properties to set */ - function ResponseCommit(properties) { + function ResponseEcho(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28128,76 +36282,63 @@ } /** - * ResponseCommit data. - * @member {Uint8Array} data - * @memberof tendermint.abci.ResponseCommit - * @instance - */ - ResponseCommit.prototype.data = $util.newBuffer([]); - - /** - * ResponseCommit retain_height. - * @member {Long} retain_height - * @memberof tendermint.abci.ResponseCommit + * ResponseEcho message. + * @member {string} message + * @memberof tendermint.abci.ResponseEcho * @instance */ - ResponseCommit.prototype.retain_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseEcho.prototype.message = ""; /** - * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static - * @param {tendermint.abci.IResponseCommit} message ResponseCommit message or plain object to encode + * @param {tendermint.abci.IResponseEcho} message ResponseEcho message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseCommit.encode = function encode(message, writer) { + ResponseEcho.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.retain_height != null && Object.hasOwnProperty.call(message, "retain_height")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.retain_height); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); return writer; }; /** - * Encodes the specified ResponseCommit message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. + * Encodes the specified ResponseEcho message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static - * @param {tendermint.abci.IResponseCommit} message ResponseCommit message or plain object to encode + * @param {tendermint.abci.IResponseEcho} message ResponseEcho message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseCommit.encodeDelimited = function encodeDelimited(message, writer) { + ResponseEcho.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseCommit message from the specified reader or buffer. + * Decodes a ResponseEcho message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseCommit} ResponseCommit + * @returns {tendermint.abci.ResponseEcho} ResponseEcho * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseCommit.decode = function decode(reader, length) { + ResponseEcho.decode = 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.abci.ResponseCommit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseEcho(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.data = reader.bytes(); - break; - case 3: - message.retain_height = reader.int64(); + case 1: + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -28208,140 +36349,106 @@ }; /** - * Decodes a ResponseCommit message from the specified reader or buffer, length delimited. + * Decodes a ResponseEcho message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseCommit} ResponseCommit + * @returns {tendermint.abci.ResponseEcho} ResponseEcho * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseCommit.decodeDelimited = function decodeDelimited(reader) { + ResponseEcho.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseCommit message. + * Verifies a ResponseEcho message. * @function verify - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseCommit.verify = function verify(message) { + ResponseEcho.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.retain_height != null && message.hasOwnProperty("retain_height")) - if (!$util.isInteger(message.retain_height) && !(message.retain_height && $util.isInteger(message.retain_height.low) && $util.isInteger(message.retain_height.high))) - return "retain_height: integer|Long expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a ResponseCommit message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseEcho message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseCommit} ResponseCommit + * @returns {tendermint.abci.ResponseEcho} ResponseEcho */ - ResponseCommit.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseCommit) + ResponseEcho.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseEcho) return object; - var message = new $root.tendermint.abci.ResponseCommit(); - 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.retain_height != null) - if ($util.Long) - (message.retain_height = $util.Long.fromValue(object.retain_height)).unsigned = false; - else if (typeof object.retain_height === "string") - message.retain_height = parseInt(object.retain_height, 10); - else if (typeof object.retain_height === "number") - message.retain_height = object.retain_height; - else if (typeof object.retain_height === "object") - message.retain_height = new $util.LongBits(object.retain_height.low >>> 0, object.retain_height.high >>> 0).toNumber(); + var message = new $root.tendermint.abci.ResponseEcho(); + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a ResponseCommit message. Also converts values to other types if specified. + * Creates a plain object from a ResponseEcho message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @static - * @param {tendermint.abci.ResponseCommit} message ResponseCommit + * @param {tendermint.abci.ResponseEcho} message ResponseEcho * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseCommit.toObject = function toObject(message, options) { + ResponseEcho.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - 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, false); - object.retain_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.retain_height = options.longs === String ? "0" : 0; - } - 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.retain_height != null && message.hasOwnProperty("retain_height")) - if (typeof message.retain_height === "number") - object.retain_height = options.longs === String ? String(message.retain_height) : message.retain_height; - else - object.retain_height = options.longs === String ? $util.Long.prototype.toString.call(message.retain_height) : options.longs === Number ? new $util.LongBits(message.retain_height.low >>> 0, message.retain_height.high >>> 0).toNumber() : message.retain_height; + if (options.defaults) + object.message = ""; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this ResponseCommit to JSON. + * Converts this ResponseEcho to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseCommit + * @memberof tendermint.abci.ResponseEcho * @instance * @returns {Object.} JSON object */ - ResponseCommit.prototype.toJSON = function toJSON() { + ResponseEcho.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseCommit; + return ResponseEcho; })(); - abci.ResponseListSnapshots = (function() { + abci.ResponseFlush = (function() { /** - * Properties of a ResponseListSnapshots. + * Properties of a ResponseFlush. * @memberof tendermint.abci - * @interface IResponseListSnapshots - * @property {Array.|null} [snapshots] ResponseListSnapshots snapshots + * @interface IResponseFlush */ /** - * Constructs a new ResponseListSnapshots. + * Constructs a new ResponseFlush. * @memberof tendermint.abci - * @classdesc Represents a ResponseListSnapshots. - * @implements IResponseListSnapshots + * @classdesc Represents a ResponseFlush. + * @implements IResponseFlush * @constructor - * @param {tendermint.abci.IResponseListSnapshots=} [properties] Properties to set + * @param {tendermint.abci.IResponseFlush=} [properties] Properties to set */ - function ResponseListSnapshots(properties) { - this.snapshots = []; + function ResponseFlush(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28349,67 +36456,51 @@ } /** - * ResponseListSnapshots snapshots. - * @member {Array.} snapshots - * @memberof tendermint.abci.ResponseListSnapshots - * @instance - */ - ResponseListSnapshots.prototype.snapshots = $util.emptyArray; - - /** - * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static - * @param {tendermint.abci.IResponseListSnapshots} message ResponseListSnapshots message or plain object to encode + * @param {tendermint.abci.IResponseFlush} message ResponseFlush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseListSnapshots.encode = function encode(message, writer) { + ResponseFlush.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshots != null && message.snapshots.length) - for (var i = 0; i < message.snapshots.length; ++i) - $root.tendermint.abci.Snapshot.encode(message.snapshots[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResponseListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * Encodes the specified ResponseFlush message, length delimited. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static - * @param {tendermint.abci.IResponseListSnapshots} message ResponseListSnapshots message or plain object to encode + * @param {tendermint.abci.IResponseFlush} message ResponseFlush message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseListSnapshots.encodeDelimited = function encodeDelimited(message, writer) { + ResponseFlush.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseListSnapshots message from the specified reader or buffer. + * Decodes a ResponseFlush message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots + * @returns {tendermint.abci.ResponseFlush} ResponseFlush * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseListSnapshots.decode = function decode(reader, length) { + ResponseFlush.decode = 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.abci.ResponseListSnapshots(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseFlush(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.snapshots && message.snapshots.length)) - message.snapshots = []; - message.snapshots.push($root.tendermint.abci.Snapshot.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -28419,124 +36510,98 @@ }; /** - * Decodes a ResponseListSnapshots message from the specified reader or buffer, length delimited. + * Decodes a ResponseFlush message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots + * @returns {tendermint.abci.ResponseFlush} ResponseFlush * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseListSnapshots.decodeDelimited = function decodeDelimited(reader) { + ResponseFlush.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseListSnapshots message. + * Verifies a ResponseFlush message. * @function verify - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseListSnapshots.verify = function verify(message) { + ResponseFlush.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snapshots != null && message.hasOwnProperty("snapshots")) { - if (!Array.isArray(message.snapshots)) - return "snapshots: array expected"; - for (var i = 0; i < message.snapshots.length; ++i) { - var error = $root.tendermint.abci.Snapshot.verify(message.snapshots[i]); - if (error) - return "snapshots." + error; - } - } return null; }; /** - * Creates a ResponseListSnapshots message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseFlush message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots + * @returns {tendermint.abci.ResponseFlush} ResponseFlush */ - ResponseListSnapshots.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseListSnapshots) + ResponseFlush.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseFlush) return object; - var message = new $root.tendermint.abci.ResponseListSnapshots(); - if (object.snapshots) { - if (!Array.isArray(object.snapshots)) - throw TypeError(".tendermint.abci.ResponseListSnapshots.snapshots: array expected"); - message.snapshots = []; - for (var i = 0; i < object.snapshots.length; ++i) { - if (typeof object.snapshots[i] !== "object") - throw TypeError(".tendermint.abci.ResponseListSnapshots.snapshots: object expected"); - message.snapshots[i] = $root.tendermint.abci.Snapshot.fromObject(object.snapshots[i]); - } - } - return message; + return new $root.tendermint.abci.ResponseFlush(); }; /** - * Creates a plain object from a ResponseListSnapshots message. Also converts values to other types if specified. + * Creates a plain object from a ResponseFlush message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @static - * @param {tendermint.abci.ResponseListSnapshots} message ResponseListSnapshots + * @param {tendermint.abci.ResponseFlush} message ResponseFlush * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseListSnapshots.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.snapshots = []; - if (message.snapshots && message.snapshots.length) { - object.snapshots = []; - for (var j = 0; j < message.snapshots.length; ++j) - object.snapshots[j] = $root.tendermint.abci.Snapshot.toObject(message.snapshots[j], options); - } - return object; + ResponseFlush.toObject = function toObject() { + return {}; }; /** - * Converts this ResponseListSnapshots to JSON. + * Converts this ResponseFlush to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseListSnapshots + * @memberof tendermint.abci.ResponseFlush * @instance * @returns {Object.} JSON object */ - ResponseListSnapshots.prototype.toJSON = function toJSON() { + ResponseFlush.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseListSnapshots; + return ResponseFlush; })(); - abci.ResponseOfferSnapshot = (function() { + abci.ResponseInfo = (function() { /** - * Properties of a ResponseOfferSnapshot. + * Properties of a ResponseInfo. * @memberof tendermint.abci - * @interface IResponseOfferSnapshot - * @property {tendermint.abci.ResponseOfferSnapshot.Result|null} [result] ResponseOfferSnapshot result + * @interface IResponseInfo + * @property {string|null} [data] ResponseInfo data + * @property {string|null} [version] ResponseInfo version + * @property {Long|null} [app_version] ResponseInfo app_version + * @property {Long|null} [last_block_height] ResponseInfo last_block_height + * @property {Uint8Array|null} [last_block_app_hash] ResponseInfo last_block_app_hash */ /** - * Constructs a new ResponseOfferSnapshot. + * Constructs a new ResponseInfo. * @memberof tendermint.abci - * @classdesc Represents a ResponseOfferSnapshot. - * @implements IResponseOfferSnapshot + * @classdesc Represents a ResponseInfo. + * @implements IResponseInfo * @constructor - * @param {tendermint.abci.IResponseOfferSnapshot=} [properties] Properties to set + * @param {tendermint.abci.IResponseInfo=} [properties] Properties to set */ - function ResponseOfferSnapshot(properties) { + function ResponseInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28544,63 +36609,115 @@ } /** - * ResponseOfferSnapshot result. - * @member {tendermint.abci.ResponseOfferSnapshot.Result} result - * @memberof tendermint.abci.ResponseOfferSnapshot + * ResponseInfo data. + * @member {string} data + * @memberof tendermint.abci.ResponseInfo * @instance */ - ResponseOfferSnapshot.prototype.result = 0; + ResponseInfo.prototype.data = ""; /** - * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * ResponseInfo version. + * @member {string} version + * @memberof tendermint.abci.ResponseInfo + * @instance + */ + ResponseInfo.prototype.version = ""; + + /** + * ResponseInfo app_version. + * @member {Long} app_version + * @memberof tendermint.abci.ResponseInfo + * @instance + */ + ResponseInfo.prototype.app_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ResponseInfo last_block_height. + * @member {Long} last_block_height + * @memberof tendermint.abci.ResponseInfo + * @instance + */ + ResponseInfo.prototype.last_block_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ResponseInfo last_block_app_hash. + * @member {Uint8Array} last_block_app_hash + * @memberof tendermint.abci.ResponseInfo + * @instance + */ + ResponseInfo.prototype.last_block_app_hash = $util.newBuffer([]); + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static - * @param {tendermint.abci.IResponseOfferSnapshot} message ResponseOfferSnapshot message or plain object to encode + * @param {tendermint.abci.IResponseInfo} message ResponseInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseOfferSnapshot.encode = function encode(message, writer) { + ResponseInfo.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.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.data); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.app_version); + if (message.last_block_height != null && Object.hasOwnProperty.call(message, "last_block_height")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.last_block_height); + if (message.last_block_app_hash != null && Object.hasOwnProperty.call(message, "last_block_app_hash")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.last_block_app_hash); return writer; }; /** - * Encodes the specified ResponseOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * Encodes the specified ResponseInfo message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static - * @param {tendermint.abci.IResponseOfferSnapshot} message ResponseOfferSnapshot message or plain object to encode + * @param {tendermint.abci.IResponseInfo} message ResponseInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseOfferSnapshot.encodeDelimited = function encodeDelimited(message, writer) { + ResponseInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. + * Decodes a ResponseInfo message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot + * @returns {tendermint.abci.ResponseInfo} ResponseInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseOfferSnapshot.decode = function decode(reader, length) { + ResponseInfo.decode = 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.abci.ResponseOfferSnapshot(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.data = reader.string(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.app_version = reader.uint64(); + break; + case 4: + message.last_block_height = reader.int64(); + break; + case 5: + message.last_block_app_hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -28611,162 +36728,179 @@ }; /** - * Decodes a ResponseOfferSnapshot message from the specified reader or buffer, length delimited. + * Decodes a ResponseInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot + * @returns {tendermint.abci.ResponseInfo} ResponseInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseOfferSnapshot.decodeDelimited = function decodeDelimited(reader) { + ResponseInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseOfferSnapshot message. + * Verifies a ResponseInfo message. * @function verify - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseOfferSnapshot.verify = function verify(message) { + ResponseInfo.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: - case 3: - case 4: - case 5: - break; - } + if (message.data != null && message.hasOwnProperty("data")) + if (!$util.isString(message.data)) + return "data: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (!$util.isInteger(message.app_version) && !(message.app_version && $util.isInteger(message.app_version.low) && $util.isInteger(message.app_version.high))) + return "app_version: integer|Long expected"; + if (message.last_block_height != null && message.hasOwnProperty("last_block_height")) + if (!$util.isInteger(message.last_block_height) && !(message.last_block_height && $util.isInteger(message.last_block_height.low) && $util.isInteger(message.last_block_height.high))) + return "last_block_height: integer|Long expected"; + if (message.last_block_app_hash != null && message.hasOwnProperty("last_block_app_hash")) + if (!(message.last_block_app_hash && typeof message.last_block_app_hash.length === "number" || $util.isString(message.last_block_app_hash))) + return "last_block_app_hash: buffer expected"; return null; }; /** - * Creates a ResponseOfferSnapshot message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot + * @returns {tendermint.abci.ResponseInfo} ResponseInfo */ - ResponseOfferSnapshot.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseOfferSnapshot) + ResponseInfo.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseInfo) return object; - var message = new $root.tendermint.abci.ResponseOfferSnapshot(); - switch (object.result) { - case "UNKNOWN": - case 0: - message.result = 0; - break; - case "ACCEPT": - case 1: - message.result = 1; - break; - case "ABORT": - case 2: - message.result = 2; - break; - case "REJECT": - case 3: - message.result = 3; - break; - case "REJECT_FORMAT": - case 4: - message.result = 4; - break; - case "REJECT_SENDER": - case 5: - message.result = 5; - break; - } + var message = new $root.tendermint.abci.ResponseInfo(); + if (object.data != null) + message.data = String(object.data); + if (object.version != null) + message.version = String(object.version); + if (object.app_version != null) + if ($util.Long) + (message.app_version = $util.Long.fromValue(object.app_version)).unsigned = true; + else if (typeof object.app_version === "string") + message.app_version = parseInt(object.app_version, 10); + else if (typeof object.app_version === "number") + message.app_version = object.app_version; + else if (typeof object.app_version === "object") + message.app_version = new $util.LongBits(object.app_version.low >>> 0, object.app_version.high >>> 0).toNumber(true); + if (object.last_block_height != null) + if ($util.Long) + (message.last_block_height = $util.Long.fromValue(object.last_block_height)).unsigned = false; + else if (typeof object.last_block_height === "string") + message.last_block_height = parseInt(object.last_block_height, 10); + else if (typeof object.last_block_height === "number") + message.last_block_height = object.last_block_height; + else if (typeof object.last_block_height === "object") + message.last_block_height = new $util.LongBits(object.last_block_height.low >>> 0, object.last_block_height.high >>> 0).toNumber(); + if (object.last_block_app_hash != null) + if (typeof object.last_block_app_hash === "string") + $util.base64.decode(object.last_block_app_hash, message.last_block_app_hash = $util.newBuffer($util.base64.length(object.last_block_app_hash)), 0); + else if (object.last_block_app_hash.length) + message.last_block_app_hash = object.last_block_app_hash; return message; }; /** - * Creates a plain object from a ResponseOfferSnapshot message. Also converts values to other types if specified. + * Creates a plain object from a ResponseInfo message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @static - * @param {tendermint.abci.ResponseOfferSnapshot} message ResponseOfferSnapshot + * @param {tendermint.abci.ResponseInfo} message ResponseInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseOfferSnapshot.toObject = function toObject(message, options) { + ResponseInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = options.enums === String ? "UNKNOWN" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.tendermint.abci.ResponseOfferSnapshot.Result[message.result] : message.result; + if (options.defaults) { + object.data = ""; + object.version = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.app_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.app_version = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.last_block_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.last_block_height = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.last_block_app_hash = ""; + else { + object.last_block_app_hash = []; + if (options.bytes !== Array) + object.last_block_app_hash = $util.newBuffer(object.last_block_app_hash); + } + } + if (message.data != null && message.hasOwnProperty("data")) + object.data = message.data; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (typeof message.app_version === "number") + object.app_version = options.longs === String ? String(message.app_version) : message.app_version; + else + object.app_version = options.longs === String ? $util.Long.prototype.toString.call(message.app_version) : options.longs === Number ? new $util.LongBits(message.app_version.low >>> 0, message.app_version.high >>> 0).toNumber(true) : message.app_version; + if (message.last_block_height != null && message.hasOwnProperty("last_block_height")) + if (typeof message.last_block_height === "number") + object.last_block_height = options.longs === String ? String(message.last_block_height) : message.last_block_height; + else + object.last_block_height = options.longs === String ? $util.Long.prototype.toString.call(message.last_block_height) : options.longs === Number ? new $util.LongBits(message.last_block_height.low >>> 0, message.last_block_height.high >>> 0).toNumber() : message.last_block_height; + if (message.last_block_app_hash != null && message.hasOwnProperty("last_block_app_hash")) + object.last_block_app_hash = options.bytes === String ? $util.base64.encode(message.last_block_app_hash, 0, message.last_block_app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_block_app_hash) : message.last_block_app_hash; return object; }; /** - * Converts this ResponseOfferSnapshot to JSON. + * Converts this ResponseInfo to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseOfferSnapshot + * @memberof tendermint.abci.ResponseInfo * @instance * @returns {Object.} JSON object */ - ResponseOfferSnapshot.prototype.toJSON = function toJSON() { + ResponseInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Result enum. - * @name tendermint.abci.ResponseOfferSnapshot.Result - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} ACCEPT=1 ACCEPT value - * @property {number} ABORT=2 ABORT value - * @property {number} REJECT=3 REJECT value - * @property {number} REJECT_FORMAT=4 REJECT_FORMAT value - * @property {number} REJECT_SENDER=5 REJECT_SENDER value - */ - ResponseOfferSnapshot.Result = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "ACCEPT"] = 1; - values[valuesById[2] = "ABORT"] = 2; - values[valuesById[3] = "REJECT"] = 3; - values[valuesById[4] = "REJECT_FORMAT"] = 4; - values[valuesById[5] = "REJECT_SENDER"] = 5; - return values; - })(); - - return ResponseOfferSnapshot; + return ResponseInfo; })(); - abci.ResponseLoadSnapshotChunk = (function() { + abci.ResponseSetOption = (function() { /** - * Properties of a ResponseLoadSnapshotChunk. + * Properties of a ResponseSetOption. * @memberof tendermint.abci - * @interface IResponseLoadSnapshotChunk - * @property {Uint8Array|null} [chunk] ResponseLoadSnapshotChunk chunk + * @interface IResponseSetOption + * @property {number|null} [code] ResponseSetOption code + * @property {string|null} [log] ResponseSetOption log + * @property {string|null} [info] ResponseSetOption info */ /** - * Constructs a new ResponseLoadSnapshotChunk. + * Constructs a new ResponseSetOption. * @memberof tendermint.abci - * @classdesc Represents a ResponseLoadSnapshotChunk. - * @implements IResponseLoadSnapshotChunk + * @classdesc Represents a ResponseSetOption. + * @implements IResponseSetOption * @constructor - * @param {tendermint.abci.IResponseLoadSnapshotChunk=} [properties] Properties to set + * @param {tendermint.abci.IResponseSetOption=} [properties] Properties to set */ - function ResponseLoadSnapshotChunk(properties) { + function ResponseSetOption(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28774,63 +36908,89 @@ } /** - * ResponseLoadSnapshotChunk chunk. - * @member {Uint8Array} chunk - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * ResponseSetOption code. + * @member {number} code + * @memberof tendermint.abci.ResponseSetOption * @instance */ - ResponseLoadSnapshotChunk.prototype.chunk = $util.newBuffer([]); + ResponseSetOption.prototype.code = 0; /** - * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * ResponseSetOption log. + * @member {string} log + * @memberof tendermint.abci.ResponseSetOption + * @instance + */ + ResponseSetOption.prototype.log = ""; + + /** + * ResponseSetOption info. + * @member {string} info + * @memberof tendermint.abci.ResponseSetOption + * @instance + */ + ResponseSetOption.prototype.info = ""; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static - * @param {tendermint.abci.IResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk message or plain object to encode + * @param {tendermint.abci.IResponseSetOption} message ResponseSetOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseLoadSnapshotChunk.encode = function encode(message, writer) { + ResponseSetOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.chunk); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.log != null && Object.hasOwnProperty.call(message, "log")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); return writer; }; /** - * Encodes the specified ResponseLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * Encodes the specified ResponseSetOption message, length delimited. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static - * @param {tendermint.abci.IResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk message or plain object to encode + * @param {tendermint.abci.IResponseSetOption} message ResponseSetOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseLoadSnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { + ResponseSetOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. + * Decodes a ResponseSetOption message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk + * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseLoadSnapshotChunk.decode = function decode(reader, length) { + ResponseSetOption.decode = 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.abci.ResponseLoadSnapshotChunk(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseSetOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.chunk = reader.bytes(); + message.code = reader.uint32(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); break; default: reader.skipType(tag & 7); @@ -28841,120 +37001,127 @@ }; /** - * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a ResponseSetOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk + * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseLoadSnapshotChunk.decodeDelimited = function decodeDelimited(reader) { + ResponseSetOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseLoadSnapshotChunk message. + * Verifies a ResponseSetOption message. * @function verify - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseLoadSnapshotChunk.verify = function verify(message) { + ResponseSetOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.chunk != null && message.hasOwnProperty("chunk")) - if (!(message.chunk && typeof message.chunk.length === "number" || $util.isString(message.chunk))) - return "chunk: buffer expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.log != null && message.hasOwnProperty("log")) + if (!$util.isString(message.log)) + return "log: string expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; return null; }; /** - * Creates a ResponseLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseSetOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk + * @returns {tendermint.abci.ResponseSetOption} ResponseSetOption */ - ResponseLoadSnapshotChunk.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseLoadSnapshotChunk) + ResponseSetOption.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseSetOption) return object; - var message = new $root.tendermint.abci.ResponseLoadSnapshotChunk(); - if (object.chunk != null) - if (typeof object.chunk === "string") - $util.base64.decode(object.chunk, message.chunk = $util.newBuffer($util.base64.length(object.chunk)), 0); - else if (object.chunk.length) - message.chunk = object.chunk; + var message = new $root.tendermint.abci.ResponseSetOption(); + if (object.code != null) + message.code = object.code >>> 0; + if (object.log != null) + message.log = String(object.log); + if (object.info != null) + message.info = String(object.info); return message; }; /** - * Creates a plain object from a ResponseLoadSnapshotChunk message. Also converts values to other types if specified. + * Creates a plain object from a ResponseSetOption message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @static - * @param {tendermint.abci.ResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk + * @param {tendermint.abci.ResponseSetOption} message ResponseSetOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseLoadSnapshotChunk.toObject = function toObject(message, options) { + ResponseSetOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.chunk = ""; - else { - object.chunk = []; - if (options.bytes !== Array) - object.chunk = $util.newBuffer(object.chunk); - } - if (message.chunk != null && message.hasOwnProperty("chunk")) - object.chunk = options.bytes === String ? $util.base64.encode(message.chunk, 0, message.chunk.length) : options.bytes === Array ? Array.prototype.slice.call(message.chunk) : message.chunk; + if (options.defaults) { + object.code = 0; + object.log = ""; + object.info = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.log != null && message.hasOwnProperty("log")) + object.log = message.log; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; return object; }; /** - * Converts this ResponseLoadSnapshotChunk to JSON. + * Converts this ResponseSetOption to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseLoadSnapshotChunk + * @memberof tendermint.abci.ResponseSetOption * @instance * @returns {Object.} JSON object */ - ResponseLoadSnapshotChunk.prototype.toJSON = function toJSON() { + ResponseSetOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResponseLoadSnapshotChunk; + return ResponseSetOption; })(); - abci.ResponseApplySnapshotChunk = (function() { + abci.ResponseInitChain = (function() { /** - * Properties of a ResponseApplySnapshotChunk. + * Properties of a ResponseInitChain. * @memberof tendermint.abci - * @interface IResponseApplySnapshotChunk - * @property {tendermint.abci.ResponseApplySnapshotChunk.Result|null} [result] ResponseApplySnapshotChunk result - * @property {Array.|null} [refetch_chunks] ResponseApplySnapshotChunk refetch_chunks - * @property {Array.|null} [reject_senders] ResponseApplySnapshotChunk reject_senders + * @interface IResponseInitChain + * @property {tendermint.abci.IConsensusParams|null} [consensus_params] ResponseInitChain consensus_params + * @property {Array.|null} [validators] ResponseInitChain validators + * @property {Uint8Array|null} [app_hash] ResponseInitChain app_hash */ /** - * Constructs a new ResponseApplySnapshotChunk. + * Constructs a new ResponseInitChain. * @memberof tendermint.abci - * @classdesc Represents a ResponseApplySnapshotChunk. - * @implements IResponseApplySnapshotChunk + * @classdesc Represents a ResponseInitChain. + * @implements IResponseInitChain * @constructor - * @param {tendermint.abci.IResponseApplySnapshotChunk=} [properties] Properties to set + * @param {tendermint.abci.IResponseInitChain=} [properties] Properties to set */ - function ResponseApplySnapshotChunk(properties) { - this.refetch_chunks = []; - this.reject_senders = []; + function ResponseInitChain(properties) { + this.validators = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28962,103 +37129,92 @@ } /** - * ResponseApplySnapshotChunk result. - * @member {tendermint.abci.ResponseApplySnapshotChunk.Result} result - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * ResponseInitChain consensus_params. + * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_params + * @memberof tendermint.abci.ResponseInitChain * @instance */ - ResponseApplySnapshotChunk.prototype.result = 0; + ResponseInitChain.prototype.consensus_params = null; /** - * ResponseApplySnapshotChunk refetch_chunks. - * @member {Array.} refetch_chunks - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * ResponseInitChain validators. + * @member {Array.} validators + * @memberof tendermint.abci.ResponseInitChain * @instance */ - ResponseApplySnapshotChunk.prototype.refetch_chunks = $util.emptyArray; + ResponseInitChain.prototype.validators = $util.emptyArray; /** - * ResponseApplySnapshotChunk reject_senders. - * @member {Array.} reject_senders - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * ResponseInitChain app_hash. + * @member {Uint8Array} app_hash + * @memberof tendermint.abci.ResponseInitChain * @instance */ - ResponseApplySnapshotChunk.prototype.reject_senders = $util.emptyArray; + ResponseInitChain.prototype.app_hash = $util.newBuffer([]); /** - * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static - * @param {tendermint.abci.IResponseApplySnapshotChunk} message ResponseApplySnapshotChunk message or plain object to encode + * @param {tendermint.abci.IResponseInitChain} message ResponseInitChain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseApplySnapshotChunk.encode = function encode(message, writer) { + ResponseInitChain.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.refetch_chunks != null && message.refetch_chunks.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.refetch_chunks.length; ++i) - writer.uint32(message.refetch_chunks[i]); - writer.ldelim(); - } - if (message.reject_senders != null && message.reject_senders.length) - for (var i = 0; i < message.reject_senders.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reject_senders[i]); + if (message.consensus_params != null && Object.hasOwnProperty.call(message, "consensus_params")) + $root.tendermint.abci.ConsensusParams.encode(message.consensus_params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.validators != null && message.validators.length) + for (var i = 0; i < message.validators.length; ++i) + $root.tendermint.abci.ValidatorUpdate.encode(message.validators[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.app_hash); return writer; }; /** - * Encodes the specified ResponseApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * Encodes the specified ResponseInitChain message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static - * @param {tendermint.abci.IResponseApplySnapshotChunk} message ResponseApplySnapshotChunk message or plain object to encode + * @param {tendermint.abci.IResponseInitChain} message ResponseInitChain message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseApplySnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { + ResponseInitChain.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. + * Decodes a ResponseInitChain message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk + * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseApplySnapshotChunk.decode = function decode(reader, length) { + ResponseInitChain.decode = 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.abci.ResponseApplySnapshotChunk(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseInitChain(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.consensus_params = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); break; case 2: - if (!(message.refetch_chunks && message.refetch_chunks.length)) - message.refetch_chunks = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.refetch_chunks.push(reader.uint32()); - } else - message.refetch_chunks.push(reader.uint32()); + if (!(message.validators && message.validators.length)) + message.validators = []; + message.validators.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); break; case 3: - if (!(message.reject_senders && message.reject_senders.length)) - message.reject_senders = []; - message.reject_senders.push(reader.string()); + message.app_hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -29069,207 +37225,164 @@ }; /** - * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a ResponseInitChain message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk + * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseApplySnapshotChunk.decodeDelimited = function decodeDelimited(reader) { + ResponseInitChain.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseApplySnapshotChunk message. + * Verifies a ResponseInitChain message. * @function verify - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseApplySnapshotChunk.verify = function verify(message) { + ResponseInitChain.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: - case 3: - case 4: - case 5: - break; - } - if (message.refetch_chunks != null && message.hasOwnProperty("refetch_chunks")) { - if (!Array.isArray(message.refetch_chunks)) - return "refetch_chunks: array expected"; - for (var i = 0; i < message.refetch_chunks.length; ++i) - if (!$util.isInteger(message.refetch_chunks[i])) - return "refetch_chunks: integer[] expected"; + if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) { + var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_params); + if (error) + return "consensus_params." + error; } - if (message.reject_senders != null && message.hasOwnProperty("reject_senders")) { - if (!Array.isArray(message.reject_senders)) - return "reject_senders: array expected"; - for (var i = 0; i < message.reject_senders.length; ++i) - if (!$util.isString(message.reject_senders[i])) - return "reject_senders: string[] expected"; + if (message.validators != null && message.hasOwnProperty("validators")) { + if (!Array.isArray(message.validators)) + return "validators: array expected"; + for (var i = 0; i < message.validators.length; ++i) { + var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validators[i]); + if (error) + return "validators." + error; + } } + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) + return "app_hash: buffer expected"; return null; }; /** - * Creates a ResponseApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseInitChain message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk + * @returns {tendermint.abci.ResponseInitChain} ResponseInitChain */ - ResponseApplySnapshotChunk.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ResponseApplySnapshotChunk) + ResponseInitChain.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseInitChain) return object; - var message = new $root.tendermint.abci.ResponseApplySnapshotChunk(); - switch (object.result) { - case "UNKNOWN": - case 0: - message.result = 0; - break; - case "ACCEPT": - case 1: - message.result = 1; - break; - case "ABORT": - case 2: - message.result = 2; - break; - case "RETRY": - case 3: - message.result = 3; - break; - case "RETRY_SNAPSHOT": - case 4: - message.result = 4; - break; - case "REJECT_SNAPSHOT": - case 5: - message.result = 5; - break; - } - if (object.refetch_chunks) { - if (!Array.isArray(object.refetch_chunks)) - throw TypeError(".tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks: array expected"); - message.refetch_chunks = []; - for (var i = 0; i < object.refetch_chunks.length; ++i) - message.refetch_chunks[i] = object.refetch_chunks[i] >>> 0; + var message = new $root.tendermint.abci.ResponseInitChain(); + if (object.consensus_params != null) { + if (typeof object.consensus_params !== "object") + throw TypeError(".tendermint.abci.ResponseInitChain.consensus_params: object expected"); + message.consensus_params = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_params); } - if (object.reject_senders) { - if (!Array.isArray(object.reject_senders)) - throw TypeError(".tendermint.abci.ResponseApplySnapshotChunk.reject_senders: array expected"); - message.reject_senders = []; - for (var i = 0; i < object.reject_senders.length; ++i) - message.reject_senders[i] = String(object.reject_senders[i]); + if (object.validators) { + if (!Array.isArray(object.validators)) + throw TypeError(".tendermint.abci.ResponseInitChain.validators: array expected"); + message.validators = []; + for (var i = 0; i < object.validators.length; ++i) { + if (typeof object.validators[i] !== "object") + throw TypeError(".tendermint.abci.ResponseInitChain.validators: object expected"); + message.validators[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validators[i]); + } } + if (object.app_hash != null) + if (typeof object.app_hash === "string") + $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); + else if (object.app_hash.length) + message.app_hash = object.app_hash; return message; }; /** - * Creates a plain object from a ResponseApplySnapshotChunk message. Also converts values to other types if specified. + * Creates a plain object from a ResponseInitChain message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @static - * @param {tendermint.abci.ResponseApplySnapshotChunk} message ResponseApplySnapshotChunk + * @param {tendermint.abci.ResponseInitChain} message ResponseInitChain * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseApplySnapshotChunk.toObject = function toObject(message, options) { + ResponseInitChain.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.refetch_chunks = []; - object.reject_senders = []; - } - if (options.defaults) - object.result = options.enums === String ? "UNKNOWN" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.tendermint.abci.ResponseApplySnapshotChunk.Result[message.result] : message.result; - if (message.refetch_chunks && message.refetch_chunks.length) { - object.refetch_chunks = []; - for (var j = 0; j < message.refetch_chunks.length; ++j) - object.refetch_chunks[j] = message.refetch_chunks[j]; + if (options.arrays || options.defaults) + object.validators = []; + if (options.defaults) { + object.consensus_params = null; + if (options.bytes === String) + object.app_hash = ""; + else { + object.app_hash = []; + if (options.bytes !== Array) + object.app_hash = $util.newBuffer(object.app_hash); + } } - if (message.reject_senders && message.reject_senders.length) { - object.reject_senders = []; - for (var j = 0; j < message.reject_senders.length; ++j) - object.reject_senders[j] = message.reject_senders[j]; + if (message.consensus_params != null && message.hasOwnProperty("consensus_params")) + object.consensus_params = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_params, options); + if (message.validators && message.validators.length) { + object.validators = []; + for (var j = 0; j < message.validators.length; ++j) + object.validators[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validators[j], options); } + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; return object; }; /** - * Converts this ResponseApplySnapshotChunk to JSON. + * Converts this ResponseInitChain to JSON. * @function toJSON - * @memberof tendermint.abci.ResponseApplySnapshotChunk + * @memberof tendermint.abci.ResponseInitChain * @instance * @returns {Object.} JSON object */ - ResponseApplySnapshotChunk.prototype.toJSON = function toJSON() { + ResponseInitChain.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Result enum. - * @name tendermint.abci.ResponseApplySnapshotChunk.Result - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} ACCEPT=1 ACCEPT value - * @property {number} ABORT=2 ABORT value - * @property {number} RETRY=3 RETRY value - * @property {number} RETRY_SNAPSHOT=4 RETRY_SNAPSHOT value - * @property {number} REJECT_SNAPSHOT=5 REJECT_SNAPSHOT value - */ - ResponseApplySnapshotChunk.Result = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "ACCEPT"] = 1; - values[valuesById[2] = "ABORT"] = 2; - values[valuesById[3] = "RETRY"] = 3; - values[valuesById[4] = "RETRY_SNAPSHOT"] = 4; - values[valuesById[5] = "REJECT_SNAPSHOT"] = 5; - return values; - })(); - - return ResponseApplySnapshotChunk; + return ResponseInitChain; })(); - abci.ConsensusParams = (function() { + abci.ResponseQuery = (function() { /** - * Properties of a ConsensusParams. + * Properties of a ResponseQuery. * @memberof tendermint.abci - * @interface IConsensusParams - * @property {tendermint.abci.IBlockParams|null} [block] ConsensusParams block - * @property {tendermint.types.IEvidenceParams|null} [evidence] ConsensusParams evidence - * @property {tendermint.types.IValidatorParams|null} [validator] ConsensusParams validator - * @property {tendermint.types.IVersionParams|null} [version] ConsensusParams version + * @interface IResponseQuery + * @property {number|null} [code] ResponseQuery code + * @property {string|null} [log] ResponseQuery log + * @property {string|null} [info] ResponseQuery info + * @property {Long|null} [index] ResponseQuery index + * @property {Uint8Array|null} [key] ResponseQuery key + * @property {Uint8Array|null} [value] ResponseQuery value + * @property {tendermint.crypto.IProofOps|null} [proof_ops] ResponseQuery proof_ops + * @property {Long|null} [height] ResponseQuery height + * @property {string|null} [codespace] ResponseQuery codespace */ /** - * Constructs a new ConsensusParams. + * Constructs a new ResponseQuery. * @memberof tendermint.abci - * @classdesc Represents a ConsensusParams. - * @implements IConsensusParams + * @classdesc Represents a ResponseQuery. + * @implements IResponseQuery * @constructor - * @param {tendermint.abci.IConsensusParams=} [properties] Properties to set + * @param {tendermint.abci.IResponseQuery=} [properties] Properties to set */ - function ConsensusParams(properties) { + function ResponseQuery(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29277,102 +37390,167 @@ } /** - * ConsensusParams block. - * @member {tendermint.abci.IBlockParams|null|undefined} block - * @memberof tendermint.abci.ConsensusParams + * ResponseQuery code. + * @member {number} code + * @memberof tendermint.abci.ResponseQuery * @instance */ - ConsensusParams.prototype.block = null; + ResponseQuery.prototype.code = 0; /** - * ConsensusParams evidence. - * @member {tendermint.types.IEvidenceParams|null|undefined} evidence - * @memberof tendermint.abci.ConsensusParams + * ResponseQuery log. + * @member {string} log + * @memberof tendermint.abci.ResponseQuery * @instance */ - ConsensusParams.prototype.evidence = null; + ResponseQuery.prototype.log = ""; /** - * ConsensusParams validator. - * @member {tendermint.types.IValidatorParams|null|undefined} validator - * @memberof tendermint.abci.ConsensusParams + * ResponseQuery info. + * @member {string} info + * @memberof tendermint.abci.ResponseQuery * @instance */ - ConsensusParams.prototype.validator = null; + ResponseQuery.prototype.info = ""; /** - * ConsensusParams version. - * @member {tendermint.types.IVersionParams|null|undefined} version - * @memberof tendermint.abci.ConsensusParams + * ResponseQuery index. + * @member {Long} index + * @memberof tendermint.abci.ResponseQuery * @instance */ - ConsensusParams.prototype.version = null; + ResponseQuery.prototype.index = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. + * ResponseQuery key. + * @member {Uint8Array} key + * @memberof tendermint.abci.ResponseQuery + * @instance + */ + ResponseQuery.prototype.key = $util.newBuffer([]); + + /** + * ResponseQuery value. + * @member {Uint8Array} value + * @memberof tendermint.abci.ResponseQuery + * @instance + */ + ResponseQuery.prototype.value = $util.newBuffer([]); + + /** + * ResponseQuery proof_ops. + * @member {tendermint.crypto.IProofOps|null|undefined} proof_ops + * @memberof tendermint.abci.ResponseQuery + * @instance + */ + ResponseQuery.prototype.proof_ops = null; + + /** + * ResponseQuery height. + * @member {Long} height + * @memberof tendermint.abci.ResponseQuery + * @instance + */ + ResponseQuery.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ResponseQuery codespace. + * @member {string} codespace + * @memberof tendermint.abci.ResponseQuery + * @instance + */ + ResponseQuery.prototype.codespace = ""; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static - * @param {tendermint.abci.IConsensusParams} message ConsensusParams message or plain object to encode + * @param {tendermint.abci.IResponseQuery} message ResponseQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusParams.encode = function encode(message, writer) { + ResponseQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.block != null && Object.hasOwnProperty.call(message, "block")) - $root.tendermint.abci.BlockParams.encode(message.block, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.evidence != null && Object.hasOwnProperty.call(message, "evidence")) - $root.tendermint.types.EvidenceParams.encode(message.evidence, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) - $root.tendermint.types.ValidatorParams.encode(message.validator, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.tendermint.types.VersionParams.encode(message.version, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.log != null && Object.hasOwnProperty.call(message, "log")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.index); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.value); + if (message.proof_ops != null && Object.hasOwnProperty.call(message, "proof_ops")) + $root.tendermint.crypto.ProofOps.encode(message.proof_ops, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 9, wireType 0 =*/72).int64(message.height); + if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.codespace); return writer; }; /** - * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. + * Encodes the specified ResponseQuery message, length delimited. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static - * @param {tendermint.abci.IConsensusParams} message ConsensusParams message or plain object to encode + * @param {tendermint.abci.IResponseQuery} message ResponseQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusParams.encodeDelimited = function encodeDelimited(message, writer) { + ResponseQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusParams message from the specified reader or buffer. + * Decodes a ResponseQuery message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ConsensusParams} ConsensusParams + * @returns {tendermint.abci.ResponseQuery} ResponseQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusParams.decode = function decode(reader, length) { + ResponseQuery.decode = 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.abci.ConsensusParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseQuery(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.block = $root.tendermint.abci.BlockParams.decode(reader, reader.uint32()); - break; - case 2: - message.evidence = $root.tendermint.types.EvidenceParams.decode(reader, reader.uint32()); + message.code = reader.uint32(); break; case 3: - message.validator = $root.tendermint.types.ValidatorParams.decode(reader, reader.uint32()); + message.log = reader.string(); break; case 4: - message.version = $root.tendermint.types.VersionParams.decode(reader, reader.uint32()); + message.info = reader.string(); + break; + case 5: + message.index = reader.int64(); + break; + case 6: + message.key = reader.bytes(); + break; + case 7: + message.value = reader.bytes(); + break; + case 8: + message.proof_ops = $root.tendermint.crypto.ProofOps.decode(reader, reader.uint32()); + break; + case 9: + message.height = reader.int64(); + break; + case 10: + message.codespace = reader.string(); break; default: reader.skipType(tag & 7); @@ -29383,153 +37561,224 @@ }; /** - * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. + * Decodes a ResponseQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ConsensusParams} ConsensusParams + * @returns {tendermint.abci.ResponseQuery} ResponseQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusParams.decodeDelimited = function decodeDelimited(reader) { + ResponseQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusParams message. + * Verifies a ResponseQuery message. * @function verify - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusParams.verify = function verify(message) { + ResponseQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.block != null && message.hasOwnProperty("block")) { - var error = $root.tendermint.abci.BlockParams.verify(message.block); - if (error) - return "block." + error; - } - if (message.evidence != null && message.hasOwnProperty("evidence")) { - var error = $root.tendermint.types.EvidenceParams.verify(message.evidence); - if (error) - return "evidence." + error; - } - if (message.validator != null && message.hasOwnProperty("validator")) { - var error = $root.tendermint.types.ValidatorParams.verify(message.validator); - if (error) - return "validator." + error; - } - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.tendermint.types.VersionParams.verify(message.version); + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.log != null && message.hasOwnProperty("log")) + if (!$util.isString(message.log)) + return "log: string expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index) && !(message.index && $util.isInteger(message.index.low) && $util.isInteger(message.index.high))) + return "index: integer|Long 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.proof_ops != null && message.hasOwnProperty("proof_ops")) { + var error = $root.tendermint.crypto.ProofOps.verify(message.proof_ops); if (error) - return "version." + error; + return "proof_ops." + 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.codespace != null && message.hasOwnProperty("codespace")) + if (!$util.isString(message.codespace)) + return "codespace: string expected"; return null; }; /** - * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ConsensusParams} ConsensusParams + * @returns {tendermint.abci.ResponseQuery} ResponseQuery */ - ConsensusParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ConsensusParams) + ResponseQuery.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseQuery) return object; - var message = new $root.tendermint.abci.ConsensusParams(); - if (object.block != null) { - if (typeof object.block !== "object") - throw TypeError(".tendermint.abci.ConsensusParams.block: object expected"); - message.block = $root.tendermint.abci.BlockParams.fromObject(object.block); - } - if (object.evidence != null) { - if (typeof object.evidence !== "object") - throw TypeError(".tendermint.abci.ConsensusParams.evidence: object expected"); - message.evidence = $root.tendermint.types.EvidenceParams.fromObject(object.evidence); - } - if (object.validator != null) { - if (typeof object.validator !== "object") - throw TypeError(".tendermint.abci.ConsensusParams.validator: object expected"); - message.validator = $root.tendermint.types.ValidatorParams.fromObject(object.validator); - } - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".tendermint.abci.ConsensusParams.version: object expected"); - message.version = $root.tendermint.types.VersionParams.fromObject(object.version); + var message = new $root.tendermint.abci.ResponseQuery(); + if (object.code != null) + message.code = object.code >>> 0; + if (object.log != null) + message.log = String(object.log); + if (object.info != null) + message.info = String(object.info); + if (object.index != null) + if ($util.Long) + (message.index = $util.Long.fromValue(object.index)).unsigned = false; + else if (typeof object.index === "string") + message.index = parseInt(object.index, 10); + else if (typeof object.index === "number") + message.index = object.index; + else if (typeof object.index === "object") + message.index = new $util.LongBits(object.index.low >>> 0, object.index.high >>> 0).toNumber(); + 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.proof_ops != null) { + if (typeof object.proof_ops !== "object") + throw TypeError(".tendermint.abci.ResponseQuery.proof_ops: object expected"); + message.proof_ops = $root.tendermint.crypto.ProofOps.fromObject(object.proof_ops); } + 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.codespace != null) + message.codespace = String(object.codespace); return message; }; /** - * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * Creates a plain object from a ResponseQuery message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @static - * @param {tendermint.abci.ConsensusParams} message ConsensusParams + * @param {tendermint.abci.ResponseQuery} message ResponseQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusParams.toObject = function toObject(message, options) { + ResponseQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.block = null; - object.evidence = null; - object.validator = null; - object.version = null; + object.code = 0; + object.log = ""; + object.info = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.index = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.index = options.longs === String ? "0" : 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.proof_ops = 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.codespace = ""; } - if (message.block != null && message.hasOwnProperty("block")) - object.block = $root.tendermint.abci.BlockParams.toObject(message.block, options); - if (message.evidence != null && message.hasOwnProperty("evidence")) - object.evidence = $root.tendermint.types.EvidenceParams.toObject(message.evidence, options); - if (message.validator != null && message.hasOwnProperty("validator")) - object.validator = $root.tendermint.types.ValidatorParams.toObject(message.validator, options); - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.tendermint.types.VersionParams.toObject(message.version, options); + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.log != null && message.hasOwnProperty("log")) + object.log = message.log; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.index != null && message.hasOwnProperty("index")) + if (typeof message.index === "number") + object.index = options.longs === String ? String(message.index) : message.index; + else + object.index = options.longs === String ? $util.Long.prototype.toString.call(message.index) : options.longs === Number ? new $util.LongBits(message.index.low >>> 0, message.index.high >>> 0).toNumber() : message.index; + 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.proof_ops != null && message.hasOwnProperty("proof_ops")) + object.proof_ops = $root.tendermint.crypto.ProofOps.toObject(message.proof_ops, 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.codespace != null && message.hasOwnProperty("codespace")) + object.codespace = message.codespace; return object; }; /** - * Converts this ConsensusParams to JSON. + * Converts this ResponseQuery to JSON. * @function toJSON - * @memberof tendermint.abci.ConsensusParams + * @memberof tendermint.abci.ResponseQuery * @instance * @returns {Object.} JSON object */ - ConsensusParams.prototype.toJSON = function toJSON() { + ResponseQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusParams; + return ResponseQuery; })(); - abci.BlockParams = (function() { + abci.ResponseBeginBlock = (function() { /** - * Properties of a BlockParams. + * Properties of a ResponseBeginBlock. * @memberof tendermint.abci - * @interface IBlockParams - * @property {Long|null} [max_bytes] BlockParams max_bytes - * @property {Long|null} [max_gas] BlockParams max_gas + * @interface IResponseBeginBlock + * @property {Array.|null} [events] ResponseBeginBlock events */ /** - * Constructs a new BlockParams. + * Constructs a new ResponseBeginBlock. * @memberof tendermint.abci - * @classdesc Represents a BlockParams. - * @implements IBlockParams + * @classdesc Represents a ResponseBeginBlock. + * @implements IResponseBeginBlock * @constructor - * @param {tendermint.abci.IBlockParams=} [properties] Properties to set + * @param {tendermint.abci.IResponseBeginBlock=} [properties] Properties to set */ - function BlockParams(properties) { + function ResponseBeginBlock(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29537,76 +37786,66 @@ } /** - * BlockParams max_bytes. - * @member {Long} max_bytes - * @memberof tendermint.abci.BlockParams - * @instance - */ - BlockParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BlockParams max_gas. - * @member {Long} max_gas - * @memberof tendermint.abci.BlockParams + * ResponseBeginBlock events. + * @member {Array.} events + * @memberof tendermint.abci.ResponseBeginBlock * @instance */ - BlockParams.prototype.max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseBeginBlock.prototype.events = $util.emptyArray; /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. * @function encode - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static - * @param {tendermint.abci.IBlockParams} message BlockParams message or plain object to encode + * @param {tendermint.abci.IResponseBeginBlock} message ResponseBeginBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockParams.encode = function encode(message, writer) { + ResponseBeginBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_bytes); - if (message.max_gas != null && Object.hasOwnProperty.call(message, "max_gas")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.max_gas); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * Encodes the specified ResponseBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static - * @param {tendermint.abci.IBlockParams} message BlockParams message or plain object to encode + * @param {tendermint.abci.IResponseBeginBlock} message ResponseBeginBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockParams.encodeDelimited = function encodeDelimited(message, writer) { + ResponseBeginBlock.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BlockParams message from the specified reader or buffer. + * Decodes a ResponseBeginBlock message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.BlockParams} BlockParams + * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockParams.decode = function decode(reader, length) { + ResponseBeginBlock.decode = 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.abci.BlockParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseBeginBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_bytes = reader.int64(); - break; - case 2: - message.max_gas = reader.int64(); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -29617,146 +37856,132 @@ }; /** - * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * Decodes a ResponseBeginBlock message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.BlockParams} BlockParams + * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockParams.decodeDelimited = function decodeDelimited(reader) { + ResponseBeginBlock.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BlockParams message. + * Verifies a ResponseBeginBlock message. * @function verify - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BlockParams.verify = function verify(message) { + ResponseBeginBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) - return "max_bytes: integer|Long expected"; - if (message.max_gas != null && message.hasOwnProperty("max_gas")) - if (!$util.isInteger(message.max_gas) && !(message.max_gas && $util.isInteger(message.max_gas.low) && $util.isInteger(message.max_gas.high))) - return "max_gas: integer|Long expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.tendermint.abci.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseBeginBlock message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.BlockParams} BlockParams + * @returns {tendermint.abci.ResponseBeginBlock} ResponseBeginBlock */ - BlockParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.BlockParams) + ResponseBeginBlock.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseBeginBlock) return object; - var message = new $root.tendermint.abci.BlockParams(); - if (object.max_bytes != null) - if ($util.Long) - (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; - else if (typeof object.max_bytes === "string") - message.max_bytes = parseInt(object.max_bytes, 10); - else if (typeof object.max_bytes === "number") - message.max_bytes = object.max_bytes; - else if (typeof object.max_bytes === "object") - message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); - if (object.max_gas != null) - if ($util.Long) - (message.max_gas = $util.Long.fromValue(object.max_gas)).unsigned = false; - else if (typeof object.max_gas === "string") - message.max_gas = parseInt(object.max_gas, 10); - else if (typeof object.max_gas === "number") - message.max_gas = object.max_gas; - else if (typeof object.max_gas === "object") - message.max_gas = new $util.LongBits(object.max_gas.low >>> 0, object.max_gas.high >>> 0).toNumber(); + var message = new $root.tendermint.abci.ResponseBeginBlock(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".tendermint.abci.ResponseBeginBlock.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".tendermint.abci.ResponseBeginBlock.events: object expected"); + message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * Creates a plain object from a ResponseBeginBlock message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @static - * @param {tendermint.abci.BlockParams} message BlockParams + * @param {tendermint.abci.ResponseBeginBlock} message ResponseBeginBlock * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BlockParams.toObject = function toObject(message, options) { + ResponseBeginBlock.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.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_bytes = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_gas = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); } - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (typeof message.max_bytes === "number") - object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; - else - object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; - if (message.max_gas != null && message.hasOwnProperty("max_gas")) - if (typeof message.max_gas === "number") - object.max_gas = options.longs === String ? String(message.max_gas) : message.max_gas; - else - object.max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.max_gas) : options.longs === Number ? new $util.LongBits(message.max_gas.low >>> 0, message.max_gas.high >>> 0).toNumber() : message.max_gas; return object; }; /** - * Converts this BlockParams to JSON. + * Converts this ResponseBeginBlock to JSON. * @function toJSON - * @memberof tendermint.abci.BlockParams + * @memberof tendermint.abci.ResponseBeginBlock * @instance * @returns {Object.} JSON object */ - BlockParams.prototype.toJSON = function toJSON() { + ResponseBeginBlock.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BlockParams; + return ResponseBeginBlock; })(); - abci.LastCommitInfo = (function() { + abci.ResponseCheckTx = (function() { /** - * Properties of a LastCommitInfo. + * Properties of a ResponseCheckTx. * @memberof tendermint.abci - * @interface ILastCommitInfo - * @property {number|null} [round] LastCommitInfo round - * @property {Array.|null} [votes] LastCommitInfo votes + * @interface IResponseCheckTx + * @property {number|null} [code] ResponseCheckTx code + * @property {Uint8Array|null} [data] ResponseCheckTx data + * @property {string|null} [log] ResponseCheckTx log + * @property {string|null} [info] ResponseCheckTx info + * @property {Long|null} [gas_wanted] ResponseCheckTx gas_wanted + * @property {Long|null} [gas_used] ResponseCheckTx gas_used + * @property {Array.|null} [events] ResponseCheckTx events + * @property {string|null} [codespace] ResponseCheckTx codespace */ /** - * Constructs a new LastCommitInfo. + * Constructs a new ResponseCheckTx. * @memberof tendermint.abci - * @classdesc Represents a LastCommitInfo. - * @implements ILastCommitInfo + * @classdesc Represents a ResponseCheckTx. + * @implements IResponseCheckTx * @constructor - * @param {tendermint.abci.ILastCommitInfo=} [properties] Properties to set + * @param {tendermint.abci.IResponseCheckTx=} [properties] Properties to set */ - function LastCommitInfo(properties) { - this.votes = []; + function ResponseCheckTx(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29764,79 +37989,157 @@ } /** - * LastCommitInfo round. - * @member {number} round - * @memberof tendermint.abci.LastCommitInfo + * ResponseCheckTx code. + * @member {number} code + * @memberof tendermint.abci.ResponseCheckTx * @instance */ - LastCommitInfo.prototype.round = 0; + ResponseCheckTx.prototype.code = 0; /** - * LastCommitInfo votes. - * @member {Array.} votes - * @memberof tendermint.abci.LastCommitInfo + * ResponseCheckTx data. + * @member {Uint8Array} data + * @memberof tendermint.abci.ResponseCheckTx * @instance */ - LastCommitInfo.prototype.votes = $util.emptyArray; + ResponseCheckTx.prototype.data = $util.newBuffer([]); /** - * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * ResponseCheckTx log. + * @member {string} log + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.log = ""; + + /** + * ResponseCheckTx info. + * @member {string} info + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.info = ""; + + /** + * ResponseCheckTx gas_wanted. + * @member {Long} gas_wanted + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.gas_wanted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ResponseCheckTx gas_used. + * @member {Long} gas_used + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.gas_used = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ResponseCheckTx events. + * @member {Array.} events + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.events = $util.emptyArray; + + /** + * ResponseCheckTx codespace. + * @member {string} codespace + * @memberof tendermint.abci.ResponseCheckTx + * @instance + */ + ResponseCheckTx.prototype.codespace = ""; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. * @function encode - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static - * @param {tendermint.abci.ILastCommitInfo} message LastCommitInfo message or plain object to encode + * @param {tendermint.abci.IResponseCheckTx} message ResponseCheckTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LastCommitInfo.encode = function encode(message, writer) { + ResponseCheckTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.round != null && Object.hasOwnProperty.call(message, "round")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.round); - if (message.votes != null && message.votes.length) - for (var i = 0; i < message.votes.length; ++i) - $root.tendermint.abci.VoteInfo.encode(message.votes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.log != null && Object.hasOwnProperty.call(message, "log")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); + if (message.gas_wanted != null && Object.hasOwnProperty.call(message, "gas_wanted")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gas_wanted); + if (message.gas_used != null && Object.hasOwnProperty.call(message, "gas_used")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.gas_used); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.codespace); return writer; }; /** - * Encodes the specified LastCommitInfo message, length delimited. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * Encodes the specified ResponseCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static - * @param {tendermint.abci.ILastCommitInfo} message LastCommitInfo message or plain object to encode + * @param {tendermint.abci.IResponseCheckTx} message ResponseCheckTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LastCommitInfo.encodeDelimited = function encodeDelimited(message, writer) { + ResponseCheckTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LastCommitInfo message from the specified reader or buffer. + * Decodes a ResponseCheckTx message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo + * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LastCommitInfo.decode = function decode(reader, length) { + ResponseCheckTx.decode = 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.abci.LastCommitInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseCheckTx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.round = reader.int32(); + message.code = reader.uint32(); break; case 2: - if (!(message.votes && message.votes.length)) - message.votes = []; - message.votes.push($root.tendermint.abci.VoteInfo.decode(reader, reader.uint32())); + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gas_wanted = reader.int64(); + break; + case 6: + message.gas_used = reader.int64(); + break; + case 7: + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); break; default: reader.skipType(tag & 7); @@ -29847,215 +38150,385 @@ }; /** - * Decodes a LastCommitInfo message from the specified reader or buffer, length delimited. + * Decodes a ResponseCheckTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo + * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LastCommitInfo.decodeDelimited = function decodeDelimited(reader) { + ResponseCheckTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LastCommitInfo message. + * Verifies a ResponseCheckTx message. * @function verify - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LastCommitInfo.verify = function verify(message) { + ResponseCheckTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.round != null && message.hasOwnProperty("round")) - if (!$util.isInteger(message.round)) - return "round: integer expected"; - if (message.votes != null && message.hasOwnProperty("votes")) { - if (!Array.isArray(message.votes)) - return "votes: array expected"; - for (var i = 0; i < message.votes.length; ++i) { - var error = $root.tendermint.abci.VoteInfo.verify(message.votes[i]); + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer 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.log != null && message.hasOwnProperty("log")) + if (!$util.isString(message.log)) + return "log: string expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) + if (!$util.isInteger(message.gas_wanted) && !(message.gas_wanted && $util.isInteger(message.gas_wanted.low) && $util.isInteger(message.gas_wanted.high))) + return "gas_wanted: integer|Long expected"; + if (message.gas_used != null && message.hasOwnProperty("gas_used")) + if (!$util.isInteger(message.gas_used) && !(message.gas_used && $util.isInteger(message.gas_used.low) && $util.isInteger(message.gas_used.high))) + return "gas_used: integer|Long expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.tendermint.abci.Event.verify(message.events[i]); if (error) - return "votes." + error; + return "events." + error; } } + if (message.codespace != null && message.hasOwnProperty("codespace")) + if (!$util.isString(message.codespace)) + return "codespace: string expected"; return null; }; /** - * Creates a LastCommitInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseCheckTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo + * @returns {tendermint.abci.ResponseCheckTx} ResponseCheckTx */ - LastCommitInfo.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.LastCommitInfo) + ResponseCheckTx.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseCheckTx) return object; - var message = new $root.tendermint.abci.LastCommitInfo(); - if (object.round != null) - message.round = object.round | 0; - if (object.votes) { - if (!Array.isArray(object.votes)) - throw TypeError(".tendermint.abci.LastCommitInfo.votes: array expected"); - message.votes = []; - for (var i = 0; i < object.votes.length; ++i) { - if (typeof object.votes[i] !== "object") - throw TypeError(".tendermint.abci.LastCommitInfo.votes: object expected"); - message.votes[i] = $root.tendermint.abci.VoteInfo.fromObject(object.votes[i]); + var message = new $root.tendermint.abci.ResponseCheckTx(); + if (object.code != null) + message.code = object.code >>> 0; + 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.log != null) + message.log = String(object.log); + if (object.info != null) + message.info = String(object.info); + if (object.gas_wanted != null) + if ($util.Long) + (message.gas_wanted = $util.Long.fromValue(object.gas_wanted)).unsigned = false; + else if (typeof object.gas_wanted === "string") + message.gas_wanted = parseInt(object.gas_wanted, 10); + else if (typeof object.gas_wanted === "number") + message.gas_wanted = object.gas_wanted; + else if (typeof object.gas_wanted === "object") + message.gas_wanted = new $util.LongBits(object.gas_wanted.low >>> 0, object.gas_wanted.high >>> 0).toNumber(); + if (object.gas_used != null) + if ($util.Long) + (message.gas_used = $util.Long.fromValue(object.gas_used)).unsigned = false; + else if (typeof object.gas_used === "string") + message.gas_used = parseInt(object.gas_used, 10); + else if (typeof object.gas_used === "number") + message.gas_used = object.gas_used; + else if (typeof object.gas_used === "object") + message.gas_used = new $util.LongBits(object.gas_used.low >>> 0, object.gas_used.high >>> 0).toNumber(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".tendermint.abci.ResponseCheckTx.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".tendermint.abci.ResponseCheckTx.events: object expected"); + message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); } } + if (object.codespace != null) + message.codespace = String(object.codespace); return message; }; /** - * Creates a plain object from a LastCommitInfo message. Also converts values to other types if specified. + * Creates a plain object from a ResponseCheckTx message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.LastCommitInfo + * @memberof tendermint.abci.ResponseCheckTx * @static - * @param {tendermint.abci.LastCommitInfo} message LastCommitInfo + * @param {tendermint.abci.ResponseCheckTx} message ResponseCheckTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LastCommitInfo.toObject = function toObject(message, options) { + ResponseCheckTx.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.votes = []; - if (options.defaults) - object.round = 0; - if (message.round != null && message.hasOwnProperty("round")) - object.round = message.round; - if (message.votes && message.votes.length) { - object.votes = []; - for (var j = 0; j < message.votes.length; ++j) - object.votes[j] = $root.tendermint.abci.VoteInfo.toObject(message.votes[j], options); + object.events = []; + if (options.defaults) { + object.code = 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.log = ""; + object.info = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gas_wanted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gas_wanted = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gas_used = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gas_used = options.longs === String ? "0" : 0; + object.codespace = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + 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.log != null && message.hasOwnProperty("log")) + object.log = message.log; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) + if (typeof message.gas_wanted === "number") + object.gas_wanted = options.longs === String ? String(message.gas_wanted) : message.gas_wanted; + else + object.gas_wanted = options.longs === String ? $util.Long.prototype.toString.call(message.gas_wanted) : options.longs === Number ? new $util.LongBits(message.gas_wanted.low >>> 0, message.gas_wanted.high >>> 0).toNumber() : message.gas_wanted; + if (message.gas_used != null && message.hasOwnProperty("gas_used")) + if (typeof message.gas_used === "number") + object.gas_used = options.longs === String ? String(message.gas_used) : message.gas_used; + else + object.gas_used = options.longs === String ? $util.Long.prototype.toString.call(message.gas_used) : options.longs === Number ? new $util.LongBits(message.gas_used.low >>> 0, message.gas_used.high >>> 0).toNumber() : message.gas_used; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); } + if (message.codespace != null && message.hasOwnProperty("codespace")) + object.codespace = message.codespace; return object; }; /** - * Converts this LastCommitInfo to JSON. - * @function toJSON - * @memberof tendermint.abci.LastCommitInfo + * Converts this ResponseCheckTx to JSON. + * @function toJSON + * @memberof tendermint.abci.ResponseCheckTx + * @instance + * @returns {Object.} JSON object + */ + ResponseCheckTx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ResponseCheckTx; + })(); + + abci.ResponseDeliverTx = (function() { + + /** + * Properties of a ResponseDeliverTx. + * @memberof tendermint.abci + * @interface IResponseDeliverTx + * @property {number|null} [code] ResponseDeliverTx code + * @property {Uint8Array|null} [data] ResponseDeliverTx data + * @property {string|null} [log] ResponseDeliverTx log + * @property {string|null} [info] ResponseDeliverTx info + * @property {Long|null} [gas_wanted] ResponseDeliverTx gas_wanted + * @property {Long|null} [gas_used] ResponseDeliverTx gas_used + * @property {Array.|null} [events] ResponseDeliverTx events + * @property {string|null} [codespace] ResponseDeliverTx codespace + */ + + /** + * Constructs a new ResponseDeliverTx. + * @memberof tendermint.abci + * @classdesc Represents a ResponseDeliverTx. + * @implements IResponseDeliverTx + * @constructor + * @param {tendermint.abci.IResponseDeliverTx=} [properties] Properties to set + */ + function ResponseDeliverTx(properties) { + this.events = []; + 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]]; + } + + /** + * ResponseDeliverTx code. + * @member {number} code + * @memberof tendermint.abci.ResponseDeliverTx + * @instance + */ + ResponseDeliverTx.prototype.code = 0; + + /** + * ResponseDeliverTx data. + * @member {Uint8Array} data + * @memberof tendermint.abci.ResponseDeliverTx + * @instance + */ + ResponseDeliverTx.prototype.data = $util.newBuffer([]); + + /** + * ResponseDeliverTx log. + * @member {string} log + * @memberof tendermint.abci.ResponseDeliverTx * @instance - * @returns {Object.} JSON object */ - LastCommitInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return LastCommitInfo; - })(); + ResponseDeliverTx.prototype.log = ""; - abci.Event = (function() { + /** + * ResponseDeliverTx info. + * @member {string} info + * @memberof tendermint.abci.ResponseDeliverTx + * @instance + */ + ResponseDeliverTx.prototype.info = ""; /** - * Properties of an Event. - * @memberof tendermint.abci - * @interface IEvent - * @property {string|null} [type] Event type - * @property {Array.|null} [attributes] Event attributes + * ResponseDeliverTx gas_wanted. + * @member {Long} gas_wanted + * @memberof tendermint.abci.ResponseDeliverTx + * @instance */ + ResponseDeliverTx.prototype.gas_wanted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Constructs a new Event. - * @memberof tendermint.abci - * @classdesc Represents an Event. - * @implements IEvent - * @constructor - * @param {tendermint.abci.IEvent=} [properties] Properties to set + * ResponseDeliverTx gas_used. + * @member {Long} gas_used + * @memberof tendermint.abci.ResponseDeliverTx + * @instance */ - function Event(properties) { - this.attributes = []; - 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]]; - } + ResponseDeliverTx.prototype.gas_used = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Event type. - * @member {string} type - * @memberof tendermint.abci.Event + * ResponseDeliverTx events. + * @member {Array.} events + * @memberof tendermint.abci.ResponseDeliverTx * @instance */ - Event.prototype.type = ""; + ResponseDeliverTx.prototype.events = $util.emptyArray; /** - * Event attributes. - * @member {Array.} attributes - * @memberof tendermint.abci.Event + * ResponseDeliverTx codespace. + * @member {string} codespace + * @memberof tendermint.abci.ResponseDeliverTx * @instance */ - Event.prototype.attributes = $util.emptyArray; + ResponseDeliverTx.prototype.codespace = ""; /** - * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. * @function encode - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static - * @param {tendermint.abci.IEvent} message Event message or plain object to encode + * @param {tendermint.abci.IResponseDeliverTx} message ResponseDeliverTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encode = function encode(message, writer) { + ResponseDeliverTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.attributes != null && message.attributes.length) - for (var i = 0; i < message.attributes.length; ++i) - $root.tendermint.abci.EventAttribute.encode(message.attributes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.log != null && Object.hasOwnProperty.call(message, "log")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.log); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); + if (message.gas_wanted != null && Object.hasOwnProperty.call(message, "gas_wanted")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.gas_wanted); + if (message.gas_used != null && Object.hasOwnProperty.call(message, "gas_used")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.gas_used); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.codespace != null && Object.hasOwnProperty.call(message, "codespace")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.codespace); return writer; }; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * Encodes the specified ResponseDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static - * @param {tendermint.abci.IEvent} message Event message or plain object to encode + * @param {tendermint.abci.IResponseDeliverTx} message ResponseDeliverTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + ResponseDeliverTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a ResponseDeliverTx message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Event} Event + * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decode = function decode(reader, length) { + ResponseDeliverTx.decode = 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.abci.Event(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseDeliverTx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.string(); + message.code = reader.uint32(); break; case 2: - if (!(message.attributes && message.attributes.length)) - message.attributes = []; - message.attributes.push($root.tendermint.abci.EventAttribute.decode(reader, reader.uint32())); + message.data = reader.bytes(); + break; + case 3: + message.log = reader.string(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.gas_wanted = reader.int64(); + break; + case 6: + message.gas_used = reader.int64(); + break; + case 7: + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); + break; + case 8: + message.codespace = reader.string(); break; default: reader.skipType(tag & 7); @@ -30066,135 +38539,223 @@ }; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a ResponseDeliverTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Event} Event + * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decodeDelimited = function decodeDelimited(reader) { + ResponseDeliverTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies a ResponseDeliverTx message. * @function verify - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Event.verify = function verify(message) { + ResponseDeliverTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - if (!Array.isArray(message.attributes)) - return "attributes: array expected"; - for (var i = 0; i < message.attributes.length; ++i) { - var error = $root.tendermint.abci.EventAttribute.verify(message.attributes[i]); + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer 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.log != null && message.hasOwnProperty("log")) + if (!$util.isString(message.log)) + return "log: string expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) + if (!$util.isInteger(message.gas_wanted) && !(message.gas_wanted && $util.isInteger(message.gas_wanted.low) && $util.isInteger(message.gas_wanted.high))) + return "gas_wanted: integer|Long expected"; + if (message.gas_used != null && message.hasOwnProperty("gas_used")) + if (!$util.isInteger(message.gas_used) && !(message.gas_used && $util.isInteger(message.gas_used.low) && $util.isInteger(message.gas_used.high))) + return "gas_used: integer|Long expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.tendermint.abci.Event.verify(message.events[i]); if (error) - return "attributes." + error; + return "events." + error; } } + if (message.codespace != null && message.hasOwnProperty("codespace")) + if (!$util.isString(message.codespace)) + return "codespace: string expected"; return null; }; /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseDeliverTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.Event} Event + * @returns {tendermint.abci.ResponseDeliverTx} ResponseDeliverTx */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Event) + ResponseDeliverTx.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseDeliverTx) return object; - var message = new $root.tendermint.abci.Event(); - if (object.type != null) - message.type = String(object.type); - if (object.attributes) { - if (!Array.isArray(object.attributes)) - throw TypeError(".tendermint.abci.Event.attributes: array expected"); - message.attributes = []; - for (var i = 0; i < object.attributes.length; ++i) { - if (typeof object.attributes[i] !== "object") - throw TypeError(".tendermint.abci.Event.attributes: object expected"); - message.attributes[i] = $root.tendermint.abci.EventAttribute.fromObject(object.attributes[i]); + var message = new $root.tendermint.abci.ResponseDeliverTx(); + if (object.code != null) + message.code = object.code >>> 0; + 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.log != null) + message.log = String(object.log); + if (object.info != null) + message.info = String(object.info); + if (object.gas_wanted != null) + if ($util.Long) + (message.gas_wanted = $util.Long.fromValue(object.gas_wanted)).unsigned = false; + else if (typeof object.gas_wanted === "string") + message.gas_wanted = parseInt(object.gas_wanted, 10); + else if (typeof object.gas_wanted === "number") + message.gas_wanted = object.gas_wanted; + else if (typeof object.gas_wanted === "object") + message.gas_wanted = new $util.LongBits(object.gas_wanted.low >>> 0, object.gas_wanted.high >>> 0).toNumber(); + if (object.gas_used != null) + if ($util.Long) + (message.gas_used = $util.Long.fromValue(object.gas_used)).unsigned = false; + else if (typeof object.gas_used === "string") + message.gas_used = parseInt(object.gas_used, 10); + else if (typeof object.gas_used === "number") + message.gas_used = object.gas_used; + else if (typeof object.gas_used === "object") + message.gas_used = new $util.LongBits(object.gas_used.low >>> 0, object.gas_used.high >>> 0).toNumber(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".tendermint.abci.ResponseDeliverTx.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".tendermint.abci.ResponseDeliverTx.events: object expected"); + message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); } } + if (object.codespace != null) + message.codespace = String(object.codespace); return message; }; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. + * Creates a plain object from a ResponseDeliverTx message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @static - * @param {tendermint.abci.Event} message Event + * @param {tendermint.abci.ResponseDeliverTx} message ResponseDeliverTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + ResponseDeliverTx.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.attributes = []; - if (options.defaults) - object.type = ""; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.attributes && message.attributes.length) { - object.attributes = []; - for (var j = 0; j < message.attributes.length; ++j) - object.attributes[j] = $root.tendermint.abci.EventAttribute.toObject(message.attributes[j], options); + object.events = []; + if (options.defaults) { + object.code = 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.log = ""; + object.info = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gas_wanted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gas_wanted = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.gas_used = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.gas_used = options.longs === String ? "0" : 0; + object.codespace = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + 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.log != null && message.hasOwnProperty("log")) + object.log = message.log; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.gas_wanted != null && message.hasOwnProperty("gas_wanted")) + if (typeof message.gas_wanted === "number") + object.gas_wanted = options.longs === String ? String(message.gas_wanted) : message.gas_wanted; + else + object.gas_wanted = options.longs === String ? $util.Long.prototype.toString.call(message.gas_wanted) : options.longs === Number ? new $util.LongBits(message.gas_wanted.low >>> 0, message.gas_wanted.high >>> 0).toNumber() : message.gas_wanted; + if (message.gas_used != null && message.hasOwnProperty("gas_used")) + if (typeof message.gas_used === "number") + object.gas_used = options.longs === String ? String(message.gas_used) : message.gas_used; + else + object.gas_used = options.longs === String ? $util.Long.prototype.toString.call(message.gas_used) : options.longs === Number ? new $util.LongBits(message.gas_used.low >>> 0, message.gas_used.high >>> 0).toNumber() : message.gas_used; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); } + if (message.codespace != null && message.hasOwnProperty("codespace")) + object.codespace = message.codespace; return object; }; /** - * Converts this Event to JSON. + * Converts this ResponseDeliverTx to JSON. * @function toJSON - * @memberof tendermint.abci.Event + * @memberof tendermint.abci.ResponseDeliverTx * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + ResponseDeliverTx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Event; + return ResponseDeliverTx; })(); - abci.EventAttribute = (function() { + abci.ResponseEndBlock = (function() { /** - * Properties of an EventAttribute. + * Properties of a ResponseEndBlock. * @memberof tendermint.abci - * @interface IEventAttribute - * @property {Uint8Array|null} [key] EventAttribute key - * @property {Uint8Array|null} [value] EventAttribute value - * @property {boolean|null} [index] EventAttribute index + * @interface IResponseEndBlock + * @property {Array.|null} [validator_updates] ResponseEndBlock validator_updates + * @property {tendermint.abci.IConsensusParams|null} [consensus_param_updates] ResponseEndBlock consensus_param_updates + * @property {Array.|null} [events] ResponseEndBlock events */ /** - * Constructs a new EventAttribute. + * Constructs a new ResponseEndBlock. * @memberof tendermint.abci - * @classdesc Represents an EventAttribute. - * @implements IEventAttribute + * @classdesc Represents a ResponseEndBlock. + * @implements IResponseEndBlock * @constructor - * @param {tendermint.abci.IEventAttribute=} [properties] Properties to set + * @param {tendermint.abci.IResponseEndBlock=} [properties] Properties to set */ - function EventAttribute(properties) { + function ResponseEndBlock(properties) { + this.validator_updates = []; + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30202,89 +38763,95 @@ } /** - * EventAttribute key. - * @member {Uint8Array} key - * @memberof tendermint.abci.EventAttribute + * ResponseEndBlock validator_updates. + * @member {Array.} validator_updates + * @memberof tendermint.abci.ResponseEndBlock * @instance */ - EventAttribute.prototype.key = $util.newBuffer([]); + ResponseEndBlock.prototype.validator_updates = $util.emptyArray; /** - * EventAttribute value. - * @member {Uint8Array} value - * @memberof tendermint.abci.EventAttribute + * ResponseEndBlock consensus_param_updates. + * @member {tendermint.abci.IConsensusParams|null|undefined} consensus_param_updates + * @memberof tendermint.abci.ResponseEndBlock * @instance */ - EventAttribute.prototype.value = $util.newBuffer([]); + ResponseEndBlock.prototype.consensus_param_updates = null; /** - * EventAttribute index. - * @member {boolean} index - * @memberof tendermint.abci.EventAttribute + * ResponseEndBlock events. + * @member {Array.} events + * @memberof tendermint.abci.ResponseEndBlock * @instance */ - EventAttribute.prototype.index = false; + ResponseEndBlock.prototype.events = $util.emptyArray; /** - * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. * @function encode - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static - * @param {tendermint.abci.IEventAttribute} message EventAttribute message or plain object to encode + * @param {tendermint.abci.IResponseEndBlock} message ResponseEndBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventAttribute.encode = function encode(message, writer) { + ResponseEndBlock.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.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.index); + if (message.validator_updates != null && message.validator_updates.length) + for (var i = 0; i < message.validator_updates.length; ++i) + $root.tendermint.abci.ValidatorUpdate.encode(message.validator_updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.consensus_param_updates != null && Object.hasOwnProperty.call(message, "consensus_param_updates")) + $root.tendermint.abci.ConsensusParams.encode(message.consensus_param_updates, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.tendermint.abci.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EventAttribute message, length delimited. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * Encodes the specified ResponseEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static - * @param {tendermint.abci.IEventAttribute} message EventAttribute message or plain object to encode + * @param {tendermint.abci.IResponseEndBlock} message ResponseEndBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventAttribute.encodeDelimited = function encodeDelimited(message, writer) { + ResponseEndBlock.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventAttribute message from the specified reader or buffer. + * Decodes a ResponseEndBlock message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.EventAttribute} EventAttribute + * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventAttribute.decode = function decode(reader, length) { + ResponseEndBlock.decode = 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.abci.EventAttribute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseEndBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key = reader.bytes(); + if (!(message.validator_updates && message.validator_updates.length)) + message.validator_updates = []; + message.validator_updates.push($root.tendermint.abci.ValidatorUpdate.decode(reader, reader.uint32())); break; case 2: - message.value = reader.bytes(); + message.consensus_param_updates = $root.tendermint.abci.ConsensusParams.decode(reader, reader.uint32()); break; case 3: - message.index = reader.bool(); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.tendermint.abci.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -30295,145 +38862,165 @@ }; /** - * Decodes an EventAttribute message from the specified reader or buffer, length delimited. + * Decodes a ResponseEndBlock message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.EventAttribute} EventAttribute + * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventAttribute.decodeDelimited = function decodeDelimited(reader) { + ResponseEndBlock.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventAttribute message. + * Verifies a ResponseEndBlock message. * @function verify - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventAttribute.verify = function verify(message) { + ResponseEndBlock.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.index != null && message.hasOwnProperty("index")) - if (typeof message.index !== "boolean") - return "index: boolean expected"; + if (message.validator_updates != null && message.hasOwnProperty("validator_updates")) { + if (!Array.isArray(message.validator_updates)) + return "validator_updates: array expected"; + for (var i = 0; i < message.validator_updates.length; ++i) { + var error = $root.tendermint.abci.ValidatorUpdate.verify(message.validator_updates[i]); + if (error) + return "validator_updates." + error; + } + } + if (message.consensus_param_updates != null && message.hasOwnProperty("consensus_param_updates")) { + var error = $root.tendermint.abci.ConsensusParams.verify(message.consensus_param_updates); + if (error) + return "consensus_param_updates." + error; + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.tendermint.abci.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates an EventAttribute message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseEndBlock message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.EventAttribute} EventAttribute + * @returns {tendermint.abci.ResponseEndBlock} ResponseEndBlock */ - EventAttribute.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.EventAttribute) + ResponseEndBlock.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseEndBlock) return object; - var message = new $root.tendermint.abci.EventAttribute(); - 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.index != null) - message.index = Boolean(object.index); + var message = new $root.tendermint.abci.ResponseEndBlock(); + if (object.validator_updates) { + if (!Array.isArray(object.validator_updates)) + throw TypeError(".tendermint.abci.ResponseEndBlock.validator_updates: array expected"); + message.validator_updates = []; + for (var i = 0; i < object.validator_updates.length; ++i) { + if (typeof object.validator_updates[i] !== "object") + throw TypeError(".tendermint.abci.ResponseEndBlock.validator_updates: object expected"); + message.validator_updates[i] = $root.tendermint.abci.ValidatorUpdate.fromObject(object.validator_updates[i]); + } + } + if (object.consensus_param_updates != null) { + if (typeof object.consensus_param_updates !== "object") + throw TypeError(".tendermint.abci.ResponseEndBlock.consensus_param_updates: object expected"); + message.consensus_param_updates = $root.tendermint.abci.ConsensusParams.fromObject(object.consensus_param_updates); + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".tendermint.abci.ResponseEndBlock.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".tendermint.abci.ResponseEndBlock.events: object expected"); + message.events[i] = $root.tendermint.abci.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from an EventAttribute message. Also converts values to other types if specified. + * Creates a plain object from a ResponseEndBlock message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @static - * @param {tendermint.abci.EventAttribute} message EventAttribute + * @param {tendermint.abci.ResponseEndBlock} message ResponseEndBlock * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventAttribute.toObject = function toObject(message, options) { + ResponseEndBlock.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 (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.index = false; + if (options.arrays || options.defaults) { + object.validator_updates = []; + object.events = []; + } + if (options.defaults) + object.consensus_param_updates = null; + if (message.validator_updates && message.validator_updates.length) { + object.validator_updates = []; + for (var j = 0; j < message.validator_updates.length; ++j) + object.validator_updates[j] = $root.tendermint.abci.ValidatorUpdate.toObject(message.validator_updates[j], options); + } + if (message.consensus_param_updates != null && message.hasOwnProperty("consensus_param_updates")) + object.consensus_param_updates = $root.tendermint.abci.ConsensusParams.toObject(message.consensus_param_updates, options); + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.tendermint.abci.Event.toObject(message.events[j], options); } - 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.index != null && message.hasOwnProperty("index")) - object.index = message.index; return object; }; /** - * Converts this EventAttribute to JSON. + * Converts this ResponseEndBlock to JSON. * @function toJSON - * @memberof tendermint.abci.EventAttribute + * @memberof tendermint.abci.ResponseEndBlock * @instance * @returns {Object.} JSON object */ - EventAttribute.prototype.toJSON = function toJSON() { + ResponseEndBlock.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EventAttribute; + return ResponseEndBlock; })(); - abci.TxResult = (function() { + abci.ResponseCommit = (function() { /** - * Properties of a TxResult. + * Properties of a ResponseCommit. * @memberof tendermint.abci - * @interface ITxResult - * @property {Long|null} [height] TxResult height - * @property {number|null} [index] TxResult index - * @property {Uint8Array|null} [tx] TxResult tx - * @property {tendermint.abci.IResponseDeliverTx|null} [result] TxResult result + * @interface IResponseCommit + * @property {Uint8Array|null} [data] ResponseCommit data + * @property {Long|null} [retain_height] ResponseCommit retain_height */ /** - * Constructs a new TxResult. + * Constructs a new ResponseCommit. * @memberof tendermint.abci - * @classdesc Represents a TxResult. - * @implements ITxResult + * @classdesc Represents a ResponseCommit. + * @implements IResponseCommit * @constructor - * @param {tendermint.abci.ITxResult=} [properties] Properties to set + * @param {tendermint.abci.IResponseCommit=} [properties] Properties to set */ - function TxResult(properties) { + function ResponseCommit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30441,102 +39028,76 @@ } /** - * TxResult height. - * @member {Long} height - * @memberof tendermint.abci.TxResult - * @instance - */ - TxResult.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * TxResult index. - * @member {number} index - * @memberof tendermint.abci.TxResult - * @instance - */ - TxResult.prototype.index = 0; - - /** - * TxResult tx. - * @member {Uint8Array} tx - * @memberof tendermint.abci.TxResult + * ResponseCommit data. + * @member {Uint8Array} data + * @memberof tendermint.abci.ResponseCommit * @instance */ - TxResult.prototype.tx = $util.newBuffer([]); + ResponseCommit.prototype.data = $util.newBuffer([]); /** - * TxResult result. - * @member {tendermint.abci.IResponseDeliverTx|null|undefined} result - * @memberof tendermint.abci.TxResult + * ResponseCommit retain_height. + * @member {Long} retain_height + * @memberof tendermint.abci.ResponseCommit * @instance */ - TxResult.prototype.result = null; + ResponseCommit.prototype.retain_height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. * @function encode - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static - * @param {tendermint.abci.ITxResult} message TxResult message or plain object to encode + * @param {tendermint.abci.IResponseCommit} message ResponseCommit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxResult.encode = function encode(message, writer) { + ResponseCommit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); - if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.tx); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.tendermint.abci.ResponseDeliverTx.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.retain_height != null && Object.hasOwnProperty.call(message, "retain_height")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.retain_height); return writer; }; /** - * Encodes the specified TxResult message, length delimited. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * Encodes the specified ResponseCommit message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static - * @param {tendermint.abci.ITxResult} message TxResult message or plain object to encode + * @param {tendermint.abci.IResponseCommit} message ResponseCommit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxResult.encodeDelimited = function encodeDelimited(message, writer) { + ResponseCommit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TxResult message from the specified reader or buffer. + * Decodes a ResponseCommit message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.TxResult} TxResult + * @returns {tendermint.abci.ResponseCommit} ResponseCommit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxResult.decode = function decode(reader, length) { + ResponseCommit.decode = 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.abci.TxResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseCommit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.height = reader.int64(); - break; case 2: - message.index = reader.uint32(); + message.data = reader.bytes(); break; case 3: - message.tx = reader.bytes(); - break; - case 4: - message.result = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); + message.retain_height = reader.int64(); break; default: reader.skipType(tag & 7); @@ -30547,161 +39108,140 @@ }; /** - * Decodes a TxResult message from the specified reader or buffer, length delimited. + * Decodes a ResponseCommit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.TxResult} TxResult + * @returns {tendermint.abci.ResponseCommit} ResponseCommit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxResult.decodeDelimited = function decodeDelimited(reader) { + ResponseCommit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TxResult message. + * Verifies a ResponseCommit message. * @function verify - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TxResult.verify = function verify(message) { + ResponseCommit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.tx != null && message.hasOwnProperty("tx")) - if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) - return "tx: buffer expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.result); - if (error) - return "result." + error; - } + 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.retain_height != null && message.hasOwnProperty("retain_height")) + if (!$util.isInteger(message.retain_height) && !(message.retain_height && $util.isInteger(message.retain_height.low) && $util.isInteger(message.retain_height.high))) + return "retain_height: integer|Long expected"; return null; }; /** - * Creates a TxResult message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseCommit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.TxResult} TxResult + * @returns {tendermint.abci.ResponseCommit} ResponseCommit */ - TxResult.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.TxResult) + ResponseCommit.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseCommit) return object; - var message = new $root.tendermint.abci.TxResult(); - if (object.height != null) + var message = new $root.tendermint.abci.ResponseCommit(); + 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.retain_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.index != null) - message.index = object.index >>> 0; - if (object.tx != null) - if (typeof object.tx === "string") - $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); - else if (object.tx.length) - message.tx = object.tx; - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tendermint.abci.TxResult.result: object expected"); - message.result = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.result); - } + (message.retain_height = $util.Long.fromValue(object.retain_height)).unsigned = false; + else if (typeof object.retain_height === "string") + message.retain_height = parseInt(object.retain_height, 10); + else if (typeof object.retain_height === "number") + message.retain_height = object.retain_height; + else if (typeof object.retain_height === "object") + message.retain_height = new $util.LongBits(object.retain_height.low >>> 0, object.retain_height.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a TxResult message. Also converts values to other types if specified. + * Creates a plain object from a ResponseCommit message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @static - * @param {tendermint.abci.TxResult} message TxResult + * @param {tendermint.abci.ResponseCommit} message ResponseCommit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TxResult.toObject = function toObject(message, options) { + ResponseCommit.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.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - object.index = 0; if (options.bytes === String) - object.tx = ""; + object.data = ""; else { - object.tx = []; + object.data = []; if (options.bytes !== Array) - object.tx = $util.newBuffer(object.tx); + object.data = $util.newBuffer(object.data); } - object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.retain_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.retain_height = options.longs === String ? "0" : 0; } - if (message.height != null && message.hasOwnProperty("height")) - if (typeof message.height === "number") - object.height = options.longs === String ? String(message.height) : message.height; + 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.retain_height != null && message.hasOwnProperty("retain_height")) + if (typeof message.retain_height === "number") + object.retain_height = options.longs === String ? String(message.retain_height) : message.retain_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.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.tx != null && message.hasOwnProperty("tx")) - object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.tendermint.abci.ResponseDeliverTx.toObject(message.result, options); + object.retain_height = options.longs === String ? $util.Long.prototype.toString.call(message.retain_height) : options.longs === Number ? new $util.LongBits(message.retain_height.low >>> 0, message.retain_height.high >>> 0).toNumber() : message.retain_height; return object; }; /** - * Converts this TxResult to JSON. + * Converts this ResponseCommit to JSON. * @function toJSON - * @memberof tendermint.abci.TxResult + * @memberof tendermint.abci.ResponseCommit * @instance * @returns {Object.} JSON object */ - TxResult.prototype.toJSON = function toJSON() { + ResponseCommit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TxResult; + return ResponseCommit; })(); - abci.Validator = (function() { + abci.ResponseListSnapshots = (function() { /** - * Properties of a Validator. + * Properties of a ResponseListSnapshots. * @memberof tendermint.abci - * @interface IValidator - * @property {Uint8Array|null} [address] Validator address - * @property {Long|null} [power] Validator power + * @interface IResponseListSnapshots + * @property {Array.|null} [snapshots] ResponseListSnapshots snapshots */ /** - * Constructs a new Validator. + * Constructs a new ResponseListSnapshots. * @memberof tendermint.abci - * @classdesc Represents a Validator. - * @implements IValidator + * @classdesc Represents a ResponseListSnapshots. + * @implements IResponseListSnapshots * @constructor - * @param {tendermint.abci.IValidator=} [properties] Properties to set + * @param {tendermint.abci.IResponseListSnapshots=} [properties] Properties to set */ - function Validator(properties) { + function ResponseListSnapshots(properties) { + this.snapshots = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30709,76 +39249,66 @@ } /** - * Validator address. - * @member {Uint8Array} address - * @memberof tendermint.abci.Validator - * @instance - */ - Validator.prototype.address = $util.newBuffer([]); - - /** - * Validator power. - * @member {Long} power - * @memberof tendermint.abci.Validator + * ResponseListSnapshots snapshots. + * @member {Array.} snapshots + * @memberof tendermint.abci.ResponseListSnapshots * @instance */ - Validator.prototype.power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseListSnapshots.prototype.snapshots = $util.emptyArray; /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. + * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. * @function encode - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static - * @param {tendermint.abci.IValidator} message Validator message or plain object to encode + * @param {tendermint.abci.IResponseListSnapshots} message ResponseListSnapshots message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Validator.encode = function encode(message, writer) { + ResponseListSnapshots.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).bytes(message.address); - if (message.power != null && Object.hasOwnProperty.call(message, "power")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.power); + if (message.snapshots != null && message.snapshots.length) + for (var i = 0; i < message.snapshots.length; ++i) + $root.tendermint.abci.Snapshot.encode(message.snapshots[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. + * Encodes the specified ResponseListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static - * @param {tendermint.abci.IValidator} message Validator message or plain object to encode + * @param {tendermint.abci.IResponseListSnapshots} message ResponseListSnapshots message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Validator.encodeDelimited = function encodeDelimited(message, writer) { + ResponseListSnapshots.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Validator message from the specified reader or buffer. + * Decodes a ResponseListSnapshots message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Validator} Validator + * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Validator.decode = function decode(reader, length) { + ResponseListSnapshots.decode = 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.abci.Validator(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseListSnapshots(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.address = reader.bytes(); - break; - case 3: - message.power = reader.int64(); + if (!(message.snapshots && message.snapshots.length)) + message.snapshots = []; + message.snapshots.push($root.tendermint.abci.Snapshot.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -30789,140 +39319,124 @@ }; /** - * Decodes a Validator message from the specified reader or buffer, length delimited. + * Decodes a ResponseListSnapshots message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Validator} Validator + * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Validator.decodeDelimited = function decodeDelimited(reader) { + ResponseListSnapshots.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Validator message. + * Verifies a ResponseListSnapshots message. * @function verify - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Validator.verify = function verify(message) { + ResponseListSnapshots.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address))) - return "address: buffer expected"; - if (message.power != null && message.hasOwnProperty("power")) - if (!$util.isInteger(message.power) && !(message.power && $util.isInteger(message.power.low) && $util.isInteger(message.power.high))) - return "power: integer|Long expected"; + if (message.snapshots != null && message.hasOwnProperty("snapshots")) { + if (!Array.isArray(message.snapshots)) + return "snapshots: array expected"; + for (var i = 0; i < message.snapshots.length; ++i) { + var error = $root.tendermint.abci.Snapshot.verify(message.snapshots[i]); + if (error) + return "snapshots." + error; + } + } return null; }; /** - * Creates a Validator message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseListSnapshots message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.Validator} Validator + * @returns {tendermint.abci.ResponseListSnapshots} ResponseListSnapshots */ - Validator.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Validator) + ResponseListSnapshots.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseListSnapshots) return object; - var message = new $root.tendermint.abci.Validator(); - if (object.address != null) - if (typeof object.address === "string") - $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0); - else if (object.address.length) - message.address = object.address; - if (object.power != null) - if ($util.Long) - (message.power = $util.Long.fromValue(object.power)).unsigned = false; - else if (typeof object.power === "string") - message.power = parseInt(object.power, 10); - else if (typeof object.power === "number") - message.power = object.power; - else if (typeof object.power === "object") - message.power = new $util.LongBits(object.power.low >>> 0, object.power.high >>> 0).toNumber(); + var message = new $root.tendermint.abci.ResponseListSnapshots(); + if (object.snapshots) { + if (!Array.isArray(object.snapshots)) + throw TypeError(".tendermint.abci.ResponseListSnapshots.snapshots: array expected"); + message.snapshots = []; + for (var i = 0; i < object.snapshots.length; ++i) { + if (typeof object.snapshots[i] !== "object") + throw TypeError(".tendermint.abci.ResponseListSnapshots.snapshots: object expected"); + message.snapshots[i] = $root.tendermint.abci.Snapshot.fromObject(object.snapshots[i]); + } + } return message; }; /** - * Creates a plain object from a Validator message. Also converts values to other types if specified. + * Creates a plain object from a ResponseListSnapshots message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @static - * @param {tendermint.abci.Validator} message Validator + * @param {tendermint.abci.ResponseListSnapshots} message ResponseListSnapshots * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Validator.toObject = function toObject(message, options) { + ResponseListSnapshots.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.address = ""; - else { - object.address = []; - if (options.bytes !== Array) - object.address = $util.newBuffer(object.address); - } - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.power = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.snapshots = []; + if (message.snapshots && message.snapshots.length) { + object.snapshots = []; + for (var j = 0; j < message.snapshots.length; ++j) + object.snapshots[j] = $root.tendermint.abci.Snapshot.toObject(message.snapshots[j], options); } - if (message.address != null && message.hasOwnProperty("address")) - object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address; - if (message.power != null && message.hasOwnProperty("power")) - if (typeof message.power === "number") - object.power = options.longs === String ? String(message.power) : message.power; - else - object.power = options.longs === String ? $util.Long.prototype.toString.call(message.power) : options.longs === Number ? new $util.LongBits(message.power.low >>> 0, message.power.high >>> 0).toNumber() : message.power; return object; }; /** - * Converts this Validator to JSON. + * Converts this ResponseListSnapshots to JSON. * @function toJSON - * @memberof tendermint.abci.Validator + * @memberof tendermint.abci.ResponseListSnapshots * @instance * @returns {Object.} JSON object */ - Validator.prototype.toJSON = function toJSON() { + ResponseListSnapshots.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Validator; + return ResponseListSnapshots; })(); - abci.ValidatorUpdate = (function() { + abci.ResponseOfferSnapshot = (function() { /** - * Properties of a ValidatorUpdate. + * Properties of a ResponseOfferSnapshot. * @memberof tendermint.abci - * @interface IValidatorUpdate - * @property {tendermint.crypto.IPublicKey|null} [pub_key] ValidatorUpdate pub_key - * @property {Long|null} [power] ValidatorUpdate power + * @interface IResponseOfferSnapshot + * @property {tendermint.abci.ResponseOfferSnapshot.Result|null} [result] ResponseOfferSnapshot result */ /** - * Constructs a new ValidatorUpdate. + * Constructs a new ResponseOfferSnapshot. * @memberof tendermint.abci - * @classdesc Represents a ValidatorUpdate. - * @implements IValidatorUpdate + * @classdesc Represents a ResponseOfferSnapshot. + * @implements IResponseOfferSnapshot * @constructor - * @param {tendermint.abci.IValidatorUpdate=} [properties] Properties to set + * @param {tendermint.abci.IResponseOfferSnapshot=} [properties] Properties to set */ - function ValidatorUpdate(properties) { + function ResponseOfferSnapshot(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30930,76 +39444,63 @@ } /** - * ValidatorUpdate pub_key. - * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key - * @memberof tendermint.abci.ValidatorUpdate - * @instance - */ - ValidatorUpdate.prototype.pub_key = null; - - /** - * ValidatorUpdate power. - * @member {Long} power - * @memberof tendermint.abci.ValidatorUpdate + * ResponseOfferSnapshot result. + * @member {tendermint.abci.ResponseOfferSnapshot.Result} result + * @memberof tendermint.abci.ResponseOfferSnapshot * @instance */ - ValidatorUpdate.prototype.power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseOfferSnapshot.prototype.result = 0; /** - * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. + * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. * @function encode - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static - * @param {tendermint.abci.IValidatorUpdate} message ValidatorUpdate message or plain object to encode + * @param {tendermint.abci.IResponseOfferSnapshot} message ResponseOfferSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorUpdate.encode = function encode(message, writer) { + ResponseOfferSnapshot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) - $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.power != null && Object.hasOwnProperty.call(message, "power")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.power); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified ValidatorUpdate message, length delimited. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. + * Encodes the specified ResponseOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static - * @param {tendermint.abci.IValidatorUpdate} message ValidatorUpdate message or plain object to encode + * @param {tendermint.abci.IResponseOfferSnapshot} message ResponseOfferSnapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorUpdate.encodeDelimited = function encodeDelimited(message, writer) { + ResponseOfferSnapshot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidatorUpdate message from the specified reader or buffer. + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate + * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorUpdate.decode = function decode(reader, length) { + ResponseOfferSnapshot.decode = 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.abci.ValidatorUpdate(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseOfferSnapshot(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); - break; - case 2: - message.power = reader.int64(); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -31010,136 +39511,162 @@ }; /** - * Decodes a ValidatorUpdate message from the specified reader or buffer, length delimited. + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate + * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorUpdate.decodeDelimited = function decodeDelimited(reader) { + ResponseOfferSnapshot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidatorUpdate message. + * Verifies a ResponseOfferSnapshot message. * @function verify - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidatorUpdate.verify = function verify(message) { + ResponseOfferSnapshot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) { - var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); - if (error) - return "pub_key." + error; - } - if (message.power != null && message.hasOwnProperty("power")) - if (!$util.isInteger(message.power) && !(message.power && $util.isInteger(message.power.low) && $util.isInteger(message.power.high))) - return "power: integer|Long expected"; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } return null; }; /** - * Creates a ValidatorUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseOfferSnapshot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate + * @returns {tendermint.abci.ResponseOfferSnapshot} ResponseOfferSnapshot */ - ValidatorUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.ValidatorUpdate) + ResponseOfferSnapshot.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseOfferSnapshot) return object; - var message = new $root.tendermint.abci.ValidatorUpdate(); - if (object.pub_key != null) { - if (typeof object.pub_key !== "object") - throw TypeError(".tendermint.abci.ValidatorUpdate.pub_key: object expected"); - message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); + var message = new $root.tendermint.abci.ResponseOfferSnapshot(); + switch (object.result) { + case "UNKNOWN": + case 0: + message.result = 0; + break; + case "ACCEPT": + case 1: + message.result = 1; + break; + case "ABORT": + case 2: + message.result = 2; + break; + case "REJECT": + case 3: + message.result = 3; + break; + case "REJECT_FORMAT": + case 4: + message.result = 4; + break; + case "REJECT_SENDER": + case 5: + message.result = 5; + break; } - if (object.power != null) - if ($util.Long) - (message.power = $util.Long.fromValue(object.power)).unsigned = false; - else if (typeof object.power === "string") - message.power = parseInt(object.power, 10); - else if (typeof object.power === "number") - message.power = object.power; - else if (typeof object.power === "object") - message.power = new $util.LongBits(object.power.low >>> 0, object.power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ValidatorUpdate message. Also converts values to other types if specified. + * Creates a plain object from a ResponseOfferSnapshot message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @static - * @param {tendermint.abci.ValidatorUpdate} message ValidatorUpdate + * @param {tendermint.abci.ResponseOfferSnapshot} message ResponseOfferSnapshot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidatorUpdate.toObject = function toObject(message, options) { + ResponseOfferSnapshot.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pub_key = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.power = options.longs === String ? "0" : 0; - } - if (message.pub_key != null && message.hasOwnProperty("pub_key")) - object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); - if (message.power != null && message.hasOwnProperty("power")) - if (typeof message.power === "number") - object.power = options.longs === String ? String(message.power) : message.power; - else - object.power = options.longs === String ? $util.Long.prototype.toString.call(message.power) : options.longs === Number ? new $util.LongBits(message.power.low >>> 0, message.power.high >>> 0).toNumber() : message.power; + if (options.defaults) + object.result = options.enums === String ? "UNKNOWN" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.tendermint.abci.ResponseOfferSnapshot.Result[message.result] : message.result; return object; }; /** - * Converts this ValidatorUpdate to JSON. + * Converts this ResponseOfferSnapshot to JSON. * @function toJSON - * @memberof tendermint.abci.ValidatorUpdate + * @memberof tendermint.abci.ResponseOfferSnapshot * @instance * @returns {Object.} JSON object */ - ValidatorUpdate.prototype.toJSON = function toJSON() { + ResponseOfferSnapshot.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ValidatorUpdate; + /** + * Result enum. + * @name tendermint.abci.ResponseOfferSnapshot.Result + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} ACCEPT=1 ACCEPT value + * @property {number} ABORT=2 ABORT value + * @property {number} REJECT=3 REJECT value + * @property {number} REJECT_FORMAT=4 REJECT_FORMAT value + * @property {number} REJECT_SENDER=5 REJECT_SENDER value + */ + ResponseOfferSnapshot.Result = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "ACCEPT"] = 1; + values[valuesById[2] = "ABORT"] = 2; + values[valuesById[3] = "REJECT"] = 3; + values[valuesById[4] = "REJECT_FORMAT"] = 4; + values[valuesById[5] = "REJECT_SENDER"] = 5; + return values; + })(); + + return ResponseOfferSnapshot; })(); - abci.VoteInfo = (function() { + abci.ResponseLoadSnapshotChunk = (function() { /** - * Properties of a VoteInfo. + * Properties of a ResponseLoadSnapshotChunk. * @memberof tendermint.abci - * @interface IVoteInfo - * @property {tendermint.abci.IValidator|null} [validator] VoteInfo validator - * @property {boolean|null} [signed_last_block] VoteInfo signed_last_block + * @interface IResponseLoadSnapshotChunk + * @property {Uint8Array|null} [chunk] ResponseLoadSnapshotChunk chunk */ /** - * Constructs a new VoteInfo. + * Constructs a new ResponseLoadSnapshotChunk. * @memberof tendermint.abci - * @classdesc Represents a VoteInfo. - * @implements IVoteInfo + * @classdesc Represents a ResponseLoadSnapshotChunk. + * @implements IResponseLoadSnapshotChunk * @constructor - * @param {tendermint.abci.IVoteInfo=} [properties] Properties to set + * @param {tendermint.abci.IResponseLoadSnapshotChunk=} [properties] Properties to set */ - function VoteInfo(properties) { + function ResponseLoadSnapshotChunk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31147,76 +39674,63 @@ } /** - * VoteInfo validator. - * @member {tendermint.abci.IValidator|null|undefined} validator - * @memberof tendermint.abci.VoteInfo - * @instance - */ - VoteInfo.prototype.validator = null; - - /** - * VoteInfo signed_last_block. - * @member {boolean} signed_last_block - * @memberof tendermint.abci.VoteInfo + * ResponseLoadSnapshotChunk chunk. + * @member {Uint8Array} chunk + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @instance */ - VoteInfo.prototype.signed_last_block = false; + ResponseLoadSnapshotChunk.prototype.chunk = $util.newBuffer([]); /** - * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. + * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. * @function encode - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static - * @param {tendermint.abci.IVoteInfo} message VoteInfo message or plain object to encode + * @param {tendermint.abci.IResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoteInfo.encode = function encode(message, writer) { + ResponseLoadSnapshotChunk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) - $root.tendermint.abci.Validator.encode(message.validator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.signed_last_block != null && Object.hasOwnProperty.call(message, "signed_last_block")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.signed_last_block); + if (message.chunk != null && Object.hasOwnProperty.call(message, "chunk")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.chunk); return writer; }; /** - * Encodes the specified VoteInfo message, length delimited. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. + * Encodes the specified ResponseLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static - * @param {tendermint.abci.IVoteInfo} message VoteInfo message or plain object to encode + * @param {tendermint.abci.IResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoteInfo.encodeDelimited = function encodeDelimited(message, writer) { + ResponseLoadSnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VoteInfo message from the specified reader or buffer. + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.VoteInfo} VoteInfo + * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoteInfo.decode = function decode(reader, length) { + ResponseLoadSnapshotChunk.decode = 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.abci.VoteInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseLoadSnapshotChunk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.validator = $root.tendermint.abci.Validator.decode(reader, reader.uint32()); - break; - case 2: - message.signed_last_block = reader.bool(); + message.chunk = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -31227,141 +39741,120 @@ }; /** - * Decodes a VoteInfo message from the specified reader or buffer, length delimited. + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.VoteInfo} VoteInfo + * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoteInfo.decodeDelimited = function decodeDelimited(reader) { + ResponseLoadSnapshotChunk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VoteInfo message. + * Verifies a ResponseLoadSnapshotChunk message. * @function verify - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VoteInfo.verify = function verify(message) { + ResponseLoadSnapshotChunk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.validator != null && message.hasOwnProperty("validator")) { - var error = $root.tendermint.abci.Validator.verify(message.validator); - if (error) - return "validator." + error; - } - if (message.signed_last_block != null && message.hasOwnProperty("signed_last_block")) - if (typeof message.signed_last_block !== "boolean") - return "signed_last_block: boolean expected"; + if (message.chunk != null && message.hasOwnProperty("chunk")) + if (!(message.chunk && typeof message.chunk.length === "number" || $util.isString(message.chunk))) + return "chunk: buffer expected"; return null; }; /** - * Creates a VoteInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.VoteInfo} VoteInfo + * @returns {tendermint.abci.ResponseLoadSnapshotChunk} ResponseLoadSnapshotChunk */ - VoteInfo.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.VoteInfo) + ResponseLoadSnapshotChunk.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseLoadSnapshotChunk) return object; - var message = new $root.tendermint.abci.VoteInfo(); - if (object.validator != null) { - if (typeof object.validator !== "object") - throw TypeError(".tendermint.abci.VoteInfo.validator: object expected"); - message.validator = $root.tendermint.abci.Validator.fromObject(object.validator); - } - if (object.signed_last_block != null) - message.signed_last_block = Boolean(object.signed_last_block); + var message = new $root.tendermint.abci.ResponseLoadSnapshotChunk(); + if (object.chunk != null) + if (typeof object.chunk === "string") + $util.base64.decode(object.chunk, message.chunk = $util.newBuffer($util.base64.length(object.chunk)), 0); + else if (object.chunk.length) + message.chunk = object.chunk; return message; }; /** - * Creates a plain object from a VoteInfo message. Also converts values to other types if specified. + * Creates a plain object from a ResponseLoadSnapshotChunk message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @static - * @param {tendermint.abci.VoteInfo} message VoteInfo + * @param {tendermint.abci.ResponseLoadSnapshotChunk} message ResponseLoadSnapshotChunk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VoteInfo.toObject = function toObject(message, options) { + ResponseLoadSnapshotChunk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.validator = null; - object.signed_last_block = false; - } - if (message.validator != null && message.hasOwnProperty("validator")) - object.validator = $root.tendermint.abci.Validator.toObject(message.validator, options); - if (message.signed_last_block != null && message.hasOwnProperty("signed_last_block")) - object.signed_last_block = message.signed_last_block; + if (options.defaults) + if (options.bytes === String) + object.chunk = ""; + else { + object.chunk = []; + if (options.bytes !== Array) + object.chunk = $util.newBuffer(object.chunk); + } + if (message.chunk != null && message.hasOwnProperty("chunk")) + object.chunk = options.bytes === String ? $util.base64.encode(message.chunk, 0, message.chunk.length) : options.bytes === Array ? Array.prototype.slice.call(message.chunk) : message.chunk; return object; }; /** - * Converts this VoteInfo to JSON. + * Converts this ResponseLoadSnapshotChunk to JSON. * @function toJSON - * @memberof tendermint.abci.VoteInfo + * @memberof tendermint.abci.ResponseLoadSnapshotChunk * @instance * @returns {Object.} JSON object */ - VoteInfo.prototype.toJSON = function toJSON() { + ResponseLoadSnapshotChunk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VoteInfo; - })(); - - /** - * EvidenceType enum. - * @name tendermint.abci.EvidenceType - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} DUPLICATE_VOTE=1 DUPLICATE_VOTE value - * @property {number} LIGHT_CLIENT_ATTACK=2 LIGHT_CLIENT_ATTACK value - */ - abci.EvidenceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "DUPLICATE_VOTE"] = 1; - values[valuesById[2] = "LIGHT_CLIENT_ATTACK"] = 2; - return values; + return ResponseLoadSnapshotChunk; })(); - abci.Evidence = (function() { + abci.ResponseApplySnapshotChunk = (function() { /** - * Properties of an Evidence. + * Properties of a ResponseApplySnapshotChunk. * @memberof tendermint.abci - * @interface IEvidence - * @property {tendermint.abci.EvidenceType|null} [type] Evidence type - * @property {tendermint.abci.IValidator|null} [validator] Evidence validator - * @property {Long|null} [height] Evidence height - * @property {google.protobuf.ITimestamp|null} [time] Evidence time - * @property {Long|null} [total_voting_power] Evidence total_voting_power + * @interface IResponseApplySnapshotChunk + * @property {tendermint.abci.ResponseApplySnapshotChunk.Result|null} [result] ResponseApplySnapshotChunk result + * @property {Array.|null} [refetch_chunks] ResponseApplySnapshotChunk refetch_chunks + * @property {Array.|null} [reject_senders] ResponseApplySnapshotChunk reject_senders */ /** - * Constructs a new Evidence. + * Constructs a new ResponseApplySnapshotChunk. * @memberof tendermint.abci - * @classdesc Represents an Evidence. - * @implements IEvidence + * @classdesc Represents a ResponseApplySnapshotChunk. + * @implements IResponseApplySnapshotChunk * @constructor - * @param {tendermint.abci.IEvidence=} [properties] Properties to set + * @param {tendermint.abci.IResponseApplySnapshotChunk=} [properties] Properties to set */ - function Evidence(properties) { + function ResponseApplySnapshotChunk(properties) { + this.refetch_chunks = []; + this.reject_senders = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31369,115 +39862,103 @@ } /** - * Evidence type. - * @member {tendermint.abci.EvidenceType} type - * @memberof tendermint.abci.Evidence - * @instance - */ - Evidence.prototype.type = 0; - - /** - * Evidence validator. - * @member {tendermint.abci.IValidator|null|undefined} validator - * @memberof tendermint.abci.Evidence - * @instance - */ - Evidence.prototype.validator = null; - - /** - * Evidence height. - * @member {Long} height - * @memberof tendermint.abci.Evidence + * ResponseApplySnapshotChunk result. + * @member {tendermint.abci.ResponseApplySnapshotChunk.Result} result + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @instance */ - Evidence.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseApplySnapshotChunk.prototype.result = 0; /** - * Evidence time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof tendermint.abci.Evidence + * ResponseApplySnapshotChunk refetch_chunks. + * @member {Array.} refetch_chunks + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @instance */ - Evidence.prototype.time = null; + ResponseApplySnapshotChunk.prototype.refetch_chunks = $util.emptyArray; /** - * Evidence total_voting_power. - * @member {Long} total_voting_power - * @memberof tendermint.abci.Evidence + * ResponseApplySnapshotChunk reject_senders. + * @member {Array.} reject_senders + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @instance */ - Evidence.prototype.total_voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ResponseApplySnapshotChunk.prototype.reject_senders = $util.emptyArray; /** - * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. + * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. * @function encode - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static - * @param {tendermint.abci.IEvidence} message Evidence message or plain object to encode + * @param {tendermint.abci.IResponseApplySnapshotChunk} message ResponseApplySnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Evidence.encode = function encode(message, writer) { + ResponseApplySnapshotChunk.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.validator != null && Object.hasOwnProperty.call(message, "validator")) - $root.tendermint.abci.Validator.encode(message.validator, 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.time != null && Object.hasOwnProperty.call(message, "time")) - $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.total_voting_power != null && Object.hasOwnProperty.call(message, "total_voting_power")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.total_voting_power); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + if (message.refetch_chunks != null && message.refetch_chunks.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.refetch_chunks.length; ++i) + writer.uint32(message.refetch_chunks[i]); + writer.ldelim(); + } + if (message.reject_senders != null && message.reject_senders.length) + for (var i = 0; i < message.reject_senders.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.reject_senders[i]); return writer; }; /** - * Encodes the specified Evidence message, length delimited. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. + * Encodes the specified ResponseApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static - * @param {tendermint.abci.IEvidence} message Evidence message or plain object to encode + * @param {tendermint.abci.IResponseApplySnapshotChunk} message ResponseApplySnapshotChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Evidence.encodeDelimited = function encodeDelimited(message, writer) { + ResponseApplySnapshotChunk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Evidence message from the specified reader or buffer. + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Evidence} Evidence + * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Evidence.decode = function decode(reader, length) { + ResponseApplySnapshotChunk.decode = 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.abci.Evidence(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ResponseApplySnapshotChunk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.result = reader.int32(); break; case 2: - message.validator = $root.tendermint.abci.Validator.decode(reader, reader.uint32()); + if (!(message.refetch_chunks && message.refetch_chunks.length)) + message.refetch_chunks = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.refetch_chunks.push(reader.uint32()); + } else + message.refetch_chunks.push(reader.uint32()); break; case 3: - message.height = reader.int64(); - break; - case 4: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.total_voting_power = reader.int64(); + if (!(message.reject_senders && message.reject_senders.length)) + message.reject_senders = []; + message.reject_senders.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -31488,200 +39969,207 @@ }; /** - * Decodes an Evidence message from the specified reader or buffer, length delimited. + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Evidence} Evidence + * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Evidence.decodeDelimited = function decodeDelimited(reader) { + ResponseApplySnapshotChunk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Evidence message. + * Verifies a ResponseApplySnapshotChunk message. * @function verify - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Evidence.verify = function verify(message) { + ResponseApplySnapshotChunk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { default: - return "type: enum value expected"; + return "result: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: + case 5: break; } - if (message.validator != null && message.hasOwnProperty("validator")) { - var error = $root.tendermint.abci.Validator.verify(message.validator); - if (error) - return "validator." + error; + if (message.refetch_chunks != null && message.hasOwnProperty("refetch_chunks")) { + if (!Array.isArray(message.refetch_chunks)) + return "refetch_chunks: array expected"; + for (var i = 0; i < message.refetch_chunks.length; ++i) + if (!$util.isInteger(message.refetch_chunks[i])) + return "refetch_chunks: integer[] expected"; } - 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.time != null && message.hasOwnProperty("time")) { - var error = $root.google.protobuf.Timestamp.verify(message.time); - if (error) - return "time." + error; + if (message.reject_senders != null && message.hasOwnProperty("reject_senders")) { + if (!Array.isArray(message.reject_senders)) + return "reject_senders: array expected"; + for (var i = 0; i < message.reject_senders.length; ++i) + if (!$util.isString(message.reject_senders[i])) + return "reject_senders: string[] expected"; } - if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) - if (!$util.isInteger(message.total_voting_power) && !(message.total_voting_power && $util.isInteger(message.total_voting_power.low) && $util.isInteger(message.total_voting_power.high))) - return "total_voting_power: integer|Long expected"; return null; }; /** - * Creates an Evidence message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.Evidence} Evidence + * @returns {tendermint.abci.ResponseApplySnapshotChunk} ResponseApplySnapshotChunk */ - Evidence.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Evidence) + ResponseApplySnapshotChunk.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ResponseApplySnapshotChunk) return object; - var message = new $root.tendermint.abci.Evidence(); - switch (object.type) { + var message = new $root.tendermint.abci.ResponseApplySnapshotChunk(); + switch (object.result) { case "UNKNOWN": case 0: - message.type = 0; + message.result = 0; break; - case "DUPLICATE_VOTE": + case "ACCEPT": case 1: - message.type = 1; + message.result = 1; break; - case "LIGHT_CLIENT_ATTACK": + case "ABORT": case 2: - message.type = 2; + message.result = 2; + break; + case "RETRY": + case 3: + message.result = 3; + break; + case "RETRY_SNAPSHOT": + case 4: + message.result = 4; + break; + case "REJECT_SNAPSHOT": + case 5: + message.result = 5; break; } - if (object.validator != null) { - if (typeof object.validator !== "object") - throw TypeError(".tendermint.abci.Evidence.validator: object expected"); - message.validator = $root.tendermint.abci.Validator.fromObject(object.validator); + if (object.refetch_chunks) { + if (!Array.isArray(object.refetch_chunks)) + throw TypeError(".tendermint.abci.ResponseApplySnapshotChunk.refetch_chunks: array expected"); + message.refetch_chunks = []; + for (var i = 0; i < object.refetch_chunks.length; ++i) + message.refetch_chunks[i] = object.refetch_chunks[i] >>> 0; } - 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.time != null) { - if (typeof object.time !== "object") - throw TypeError(".tendermint.abci.Evidence.time: object expected"); - message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + if (object.reject_senders) { + if (!Array.isArray(object.reject_senders)) + throw TypeError(".tendermint.abci.ResponseApplySnapshotChunk.reject_senders: array expected"); + message.reject_senders = []; + for (var i = 0; i < object.reject_senders.length; ++i) + message.reject_senders[i] = String(object.reject_senders[i]); } - if (object.total_voting_power != null) - if ($util.Long) - (message.total_voting_power = $util.Long.fromValue(object.total_voting_power)).unsigned = false; - else if (typeof object.total_voting_power === "string") - message.total_voting_power = parseInt(object.total_voting_power, 10); - else if (typeof object.total_voting_power === "number") - message.total_voting_power = object.total_voting_power; - else if (typeof object.total_voting_power === "object") - message.total_voting_power = new $util.LongBits(object.total_voting_power.low >>> 0, object.total_voting_power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an Evidence message. Also converts values to other types if specified. + * Creates a plain object from a ResponseApplySnapshotChunk message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @static - * @param {tendermint.abci.Evidence} message Evidence + * @param {tendermint.abci.ResponseApplySnapshotChunk} message ResponseApplySnapshotChunk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Evidence.toObject = function toObject(message, options) { + ResponseApplySnapshotChunk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "UNKNOWN" : 0; - object.validator = 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.time = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.total_voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.total_voting_power = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) { + object.refetch_chunks = []; + object.reject_senders = []; + } + if (options.defaults) + object.result = options.enums === String ? "UNKNOWN" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.tendermint.abci.ResponseApplySnapshotChunk.Result[message.result] : message.result; + if (message.refetch_chunks && message.refetch_chunks.length) { + object.refetch_chunks = []; + for (var j = 0; j < message.refetch_chunks.length; ++j) + object.refetch_chunks[j] = message.refetch_chunks[j]; + } + if (message.reject_senders && message.reject_senders.length) { + object.reject_senders = []; + for (var j = 0; j < message.reject_senders.length; ++j) + object.reject_senders[j] = message.reject_senders[j]; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.tendermint.abci.EvidenceType[message.type] : message.type; - if (message.validator != null && message.hasOwnProperty("validator")) - object.validator = $root.tendermint.abci.Validator.toObject(message.validator, 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.time != null && message.hasOwnProperty("time")) - object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); - if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) - if (typeof message.total_voting_power === "number") - object.total_voting_power = options.longs === String ? String(message.total_voting_power) : message.total_voting_power; - else - object.total_voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.total_voting_power) : options.longs === Number ? new $util.LongBits(message.total_voting_power.low >>> 0, message.total_voting_power.high >>> 0).toNumber() : message.total_voting_power; return object; }; /** - * Converts this Evidence to JSON. + * Converts this ResponseApplySnapshotChunk to JSON. * @function toJSON - * @memberof tendermint.abci.Evidence + * @memberof tendermint.abci.ResponseApplySnapshotChunk * @instance * @returns {Object.} JSON object */ - Evidence.prototype.toJSON = function toJSON() { + ResponseApplySnapshotChunk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Evidence; + /** + * Result enum. + * @name tendermint.abci.ResponseApplySnapshotChunk.Result + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} ACCEPT=1 ACCEPT value + * @property {number} ABORT=2 ABORT value + * @property {number} RETRY=3 RETRY value + * @property {number} RETRY_SNAPSHOT=4 RETRY_SNAPSHOT value + * @property {number} REJECT_SNAPSHOT=5 REJECT_SNAPSHOT value + */ + ResponseApplySnapshotChunk.Result = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "ACCEPT"] = 1; + values[valuesById[2] = "ABORT"] = 2; + values[valuesById[3] = "RETRY"] = 3; + values[valuesById[4] = "RETRY_SNAPSHOT"] = 4; + values[valuesById[5] = "REJECT_SNAPSHOT"] = 5; + return values; + })(); + + return ResponseApplySnapshotChunk; })(); - abci.Snapshot = (function() { + abci.ConsensusParams = (function() { /** - * Properties of a Snapshot. + * Properties of a ConsensusParams. * @memberof tendermint.abci - * @interface ISnapshot - * @property {Long|null} [height] Snapshot height - * @property {number|null} [format] Snapshot format - * @property {number|null} [chunks] Snapshot chunks - * @property {Uint8Array|null} [hash] Snapshot hash - * @property {Uint8Array|null} [metadata] Snapshot metadata + * @interface IConsensusParams + * @property {tendermint.abci.IBlockParams|null} [block] ConsensusParams block + * @property {tendermint.types.IEvidenceParams|null} [evidence] ConsensusParams evidence + * @property {tendermint.types.IValidatorParams|null} [validator] ConsensusParams validator + * @property {tendermint.types.IVersionParams|null} [version] ConsensusParams version */ /** - * Constructs a new Snapshot. + * Constructs a new ConsensusParams. * @memberof tendermint.abci - * @classdesc Represents a Snapshot. - * @implements ISnapshot + * @classdesc Represents a ConsensusParams. + * @implements IConsensusParams * @constructor - * @param {tendermint.abci.ISnapshot=} [properties] Properties to set + * @param {tendermint.abci.IConsensusParams=} [properties] Properties to set */ - function Snapshot(properties) { + function ConsensusParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31689,115 +40177,102 @@ } /** - * Snapshot height. - * @member {Long} height - * @memberof tendermint.abci.Snapshot - * @instance - */ - Snapshot.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Snapshot format. - * @member {number} format - * @memberof tendermint.abci.Snapshot + * ConsensusParams block. + * @member {tendermint.abci.IBlockParams|null|undefined} block + * @memberof tendermint.abci.ConsensusParams * @instance */ - Snapshot.prototype.format = 0; + ConsensusParams.prototype.block = null; /** - * Snapshot chunks. - * @member {number} chunks - * @memberof tendermint.abci.Snapshot + * ConsensusParams evidence. + * @member {tendermint.types.IEvidenceParams|null|undefined} evidence + * @memberof tendermint.abci.ConsensusParams * @instance */ - Snapshot.prototype.chunks = 0; + ConsensusParams.prototype.evidence = null; /** - * Snapshot hash. - * @member {Uint8Array} hash - * @memberof tendermint.abci.Snapshot + * ConsensusParams validator. + * @member {tendermint.types.IValidatorParams|null|undefined} validator + * @memberof tendermint.abci.ConsensusParams * @instance */ - Snapshot.prototype.hash = $util.newBuffer([]); + ConsensusParams.prototype.validator = null; /** - * Snapshot metadata. - * @member {Uint8Array} metadata - * @memberof tendermint.abci.Snapshot + * ConsensusParams version. + * @member {tendermint.types.IVersionParams|null|undefined} version + * @memberof tendermint.abci.ConsensusParams * @instance */ - Snapshot.prototype.metadata = $util.newBuffer([]); + ConsensusParams.prototype.version = null; /** - * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. * @function encode - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static - * @param {tendermint.abci.ISnapshot} message Snapshot message or plain object to encode + * @param {tendermint.abci.IConsensusParams} message ConsensusParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Snapshot.encode = function encode(message, writer) { + ConsensusParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.format); - if (message.chunks != null && Object.hasOwnProperty.call(message, "chunks")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.chunks); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.hash); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.metadata); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + $root.tendermint.abci.BlockParams.encode(message.block, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.evidence != null && Object.hasOwnProperty.call(message, "evidence")) + $root.tendermint.types.EvidenceParams.encode(message.evidence, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) + $root.tendermint.types.ValidatorParams.encode(message.validator, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.tendermint.types.VersionParams.encode(message.version, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static - * @param {tendermint.abci.ISnapshot} message Snapshot message or plain object to encode + * @param {tendermint.abci.IConsensusParams} message ConsensusParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Snapshot.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Snapshot message from the specified reader or buffer. + * Decodes a ConsensusParams message from the specified reader or buffer. * @function decode - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.abci.Snapshot} Snapshot + * @returns {tendermint.abci.ConsensusParams} ConsensusParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Snapshot.decode = function decode(reader, length) { + ConsensusParams.decode = 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.abci.Snapshot(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ConsensusParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = reader.uint64(); + message.block = $root.tendermint.abci.BlockParams.decode(reader, reader.uint32()); break; case 2: - message.format = reader.uint32(); + message.evidence = $root.tendermint.types.EvidenceParams.decode(reader, reader.uint32()); break; case 3: - message.chunks = reader.uint32(); + message.validator = $root.tendermint.types.ValidatorParams.decode(reader, reader.uint32()); break; case 4: - message.hash = reader.bytes(); - break; - case 5: - message.metadata = reader.bytes(); + message.version = $root.tendermint.types.VersionParams.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -31808,737 +40283,818 @@ }; /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.abci.Snapshot} Snapshot + * @returns {tendermint.abci.ConsensusParams} ConsensusParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Snapshot.decodeDelimited = function decodeDelimited(reader) { + ConsensusParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Snapshot message. + * Verifies a ConsensusParams message. * @function verify - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Snapshot.verify = function verify(message) { + ConsensusParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.format != null && message.hasOwnProperty("format")) - if (!$util.isInteger(message.format)) - return "format: integer expected"; - if (message.chunks != null && message.hasOwnProperty("chunks")) - if (!$util.isInteger(message.chunks)) - return "chunks: integer 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.metadata != null && message.hasOwnProperty("metadata")) - if (!(message.metadata && typeof message.metadata.length === "number" || $util.isString(message.metadata))) - return "metadata: buffer expected"; + if (message.block != null && message.hasOwnProperty("block")) { + var error = $root.tendermint.abci.BlockParams.verify(message.block); + if (error) + return "block." + error; + } + if (message.evidence != null && message.hasOwnProperty("evidence")) { + var error = $root.tendermint.types.EvidenceParams.verify(message.evidence); + if (error) + return "evidence." + error; + } + if (message.validator != null && message.hasOwnProperty("validator")) { + var error = $root.tendermint.types.ValidatorParams.verify(message.validator); + if (error) + return "validator." + error; + } + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.tendermint.types.VersionParams.verify(message.version); + if (error) + return "version." + error; + } return null; }; /** - * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.abci.Snapshot + * @memberof tendermint.abci.ConsensusParams * @static * @param {Object.} object Plain object - * @returns {tendermint.abci.Snapshot} Snapshot + * @returns {tendermint.abci.ConsensusParams} ConsensusParams */ - Snapshot.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.abci.Snapshot) + ConsensusParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ConsensusParams) return object; - var message = new $root.tendermint.abci.Snapshot(); - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = true; - 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(true); - if (object.format != null) - message.format = object.format >>> 0; - if (object.chunks != null) - message.chunks = object.chunks >>> 0; - 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; - if (object.metadata != null) - if (typeof object.metadata === "string") - $util.base64.decode(object.metadata, message.metadata = $util.newBuffer($util.base64.length(object.metadata)), 0); - else if (object.metadata.length) - message.metadata = object.metadata; - return message; - }; - - /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.abci.Snapshot - * @static - * @param {tendermint.abci.Snapshot} message Snapshot - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Snapshot.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.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - object.format = 0; - object.chunks = 0; - if (options.bytes === String) - object.hash = ""; - else { - object.hash = []; - if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); - } - if (options.bytes === String) - object.metadata = ""; - else { - object.metadata = []; - if (options.bytes !== Array) - object.metadata = $util.newBuffer(object.metadata); - } + var message = new $root.tendermint.abci.ConsensusParams(); + if (object.block != null) { + if (typeof object.block !== "object") + throw TypeError(".tendermint.abci.ConsensusParams.block: object expected"); + message.block = $root.tendermint.abci.BlockParams.fromObject(object.block); } - 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(true) : message.height; - if (message.format != null && message.hasOwnProperty("format")) - object.format = message.format; - if (message.chunks != null && message.hasOwnProperty("chunks")) - object.chunks = message.chunks; - 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; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = options.bytes === String ? $util.base64.encode(message.metadata, 0, message.metadata.length) : options.bytes === Array ? Array.prototype.slice.call(message.metadata) : message.metadata; - return object; - }; - - /** - * Converts this Snapshot to JSON. - * @function toJSON - * @memberof tendermint.abci.Snapshot - * @instance - * @returns {Object.} JSON object - */ - Snapshot.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Snapshot; - })(); - - abci.ABCIApplication = (function() { - - /** - * Constructs a new ABCIApplication service. - * @memberof tendermint.abci - * @classdesc Represents a ABCIApplication - * @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 ABCIApplication(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ABCIApplication.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ABCIApplication; - - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. - * @memberof tendermint.abci.ABCIApplication - * @typedef EchoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseEcho} [response] ResponseEcho - */ - - /** - * Calls Echo. - * @function echo - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestEcho} request RequestEcho message or plain object - * @param {tendermint.abci.ABCIApplication.EchoCallback} callback Node-style callback called with the error, if any, and ResponseEcho - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ABCIApplication.prototype.echo = function echo(request, callback) { - return this.rpcCall(echo, $root.tendermint.abci.RequestEcho, $root.tendermint.abci.ResponseEcho, request, callback); - }, "name", { value: "Echo" }); - - /** - * Calls Echo. - * @function echo - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestEcho} request RequestEcho message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. - * @memberof tendermint.abci.ABCIApplication - * @typedef FlushCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseFlush} [response] ResponseFlush - */ + if (object.evidence != null) { + if (typeof object.evidence !== "object") + throw TypeError(".tendermint.abci.ConsensusParams.evidence: object expected"); + message.evidence = $root.tendermint.types.EvidenceParams.fromObject(object.evidence); + } + if (object.validator != null) { + if (typeof object.validator !== "object") + throw TypeError(".tendermint.abci.ConsensusParams.validator: object expected"); + message.validator = $root.tendermint.types.ValidatorParams.fromObject(object.validator); + } + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".tendermint.abci.ConsensusParams.version: object expected"); + message.version = $root.tendermint.types.VersionParams.fromObject(object.version); + } + return message; + }; /** - * Calls Flush. - * @function flush - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestFlush} request RequestFlush message or plain object - * @param {tendermint.abci.ABCIApplication.FlushCallback} callback Node-style callback called with the error, if any, and ResponseFlush - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.ConsensusParams + * @static + * @param {tendermint.abci.ConsensusParams} message ConsensusParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ABCIApplication.prototype.flush = function flush(request, callback) { - return this.rpcCall(flush, $root.tendermint.abci.RequestFlush, $root.tendermint.abci.ResponseFlush, request, callback); - }, "name", { value: "Flush" }); + ConsensusParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.block = null; + object.evidence = null; + object.validator = null; + object.version = null; + } + if (message.block != null && message.hasOwnProperty("block")) + object.block = $root.tendermint.abci.BlockParams.toObject(message.block, options); + if (message.evidence != null && message.hasOwnProperty("evidence")) + object.evidence = $root.tendermint.types.EvidenceParams.toObject(message.evidence, options); + if (message.validator != null && message.hasOwnProperty("validator")) + object.validator = $root.tendermint.types.ValidatorParams.toObject(message.validator, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.tendermint.types.VersionParams.toObject(message.version, options); + return object; + }; /** - * Calls Flush. - * @function flush - * @memberof tendermint.abci.ABCIApplication + * Converts this ConsensusParams to JSON. + * @function toJSON + * @memberof tendermint.abci.ConsensusParams * @instance - * @param {tendermint.abci.IRequestFlush} request RequestFlush message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ConsensusParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#info}. - * @memberof tendermint.abci.ABCIApplication - * @typedef InfoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseInfo} [response] ResponseInfo - */ + return ConsensusParams; + })(); - /** - * Calls Info. - * @function info - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestInfo} request RequestInfo message or plain object - * @param {tendermint.abci.ABCIApplication.InfoCallback} callback Node-style callback called with the error, if any, and ResponseInfo - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ABCIApplication.prototype.info = function info(request, callback) { - return this.rpcCall(info, $root.tendermint.abci.RequestInfo, $root.tendermint.abci.ResponseInfo, request, callback); - }, "name", { value: "Info" }); + abci.BlockParams = (function() { /** - * Calls Info. - * @function info - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestInfo} request RequestInfo message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a BlockParams. + * @memberof tendermint.abci + * @interface IBlockParams + * @property {Long|null} [max_bytes] BlockParams max_bytes + * @property {Long|null} [max_gas] BlockParams max_gas */ /** - * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. - * @memberof tendermint.abci.ABCIApplication - * @typedef SetOptionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseSetOption} [response] ResponseSetOption + * Constructs a new BlockParams. + * @memberof tendermint.abci + * @classdesc Represents a BlockParams. + * @implements IBlockParams + * @constructor + * @param {tendermint.abci.IBlockParams=} [properties] Properties to set */ + function BlockParams(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 SetOption. - * @function setOption - * @memberof tendermint.abci.ABCIApplication + * BlockParams max_bytes. + * @member {Long} max_bytes + * @memberof tendermint.abci.BlockParams * @instance - * @param {tendermint.abci.IRequestSetOption} request RequestSetOption message or plain object - * @param {tendermint.abci.ABCIApplication.SetOptionCallback} callback Node-style callback called with the error, if any, and ResponseSetOption - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(ABCIApplication.prototype.setOption = function setOption(request, callback) { - return this.rpcCall(setOption, $root.tendermint.abci.RequestSetOption, $root.tendermint.abci.ResponseSetOption, request, callback); - }, "name", { value: "SetOption" }); + BlockParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Calls SetOption. - * @function setOption - * @memberof tendermint.abci.ABCIApplication + * BlockParams max_gas. + * @member {Long} max_gas + * @memberof tendermint.abci.BlockParams * @instance - * @param {tendermint.abci.IRequestSetOption} request RequestSetOption message or plain object - * @returns {Promise} Promise - * @variation 2 */ + BlockParams.prototype.max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. - * @memberof tendermint.abci.ABCIApplication - * @typedef DeliverTxCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseDeliverTx} [response] ResponseDeliverTx + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * @function encode + * @memberof tendermint.abci.BlockParams + * @static + * @param {tendermint.abci.IBlockParams} message BlockParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + BlockParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_bytes); + if (message.max_gas != null && Object.hasOwnProperty.call(message, "max_gas")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.max_gas); + return writer; + }; /** - * Calls DeliverTx. - * @function deliverTx - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestDeliverTx} request RequestDeliverTx message or plain object - * @param {tendermint.abci.ABCIApplication.DeliverTxCallback} callback Node-style callback called with the error, if any, and ResponseDeliverTx - * @returns {undefined} - * @variation 1 + * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * @function encodeDelimited + * @memberof tendermint.abci.BlockParams + * @static + * @param {tendermint.abci.IBlockParams} message BlockParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ABCIApplication.prototype.deliverTx = function deliverTx(request, callback) { - return this.rpcCall(deliverTx, $root.tendermint.abci.RequestDeliverTx, $root.tendermint.abci.ResponseDeliverTx, request, callback); - }, "name", { value: "DeliverTx" }); + BlockParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeliverTx. - * @function deliverTx - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestDeliverTx} request RequestDeliverTx message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a BlockParams message from the specified reader or buffer. + * @function decode + * @memberof tendermint.abci.BlockParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tendermint.abci.BlockParams} BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BlockParams.decode = 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.abci.BlockParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.max_bytes = reader.int64(); + break; + case 2: + message.max_gas = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. - * @memberof tendermint.abci.ABCIApplication - * @typedef CheckTxCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseCheckTx} [response] ResponseCheckTx + * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tendermint.abci.BlockParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tendermint.abci.BlockParams} BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BlockParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CheckTx. - * @function checkTx - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestCheckTx} request RequestCheckTx message or plain object - * @param {tendermint.abci.ABCIApplication.CheckTxCallback} callback Node-style callback called with the error, if any, and ResponseCheckTx - * @returns {undefined} - * @variation 1 + * Verifies a BlockParams message. + * @function verify + * @memberof tendermint.abci.BlockParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(ABCIApplication.prototype.checkTx = function checkTx(request, callback) { - return this.rpcCall(checkTx, $root.tendermint.abci.RequestCheckTx, $root.tendermint.abci.ResponseCheckTx, request, callback); - }, "name", { value: "CheckTx" }); + BlockParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) + return "max_bytes: integer|Long expected"; + if (message.max_gas != null && message.hasOwnProperty("max_gas")) + if (!$util.isInteger(message.max_gas) && !(message.max_gas && $util.isInteger(message.max_gas.low) && $util.isInteger(message.max_gas.high))) + return "max_gas: integer|Long expected"; + return null; + }; /** - * Calls CheckTx. - * @function checkTx - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestCheckTx} request RequestCheckTx message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tendermint.abci.BlockParams + * @static + * @param {Object.} object Plain object + * @returns {tendermint.abci.BlockParams} BlockParams */ + BlockParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.BlockParams) + return object; + var message = new $root.tendermint.abci.BlockParams(); + if (object.max_bytes != null) + if ($util.Long) + (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; + else if (typeof object.max_bytes === "string") + message.max_bytes = parseInt(object.max_bytes, 10); + else if (typeof object.max_bytes === "number") + message.max_bytes = object.max_bytes; + else if (typeof object.max_bytes === "object") + message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); + if (object.max_gas != null) + if ($util.Long) + (message.max_gas = $util.Long.fromValue(object.max_gas)).unsigned = false; + else if (typeof object.max_gas === "string") + message.max_gas = parseInt(object.max_gas, 10); + else if (typeof object.max_gas === "number") + message.max_gas = object.max_gas; + else if (typeof object.max_gas === "object") + message.max_gas = new $util.LongBits(object.max_gas.low >>> 0, object.max_gas.high >>> 0).toNumber(); + return message; + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#query}. - * @memberof tendermint.abci.ABCIApplication - * @typedef QueryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseQuery} [response] ResponseQuery + * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.BlockParams + * @static + * @param {tendermint.abci.BlockParams} message BlockParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + BlockParams.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.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_bytes = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_gas = options.longs === String ? "0" : 0; + } + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (typeof message.max_bytes === "number") + object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; + else + object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; + if (message.max_gas != null && message.hasOwnProperty("max_gas")) + if (typeof message.max_gas === "number") + object.max_gas = options.longs === String ? String(message.max_gas) : message.max_gas; + else + object.max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.max_gas) : options.longs === Number ? new $util.LongBits(message.max_gas.low >>> 0, message.max_gas.high >>> 0).toNumber() : message.max_gas; + return object; + }; /** - * Calls Query. - * @function query - * @memberof tendermint.abci.ABCIApplication + * Converts this BlockParams to JSON. + * @function toJSON + * @memberof tendermint.abci.BlockParams * @instance - * @param {tendermint.abci.IRequestQuery} request RequestQuery message or plain object - * @param {tendermint.abci.ABCIApplication.QueryCallback} callback Node-style callback called with the error, if any, and ResponseQuery - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(ABCIApplication.prototype.query = function query(request, callback) { - return this.rpcCall(query, $root.tendermint.abci.RequestQuery, $root.tendermint.abci.ResponseQuery, request, callback); - }, "name", { value: "Query" }); + BlockParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls Query. - * @function query - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestQuery} request RequestQuery message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return BlockParams; + })(); + + abci.LastCommitInfo = (function() { /** - * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. - * @memberof tendermint.abci.ABCIApplication - * @typedef CommitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseCommit} [response] ResponseCommit + * Properties of a LastCommitInfo. + * @memberof tendermint.abci + * @interface ILastCommitInfo + * @property {number|null} [round] LastCommitInfo round + * @property {Array.|null} [votes] LastCommitInfo votes */ /** - * Calls Commit. - * @function commit - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestCommit} request RequestCommit message or plain object - * @param {tendermint.abci.ABCIApplication.CommitCallback} callback Node-style callback called with the error, if any, and ResponseCommit - * @returns {undefined} - * @variation 1 + * Constructs a new LastCommitInfo. + * @memberof tendermint.abci + * @classdesc Represents a LastCommitInfo. + * @implements ILastCommitInfo + * @constructor + * @param {tendermint.abci.ILastCommitInfo=} [properties] Properties to set */ - Object.defineProperty(ABCIApplication.prototype.commit = function commit(request, callback) { - return this.rpcCall(commit, $root.tendermint.abci.RequestCommit, $root.tendermint.abci.ResponseCommit, request, callback); - }, "name", { value: "Commit" }); + function LastCommitInfo(properties) { + this.votes = []; + 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 Commit. - * @function commit - * @memberof tendermint.abci.ABCIApplication + * LastCommitInfo round. + * @member {number} round + * @memberof tendermint.abci.LastCommitInfo * @instance - * @param {tendermint.abci.IRequestCommit} request RequestCommit message or plain object - * @returns {Promise} Promise - * @variation 2 */ + LastCommitInfo.prototype.round = 0; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#initChain}. - * @memberof tendermint.abci.ABCIApplication - * @typedef InitChainCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseInitChain} [response] ResponseInitChain + * LastCommitInfo votes. + * @member {Array.} votes + * @memberof tendermint.abci.LastCommitInfo + * @instance */ + LastCommitInfo.prototype.votes = $util.emptyArray; /** - * Calls InitChain. - * @function initChain - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestInitChain} request RequestInitChain message or plain object - * @param {tendermint.abci.ABCIApplication.InitChainCallback} callback Node-style callback called with the error, if any, and ResponseInitChain - * @returns {undefined} - * @variation 1 + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * @function encode + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {tendermint.abci.ILastCommitInfo} message LastCommitInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ABCIApplication.prototype.initChain = function initChain(request, callback) { - return this.rpcCall(initChain, $root.tendermint.abci.RequestInitChain, $root.tendermint.abci.ResponseInitChain, request, callback); - }, "name", { value: "InitChain" }); + LastCommitInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.round != null && Object.hasOwnProperty.call(message, "round")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.round); + if (message.votes != null && message.votes.length) + for (var i = 0; i < message.votes.length; ++i) + $root.tendermint.abci.VoteInfo.encode(message.votes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls InitChain. - * @function initChain - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestInitChain} request RequestInitChain message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified LastCommitInfo message, length delimited. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {tendermint.abci.ILastCommitInfo} message LastCommitInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + LastCommitInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#beginBlock}. - * @memberof tendermint.abci.ABCIApplication - * @typedef BeginBlockCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseBeginBlock} [response] ResponseBeginBlock + * Decodes a LastCommitInfo message from the specified reader or buffer. + * @function decode + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + LastCommitInfo.decode = 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.abci.LastCommitInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.round = reader.int32(); + break; + case 2: + if (!(message.votes && message.votes.length)) + message.votes = []; + message.votes.push($root.tendermint.abci.VoteInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls BeginBlock. - * @function beginBlock - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestBeginBlock} request RequestBeginBlock message or plain object - * @param {tendermint.abci.ABCIApplication.BeginBlockCallback} callback Node-style callback called with the error, if any, and ResponseBeginBlock - * @returns {undefined} - * @variation 1 + * Decodes a LastCommitInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ABCIApplication.prototype.beginBlock = function beginBlock(request, callback) { - return this.rpcCall(beginBlock, $root.tendermint.abci.RequestBeginBlock, $root.tendermint.abci.ResponseBeginBlock, request, callback); - }, "name", { value: "BeginBlock" }); + LastCommitInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls BeginBlock. - * @function beginBlock - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestBeginBlock} request RequestBeginBlock message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a LastCommitInfo message. + * @function verify + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + LastCommitInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.round != null && message.hasOwnProperty("round")) + if (!$util.isInteger(message.round)) + return "round: integer expected"; + if (message.votes != null && message.hasOwnProperty("votes")) { + if (!Array.isArray(message.votes)) + return "votes: array expected"; + for (var i = 0; i < message.votes.length; ++i) { + var error = $root.tendermint.abci.VoteInfo.verify(message.votes[i]); + if (error) + return "votes." + error; + } + } + return null; + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. - * @memberof tendermint.abci.ABCIApplication - * @typedef EndBlockCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseEndBlock} [response] ResponseEndBlock + * Creates a LastCommitInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {Object.} object Plain object + * @returns {tendermint.abci.LastCommitInfo} LastCommitInfo */ + LastCommitInfo.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.LastCommitInfo) + return object; + var message = new $root.tendermint.abci.LastCommitInfo(); + if (object.round != null) + message.round = object.round | 0; + if (object.votes) { + if (!Array.isArray(object.votes)) + throw TypeError(".tendermint.abci.LastCommitInfo.votes: array expected"); + message.votes = []; + for (var i = 0; i < object.votes.length; ++i) { + if (typeof object.votes[i] !== "object") + throw TypeError(".tendermint.abci.LastCommitInfo.votes: object expected"); + message.votes[i] = $root.tendermint.abci.VoteInfo.fromObject(object.votes[i]); + } + } + return message; + }; /** - * Calls EndBlock. - * @function endBlock - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestEndBlock} request RequestEndBlock message or plain object - * @param {tendermint.abci.ABCIApplication.EndBlockCallback} callback Node-style callback called with the error, if any, and ResponseEndBlock - * @returns {undefined} - * @variation 1 + * Creates a plain object from a LastCommitInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.LastCommitInfo + * @static + * @param {tendermint.abci.LastCommitInfo} message LastCommitInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ABCIApplication.prototype.endBlock = function endBlock(request, callback) { - return this.rpcCall(endBlock, $root.tendermint.abci.RequestEndBlock, $root.tendermint.abci.ResponseEndBlock, request, callback); - }, "name", { value: "EndBlock" }); + LastCommitInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.votes = []; + if (options.defaults) + object.round = 0; + if (message.round != null && message.hasOwnProperty("round")) + object.round = message.round; + if (message.votes && message.votes.length) { + object.votes = []; + for (var j = 0; j < message.votes.length; ++j) + object.votes[j] = $root.tendermint.abci.VoteInfo.toObject(message.votes[j], options); + } + return object; + }; /** - * Calls EndBlock. - * @function endBlock - * @memberof tendermint.abci.ABCIApplication + * Converts this LastCommitInfo to JSON. + * @function toJSON + * @memberof tendermint.abci.LastCommitInfo * @instance - * @param {tendermint.abci.IRequestEndBlock} request RequestEndBlock message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + LastCommitInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LastCommitInfo; + })(); + + abci.Event = (function() { /** - * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. - * @memberof tendermint.abci.ABCIApplication - * @typedef ListSnapshotsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseListSnapshots} [response] ResponseListSnapshots + * Properties of an Event. + * @memberof tendermint.abci + * @interface IEvent + * @property {string|null} [type] Event type + * @property {Array.|null} [attributes] Event attributes */ /** - * Calls ListSnapshots. - * @function listSnapshots - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestListSnapshots} request RequestListSnapshots message or plain object - * @param {tendermint.abci.ABCIApplication.ListSnapshotsCallback} callback Node-style callback called with the error, if any, and ResponseListSnapshots - * @returns {undefined} - * @variation 1 + * Constructs a new Event. + * @memberof tendermint.abci + * @classdesc Represents an Event. + * @implements IEvent + * @constructor + * @param {tendermint.abci.IEvent=} [properties] Properties to set */ - Object.defineProperty(ABCIApplication.prototype.listSnapshots = function listSnapshots(request, callback) { - return this.rpcCall(listSnapshots, $root.tendermint.abci.RequestListSnapshots, $root.tendermint.abci.ResponseListSnapshots, request, callback); - }, "name", { value: "ListSnapshots" }); + function Event(properties) { + this.attributes = []; + 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 ListSnapshots. - * @function listSnapshots - * @memberof tendermint.abci.ABCIApplication + * Event type. + * @member {string} type + * @memberof tendermint.abci.Event * @instance - * @param {tendermint.abci.IRequestListSnapshots} request RequestListSnapshots message or plain object - * @returns {Promise} Promise - * @variation 2 */ + Event.prototype.type = ""; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. - * @memberof tendermint.abci.ABCIApplication - * @typedef OfferSnapshotCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseOfferSnapshot} [response] ResponseOfferSnapshot + * Event attributes. + * @member {Array.} attributes + * @memberof tendermint.abci.Event + * @instance */ + Event.prototype.attributes = $util.emptyArray; /** - * Calls OfferSnapshot. - * @function offerSnapshot - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestOfferSnapshot} request RequestOfferSnapshot message or plain object - * @param {tendermint.abci.ABCIApplication.OfferSnapshotCallback} callback Node-style callback called with the error, if any, and ResponseOfferSnapshot - * @returns {undefined} - * @variation 1 + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * @function encode + * @memberof tendermint.abci.Event + * @static + * @param {tendermint.abci.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(ABCIApplication.prototype.offerSnapshot = function offerSnapshot(request, callback) { - return this.rpcCall(offerSnapshot, $root.tendermint.abci.RequestOfferSnapshot, $root.tendermint.abci.ResponseOfferSnapshot, request, callback); - }, "name", { value: "OfferSnapshot" }); + Event.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.attributes != null && message.attributes.length) + for (var i = 0; i < message.attributes.length; ++i) + $root.tendermint.abci.EventAttribute.encode(message.attributes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls OfferSnapshot. - * @function offerSnapshot - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestOfferSnapshot} request RequestOfferSnapshot message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified Event message, length delimited. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * @function encodeDelimited + * @memberof tendermint.abci.Event + * @static + * @param {tendermint.abci.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + Event.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. - * @memberof tendermint.abci.ABCIApplication - * @typedef LoadSnapshotChunkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseLoadSnapshotChunk} [response] ResponseLoadSnapshotChunk + * Decodes an Event message from the specified reader or buffer. + * @function decode + * @memberof tendermint.abci.Event + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tendermint.abci.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + Event.decode = 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.abci.Event(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (!(message.attributes && message.attributes.length)) + message.attributes = []; + message.attributes.push($root.tendermint.abci.EventAttribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls LoadSnapshotChunk. - * @function loadSnapshotChunk - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestLoadSnapshotChunk} request RequestLoadSnapshotChunk message or plain object - * @param {tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback} callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk - * @returns {undefined} - * @variation 1 + * Decodes an Event message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tendermint.abci.Event + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tendermint.abci.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(ABCIApplication.prototype.loadSnapshotChunk = function loadSnapshotChunk(request, callback) { - return this.rpcCall(loadSnapshotChunk, $root.tendermint.abci.RequestLoadSnapshotChunk, $root.tendermint.abci.ResponseLoadSnapshotChunk, request, callback); - }, "name", { value: "LoadSnapshotChunk" }); + Event.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls LoadSnapshotChunk. - * @function loadSnapshotChunk - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestLoadSnapshotChunk} request RequestLoadSnapshotChunk message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies an Event message. + * @function verify + * @memberof tendermint.abci.Event + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + Event.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!Array.isArray(message.attributes)) + return "attributes: array expected"; + for (var i = 0; i < message.attributes.length; ++i) { + var error = $root.tendermint.abci.EventAttribute.verify(message.attributes[i]); + if (error) + return "attributes." + error; + } + } + return null; + }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. - * @memberof tendermint.abci.ABCIApplication - * @typedef ApplySnapshotChunkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {tendermint.abci.ResponseApplySnapshotChunk} [response] ResponseApplySnapshotChunk + * Creates an Event message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tendermint.abci.Event + * @static + * @param {Object.} object Plain object + * @returns {tendermint.abci.Event} Event */ + Event.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Event) + return object; + var message = new $root.tendermint.abci.Event(); + if (object.type != null) + message.type = String(object.type); + if (object.attributes) { + if (!Array.isArray(object.attributes)) + throw TypeError(".tendermint.abci.Event.attributes: array expected"); + message.attributes = []; + for (var i = 0; i < object.attributes.length; ++i) { + if (typeof object.attributes[i] !== "object") + throw TypeError(".tendermint.abci.Event.attributes: object expected"); + message.attributes[i] = $root.tendermint.abci.EventAttribute.fromObject(object.attributes[i]); + } + } + return message; + }; /** - * Calls ApplySnapshotChunk. - * @function applySnapshotChunk - * @memberof tendermint.abci.ABCIApplication - * @instance - * @param {tendermint.abci.IRequestApplySnapshotChunk} request RequestApplySnapshotChunk message or plain object - * @param {tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback} callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk - * @returns {undefined} - * @variation 1 + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.Event + * @static + * @param {tendermint.abci.Event} message Event + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(ABCIApplication.prototype.applySnapshotChunk = function applySnapshotChunk(request, callback) { - return this.rpcCall(applySnapshotChunk, $root.tendermint.abci.RequestApplySnapshotChunk, $root.tendermint.abci.ResponseApplySnapshotChunk, request, callback); - }, "name", { value: "ApplySnapshotChunk" }); + Event.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.attributes = []; + if (options.defaults) + object.type = ""; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.attributes && message.attributes.length) { + object.attributes = []; + for (var j = 0; j < message.attributes.length; ++j) + object.attributes[j] = $root.tendermint.abci.EventAttribute.toObject(message.attributes[j], options); + } + return object; + }; /** - * Calls ApplySnapshotChunk. - * @function applySnapshotChunk - * @memberof tendermint.abci.ABCIApplication + * Converts this Event to JSON. + * @function toJSON + * @memberof tendermint.abci.Event * @instance - * @param {tendermint.abci.IRequestApplySnapshotChunk} request RequestApplySnapshotChunk message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + Event.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ABCIApplication; - })(); - - return abci; - })(); - - tendermint.types = (function() { - - /** - * Namespace types. - * @memberof tendermint - * @namespace - */ - var types = {}; - - /** - * BlockIDFlag enum. - * @name tendermint.types.BlockIDFlag - * @enum {number} - * @property {number} BLOCK_ID_FLAG_UNKNOWN=0 BLOCK_ID_FLAG_UNKNOWN value - * @property {number} BLOCK_ID_FLAG_ABSENT=1 BLOCK_ID_FLAG_ABSENT value - * @property {number} BLOCK_ID_FLAG_COMMIT=2 BLOCK_ID_FLAG_COMMIT value - * @property {number} BLOCK_ID_FLAG_NIL=3 BLOCK_ID_FLAG_NIL value - */ - types.BlockIDFlag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BLOCK_ID_FLAG_UNKNOWN"] = 0; - values[valuesById[1] = "BLOCK_ID_FLAG_ABSENT"] = 1; - values[valuesById[2] = "BLOCK_ID_FLAG_COMMIT"] = 2; - values[valuesById[3] = "BLOCK_ID_FLAG_NIL"] = 3; - return values; - })(); - - /** - * SignedMsgType enum. - * @name tendermint.types.SignedMsgType - * @enum {number} - * @property {number} SIGNED_MSG_TYPE_UNKNOWN=0 SIGNED_MSG_TYPE_UNKNOWN value - * @property {number} SIGNED_MSG_TYPE_PREVOTE=1 SIGNED_MSG_TYPE_PREVOTE value - * @property {number} SIGNED_MSG_TYPE_PRECOMMIT=2 SIGNED_MSG_TYPE_PRECOMMIT value - * @property {number} SIGNED_MSG_TYPE_PROPOSAL=32 SIGNED_MSG_TYPE_PROPOSAL value - */ - types.SignedMsgType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SIGNED_MSG_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "SIGNED_MSG_TYPE_PREVOTE"] = 1; - values[valuesById[2] = "SIGNED_MSG_TYPE_PRECOMMIT"] = 2; - values[valuesById[32] = "SIGNED_MSG_TYPE_PROPOSAL"] = 32; - return values; + return Event; })(); - types.PartSetHeader = (function() { + abci.EventAttribute = (function() { /** - * Properties of a PartSetHeader. - * @memberof tendermint.types - * @interface IPartSetHeader - * @property {number|null} [total] PartSetHeader total - * @property {Uint8Array|null} [hash] PartSetHeader hash + * Properties of an EventAttribute. + * @memberof tendermint.abci + * @interface IEventAttribute + * @property {Uint8Array|null} [key] EventAttribute key + * @property {Uint8Array|null} [value] EventAttribute value + * @property {boolean|null} [index] EventAttribute index */ /** - * Constructs a new PartSetHeader. - * @memberof tendermint.types - * @classdesc Represents a PartSetHeader. - * @implements IPartSetHeader + * Constructs a new EventAttribute. + * @memberof tendermint.abci + * @classdesc Represents an EventAttribute. + * @implements IEventAttribute * @constructor - * @param {tendermint.types.IPartSetHeader=} [properties] Properties to set + * @param {tendermint.abci.IEventAttribute=} [properties] Properties to set */ - function PartSetHeader(properties) { + function EventAttribute(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32546,76 +41102,89 @@ } /** - * PartSetHeader total. - * @member {number} total - * @memberof tendermint.types.PartSetHeader + * EventAttribute key. + * @member {Uint8Array} key + * @memberof tendermint.abci.EventAttribute * @instance */ - PartSetHeader.prototype.total = 0; + EventAttribute.prototype.key = $util.newBuffer([]); /** - * PartSetHeader hash. - * @member {Uint8Array} hash - * @memberof tendermint.types.PartSetHeader + * EventAttribute value. + * @member {Uint8Array} value + * @memberof tendermint.abci.EventAttribute * @instance */ - PartSetHeader.prototype.hash = $util.newBuffer([]); + EventAttribute.prototype.value = $util.newBuffer([]); + + /** + * EventAttribute index. + * @member {boolean} index + * @memberof tendermint.abci.EventAttribute + * @instance + */ + EventAttribute.prototype.index = false; /** - * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. + * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. * @function encode - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static - * @param {tendermint.types.IPartSetHeader} message PartSetHeader message or plain object to encode + * @param {tendermint.abci.IEventAttribute} message EventAttribute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PartSetHeader.encode = function encode(message, writer) { + EventAttribute.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.total); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.hash); + 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.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.index); return writer; }; /** - * Encodes the specified PartSetHeader message, length delimited. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. + * Encodes the specified EventAttribute message, length delimited. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static - * @param {tendermint.types.IPartSetHeader} message PartSetHeader message or plain object to encode + * @param {tendermint.abci.IEventAttribute} message EventAttribute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PartSetHeader.encodeDelimited = function encodeDelimited(message, writer) { + EventAttribute.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PartSetHeader message from the specified reader or buffer. + * Decodes an EventAttribute message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.PartSetHeader} PartSetHeader + * @returns {tendermint.abci.EventAttribute} EventAttribute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PartSetHeader.decode = function decode(reader, length) { + EventAttribute.decode = 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.types.PartSetHeader(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.EventAttribute(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.total = reader.uint32(); + message.key = reader.bytes(); break; case 2: - message.hash = reader.bytes(); + message.value = reader.bytes(); + break; + case 3: + message.index = reader.bool(); break; default: reader.skipType(tag & 7); @@ -32626,127 +41195,145 @@ }; /** - * Decodes a PartSetHeader message from the specified reader or buffer, length delimited. + * Decodes an EventAttribute message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.PartSetHeader} PartSetHeader + * @returns {tendermint.abci.EventAttribute} EventAttribute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PartSetHeader.decodeDelimited = function decodeDelimited(reader) { + EventAttribute.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PartSetHeader message. + * Verifies an EventAttribute message. * @function verify - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PartSetHeader.verify = function verify(message) { + EventAttribute.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.total != null && message.hasOwnProperty("total")) - if (!$util.isInteger(message.total)) - return "total: integer 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.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.index != null && message.hasOwnProperty("index")) + if (typeof message.index !== "boolean") + return "index: boolean expected"; return null; }; /** - * Creates a PartSetHeader message from a plain object. Also converts values to their respective internal types. + * Creates an EventAttribute message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static * @param {Object.} object Plain object - * @returns {tendermint.types.PartSetHeader} PartSetHeader + * @returns {tendermint.abci.EventAttribute} EventAttribute */ - PartSetHeader.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.PartSetHeader) + EventAttribute.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.EventAttribute) return object; - var message = new $root.tendermint.types.PartSetHeader(); - if (object.total != null) - message.total = object.total >>> 0; - 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.tendermint.abci.EventAttribute(); + 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.index != null) + message.index = Boolean(object.index); return message; }; /** - * Creates a plain object from a PartSetHeader message. Also converts values to other types if specified. + * Creates a plain object from an EventAttribute message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @static - * @param {tendermint.types.PartSetHeader} message PartSetHeader + * @param {tendermint.abci.EventAttribute} message EventAttribute * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PartSetHeader.toObject = function toObject(message, options) { + EventAttribute.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.total = 0; if (options.bytes === String) - object.hash = ""; + object.key = ""; else { - object.hash = []; + object.key = []; if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); + 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.index = false; } - if (message.total != null && message.hasOwnProperty("total")) - object.total = message.total; - 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; + 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.index != null && message.hasOwnProperty("index")) + object.index = message.index; return object; }; /** - * Converts this PartSetHeader to JSON. + * Converts this EventAttribute to JSON. * @function toJSON - * @memberof tendermint.types.PartSetHeader + * @memberof tendermint.abci.EventAttribute * @instance * @returns {Object.} JSON object */ - PartSetHeader.prototype.toJSON = function toJSON() { + EventAttribute.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PartSetHeader; + return EventAttribute; })(); - types.Part = (function() { + abci.TxResult = (function() { /** - * Properties of a Part. - * @memberof tendermint.types - * @interface IPart - * @property {number|null} [index] Part index - * @property {Uint8Array|null} [bytes] Part bytes - * @property {tendermint.crypto.IProof|null} [proof] Part proof + * Properties of a TxResult. + * @memberof tendermint.abci + * @interface ITxResult + * @property {Long|null} [height] TxResult height + * @property {number|null} [index] TxResult index + * @property {Uint8Array|null} [tx] TxResult tx + * @property {tendermint.abci.IResponseDeliverTx|null} [result] TxResult result */ /** - * Constructs a new Part. - * @memberof tendermint.types - * @classdesc Represents a Part. - * @implements IPart + * Constructs a new TxResult. + * @memberof tendermint.abci + * @classdesc Represents a TxResult. + * @implements ITxResult * @constructor - * @param {tendermint.types.IPart=} [properties] Properties to set + * @param {tendermint.abci.ITxResult=} [properties] Properties to set */ - function Part(properties) { + function TxResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32754,89 +41341,102 @@ } /** - * Part index. + * TxResult height. + * @member {Long} height + * @memberof tendermint.abci.TxResult + * @instance + */ + TxResult.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TxResult index. * @member {number} index - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @instance */ - Part.prototype.index = 0; + TxResult.prototype.index = 0; /** - * Part bytes. - * @member {Uint8Array} bytes - * @memberof tendermint.types.Part + * TxResult tx. + * @member {Uint8Array} tx + * @memberof tendermint.abci.TxResult * @instance */ - Part.prototype.bytes = $util.newBuffer([]); + TxResult.prototype.tx = $util.newBuffer([]); /** - * Part proof. - * @member {tendermint.crypto.IProof|null|undefined} proof - * @memberof tendermint.types.Part + * TxResult result. + * @member {tendermint.abci.IResponseDeliverTx|null|undefined} result + * @memberof tendermint.abci.TxResult * @instance */ - Part.prototype.proof = null; + TxResult.prototype.result = null; /** - * Encodes the specified Part message. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. + * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. * @function encode - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static - * @param {tendermint.types.IPart} message Part message or plain object to encode + * @param {tendermint.abci.ITxResult} message TxResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Part.encode = function encode(message, writer) { + TxResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); - if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.bytes); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); + if (message.tx != null && Object.hasOwnProperty.call(message, "tx")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.tx); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.tendermint.abci.ResponseDeliverTx.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. + * Encodes the specified TxResult message, length delimited. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static - * @param {tendermint.types.IPart} message Part message or plain object to encode + * @param {tendermint.abci.ITxResult} message TxResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Part.encodeDelimited = function encodeDelimited(message, writer) { + TxResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Part message from the specified reader or buffer. + * Decodes a TxResult message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Part} Part + * @returns {tendermint.abci.TxResult} TxResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Part.decode = function decode(reader, length) { + TxResult.decode = 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.types.Part(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.TxResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.index = reader.uint32(); + message.height = reader.int64(); break; case 2: - message.bytes = reader.bytes(); + message.index = reader.uint32(); break; case 3: - message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); + message.tx = reader.bytes(); + break; + case 4: + message.result = $root.tendermint.abci.ResponseDeliverTx.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -32847,139 +41447,161 @@ }; /** - * Decodes a Part message from the specified reader or buffer, length delimited. + * Decodes a TxResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Part} Part + * @returns {tendermint.abci.TxResult} TxResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Part.decodeDelimited = function decodeDelimited(reader) { + TxResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Part message. + * Verifies a TxResult message. * @function verify - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Part.verify = function verify(message) { + TxResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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.index != null && message.hasOwnProperty("index")) if (!$util.isInteger(message.index)) return "index: integer expected"; - if (message.bytes != null && message.hasOwnProperty("bytes")) - if (!(message.bytes && typeof message.bytes.length === "number" || $util.isString(message.bytes))) - return "bytes: buffer expected"; - if (message.proof != null && message.hasOwnProperty("proof")) { - var error = $root.tendermint.crypto.Proof.verify(message.proof); + if (message.tx != null && message.hasOwnProperty("tx")) + if (!(message.tx && typeof message.tx.length === "number" || $util.isString(message.tx))) + return "tx: buffer expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.tendermint.abci.ResponseDeliverTx.verify(message.result); if (error) - return "proof." + error; + return "result." + error; } return null; }; /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. + * Creates a TxResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static * @param {Object.} object Plain object - * @returns {tendermint.types.Part} Part + * @returns {tendermint.abci.TxResult} TxResult */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Part) + TxResult.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.TxResult) return object; - var message = new $root.tendermint.types.Part(); + var message = new $root.tendermint.abci.TxResult(); + 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.index != null) message.index = object.index >>> 0; - if (object.bytes != null) - if (typeof object.bytes === "string") - $util.base64.decode(object.bytes, message.bytes = $util.newBuffer($util.base64.length(object.bytes)), 0); - else if (object.bytes.length) - message.bytes = object.bytes; - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".tendermint.types.Part.proof: object expected"); - message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); + if (object.tx != null) + if (typeof object.tx === "string") + $util.base64.decode(object.tx, message.tx = $util.newBuffer($util.base64.length(object.tx)), 0); + else if (object.tx.length) + message.tx = object.tx; + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tendermint.abci.TxResult.result: object expected"); + message.result = $root.tendermint.abci.ResponseDeliverTx.fromObject(object.result); } return message; }; /** - * Creates a plain object from a Part message. Also converts values to other types if specified. + * Creates a plain object from a TxResult message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @static - * @param {tendermint.types.Part} message Part + * @param {tendermint.abci.TxResult} message TxResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Part.toObject = function toObject(message, options) { + TxResult.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.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; object.index = 0; if (options.bytes === String) - object.bytes = ""; + object.tx = ""; else { - object.bytes = []; + object.tx = []; if (options.bytes !== Array) - object.bytes = $util.newBuffer(object.bytes); + object.tx = $util.newBuffer(object.tx); } - object.proof = null; + object.result = null; } + 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.index != null && message.hasOwnProperty("index")) object.index = message.index; - if (message.bytes != null && message.hasOwnProperty("bytes")) - object.bytes = options.bytes === String ? $util.base64.encode(message.bytes, 0, message.bytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytes) : message.bytes; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); + if (message.tx != null && message.hasOwnProperty("tx")) + object.tx = options.bytes === String ? $util.base64.encode(message.tx, 0, message.tx.length) : options.bytes === Array ? Array.prototype.slice.call(message.tx) : message.tx; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.tendermint.abci.ResponseDeliverTx.toObject(message.result, options); return object; }; /** - * Converts this Part to JSON. + * Converts this TxResult to JSON. * @function toJSON - * @memberof tendermint.types.Part + * @memberof tendermint.abci.TxResult * @instance * @returns {Object.} JSON object */ - Part.prototype.toJSON = function toJSON() { + TxResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Part; + return TxResult; })(); - types.BlockID = (function() { + abci.Validator = (function() { /** - * Properties of a BlockID. - * @memberof tendermint.types - * @interface IBlockID - * @property {Uint8Array|null} [hash] BlockID hash - * @property {tendermint.types.IPartSetHeader|null} [part_set_header] BlockID part_set_header + * Properties of a Validator. + * @memberof tendermint.abci + * @interface IValidator + * @property {Uint8Array|null} [address] Validator address + * @property {Long|null} [power] Validator power */ /** - * Constructs a new BlockID. - * @memberof tendermint.types - * @classdesc Represents a BlockID. - * @implements IBlockID + * Constructs a new Validator. + * @memberof tendermint.abci + * @classdesc Represents a Validator. + * @implements IValidator * @constructor - * @param {tendermint.types.IBlockID=} [properties] Properties to set + * @param {tendermint.abci.IValidator=} [properties] Properties to set */ - function BlockID(properties) { + function Validator(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32987,76 +41609,76 @@ } /** - * BlockID hash. - * @member {Uint8Array} hash - * @memberof tendermint.types.BlockID + * Validator address. + * @member {Uint8Array} address + * @memberof tendermint.abci.Validator * @instance */ - BlockID.prototype.hash = $util.newBuffer([]); + Validator.prototype.address = $util.newBuffer([]); /** - * BlockID part_set_header. - * @member {tendermint.types.IPartSetHeader|null|undefined} part_set_header - * @memberof tendermint.types.BlockID + * Validator power. + * @member {Long} power + * @memberof tendermint.abci.Validator * @instance */ - BlockID.prototype.part_set_header = null; + Validator.prototype.power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified BlockID message. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. * @function encode - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static - * @param {tendermint.types.IBlockID} message BlockID message or plain object to encode + * @param {tendermint.abci.IValidator} message Validator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockID.encode = function encode(message, writer) { + Validator.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.part_set_header != null && Object.hasOwnProperty.call(message, "part_set_header")) - $root.tendermint.types.PartSetHeader.encode(message.part_set_header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address); + if (message.power != null && Object.hasOwnProperty.call(message, "power")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.power); return writer; }; /** - * Encodes the specified BlockID message, length delimited. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. + * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static - * @param {tendermint.types.IBlockID} message BlockID message or plain object to encode + * @param {tendermint.abci.IValidator} message Validator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockID.encodeDelimited = function encodeDelimited(message, writer) { + Validator.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BlockID message from the specified reader or buffer. + * Decodes a Validator message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.BlockID} BlockID + * @returns {tendermint.abci.Validator} Validator * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockID.decode = function decode(reader, length) { + Validator.decode = 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.types.BlockID(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.Validator(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hash = reader.bytes(); + message.address = reader.bytes(); break; - case 2: - message.part_set_header = $root.tendermint.types.PartSetHeader.decode(reader, reader.uint32()); + case 3: + message.power = reader.int64(); break; default: reader.skipType(tag & 7); @@ -33067,143 +41689,140 @@ }; /** - * Decodes a BlockID message from the specified reader or buffer, length delimited. + * Decodes a Validator message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.BlockID} BlockID + * @returns {tendermint.abci.Validator} Validator * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockID.decodeDelimited = function decodeDelimited(reader) { + Validator.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BlockID message. + * Verifies a Validator message. * @function verify - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BlockID.verify = function verify(message) { + Validator.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.part_set_header != null && message.hasOwnProperty("part_set_header")) { - var error = $root.tendermint.types.PartSetHeader.verify(message.part_set_header); - if (error) - return "part_set_header." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address))) + return "address: buffer expected"; + if (message.power != null && message.hasOwnProperty("power")) + if (!$util.isInteger(message.power) && !(message.power && $util.isInteger(message.power.low) && $util.isInteger(message.power.high))) + return "power: integer|Long expected"; return null; }; /** - * Creates a BlockID message from a plain object. Also converts values to their respective internal types. + * Creates a Validator message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static * @param {Object.} object Plain object - * @returns {tendermint.types.BlockID} BlockID + * @returns {tendermint.abci.Validator} Validator */ - BlockID.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.BlockID) + Validator.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Validator) return object; - var message = new $root.tendermint.types.BlockID(); - 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; - if (object.part_set_header != null) { - if (typeof object.part_set_header !== "object") - throw TypeError(".tendermint.types.BlockID.part_set_header: object expected"); - message.part_set_header = $root.tendermint.types.PartSetHeader.fromObject(object.part_set_header); - } + var message = new $root.tendermint.abci.Validator(); + if (object.address != null) + if (typeof object.address === "string") + $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0); + else if (object.address.length) + message.address = object.address; + if (object.power != null) + if ($util.Long) + (message.power = $util.Long.fromValue(object.power)).unsigned = false; + else if (typeof object.power === "string") + message.power = parseInt(object.power, 10); + else if (typeof object.power === "number") + message.power = object.power; + else if (typeof object.power === "object") + message.power = new $util.LongBits(object.power.low >>> 0, object.power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a BlockID message. Also converts values to other types if specified. + * Creates a plain object from a Validator message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @static - * @param {tendermint.types.BlockID} message BlockID + * @param {tendermint.abci.Validator} message Validator * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BlockID.toObject = function toObject(message, options) { + Validator.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { if (options.bytes === String) - object.hash = ""; + object.address = ""; else { - object.hash = []; + object.address = []; if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); + object.address = $util.newBuffer(object.address); } - object.part_set_header = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.power = options.longs === String ? "0" : 0; } - 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; - if (message.part_set_header != null && message.hasOwnProperty("part_set_header")) - object.part_set_header = $root.tendermint.types.PartSetHeader.toObject(message.part_set_header, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address; + if (message.power != null && message.hasOwnProperty("power")) + if (typeof message.power === "number") + object.power = options.longs === String ? String(message.power) : message.power; + else + object.power = options.longs === String ? $util.Long.prototype.toString.call(message.power) : options.longs === Number ? new $util.LongBits(message.power.low >>> 0, message.power.high >>> 0).toNumber() : message.power; return object; }; /** - * Converts this BlockID to JSON. + * Converts this Validator to JSON. * @function toJSON - * @memberof tendermint.types.BlockID + * @memberof tendermint.abci.Validator * @instance * @returns {Object.} JSON object */ - BlockID.prototype.toJSON = function toJSON() { + Validator.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BlockID; + return Validator; })(); - types.Header = (function() { + abci.ValidatorUpdate = (function() { /** - * Properties of a Header. - * @memberof tendermint.types - * @interface IHeader - * @property {tendermint.version.IConsensus|null} [version] Header version - * @property {string|null} [chain_id] Header chain_id - * @property {Long|null} [height] Header height - * @property {google.protobuf.ITimestamp|null} [time] Header time - * @property {tendermint.types.IBlockID|null} [last_block_id] Header last_block_id - * @property {Uint8Array|null} [last_commit_hash] Header last_commit_hash - * @property {Uint8Array|null} [data_hash] Header data_hash - * @property {Uint8Array|null} [validators_hash] Header validators_hash - * @property {Uint8Array|null} [next_validators_hash] Header next_validators_hash - * @property {Uint8Array|null} [consensus_hash] Header consensus_hash - * @property {Uint8Array|null} [app_hash] Header app_hash - * @property {Uint8Array|null} [last_results_hash] Header last_results_hash - * @property {Uint8Array|null} [evidence_hash] Header evidence_hash - * @property {Uint8Array|null} [proposer_address] Header proposer_address + * Properties of a ValidatorUpdate. + * @memberof tendermint.abci + * @interface IValidatorUpdate + * @property {tendermint.crypto.IPublicKey|null} [pub_key] ValidatorUpdate pub_key + * @property {Long|null} [power] ValidatorUpdate power */ /** - * Constructs a new Header. - * @memberof tendermint.types - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new ValidatorUpdate. + * @memberof tendermint.abci + * @classdesc Represents a ValidatorUpdate. + * @implements IValidatorUpdate * @constructor - * @param {tendermint.types.IHeader=} [properties] Properties to set + * @param {tendermint.abci.IValidatorUpdate=} [properties] Properties to set */ - function Header(properties) { + function ValidatorUpdate(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33211,232 +41830,76 @@ } /** - * Header version. - * @member {tendermint.version.IConsensus|null|undefined} version - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.version = null; - - /** - * Header chain_id. - * @member {string} chain_id - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.chain_id = ""; - - /** - * Header height. - * @member {Long} height - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Header time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.time = null; - - /** - * Header last_block_id. - * @member {tendermint.types.IBlockID|null|undefined} last_block_id - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.last_block_id = null; - - /** - * Header last_commit_hash. - * @member {Uint8Array} last_commit_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.last_commit_hash = $util.newBuffer([]); - - /** - * Header data_hash. - * @member {Uint8Array} data_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.data_hash = $util.newBuffer([]); - - /** - * Header validators_hash. - * @member {Uint8Array} validators_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.validators_hash = $util.newBuffer([]); - - /** - * Header next_validators_hash. - * @member {Uint8Array} next_validators_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.next_validators_hash = $util.newBuffer([]); - - /** - * Header consensus_hash. - * @member {Uint8Array} consensus_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.consensus_hash = $util.newBuffer([]); - - /** - * Header app_hash. - * @member {Uint8Array} app_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.app_hash = $util.newBuffer([]); - - /** - * Header last_results_hash. - * @member {Uint8Array} last_results_hash - * @memberof tendermint.types.Header - * @instance - */ - Header.prototype.last_results_hash = $util.newBuffer([]); - - /** - * Header evidence_hash. - * @member {Uint8Array} evidence_hash - * @memberof tendermint.types.Header + * ValidatorUpdate pub_key. + * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key + * @memberof tendermint.abci.ValidatorUpdate * @instance */ - Header.prototype.evidence_hash = $util.newBuffer([]); + ValidatorUpdate.prototype.pub_key = null; /** - * Header proposer_address. - * @member {Uint8Array} proposer_address - * @memberof tendermint.types.Header + * ValidatorUpdate power. + * @member {Long} power + * @memberof tendermint.abci.ValidatorUpdate * @instance */ - Header.prototype.proposer_address = $util.newBuffer([]); + ValidatorUpdate.prototype.power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified Header message. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. * @function encode - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @static - * @param {tendermint.types.IHeader} message Header message or plain object to encode + * @param {tendermint.abci.IValidatorUpdate} message ValidatorUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + ValidatorUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.tendermint.version.Consensus.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.chain_id); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.last_block_id != null && Object.hasOwnProperty.call(message, "last_block_id")) - $root.tendermint.types.BlockID.encode(message.last_block_id, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.last_commit_hash != null && Object.hasOwnProperty.call(message, "last_commit_hash")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.last_commit_hash); - if (message.data_hash != null && Object.hasOwnProperty.call(message, "data_hash")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data_hash); - if (message.validators_hash != null && Object.hasOwnProperty.call(message, "validators_hash")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.validators_hash); - if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.next_validators_hash); - if (message.consensus_hash != null && Object.hasOwnProperty.call(message, "consensus_hash")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.consensus_hash); - if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.app_hash); - if (message.last_results_hash != null && Object.hasOwnProperty.call(message, "last_results_hash")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.last_results_hash); - if (message.evidence_hash != null && Object.hasOwnProperty.call(message, "evidence_hash")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.evidence_hash); - if (message.proposer_address != null && Object.hasOwnProperty.call(message, "proposer_address")) - writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.proposer_address); + if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) + $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.power != null && Object.hasOwnProperty.call(message, "power")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.power); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. + * Encodes the specified ValidatorUpdate message, length delimited. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @static - * @param {tendermint.types.IHeader} message Header message or plain object to encode + * @param {tendermint.abci.IValidatorUpdate} message ValidatorUpdate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + ValidatorUpdate.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a ValidatorUpdate message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Header} Header + * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate * @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) { + ValidatorUpdate.decode = 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.types.Header(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.ValidatorUpdate(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = $root.tendermint.version.Consensus.decode(reader, reader.uint32()); + message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); break; case 2: - message.chain_id = reader.string(); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.last_block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.last_commit_hash = reader.bytes(); - break; - case 7: - message.data_hash = reader.bytes(); - break; - case 8: - message.validators_hash = reader.bytes(); - break; - case 9: - message.next_validators_hash = reader.bytes(); - break; - case 10: - message.consensus_hash = reader.bytes(); - break; - case 11: - message.app_hash = reader.bytes(); - break; - case 12: - message.last_results_hash = reader.bytes(); - break; - case 13: - message.evidence_hash = reader.bytes(); - break; - case 14: - message.proposer_address = reader.bytes(); + message.power = reader.int64(); break; default: reader.skipType(tag & 7); @@ -33447,323 +41910,136 @@ }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a ValidatorUpdate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Header} Header + * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate * @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) { + ValidatorUpdate.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a ValidatorUpdate message. * @function verify - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @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) { + ValidatorUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.tendermint.version.Consensus.verify(message.version); - if (error) - return "version." + error; - } - 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")) - if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) - return "height: integer|Long expected"; - if (message.time != null && message.hasOwnProperty("time")) { - var error = $root.google.protobuf.Timestamp.verify(message.time); - if (error) - return "time." + error; - } - if (message.last_block_id != null && message.hasOwnProperty("last_block_id")) { - var error = $root.tendermint.types.BlockID.verify(message.last_block_id); + if (message.pub_key != null && message.hasOwnProperty("pub_key")) { + var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); if (error) - return "last_block_id." + error; + return "pub_key." + error; } - if (message.last_commit_hash != null && message.hasOwnProperty("last_commit_hash")) - if (!(message.last_commit_hash && typeof message.last_commit_hash.length === "number" || $util.isString(message.last_commit_hash))) - return "last_commit_hash: buffer expected"; - if (message.data_hash != null && message.hasOwnProperty("data_hash")) - if (!(message.data_hash && typeof message.data_hash.length === "number" || $util.isString(message.data_hash))) - return "data_hash: buffer expected"; - if (message.validators_hash != null && message.hasOwnProperty("validators_hash")) - if (!(message.validators_hash && typeof message.validators_hash.length === "number" || $util.isString(message.validators_hash))) - return "validators_hash: buffer expected"; - 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.consensus_hash != null && message.hasOwnProperty("consensus_hash")) - if (!(message.consensus_hash && typeof message.consensus_hash.length === "number" || $util.isString(message.consensus_hash))) - return "consensus_hash: buffer expected"; - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) - return "app_hash: buffer expected"; - if (message.last_results_hash != null && message.hasOwnProperty("last_results_hash")) - if (!(message.last_results_hash && typeof message.last_results_hash.length === "number" || $util.isString(message.last_results_hash))) - return "last_results_hash: buffer expected"; - if (message.evidence_hash != null && message.hasOwnProperty("evidence_hash")) - if (!(message.evidence_hash && typeof message.evidence_hash.length === "number" || $util.isString(message.evidence_hash))) - return "evidence_hash: buffer expected"; - if (message.proposer_address != null && message.hasOwnProperty("proposer_address")) - if (!(message.proposer_address && typeof message.proposer_address.length === "number" || $util.isString(message.proposer_address))) - return "proposer_address: buffer expected"; + if (message.power != null && message.hasOwnProperty("power")) + if (!$util.isInteger(message.power) && !(message.power && $util.isInteger(message.power.low) && $util.isInteger(message.power.high))) + return "power: integer|Long expected"; return null; }; /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorUpdate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @static * @param {Object.} object Plain object - * @returns {tendermint.types.Header} Header + * @returns {tendermint.abci.ValidatorUpdate} ValidatorUpdate */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Header) + ValidatorUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.ValidatorUpdate) return object; - var message = new $root.tendermint.types.Header(); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".tendermint.types.Header.version: object expected"); - message.version = $root.tendermint.version.Consensus.fromObject(object.version); - } - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - 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.time != null) { - if (typeof object.time !== "object") - throw TypeError(".tendermint.types.Header.time: object expected"); - message.time = $root.google.protobuf.Timestamp.fromObject(object.time); - } - if (object.last_block_id != null) { - if (typeof object.last_block_id !== "object") - throw TypeError(".tendermint.types.Header.last_block_id: object expected"); - message.last_block_id = $root.tendermint.types.BlockID.fromObject(object.last_block_id); - } - if (object.last_commit_hash != null) - if (typeof object.last_commit_hash === "string") - $util.base64.decode(object.last_commit_hash, message.last_commit_hash = $util.newBuffer($util.base64.length(object.last_commit_hash)), 0); - else if (object.last_commit_hash.length) - message.last_commit_hash = object.last_commit_hash; - if (object.data_hash != null) - if (typeof object.data_hash === "string") - $util.base64.decode(object.data_hash, message.data_hash = $util.newBuffer($util.base64.length(object.data_hash)), 0); - else if (object.data_hash.length) - message.data_hash = object.data_hash; - if (object.validators_hash != null) - if (typeof object.validators_hash === "string") - $util.base64.decode(object.validators_hash, message.validators_hash = $util.newBuffer($util.base64.length(object.validators_hash)), 0); - else if (object.validators_hash.length) - message.validators_hash = object.validators_hash; - 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; - if (object.consensus_hash != null) - if (typeof object.consensus_hash === "string") - $util.base64.decode(object.consensus_hash, message.consensus_hash = $util.newBuffer($util.base64.length(object.consensus_hash)), 0); - else if (object.consensus_hash.length) - message.consensus_hash = object.consensus_hash; - if (object.app_hash != null) - if (typeof object.app_hash === "string") - $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); - else if (object.app_hash.length) - message.app_hash = object.app_hash; - if (object.last_results_hash != null) - if (typeof object.last_results_hash === "string") - $util.base64.decode(object.last_results_hash, message.last_results_hash = $util.newBuffer($util.base64.length(object.last_results_hash)), 0); - else if (object.last_results_hash.length) - message.last_results_hash = object.last_results_hash; - if (object.evidence_hash != null) - if (typeof object.evidence_hash === "string") - $util.base64.decode(object.evidence_hash, message.evidence_hash = $util.newBuffer($util.base64.length(object.evidence_hash)), 0); - else if (object.evidence_hash.length) - message.evidence_hash = object.evidence_hash; - if (object.proposer_address != null) - if (typeof object.proposer_address === "string") - $util.base64.decode(object.proposer_address, message.proposer_address = $util.newBuffer($util.base64.length(object.proposer_address)), 0); - else if (object.proposer_address.length) - message.proposer_address = object.proposer_address; - return message; - }; - - /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.types.Header - * @static - * @param {tendermint.types.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.version = null; - object.chain_id = ""; - 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.time = null; - object.last_block_id = null; - if (options.bytes === String) - object.last_commit_hash = ""; - else { - object.last_commit_hash = []; - if (options.bytes !== Array) - object.last_commit_hash = $util.newBuffer(object.last_commit_hash); - } - if (options.bytes === String) - object.data_hash = ""; - else { - object.data_hash = []; - if (options.bytes !== Array) - object.data_hash = $util.newBuffer(object.data_hash); - } - if (options.bytes === String) - object.validators_hash = ""; - else { - object.validators_hash = []; - if (options.bytes !== Array) - object.validators_hash = $util.newBuffer(object.validators_hash); - } - 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 (options.bytes === String) - object.consensus_hash = ""; - else { - object.consensus_hash = []; - if (options.bytes !== Array) - object.consensus_hash = $util.newBuffer(object.consensus_hash); - } - if (options.bytes === String) - object.app_hash = ""; - else { - object.app_hash = []; - if (options.bytes !== Array) - object.app_hash = $util.newBuffer(object.app_hash); - } - if (options.bytes === String) - object.last_results_hash = ""; - else { - object.last_results_hash = []; - if (options.bytes !== Array) - object.last_results_hash = $util.newBuffer(object.last_results_hash); - } - if (options.bytes === String) - object.evidence_hash = ""; - else { - object.evidence_hash = []; - if (options.bytes !== Array) - object.evidence_hash = $util.newBuffer(object.evidence_hash); - } - if (options.bytes === String) - object.proposer_address = ""; - else { - object.proposer_address = []; - if (options.bytes !== Array) - object.proposer_address = $util.newBuffer(object.proposer_address); - } + var message = new $root.tendermint.abci.ValidatorUpdate(); + if (object.pub_key != null) { + if (typeof object.pub_key !== "object") + throw TypeError(".tendermint.abci.ValidatorUpdate.pub_key: object expected"); + message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); } - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.tendermint.version.Consensus.toObject(message.version, options); - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.height != null && message.hasOwnProperty("height")) - if (typeof message.height === "number") - object.height = options.longs === String ? String(message.height) : message.height; + if (object.power != null) + if ($util.Long) + (message.power = $util.Long.fromValue(object.power)).unsigned = false; + else if (typeof object.power === "string") + message.power = parseInt(object.power, 10); + else if (typeof object.power === "number") + message.power = object.power; + else if (typeof object.power === "object") + message.power = new $util.LongBits(object.power.low >>> 0, object.power.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ValidatorUpdate message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.abci.ValidatorUpdate + * @static + * @param {tendermint.abci.ValidatorUpdate} message ValidatorUpdate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValidatorUpdate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pub_key = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.power = options.longs === String ? "0" : 0; + } + if (message.pub_key != null && message.hasOwnProperty("pub_key")) + object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); + if (message.power != null && message.hasOwnProperty("power")) + if (typeof message.power === "number") + object.power = options.longs === String ? String(message.power) : message.power; 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.time != null && message.hasOwnProperty("time")) - object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); - if (message.last_block_id != null && message.hasOwnProperty("last_block_id")) - object.last_block_id = $root.tendermint.types.BlockID.toObject(message.last_block_id, options); - if (message.last_commit_hash != null && message.hasOwnProperty("last_commit_hash")) - object.last_commit_hash = options.bytes === String ? $util.base64.encode(message.last_commit_hash, 0, message.last_commit_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_commit_hash) : message.last_commit_hash; - if (message.data_hash != null && message.hasOwnProperty("data_hash")) - object.data_hash = options.bytes === String ? $util.base64.encode(message.data_hash, 0, message.data_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.data_hash) : message.data_hash; - if (message.validators_hash != null && message.hasOwnProperty("validators_hash")) - object.validators_hash = options.bytes === String ? $util.base64.encode(message.validators_hash, 0, message.validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.validators_hash) : message.validators_hash; - 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.consensus_hash != null && message.hasOwnProperty("consensus_hash")) - object.consensus_hash = options.bytes === String ? $util.base64.encode(message.consensus_hash, 0, message.consensus_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.consensus_hash) : message.consensus_hash; - if (message.app_hash != null && message.hasOwnProperty("app_hash")) - object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; - if (message.last_results_hash != null && message.hasOwnProperty("last_results_hash")) - object.last_results_hash = options.bytes === String ? $util.base64.encode(message.last_results_hash, 0, message.last_results_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_results_hash) : message.last_results_hash; - if (message.evidence_hash != null && message.hasOwnProperty("evidence_hash")) - object.evidence_hash = options.bytes === String ? $util.base64.encode(message.evidence_hash, 0, message.evidence_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.evidence_hash) : message.evidence_hash; - if (message.proposer_address != null && message.hasOwnProperty("proposer_address")) - object.proposer_address = options.bytes === String ? $util.base64.encode(message.proposer_address, 0, message.proposer_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.proposer_address) : message.proposer_address; + object.power = options.longs === String ? $util.Long.prototype.toString.call(message.power) : options.longs === Number ? new $util.LongBits(message.power.low >>> 0, message.power.high >>> 0).toNumber() : message.power; return object; }; /** - * Converts this Header to JSON. + * Converts this ValidatorUpdate to JSON. * @function toJSON - * @memberof tendermint.types.Header + * @memberof tendermint.abci.ValidatorUpdate * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + ValidatorUpdate.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return ValidatorUpdate; })(); - types.Data = (function() { + abci.VoteInfo = (function() { /** - * Properties of a Data. - * @memberof tendermint.types - * @interface IData - * @property {Array.|null} [txs] Data txs + * Properties of a VoteInfo. + * @memberof tendermint.abci + * @interface IVoteInfo + * @property {tendermint.abci.IValidator|null} [validator] VoteInfo validator + * @property {boolean|null} [signed_last_block] VoteInfo signed_last_block */ /** - * Constructs a new Data. - * @memberof tendermint.types - * @classdesc Represents a Data. - * @implements IData + * Constructs a new VoteInfo. + * @memberof tendermint.abci + * @classdesc Represents a VoteInfo. + * @implements IVoteInfo * @constructor - * @param {tendermint.types.IData=} [properties] Properties to set + * @param {tendermint.abci.IVoteInfo=} [properties] Properties to set */ - function Data(properties) { - this.txs = []; + function VoteInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33771,66 +42047,76 @@ } /** - * Data txs. - * @member {Array.} txs - * @memberof tendermint.types.Data + * VoteInfo validator. + * @member {tendermint.abci.IValidator|null|undefined} validator + * @memberof tendermint.abci.VoteInfo * @instance */ - Data.prototype.txs = $util.emptyArray; + VoteInfo.prototype.validator = null; /** - * Encodes the specified Data message. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. + * VoteInfo signed_last_block. + * @member {boolean} signed_last_block + * @memberof tendermint.abci.VoteInfo + * @instance + */ + VoteInfo.prototype.signed_last_block = false; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. * @function encode - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static - * @param {tendermint.types.IData} message Data message or plain object to encode + * @param {tendermint.abci.IVoteInfo} message VoteInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Data.encode = function encode(message, writer) { + VoteInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.txs != null && message.txs.length) - for (var i = 0; i < message.txs.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.txs[i]); + if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) + $root.tendermint.abci.Validator.encode(message.validator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.signed_last_block != null && Object.hasOwnProperty.call(message, "signed_last_block")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.signed_last_block); return writer; }; /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. + * Encodes the specified VoteInfo message, length delimited. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static - * @param {tendermint.types.IData} message Data message or plain object to encode + * @param {tendermint.abci.IVoteInfo} message VoteInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Data.encodeDelimited = function encodeDelimited(message, writer) { + VoteInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Data message from the specified reader or buffer. + * Decodes a VoteInfo message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Data} Data + * @returns {tendermint.abci.VoteInfo} VoteInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Data.decode = function decode(reader, length) { + VoteInfo.decode = 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.types.Data(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.VoteInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.txs && message.txs.length)) - message.txs = []; - message.txs.push(reader.bytes()); + message.validator = $root.tendermint.abci.Validator.decode(reader, reader.uint32()); + break; + case 2: + message.signed_last_block = reader.bool(); break; default: reader.skipType(tag & 7); @@ -33841,129 +42127,141 @@ }; /** - * Decodes a Data message from the specified reader or buffer, length delimited. + * Decodes a VoteInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Data} Data + * @returns {tendermint.abci.VoteInfo} VoteInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Data.decodeDelimited = function decodeDelimited(reader) { + VoteInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Data message. + * Verifies a VoteInfo message. * @function verify - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Data.verify = function verify(message) { + VoteInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.txs != null && message.hasOwnProperty("txs")) { - if (!Array.isArray(message.txs)) - return "txs: array expected"; - for (var i = 0; i < message.txs.length; ++i) - if (!(message.txs[i] && typeof message.txs[i].length === "number" || $util.isString(message.txs[i]))) - return "txs: buffer[] expected"; + if (message.validator != null && message.hasOwnProperty("validator")) { + var error = $root.tendermint.abci.Validator.verify(message.validator); + if (error) + return "validator." + error; } + if (message.signed_last_block != null && message.hasOwnProperty("signed_last_block")) + if (typeof message.signed_last_block !== "boolean") + return "signed_last_block: boolean expected"; return null; }; /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. + * Creates a VoteInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static * @param {Object.} object Plain object - * @returns {tendermint.types.Data} Data + * @returns {tendermint.abci.VoteInfo} VoteInfo */ - Data.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Data) + VoteInfo.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.VoteInfo) return object; - var message = new $root.tendermint.types.Data(); - if (object.txs) { - if (!Array.isArray(object.txs)) - throw TypeError(".tendermint.types.Data.txs: array expected"); - message.txs = []; - for (var i = 0; i < object.txs.length; ++i) - if (typeof object.txs[i] === "string") - $util.base64.decode(object.txs[i], message.txs[i] = $util.newBuffer($util.base64.length(object.txs[i])), 0); - else if (object.txs[i].length) - message.txs[i] = object.txs[i]; + var message = new $root.tendermint.abci.VoteInfo(); + if (object.validator != null) { + if (typeof object.validator !== "object") + throw TypeError(".tendermint.abci.VoteInfo.validator: object expected"); + message.validator = $root.tendermint.abci.Validator.fromObject(object.validator); } + if (object.signed_last_block != null) + message.signed_last_block = Boolean(object.signed_last_block); return message; }; /** - * Creates a plain object from a Data message. Also converts values to other types if specified. + * Creates a plain object from a VoteInfo message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @static - * @param {tendermint.types.Data} message Data + * @param {tendermint.abci.VoteInfo} message VoteInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Data.toObject = function toObject(message, options) { + VoteInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.txs = []; - if (message.txs && message.txs.length) { - object.txs = []; - for (var j = 0; j < message.txs.length; ++j) - object.txs[j] = options.bytes === String ? $util.base64.encode(message.txs[j], 0, message.txs[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.txs[j]) : message.txs[j]; + if (options.defaults) { + object.validator = null; + object.signed_last_block = false; } + if (message.validator != null && message.hasOwnProperty("validator")) + object.validator = $root.tendermint.abci.Validator.toObject(message.validator, options); + if (message.signed_last_block != null && message.hasOwnProperty("signed_last_block")) + object.signed_last_block = message.signed_last_block; return object; }; /** - * Converts this Data to JSON. + * Converts this VoteInfo to JSON. * @function toJSON - * @memberof tendermint.types.Data + * @memberof tendermint.abci.VoteInfo * @instance * @returns {Object.} JSON object */ - Data.prototype.toJSON = function toJSON() { + VoteInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Data; + return VoteInfo; })(); - types.Vote = (function() { + /** + * EvidenceType enum. + * @name tendermint.abci.EvidenceType + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} DUPLICATE_VOTE=1 DUPLICATE_VOTE value + * @property {number} LIGHT_CLIENT_ATTACK=2 LIGHT_CLIENT_ATTACK value + */ + abci.EvidenceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "DUPLICATE_VOTE"] = 1; + values[valuesById[2] = "LIGHT_CLIENT_ATTACK"] = 2; + return values; + })(); + + abci.Evidence = (function() { /** - * Properties of a Vote. - * @memberof tendermint.types - * @interface IVote - * @property {tendermint.types.SignedMsgType|null} [type] Vote type - * @property {Long|null} [height] Vote height - * @property {number|null} [round] Vote round - * @property {tendermint.types.IBlockID|null} [block_id] Vote block_id - * @property {google.protobuf.ITimestamp|null} [timestamp] Vote timestamp - * @property {Uint8Array|null} [validator_address] Vote validator_address - * @property {number|null} [validator_index] Vote validator_index - * @property {Uint8Array|null} [signature] Vote signature + * Properties of an Evidence. + * @memberof tendermint.abci + * @interface IEvidence + * @property {tendermint.abci.EvidenceType|null} [type] Evidence type + * @property {tendermint.abci.IValidator|null} [validator] Evidence validator + * @property {Long|null} [height] Evidence height + * @property {google.protobuf.ITimestamp|null} [time] Evidence time + * @property {Long|null} [total_voting_power] Evidence total_voting_power */ /** - * Constructs a new Vote. - * @memberof tendermint.types - * @classdesc Represents a Vote. - * @implements IVote + * Constructs a new Evidence. + * @memberof tendermint.abci + * @classdesc Represents an Evidence. + * @implements IEvidence * @constructor - * @param {tendermint.types.IVote=} [properties] Properties to set + * @param {tendermint.abci.IEvidence=} [properties] Properties to set */ - function Vote(properties) { + function Evidence(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33971,128 +42269,98 @@ } /** - * Vote type. - * @member {tendermint.types.SignedMsgType} type - * @memberof tendermint.types.Vote - * @instance - */ - Vote.prototype.type = 0; - - /** - * Vote height. - * @member {Long} height - * @memberof tendermint.types.Vote - * @instance - */ - Vote.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Vote round. - * @member {number} round - * @memberof tendermint.types.Vote - * @instance - */ - Vote.prototype.round = 0; - - /** - * Vote block_id. - * @member {tendermint.types.IBlockID|null|undefined} block_id - * @memberof tendermint.types.Vote + * Evidence type. + * @member {tendermint.abci.EvidenceType} type + * @memberof tendermint.abci.Evidence * @instance */ - Vote.prototype.block_id = null; + Evidence.prototype.type = 0; /** - * Vote timestamp. - * @member {google.protobuf.ITimestamp|null|undefined} timestamp - * @memberof tendermint.types.Vote + * Evidence validator. + * @member {tendermint.abci.IValidator|null|undefined} validator + * @memberof tendermint.abci.Evidence * @instance */ - Vote.prototype.timestamp = null; + Evidence.prototype.validator = null; /** - * Vote validator_address. - * @member {Uint8Array} validator_address - * @memberof tendermint.types.Vote + * Evidence height. + * @member {Long} height + * @memberof tendermint.abci.Evidence * @instance */ - Vote.prototype.validator_address = $util.newBuffer([]); + Evidence.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Vote validator_index. - * @member {number} validator_index - * @memberof tendermint.types.Vote + * Evidence time. + * @member {google.protobuf.ITimestamp|null|undefined} time + * @memberof tendermint.abci.Evidence * @instance */ - Vote.prototype.validator_index = 0; + Evidence.prototype.time = null; /** - * Vote signature. - * @member {Uint8Array} signature - * @memberof tendermint.types.Vote + * Evidence total_voting_power. + * @member {Long} total_voting_power + * @memberof tendermint.abci.Evidence * @instance */ - Vote.prototype.signature = $util.newBuffer([]); + Evidence.prototype.total_voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified Vote message. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. * @function encode - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static - * @param {tendermint.types.IVote} message Vote message or plain object to encode + * @param {tendermint.abci.IEvidence} message Evidence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vote.encode = function encode(message, writer) { + Evidence.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.validator != null && Object.hasOwnProperty.call(message, "validator")) + $root.tendermint.abci.Validator.encode(message.validator, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.height); - if (message.round != null && Object.hasOwnProperty.call(message, "round")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.round); - if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) - $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.validator_address != null && Object.hasOwnProperty.call(message, "validator_address")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.validator_address); - if (message.validator_index != null && Object.hasOwnProperty.call(message, "validator_index")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.validator_index); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.signature); + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.total_voting_power != null && Object.hasOwnProperty.call(message, "total_voting_power")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.total_voting_power); return writer; }; /** - * Encodes the specified Vote message, length delimited. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. + * Encodes the specified Evidence message, length delimited. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static - * @param {tendermint.types.IVote} message Vote message or plain object to encode + * @param {tendermint.abci.IEvidence} message Evidence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vote.encodeDelimited = function encodeDelimited(message, writer) { + Evidence.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vote message from the specified reader or buffer. + * Decodes an Evidence message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Vote} Vote + * @returns {tendermint.abci.Evidence} Evidence * @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) { + Evidence.decode = 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.types.Vote(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.Evidence(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -34100,25 +42368,16 @@ message.type = reader.int32(); break; case 2: - message.height = reader.int64(); + message.validator = $root.tendermint.abci.Validator.decode(reader, reader.uint32()); break; case 3: - message.round = reader.int32(); + message.height = reader.int64(); break; case 4: - message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 5: - message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.validator_address = reader.bytes(); - break; - case 7: - message.validator_index = reader.int32(); - break; - case 8: - message.signature = reader.bytes(); + message.total_voting_power = reader.int64(); break; default: reader.skipType(tag & 7); @@ -34129,30 +42388,30 @@ }; /** - * Decodes a Vote message from the specified reader or buffer, length delimited. + * Decodes an Evidence message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Vote} Vote + * @returns {tendermint.abci.Evidence} Evidence * @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) { + Evidence.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vote message. + * Verifies an Evidence message. * @function verify - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @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) { + Evidence.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.type != null && message.hasOwnProperty("type")) @@ -34162,200 +42421,167 @@ case 0: case 1: case 2: - case 32: break; } + if (message.validator != null && message.hasOwnProperty("validator")) { + var error = $root.tendermint.abci.Validator.verify(message.validator); + if (error) + return "validator." + 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.round != null && message.hasOwnProperty("round")) - if (!$util.isInteger(message.round)) - return "round: integer expected"; - if (message.block_id != null && message.hasOwnProperty("block_id")) { - var error = $root.tendermint.types.BlockID.verify(message.block_id); - if (error) - return "block_id." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (message.time != null && message.hasOwnProperty("time")) { + var error = $root.google.protobuf.Timestamp.verify(message.time); if (error) - return "timestamp." + error; + return "time." + error; } - if (message.validator_address != null && message.hasOwnProperty("validator_address")) - if (!(message.validator_address && typeof message.validator_address.length === "number" || $util.isString(message.validator_address))) - return "validator_address: buffer expected"; - if (message.validator_index != null && message.hasOwnProperty("validator_index")) - if (!$util.isInteger(message.validator_index)) - return "validator_index: integer 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.total_voting_power != null && message.hasOwnProperty("total_voting_power")) + if (!$util.isInteger(message.total_voting_power) && !(message.total_voting_power && $util.isInteger(message.total_voting_power.low) && $util.isInteger(message.total_voting_power.high))) + return "total_voting_power: integer|Long expected"; return null; }; /** - * Creates a Vote message from a plain object. Also converts values to their respective internal types. + * Creates an Evidence message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static * @param {Object.} object Plain object - * @returns {tendermint.types.Vote} Vote + * @returns {tendermint.abci.Evidence} Evidence */ - Vote.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Vote) + Evidence.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Evidence) return object; - var message = new $root.tendermint.types.Vote(); + var message = new $root.tendermint.abci.Evidence(); switch (object.type) { - case "SIGNED_MSG_TYPE_UNKNOWN": + case "UNKNOWN": case 0: message.type = 0; break; - case "SIGNED_MSG_TYPE_PREVOTE": + case "DUPLICATE_VOTE": case 1: message.type = 1; break; - case "SIGNED_MSG_TYPE_PRECOMMIT": + case "LIGHT_CLIENT_ATTACK": case 2: message.type = 2; break; - case "SIGNED_MSG_TYPE_PROPOSAL": - case 32: - message.type = 32; - break; + } + if (object.validator != null) { + if (typeof object.validator !== "object") + throw TypeError(".tendermint.abci.Evidence.validator: object expected"); + message.validator = $root.tendermint.abci.Validator.fromObject(object.validator); } 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.round != null) - message.round = object.round | 0; - if (object.block_id != null) { - if (typeof object.block_id !== "object") - throw TypeError(".tendermint.types.Vote.block_id: object expected"); - message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); - } - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".tendermint.types.Vote.timestamp: object expected"); - message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + (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.time != null) { + if (typeof object.time !== "object") + throw TypeError(".tendermint.abci.Evidence.time: object expected"); + message.time = $root.google.protobuf.Timestamp.fromObject(object.time); } - if (object.validator_address != null) - if (typeof object.validator_address === "string") - $util.base64.decode(object.validator_address, message.validator_address = $util.newBuffer($util.base64.length(object.validator_address)), 0); - else if (object.validator_address.length) - message.validator_address = object.validator_address; - if (object.validator_index != null) - message.validator_index = object.validator_index | 0; - 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.total_voting_power != null) + if ($util.Long) + (message.total_voting_power = $util.Long.fromValue(object.total_voting_power)).unsigned = false; + else if (typeof object.total_voting_power === "string") + message.total_voting_power = parseInt(object.total_voting_power, 10); + else if (typeof object.total_voting_power === "number") + message.total_voting_power = object.total_voting_power; + else if (typeof object.total_voting_power === "object") + message.total_voting_power = new $util.LongBits(object.total_voting_power.low >>> 0, object.total_voting_power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Vote message. Also converts values to other types if specified. + * Creates a plain object from an Evidence message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @static - * @param {tendermint.types.Vote} message Vote + * @param {tendermint.abci.Evidence} message Evidence * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vote.toObject = function toObject(message, options) { + Evidence.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "SIGNED_MSG_TYPE_UNKNOWN" : 0; + object.type = options.enums === String ? "UNKNOWN" : 0; + object.validator = 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.round = 0; - object.block_id = null; - object.timestamp = null; - if (options.bytes === String) - object.validator_address = ""; - else { - object.validator_address = []; - if (options.bytes !== Array) - object.validator_address = $util.newBuffer(object.validator_address); - } - object.validator_index = 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } + object.time = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.total_voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.total_voting_power = options.longs === String ? "0" : 0; } if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.tendermint.types.SignedMsgType[message.type] : message.type; + object.type = options.enums === String ? $root.tendermint.abci.EvidenceType[message.type] : message.type; + if (message.validator != null && message.hasOwnProperty("validator")) + object.validator = $root.tendermint.abci.Validator.toObject(message.validator, 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.round != null && message.hasOwnProperty("round")) - object.round = message.round; - if (message.block_id != null && message.hasOwnProperty("block_id")) - object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); - if (message.validator_address != null && message.hasOwnProperty("validator_address")) - object.validator_address = options.bytes === String ? $util.base64.encode(message.validator_address, 0, message.validator_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.validator_address) : message.validator_address; - if (message.validator_index != null && message.hasOwnProperty("validator_index")) - object.validator_index = message.validator_index; - 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.time != null && message.hasOwnProperty("time")) + object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); + if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) + if (typeof message.total_voting_power === "number") + object.total_voting_power = options.longs === String ? String(message.total_voting_power) : message.total_voting_power; + else + object.total_voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.total_voting_power) : options.longs === Number ? new $util.LongBits(message.total_voting_power.low >>> 0, message.total_voting_power.high >>> 0).toNumber() : message.total_voting_power; return object; }; /** - * Converts this Vote to JSON. + * Converts this Evidence to JSON. * @function toJSON - * @memberof tendermint.types.Vote + * @memberof tendermint.abci.Evidence * @instance * @returns {Object.} JSON object */ - Vote.prototype.toJSON = function toJSON() { + Evidence.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Vote; + return Evidence; })(); - types.Commit = (function() { + abci.Snapshot = (function() { /** - * Properties of a Commit. - * @memberof tendermint.types - * @interface ICommit - * @property {Long|null} [height] Commit height - * @property {number|null} [round] Commit round - * @property {tendermint.types.IBlockID|null} [block_id] Commit block_id - * @property {Array.|null} [signatures] Commit signatures + * Properties of a Snapshot. + * @memberof tendermint.abci + * @interface ISnapshot + * @property {Long|null} [height] Snapshot height + * @property {number|null} [format] Snapshot format + * @property {number|null} [chunks] Snapshot chunks + * @property {Uint8Array|null} [hash] Snapshot hash + * @property {Uint8Array|null} [metadata] Snapshot metadata */ /** - * Constructs a new Commit. - * @memberof tendermint.types - * @classdesc Represents a Commit. - * @implements ICommit + * Constructs a new Snapshot. + * @memberof tendermint.abci + * @classdesc Represents a Snapshot. + * @implements ISnapshot * @constructor - * @param {tendermint.types.ICommit=} [properties] Properties to set + * @param {tendermint.abci.ISnapshot=} [properties] Properties to set */ - function Commit(properties) { - this.signatures = []; + function Snapshot(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34363,105 +42589,115 @@ } /** - * Commit height. + * Snapshot height. * @member {Long} height - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @instance */ - Commit.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Snapshot.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Commit round. - * @member {number} round - * @memberof tendermint.types.Commit + * Snapshot format. + * @member {number} format + * @memberof tendermint.abci.Snapshot * @instance */ - Commit.prototype.round = 0; + Snapshot.prototype.format = 0; /** - * Commit block_id. - * @member {tendermint.types.IBlockID|null|undefined} block_id - * @memberof tendermint.types.Commit + * Snapshot chunks. + * @member {number} chunks + * @memberof tendermint.abci.Snapshot * @instance */ - Commit.prototype.block_id = null; + Snapshot.prototype.chunks = 0; /** - * Commit signatures. - * @member {Array.} signatures - * @memberof tendermint.types.Commit + * Snapshot hash. + * @member {Uint8Array} hash + * @memberof tendermint.abci.Snapshot * @instance */ - Commit.prototype.signatures = $util.emptyArray; + Snapshot.prototype.hash = $util.newBuffer([]); /** - * Encodes the specified Commit message. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. + * Snapshot metadata. + * @member {Uint8Array} metadata + * @memberof tendermint.abci.Snapshot + * @instance + */ + Snapshot.prototype.metadata = $util.newBuffer([]); + + /** + * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. * @function encode - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static - * @param {tendermint.types.ICommit} message Commit message or plain object to encode + * @param {tendermint.abci.ISnapshot} message Snapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Commit.encode = function encode(message, writer) { + Snapshot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); - if (message.round != null && Object.hasOwnProperty.call(message, "round")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.round); - if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) - $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signatures != null && message.signatures.length) - for (var i = 0; i < message.signatures.length; ++i) - $root.tendermint.types.CommitSig.encode(message.signatures[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.height); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.format); + if (message.chunks != null && Object.hasOwnProperty.call(message, "chunks")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.chunks); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.hash); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.metadata); return writer; }; /** - * Encodes the specified Commit message, length delimited. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static - * @param {tendermint.types.ICommit} message Commit message or plain object to encode + * @param {tendermint.abci.ISnapshot} message Snapshot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Commit.encodeDelimited = function encodeDelimited(message, writer) { + Snapshot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Commit message from the specified reader or buffer. + * Decodes a Snapshot message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Commit} Commit + * @returns {tendermint.abci.Snapshot} Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Commit.decode = function decode(reader, length) { + Snapshot.decode = 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.types.Commit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.abci.Snapshot(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = reader.int64(); + message.height = reader.uint64(); break; case 2: - message.round = reader.int32(); + message.format = reader.uint32(); break; case 3: - message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + message.chunks = reader.uint32(); break; case 4: - if (!(message.signatures && message.signatures.length)) - message.signatures = []; - message.signatures.push($root.tendermint.types.CommitSig.decode(reader, reader.uint32())); + message.hash = reader.bytes(); + break; + case 5: + message.metadata = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -34472,822 +42708,737 @@ }; /** - * Decodes a Commit message from the specified reader or buffer, length delimited. + * Decodes a Snapshot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Commit} Commit + * @returns {tendermint.abci.Snapshot} Snapshot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Commit.decodeDelimited = function decodeDelimited(reader) { + Snapshot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Commit message. + * Verifies a Snapshot message. * @function verify - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Commit.verify = function verify(message) { + Snapshot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; 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.round != null && message.hasOwnProperty("round")) - if (!$util.isInteger(message.round)) - return "round: integer expected"; - if (message.block_id != null && message.hasOwnProperty("block_id")) { - var error = $root.tendermint.types.BlockID.verify(message.block_id); - if (error) - return "block_id." + error; - } - if (message.signatures != null && message.hasOwnProperty("signatures")) { - if (!Array.isArray(message.signatures)) - return "signatures: array expected"; - for (var i = 0; i < message.signatures.length; ++i) { - var error = $root.tendermint.types.CommitSig.verify(message.signatures[i]); - if (error) - return "signatures." + error; - } - } + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isInteger(message.format)) + return "format: integer expected"; + if (message.chunks != null && message.hasOwnProperty("chunks")) + if (!$util.isInteger(message.chunks)) + return "chunks: integer 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.metadata != null && message.hasOwnProperty("metadata")) + if (!(message.metadata && typeof message.metadata.length === "number" || $util.isString(message.metadata))) + return "metadata: buffer expected"; return null; }; /** - * Creates a Commit message from a plain object. Also converts values to their respective internal types. + * Creates a Snapshot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static * @param {Object.} object Plain object - * @returns {tendermint.types.Commit} Commit + * @returns {tendermint.abci.Snapshot} Snapshot */ - Commit.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Commit) + Snapshot.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.abci.Snapshot) return object; - var message = new $root.tendermint.types.Commit(); + var message = new $root.tendermint.abci.Snapshot(); if (object.height != null) if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = false; + (message.height = $util.Long.fromValue(object.height)).unsigned = true; 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.round != null) - message.round = object.round | 0; - if (object.block_id != null) { - if (typeof object.block_id !== "object") - throw TypeError(".tendermint.types.Commit.block_id: object expected"); - message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); - } - if (object.signatures) { - if (!Array.isArray(object.signatures)) - throw TypeError(".tendermint.types.Commit.signatures: array expected"); - message.signatures = []; - for (var i = 0; i < object.signatures.length; ++i) { - if (typeof object.signatures[i] !== "object") - throw TypeError(".tendermint.types.Commit.signatures: object expected"); - message.signatures[i] = $root.tendermint.types.CommitSig.fromObject(object.signatures[i]); - } - } + message.height = new $util.LongBits(object.height.low >>> 0, object.height.high >>> 0).toNumber(true); + if (object.format != null) + message.format = object.format >>> 0; + if (object.chunks != null) + message.chunks = object.chunks >>> 0; + 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; + if (object.metadata != null) + if (typeof object.metadata === "string") + $util.base64.decode(object.metadata, message.metadata = $util.newBuffer($util.base64.length(object.metadata)), 0); + else if (object.metadata.length) + message.metadata = object.metadata; return message; }; /** - * Creates a plain object from a Commit message. Also converts values to other types if specified. + * Creates a plain object from a Snapshot message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.Commit + * @memberof tendermint.abci.Snapshot * @static - * @param {tendermint.types.Commit} message Commit + * @param {tendermint.abci.Snapshot} message Snapshot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Commit.toObject = function toObject(message, options) { + Snapshot.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.signatures = []; if (options.defaults) { if ($util.Long) { - var long = new $util.Long(0, 0, false); + var long = new $util.Long(0, 0, true); object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.height = options.longs === String ? "0" : 0; - object.round = 0; - object.block_id = null; + object.format = 0; + object.chunks = 0; + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } + if (options.bytes === String) + object.metadata = ""; + else { + object.metadata = []; + if (options.bytes !== Array) + object.metadata = $util.newBuffer(object.metadata); + } } 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.round != null && message.hasOwnProperty("round")) - object.round = message.round; - if (message.block_id != null && message.hasOwnProperty("block_id")) - object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); - if (message.signatures && message.signatures.length) { - object.signatures = []; - for (var j = 0; j < message.signatures.length; ++j) - object.signatures[j] = $root.tendermint.types.CommitSig.toObject(message.signatures[j], options); - } + 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(true) : message.height; + if (message.format != null && message.hasOwnProperty("format")) + object.format = message.format; + if (message.chunks != null && message.hasOwnProperty("chunks")) + object.chunks = message.chunks; + 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; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = options.bytes === String ? $util.base64.encode(message.metadata, 0, message.metadata.length) : options.bytes === Array ? Array.prototype.slice.call(message.metadata) : message.metadata; return object; }; /** - * Converts this Commit to JSON. - * @function toJSON - * @memberof tendermint.types.Commit + * Converts this Snapshot to JSON. + * @function toJSON + * @memberof tendermint.abci.Snapshot + * @instance + * @returns {Object.} JSON object + */ + Snapshot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Snapshot; + })(); + + abci.ABCIApplication = (function() { + + /** + * Constructs a new ABCIApplication service. + * @memberof tendermint.abci + * @classdesc Represents a ABCIApplication + * @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 ABCIApplication(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ABCIApplication.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ABCIApplication; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. + * @memberof tendermint.abci.ABCIApplication + * @typedef EchoCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseEcho} [response] ResponseEcho + */ + + /** + * Calls Echo. + * @function echo + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestEcho} request RequestEcho message or plain object + * @param {tendermint.abci.ABCIApplication.EchoCallback} callback Node-style callback called with the error, if any, and ResponseEcho + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ABCIApplication.prototype.echo = function echo(request, callback) { + return this.rpcCall(echo, $root.tendermint.abci.RequestEcho, $root.tendermint.abci.ResponseEcho, request, callback); + }, "name", { value: "Echo" }); + + /** + * Calls Echo. + * @function echo + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestEcho} request RequestEcho message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. + * @memberof tendermint.abci.ABCIApplication + * @typedef FlushCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseFlush} [response] ResponseFlush + */ + + /** + * Calls Flush. + * @function flush + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestFlush} request RequestFlush message or plain object + * @param {tendermint.abci.ABCIApplication.FlushCallback} callback Node-style callback called with the error, if any, and ResponseFlush + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ABCIApplication.prototype.flush = function flush(request, callback) { + return this.rpcCall(flush, $root.tendermint.abci.RequestFlush, $root.tendermint.abci.ResponseFlush, request, callback); + }, "name", { value: "Flush" }); + + /** + * Calls Flush. + * @function flush + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestFlush} request RequestFlush message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#info}. + * @memberof tendermint.abci.ABCIApplication + * @typedef InfoCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseInfo} [response] ResponseInfo + */ + + /** + * Calls Info. + * @function info + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestInfo} request RequestInfo message or plain object + * @param {tendermint.abci.ABCIApplication.InfoCallback} callback Node-style callback called with the error, if any, and ResponseInfo + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ABCIApplication.prototype.info = function info(request, callback) { + return this.rpcCall(info, $root.tendermint.abci.RequestInfo, $root.tendermint.abci.ResponseInfo, request, callback); + }, "name", { value: "Info" }); + + /** + * Calls Info. + * @function info + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestInfo} request RequestInfo message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. + * @memberof tendermint.abci.ABCIApplication + * @typedef SetOptionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseSetOption} [response] ResponseSetOption + */ + + /** + * Calls SetOption. + * @function setOption + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestSetOption} request RequestSetOption message or plain object + * @param {tendermint.abci.ABCIApplication.SetOptionCallback} callback Node-style callback called with the error, if any, and ResponseSetOption + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ABCIApplication.prototype.setOption = function setOption(request, callback) { + return this.rpcCall(setOption, $root.tendermint.abci.RequestSetOption, $root.tendermint.abci.ResponseSetOption, request, callback); + }, "name", { value: "SetOption" }); + + /** + * Calls SetOption. + * @function setOption + * @memberof tendermint.abci.ABCIApplication * @instance - * @returns {Object.} JSON object + * @param {tendermint.abci.IRequestSetOption} request RequestSetOption message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Commit.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return Commit; - })(); + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. + * @memberof tendermint.abci.ABCIApplication + * @typedef DeliverTxCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseDeliverTx} [response] ResponseDeliverTx + */ - types.CommitSig = (function() { + /** + * Calls DeliverTx. + * @function deliverTx + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestDeliverTx} request RequestDeliverTx message or plain object + * @param {tendermint.abci.ABCIApplication.DeliverTxCallback} callback Node-style callback called with the error, if any, and ResponseDeliverTx + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ABCIApplication.prototype.deliverTx = function deliverTx(request, callback) { + return this.rpcCall(deliverTx, $root.tendermint.abci.RequestDeliverTx, $root.tendermint.abci.ResponseDeliverTx, request, callback); + }, "name", { value: "DeliverTx" }); /** - * Properties of a CommitSig. - * @memberof tendermint.types - * @interface ICommitSig - * @property {tendermint.types.BlockIDFlag|null} [block_id_flag] CommitSig block_id_flag - * @property {Uint8Array|null} [validator_address] CommitSig validator_address - * @property {google.protobuf.ITimestamp|null} [timestamp] CommitSig timestamp - * @property {Uint8Array|null} [signature] CommitSig signature + * Calls DeliverTx. + * @function deliverTx + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestDeliverTx} request RequestDeliverTx message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CommitSig. - * @memberof tendermint.types - * @classdesc Represents a CommitSig. - * @implements ICommitSig - * @constructor - * @param {tendermint.types.ICommitSig=} [properties] Properties to set + * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. + * @memberof tendermint.abci.ABCIApplication + * @typedef CheckTxCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseCheckTx} [response] ResponseCheckTx */ - function CommitSig(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]]; - } /** - * CommitSig block_id_flag. - * @member {tendermint.types.BlockIDFlag} block_id_flag - * @memberof tendermint.types.CommitSig + * Calls CheckTx. + * @function checkTx + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestCheckTx} request RequestCheckTx message or plain object + * @param {tendermint.abci.ABCIApplication.CheckTxCallback} callback Node-style callback called with the error, if any, and ResponseCheckTx + * @returns {undefined} + * @variation 1 */ - CommitSig.prototype.block_id_flag = 0; + Object.defineProperty(ABCIApplication.prototype.checkTx = function checkTx(request, callback) { + return this.rpcCall(checkTx, $root.tendermint.abci.RequestCheckTx, $root.tendermint.abci.ResponseCheckTx, request, callback); + }, "name", { value: "CheckTx" }); /** - * CommitSig validator_address. - * @member {Uint8Array} validator_address - * @memberof tendermint.types.CommitSig + * Calls CheckTx. + * @function checkTx + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestCheckTx} request RequestCheckTx message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CommitSig.prototype.validator_address = $util.newBuffer([]); /** - * CommitSig timestamp. - * @member {google.protobuf.ITimestamp|null|undefined} timestamp - * @memberof tendermint.types.CommitSig + * Callback as used by {@link tendermint.abci.ABCIApplication#query}. + * @memberof tendermint.abci.ABCIApplication + * @typedef QueryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseQuery} [response] ResponseQuery + */ + + /** + * Calls Query. + * @function query + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestQuery} request RequestQuery message or plain object + * @param {tendermint.abci.ABCIApplication.QueryCallback} callback Node-style callback called with the error, if any, and ResponseQuery + * @returns {undefined} + * @variation 1 */ - CommitSig.prototype.timestamp = null; + Object.defineProperty(ABCIApplication.prototype.query = function query(request, callback) { + return this.rpcCall(query, $root.tendermint.abci.RequestQuery, $root.tendermint.abci.ResponseQuery, request, callback); + }, "name", { value: "Query" }); /** - * CommitSig signature. - * @member {Uint8Array} signature - * @memberof tendermint.types.CommitSig + * Calls Query. + * @function query + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestQuery} request RequestQuery message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CommitSig.prototype.signature = $util.newBuffer([]); /** - * Encodes the specified CommitSig message. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. - * @function encode - * @memberof tendermint.types.CommitSig - * @static - * @param {tendermint.types.ICommitSig} message CommitSig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. + * @memberof tendermint.abci.ABCIApplication + * @typedef CommitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseCommit} [response] ResponseCommit */ - CommitSig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.block_id_flag != null && Object.hasOwnProperty.call(message, "block_id_flag")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.block_id_flag); - if (message.validator_address != null && Object.hasOwnProperty.call(message, "validator_address")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.validator_address); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signature); - return writer; - }; /** - * Encodes the specified CommitSig message, length delimited. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.types.CommitSig - * @static - * @param {tendermint.types.ICommitSig} message CommitSig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls Commit. + * @function commit + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestCommit} request RequestCommit message or plain object + * @param {tendermint.abci.ABCIApplication.CommitCallback} callback Node-style callback called with the error, if any, and ResponseCommit + * @returns {undefined} + * @variation 1 */ - CommitSig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(ABCIApplication.prototype.commit = function commit(request, callback) { + return this.rpcCall(commit, $root.tendermint.abci.RequestCommit, $root.tendermint.abci.ResponseCommit, request, callback); + }, "name", { value: "Commit" }); /** - * Decodes a CommitSig message from the specified reader or buffer. - * @function decode - * @memberof tendermint.types.CommitSig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.CommitSig} CommitSig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Commit. + * @function commit + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestCommit} request RequestCommit message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CommitSig.decode = 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.types.CommitSig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.block_id_flag = reader.int32(); - break; - case 2: - message.validator_address = reader.bytes(); - break; - case 3: - message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CommitSig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.types.CommitSig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.CommitSig} CommitSig - * @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 tendermint.abci.ABCIApplication#initChain}. + * @memberof tendermint.abci.ABCIApplication + * @typedef InitChainCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseInitChain} [response] ResponseInitChain */ - CommitSig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CommitSig message. - * @function verify - * @memberof tendermint.types.CommitSig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls InitChain. + * @function initChain + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestInitChain} request RequestInitChain message or plain object + * @param {tendermint.abci.ABCIApplication.InitChainCallback} callback Node-style callback called with the error, if any, and ResponseInitChain + * @returns {undefined} + * @variation 1 */ - CommitSig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.block_id_flag != null && message.hasOwnProperty("block_id_flag")) - switch (message.block_id_flag) { - default: - return "block_id_flag: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.validator_address != null && message.hasOwnProperty("validator_address")) - if (!(message.validator_address && typeof message.validator_address.length === "number" || $util.isString(message.validator_address))) - return "validator_address: buffer expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.protobuf.Timestamp.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - return null; - }; + Object.defineProperty(ABCIApplication.prototype.initChain = function initChain(request, callback) { + return this.rpcCall(initChain, $root.tendermint.abci.RequestInitChain, $root.tendermint.abci.ResponseInitChain, request, callback); + }, "name", { value: "InitChain" }); /** - * Creates a CommitSig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.types.CommitSig - * @static - * @param {Object.} object Plain object - * @returns {tendermint.types.CommitSig} CommitSig + * Calls InitChain. + * @function initChain + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestInitChain} request RequestInitChain message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CommitSig.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.CommitSig) - return object; - var message = new $root.tendermint.types.CommitSig(); - switch (object.block_id_flag) { - case "BLOCK_ID_FLAG_UNKNOWN": - case 0: - message.block_id_flag = 0; - break; - case "BLOCK_ID_FLAG_ABSENT": - case 1: - message.block_id_flag = 1; - break; - case "BLOCK_ID_FLAG_COMMIT": - case 2: - message.block_id_flag = 2; - break; - case "BLOCK_ID_FLAG_NIL": - case 3: - message.block_id_flag = 3; - break; - } - if (object.validator_address != null) - if (typeof object.validator_address === "string") - $util.base64.decode(object.validator_address, message.validator_address = $util.newBuffer($util.base64.length(object.validator_address)), 0); - else if (object.validator_address.length) - message.validator_address = object.validator_address; - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".tendermint.types.CommitSig.timestamp: object expected"); - message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); - } - 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; - return message; - }; /** - * Creates a plain object from a CommitSig message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.types.CommitSig - * @static - * @param {tendermint.types.CommitSig} message CommitSig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link tendermint.abci.ABCIApplication#beginBlock}. + * @memberof tendermint.abci.ABCIApplication + * @typedef BeginBlockCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseBeginBlock} [response] ResponseBeginBlock */ - CommitSig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.block_id_flag = options.enums === String ? "BLOCK_ID_FLAG_UNKNOWN" : 0; - if (options.bytes === String) - object.validator_address = ""; - else { - object.validator_address = []; - if (options.bytes !== Array) - object.validator_address = $util.newBuffer(object.validator_address); - } - object.timestamp = null; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - } - if (message.block_id_flag != null && message.hasOwnProperty("block_id_flag")) - object.block_id_flag = options.enums === String ? $root.tendermint.types.BlockIDFlag[message.block_id_flag] : message.block_id_flag; - if (message.validator_address != null && message.hasOwnProperty("validator_address")) - object.validator_address = options.bytes === String ? $util.base64.encode(message.validator_address, 0, message.validator_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.validator_address) : message.validator_address; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); - 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; - return object; - }; /** - * Converts this CommitSig to JSON. - * @function toJSON - * @memberof tendermint.types.CommitSig + * Calls BeginBlock. + * @function beginBlock + * @memberof tendermint.abci.ABCIApplication * @instance - * @returns {Object.} JSON object + * @param {tendermint.abci.IRequestBeginBlock} request RequestBeginBlock message or plain object + * @param {tendermint.abci.ABCIApplication.BeginBlockCallback} callback Node-style callback called with the error, if any, and ResponseBeginBlock + * @returns {undefined} + * @variation 1 */ - CommitSig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CommitSig; - })(); + Object.defineProperty(ABCIApplication.prototype.beginBlock = function beginBlock(request, callback) { + return this.rpcCall(beginBlock, $root.tendermint.abci.RequestBeginBlock, $root.tendermint.abci.ResponseBeginBlock, request, callback); + }, "name", { value: "BeginBlock" }); - types.Proposal = (function() { + /** + * Calls BeginBlock. + * @function beginBlock + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestBeginBlock} request RequestBeginBlock message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a Proposal. - * @memberof tendermint.types - * @interface IProposal - * @property {tendermint.types.SignedMsgType|null} [type] Proposal type - * @property {Long|null} [height] Proposal height - * @property {number|null} [round] Proposal round - * @property {number|null} [pol_round] Proposal pol_round - * @property {tendermint.types.IBlockID|null} [block_id] Proposal block_id - * @property {google.protobuf.ITimestamp|null} [timestamp] Proposal timestamp - * @property {Uint8Array|null} [signature] Proposal signature + * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. + * @memberof tendermint.abci.ABCIApplication + * @typedef EndBlockCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseEndBlock} [response] ResponseEndBlock */ /** - * Constructs a new Proposal. - * @memberof tendermint.types - * @classdesc Represents a Proposal. - * @implements IProposal - * @constructor - * @param {tendermint.types.IProposal=} [properties] Properties to set + * Calls EndBlock. + * @function endBlock + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestEndBlock} request RequestEndBlock message or plain object + * @param {tendermint.abci.ABCIApplication.EndBlockCallback} callback Node-style callback called with the error, if any, and ResponseEndBlock + * @returns {undefined} + * @variation 1 */ - function Proposal(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(ABCIApplication.prototype.endBlock = function endBlock(request, callback) { + return this.rpcCall(endBlock, $root.tendermint.abci.RequestEndBlock, $root.tendermint.abci.ResponseEndBlock, request, callback); + }, "name", { value: "EndBlock" }); /** - * Proposal type. - * @member {tendermint.types.SignedMsgType} type - * @memberof tendermint.types.Proposal + * Calls EndBlock. + * @function endBlock + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestEndBlock} request RequestEndBlock message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Proposal.prototype.type = 0; /** - * Proposal height. - * @member {Long} height - * @memberof tendermint.types.Proposal + * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. + * @memberof tendermint.abci.ABCIApplication + * @typedef ListSnapshotsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseListSnapshots} [response] ResponseListSnapshots + */ + + /** + * Calls ListSnapshots. + * @function listSnapshots + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestListSnapshots} request RequestListSnapshots message or plain object + * @param {tendermint.abci.ABCIApplication.ListSnapshotsCallback} callback Node-style callback called with the error, if any, and ResponseListSnapshots + * @returns {undefined} + * @variation 1 */ - Proposal.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Object.defineProperty(ABCIApplication.prototype.listSnapshots = function listSnapshots(request, callback) { + return this.rpcCall(listSnapshots, $root.tendermint.abci.RequestListSnapshots, $root.tendermint.abci.ResponseListSnapshots, request, callback); + }, "name", { value: "ListSnapshots" }); /** - * Proposal round. - * @member {number} round - * @memberof tendermint.types.Proposal + * Calls ListSnapshots. + * @function listSnapshots + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestListSnapshots} request RequestListSnapshots message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Proposal.prototype.round = 0; /** - * Proposal pol_round. - * @member {number} pol_round - * @memberof tendermint.types.Proposal + * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. + * @memberof tendermint.abci.ABCIApplication + * @typedef OfferSnapshotCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseOfferSnapshot} [response] ResponseOfferSnapshot + */ + + /** + * Calls OfferSnapshot. + * @function offerSnapshot + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestOfferSnapshot} request RequestOfferSnapshot message or plain object + * @param {tendermint.abci.ABCIApplication.OfferSnapshotCallback} callback Node-style callback called with the error, if any, and ResponseOfferSnapshot + * @returns {undefined} + * @variation 1 */ - Proposal.prototype.pol_round = 0; + Object.defineProperty(ABCIApplication.prototype.offerSnapshot = function offerSnapshot(request, callback) { + return this.rpcCall(offerSnapshot, $root.tendermint.abci.RequestOfferSnapshot, $root.tendermint.abci.ResponseOfferSnapshot, request, callback); + }, "name", { value: "OfferSnapshot" }); /** - * Proposal block_id. - * @member {tendermint.types.IBlockID|null|undefined} block_id - * @memberof tendermint.types.Proposal + * Calls OfferSnapshot. + * @function offerSnapshot + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestOfferSnapshot} request RequestOfferSnapshot message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Proposal.prototype.block_id = null; /** - * Proposal timestamp. - * @member {google.protobuf.ITimestamp|null|undefined} timestamp - * @memberof tendermint.types.Proposal - * @instance + * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. + * @memberof tendermint.abci.ABCIApplication + * @typedef LoadSnapshotChunkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseLoadSnapshotChunk} [response] ResponseLoadSnapshotChunk */ - Proposal.prototype.timestamp = null; /** - * Proposal signature. - * @member {Uint8Array} signature - * @memberof tendermint.types.Proposal + * Calls LoadSnapshotChunk. + * @function loadSnapshotChunk + * @memberof tendermint.abci.ABCIApplication * @instance + * @param {tendermint.abci.IRequestLoadSnapshotChunk} request RequestLoadSnapshotChunk message or plain object + * @param {tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback} callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk + * @returns {undefined} + * @variation 1 */ - Proposal.prototype.signature = $util.newBuffer([]); + Object.defineProperty(ABCIApplication.prototype.loadSnapshotChunk = function loadSnapshotChunk(request, callback) { + return this.rpcCall(loadSnapshotChunk, $root.tendermint.abci.RequestLoadSnapshotChunk, $root.tendermint.abci.ResponseLoadSnapshotChunk, request, callback); + }, "name", { value: "LoadSnapshotChunk" }); /** - * Encodes the specified Proposal message. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. - * @function encode - * @memberof tendermint.types.Proposal - * @static - * @param {tendermint.types.IProposal} message Proposal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls LoadSnapshotChunk. + * @function loadSnapshotChunk + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestLoadSnapshotChunk} request RequestLoadSnapshotChunk message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Proposal.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.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.height); - if (message.round != null && Object.hasOwnProperty.call(message, "round")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.round); - if (message.pol_round != null && Object.hasOwnProperty.call(message, "pol_round")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pol_round); - if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) - $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.signature); - return writer; - }; /** - * Encodes the specified Proposal message, length delimited. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.types.Proposal - * @static - * @param {tendermint.types.IProposal} message Proposal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. + * @memberof tendermint.abci.ABCIApplication + * @typedef ApplySnapshotChunkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {tendermint.abci.ResponseApplySnapshotChunk} [response] ResponseApplySnapshotChunk */ - Proposal.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a Proposal message from the specified reader or buffer. - * @function decode - * @memberof tendermint.types.Proposal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Proposal} Proposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ApplySnapshotChunk. + * @function applySnapshotChunk + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestApplySnapshotChunk} request RequestApplySnapshotChunk message or plain object + * @param {tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback} callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk + * @returns {undefined} + * @variation 1 */ - 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.tendermint.types.Proposal(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.height = reader.int64(); - break; - case 3: - message.round = reader.int32(); - break; - case 4: - message.pol_round = reader.int32(); - break; - case 5: - message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); - break; - case 6: - message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.signature = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Object.defineProperty(ABCIApplication.prototype.applySnapshotChunk = function applySnapshotChunk(request, callback) { + return this.rpcCall(applySnapshotChunk, $root.tendermint.abci.RequestApplySnapshotChunk, $root.tendermint.abci.ResponseApplySnapshotChunk, request, callback); + }, "name", { value: "ApplySnapshotChunk" }); /** - * Decodes a Proposal message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.types.Proposal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Proposal} Proposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ApplySnapshotChunk. + * @function applySnapshotChunk + * @memberof tendermint.abci.ABCIApplication + * @instance + * @param {tendermint.abci.IRequestApplySnapshotChunk} request RequestApplySnapshotChunk message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Proposal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - /** - * Verifies a Proposal message. - * @function verify - * @memberof tendermint.types.Proposal - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Proposal.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: - case 2: - case 32: - break; - } - 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.round != null && message.hasOwnProperty("round")) - if (!$util.isInteger(message.round)) - return "round: integer expected"; - if (message.pol_round != null && message.hasOwnProperty("pol_round")) - if (!$util.isInteger(message.pol_round)) - return "pol_round: integer expected"; - if (message.block_id != null && message.hasOwnProperty("block_id")) { - var error = $root.tendermint.types.BlockID.verify(message.block_id); - if (error) - return "block_id." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.protobuf.Timestamp.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - return null; - }; + return ABCIApplication; + })(); - /** - * Creates a Proposal message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.types.Proposal - * @static - * @param {Object.} object Plain object - * @returns {tendermint.types.Proposal} Proposal - */ - Proposal.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Proposal) - return object; - var message = new $root.tendermint.types.Proposal(); - switch (object.type) { - case "SIGNED_MSG_TYPE_UNKNOWN": - case 0: - message.type = 0; - break; - case "SIGNED_MSG_TYPE_PREVOTE": - case 1: - message.type = 1; - break; - case "SIGNED_MSG_TYPE_PRECOMMIT": - case 2: - message.type = 2; - break; - case "SIGNED_MSG_TYPE_PROPOSAL": - case 32: - message.type = 32; - break; - } - 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.round != null) - message.round = object.round | 0; - if (object.pol_round != null) - message.pol_round = object.pol_round | 0; - if (object.block_id != null) { - if (typeof object.block_id !== "object") - throw TypeError(".tendermint.types.Proposal.block_id: object expected"); - message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); - } - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".tendermint.types.Proposal.timestamp: object expected"); - message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); - } - 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; - return message; - }; + return abci; + })(); - /** - * Creates a plain object from a Proposal message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.types.Proposal - * @static - * @param {tendermint.types.Proposal} message Proposal - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Proposal.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "SIGNED_MSG_TYPE_UNKNOWN" : 0; - 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.round = 0; - object.pol_round = 0; - object.block_id = null; - object.timestamp = null; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.tendermint.types.SignedMsgType[message.type] : message.type; - 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.round != null && message.hasOwnProperty("round")) - object.round = message.round; - if (message.pol_round != null && message.hasOwnProperty("pol_round")) - object.pol_round = message.pol_round; - if (message.block_id != null && message.hasOwnProperty("block_id")) - object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); - 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; - return object; - }; + tendermint.types = (function() { - /** - * Converts this Proposal to JSON. - * @function toJSON - * @memberof tendermint.types.Proposal - * @instance - * @returns {Object.} JSON object - */ - Proposal.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Namespace types. + * @memberof tendermint + * @namespace + */ + var types = {}; - return Proposal; + /** + * BlockIDFlag enum. + * @name tendermint.types.BlockIDFlag + * @enum {number} + * @property {number} BLOCK_ID_FLAG_UNKNOWN=0 BLOCK_ID_FLAG_UNKNOWN value + * @property {number} BLOCK_ID_FLAG_ABSENT=1 BLOCK_ID_FLAG_ABSENT value + * @property {number} BLOCK_ID_FLAG_COMMIT=2 BLOCK_ID_FLAG_COMMIT value + * @property {number} BLOCK_ID_FLAG_NIL=3 BLOCK_ID_FLAG_NIL value + */ + types.BlockIDFlag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BLOCK_ID_FLAG_UNKNOWN"] = 0; + values[valuesById[1] = "BLOCK_ID_FLAG_ABSENT"] = 1; + values[valuesById[2] = "BLOCK_ID_FLAG_COMMIT"] = 2; + values[valuesById[3] = "BLOCK_ID_FLAG_NIL"] = 3; + return values; })(); - types.SignedHeader = (function() { + /** + * SignedMsgType enum. + * @name tendermint.types.SignedMsgType + * @enum {number} + * @property {number} SIGNED_MSG_TYPE_UNKNOWN=0 SIGNED_MSG_TYPE_UNKNOWN value + * @property {number} SIGNED_MSG_TYPE_PREVOTE=1 SIGNED_MSG_TYPE_PREVOTE value + * @property {number} SIGNED_MSG_TYPE_PRECOMMIT=2 SIGNED_MSG_TYPE_PRECOMMIT value + * @property {number} SIGNED_MSG_TYPE_PROPOSAL=32 SIGNED_MSG_TYPE_PROPOSAL value + */ + types.SignedMsgType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SIGNED_MSG_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "SIGNED_MSG_TYPE_PREVOTE"] = 1; + values[valuesById[2] = "SIGNED_MSG_TYPE_PRECOMMIT"] = 2; + values[valuesById[32] = "SIGNED_MSG_TYPE_PROPOSAL"] = 32; + return values; + })(); + + types.PartSetHeader = (function() { /** - * Properties of a SignedHeader. + * Properties of a PartSetHeader. * @memberof tendermint.types - * @interface ISignedHeader - * @property {tendermint.types.IHeader|null} [header] SignedHeader header - * @property {tendermint.types.ICommit|null} [commit] SignedHeader commit + * @interface IPartSetHeader + * @property {number|null} [total] PartSetHeader total + * @property {Uint8Array|null} [hash] PartSetHeader hash */ /** - * Constructs a new SignedHeader. + * Constructs a new PartSetHeader. * @memberof tendermint.types - * @classdesc Represents a SignedHeader. - * @implements ISignedHeader + * @classdesc Represents a PartSetHeader. + * @implements IPartSetHeader * @constructor - * @param {tendermint.types.ISignedHeader=} [properties] Properties to set + * @param {tendermint.types.IPartSetHeader=} [properties] Properties to set */ - function SignedHeader(properties) { + function PartSetHeader(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35295,76 +43446,76 @@ } /** - * SignedHeader header. - * @member {tendermint.types.IHeader|null|undefined} header - * @memberof tendermint.types.SignedHeader + * PartSetHeader total. + * @member {number} total + * @memberof tendermint.types.PartSetHeader * @instance */ - SignedHeader.prototype.header = null; + PartSetHeader.prototype.total = 0; /** - * SignedHeader commit. - * @member {tendermint.types.ICommit|null|undefined} commit - * @memberof tendermint.types.SignedHeader + * PartSetHeader hash. + * @member {Uint8Array} hash + * @memberof tendermint.types.PartSetHeader * @instance */ - SignedHeader.prototype.commit = null; + PartSetHeader.prototype.hash = $util.newBuffer([]); /** - * Encodes the specified SignedHeader message. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. + * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. * @function encode - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static - * @param {tendermint.types.ISignedHeader} message SignedHeader message or plain object to encode + * @param {tendermint.types.IPartSetHeader} message PartSetHeader message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignedHeader.encode = function encode(message, writer) { + PartSetHeader.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) - $root.tendermint.types.Commit.encode(message.commit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.total); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.hash); return writer; }; /** - * Encodes the specified SignedHeader message, length delimited. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. + * Encodes the specified PartSetHeader message, length delimited. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static - * @param {tendermint.types.ISignedHeader} message SignedHeader message or plain object to encode + * @param {tendermint.types.IPartSetHeader} message PartSetHeader message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignedHeader.encodeDelimited = function encodeDelimited(message, writer) { + PartSetHeader.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignedHeader message from the specified reader or buffer. + * Decodes a PartSetHeader message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.SignedHeader} SignedHeader + * @returns {tendermint.types.PartSetHeader} PartSetHeader * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignedHeader.decode = function decode(reader, length) { + PartSetHeader.decode = 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.types.SignedHeader(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.PartSetHeader(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); + message.total = reader.uint32(); break; case 2: - message.commit = $root.tendermint.types.Commit.decode(reader, reader.uint32()); + message.hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -35375,127 +43526,127 @@ }; /** - * Decodes a SignedHeader message from the specified reader or buffer, length delimited. + * Decodes a PartSetHeader message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.SignedHeader} SignedHeader + * @returns {tendermint.types.PartSetHeader} PartSetHeader * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignedHeader.decodeDelimited = function decodeDelimited(reader) { + PartSetHeader.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignedHeader message. + * Verifies a PartSetHeader message. * @function verify - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignedHeader.verify = function verify(message) { + PartSetHeader.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.tendermint.types.Header.verify(message.header); - if (error) - return "header." + error; - } - if (message.commit != null && message.hasOwnProperty("commit")) { - var error = $root.tendermint.types.Commit.verify(message.commit); - if (error) - return "commit." + error; - } + if (message.total != null && message.hasOwnProperty("total")) + if (!$util.isInteger(message.total)) + return "total: integer 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 SignedHeader message from a plain object. Also converts values to their respective internal types. + * Creates a PartSetHeader message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static * @param {Object.} object Plain object - * @returns {tendermint.types.SignedHeader} SignedHeader + * @returns {tendermint.types.PartSetHeader} PartSetHeader */ - SignedHeader.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.SignedHeader) + PartSetHeader.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.PartSetHeader) return object; - var message = new $root.tendermint.types.SignedHeader(); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".tendermint.types.SignedHeader.header: object expected"); - message.header = $root.tendermint.types.Header.fromObject(object.header); - } - if (object.commit != null) { - if (typeof object.commit !== "object") - throw TypeError(".tendermint.types.SignedHeader.commit: object expected"); - message.commit = $root.tendermint.types.Commit.fromObject(object.commit); - } + var message = new $root.tendermint.types.PartSetHeader(); + if (object.total != null) + message.total = object.total >>> 0; + 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 SignedHeader message. Also converts values to other types if specified. + * Creates a plain object from a PartSetHeader message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @static - * @param {tendermint.types.SignedHeader} message SignedHeader + * @param {tendermint.types.PartSetHeader} message PartSetHeader * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignedHeader.toObject = function toObject(message, options) { + PartSetHeader.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.header = null; - object.commit = null; + object.total = 0; + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } } - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.tendermint.types.Header.toObject(message.header, options); - if (message.commit != null && message.hasOwnProperty("commit")) - object.commit = $root.tendermint.types.Commit.toObject(message.commit, options); + if (message.total != null && message.hasOwnProperty("total")) + object.total = message.total; + 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 SignedHeader to JSON. + * Converts this PartSetHeader to JSON. * @function toJSON - * @memberof tendermint.types.SignedHeader + * @memberof tendermint.types.PartSetHeader * @instance * @returns {Object.} JSON object */ - SignedHeader.prototype.toJSON = function toJSON() { + PartSetHeader.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignedHeader; + return PartSetHeader; })(); - types.LightBlock = (function() { + types.Part = (function() { /** - * Properties of a LightBlock. + * Properties of a Part. * @memberof tendermint.types - * @interface ILightBlock - * @property {tendermint.types.ISignedHeader|null} [signed_header] LightBlock signed_header - * @property {tendermint.types.IValidatorSet|null} [validator_set] LightBlock validator_set + * @interface IPart + * @property {number|null} [index] Part index + * @property {Uint8Array|null} [bytes] Part bytes + * @property {tendermint.crypto.IProof|null} [proof] Part proof */ /** - * Constructs a new LightBlock. + * Constructs a new Part. * @memberof tendermint.types - * @classdesc Represents a LightBlock. - * @implements ILightBlock + * @classdesc Represents a Part. + * @implements IPart * @constructor - * @param {tendermint.types.ILightBlock=} [properties] Properties to set + * @param {tendermint.types.IPart=} [properties] Properties to set */ - function LightBlock(properties) { + function Part(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35503,76 +43654,89 @@ } /** - * LightBlock signed_header. - * @member {tendermint.types.ISignedHeader|null|undefined} signed_header - * @memberof tendermint.types.LightBlock + * Part index. + * @member {number} index + * @memberof tendermint.types.Part * @instance */ - LightBlock.prototype.signed_header = null; + Part.prototype.index = 0; /** - * LightBlock validator_set. - * @member {tendermint.types.IValidatorSet|null|undefined} validator_set - * @memberof tendermint.types.LightBlock + * Part bytes. + * @member {Uint8Array} bytes + * @memberof tendermint.types.Part * @instance */ - LightBlock.prototype.validator_set = null; + Part.prototype.bytes = $util.newBuffer([]); /** - * Encodes the specified LightBlock message. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. + * Part proof. + * @member {tendermint.crypto.IProof|null|undefined} proof + * @memberof tendermint.types.Part + * @instance + */ + Part.prototype.proof = null; + + /** + * Encodes the specified Part message. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. * @function encode - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static - * @param {tendermint.types.ILightBlock} message LightBlock message or plain object to encode + * @param {tendermint.types.IPart} message Part message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LightBlock.encode = function encode(message, writer) { + Part.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.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); + if (message.bytes != null && Object.hasOwnProperty.call(message, "bytes")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.bytes); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified LightBlock message, length delimited. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. + * Encodes the specified Part message, length delimited. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static - * @param {tendermint.types.ILightBlock} message LightBlock message or plain object to encode + * @param {tendermint.types.IPart} message Part message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LightBlock.encodeDelimited = function encodeDelimited(message, writer) { + Part.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LightBlock message from the specified reader or buffer. + * Decodes a Part message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.LightBlock} LightBlock + * @returns {tendermint.types.Part} Part * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LightBlock.decode = function decode(reader, length) { + Part.decode = 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.types.LightBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Part(); 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.index = reader.uint32(); break; case 2: - message.validator_set = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + message.bytes = reader.bytes(); + break; + case 3: + message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35583,129 +43747,139 @@ }; /** - * Decodes a LightBlock message from the specified reader or buffer, length delimited. + * Decodes a Part message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.LightBlock} LightBlock + * @returns {tendermint.types.Part} Part * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LightBlock.decodeDelimited = function decodeDelimited(reader) { + Part.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LightBlock message. + * Verifies a Part message. * @function verify - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LightBlock.verify = function verify(message) { + Part.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 (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.bytes != null && message.hasOwnProperty("bytes")) + if (!(message.bytes && typeof message.bytes.length === "number" || $util.isString(message.bytes))) + return "bytes: buffer expected"; + if (message.proof != null && message.hasOwnProperty("proof")) { + var error = $root.tendermint.crypto.Proof.verify(message.proof); if (error) - return "validator_set." + error; + return "proof." + error; } return null; }; /** - * Creates a LightBlock message from a plain object. Also converts values to their respective internal types. + * Creates a Part message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static * @param {Object.} object Plain object - * @returns {tendermint.types.LightBlock} LightBlock + * @returns {tendermint.types.Part} Part */ - LightBlock.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.LightBlock) + Part.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Part) return object; - var message = new $root.tendermint.types.LightBlock(); - if (object.signed_header != null) { - if (typeof object.signed_header !== "object") - throw TypeError(".tendermint.types.LightBlock.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(".tendermint.types.LightBlock.validator_set: object expected"); - message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); + var message = new $root.tendermint.types.Part(); + if (object.index != null) + message.index = object.index >>> 0; + if (object.bytes != null) + if (typeof object.bytes === "string") + $util.base64.decode(object.bytes, message.bytes = $util.newBuffer($util.base64.length(object.bytes)), 0); + else if (object.bytes.length) + message.bytes = object.bytes; + if (object.proof != null) { + if (typeof object.proof !== "object") + throw TypeError(".tendermint.types.Part.proof: object expected"); + message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); } return message; }; /** - * Creates a plain object from a LightBlock message. Also converts values to other types if specified. + * Creates a plain object from a Part message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @static - * @param {tendermint.types.LightBlock} message LightBlock + * @param {tendermint.types.Part} message Part * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LightBlock.toObject = function toObject(message, options) { + Part.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.signed_header = null; - object.validator_set = null; + object.index = 0; + if (options.bytes === String) + object.bytes = ""; + else { + object.bytes = []; + if (options.bytes !== Array) + object.bytes = $util.newBuffer(object.bytes); + } + object.proof = 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.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.bytes != null && message.hasOwnProperty("bytes")) + object.bytes = options.bytes === String ? $util.base64.encode(message.bytes, 0, message.bytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytes) : message.bytes; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); return object; }; /** - * Converts this LightBlock to JSON. + * Converts this Part to JSON. * @function toJSON - * @memberof tendermint.types.LightBlock + * @memberof tendermint.types.Part * @instance * @returns {Object.} JSON object */ - LightBlock.prototype.toJSON = function toJSON() { + Part.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LightBlock; + return Part; })(); - types.BlockMeta = (function() { + types.BlockID = (function() { /** - * Properties of a BlockMeta. + * Properties of a BlockID. * @memberof tendermint.types - * @interface IBlockMeta - * @property {tendermint.types.IBlockID|null} [block_id] BlockMeta block_id - * @property {Long|null} [block_size] BlockMeta block_size - * @property {tendermint.types.IHeader|null} [header] BlockMeta header - * @property {Long|null} [num_txs] BlockMeta num_txs + * @interface IBlockID + * @property {Uint8Array|null} [hash] BlockID hash + * @property {tendermint.types.IPartSetHeader|null} [part_set_header] BlockID part_set_header */ /** - * Constructs a new BlockMeta. + * Constructs a new BlockID. * @memberof tendermint.types - * @classdesc Represents a BlockMeta. - * @implements IBlockMeta + * @classdesc Represents a BlockID. + * @implements IBlockID * @constructor - * @param {tendermint.types.IBlockMeta=} [properties] Properties to set + * @param {tendermint.types.IBlockID=} [properties] Properties to set */ - function BlockMeta(properties) { + function BlockID(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35713,102 +43887,76 @@ } /** - * BlockMeta block_id. - * @member {tendermint.types.IBlockID|null|undefined} block_id - * @memberof tendermint.types.BlockMeta - * @instance - */ - BlockMeta.prototype.block_id = null; - - /** - * BlockMeta block_size. - * @member {Long} block_size - * @memberof tendermint.types.BlockMeta - * @instance - */ - BlockMeta.prototype.block_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BlockMeta header. - * @member {tendermint.types.IHeader|null|undefined} header - * @memberof tendermint.types.BlockMeta + * BlockID hash. + * @member {Uint8Array} hash + * @memberof tendermint.types.BlockID * @instance */ - BlockMeta.prototype.header = null; + BlockID.prototype.hash = $util.newBuffer([]); /** - * BlockMeta num_txs. - * @member {Long} num_txs - * @memberof tendermint.types.BlockMeta + * BlockID part_set_header. + * @member {tendermint.types.IPartSetHeader|null|undefined} part_set_header + * @memberof tendermint.types.BlockID * @instance */ - BlockMeta.prototype.num_txs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BlockID.prototype.part_set_header = null; /** - * Encodes the specified BlockMeta message. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. + * Encodes the specified BlockID message. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. * @function encode - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static - * @param {tendermint.types.IBlockMeta} message BlockMeta message or plain object to encode + * @param {tendermint.types.IBlockID} message BlockID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockMeta.encode = function encode(message, writer) { + BlockID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) - $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.block_size != null && Object.hasOwnProperty.call(message, "block_size")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.block_size); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.num_txs != null && Object.hasOwnProperty.call(message, "num_txs")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num_txs); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); + if (message.part_set_header != null && Object.hasOwnProperty.call(message, "part_set_header")) + $root.tendermint.types.PartSetHeader.encode(message.part_set_header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BlockMeta message, length delimited. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. + * Encodes the specified BlockID message, length delimited. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static - * @param {tendermint.types.IBlockMeta} message BlockMeta message or plain object to encode + * @param {tendermint.types.IBlockID} message BlockID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockMeta.encodeDelimited = function encodeDelimited(message, writer) { + BlockID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BlockMeta message from the specified reader or buffer. + * Decodes a BlockID message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.BlockMeta} BlockMeta + * @returns {tendermint.types.BlockID} BlockID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockMeta.decode = function decode(reader, length) { + BlockID.decode = 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.types.BlockMeta(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.BlockID(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + message.hash = reader.bytes(); break; case 2: - message.block_size = reader.int64(); - break; - case 3: - message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); - break; - case 4: - message.num_txs = reader.int64(); + message.part_set_header = $root.tendermint.types.PartSetHeader.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35819,262 +43967,376 @@ }; /** - * Decodes a BlockMeta message from the specified reader or buffer, length delimited. + * Decodes a BlockID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.BlockMeta} BlockMeta + * @returns {tendermint.types.BlockID} BlockID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockMeta.decodeDelimited = function decodeDelimited(reader) { + BlockID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BlockMeta message. + * Verifies a BlockID message. * @function verify - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BlockMeta.verify = function verify(message) { + BlockID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.block_id != null && message.hasOwnProperty("block_id")) { - var error = $root.tendermint.types.BlockID.verify(message.block_id); - if (error) - return "block_id." + error; - } - if (message.block_size != null && message.hasOwnProperty("block_size")) - if (!$util.isInteger(message.block_size) && !(message.block_size && $util.isInteger(message.block_size.low) && $util.isInteger(message.block_size.high))) - return "block_size: integer|Long expected"; - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.tendermint.types.Header.verify(message.header); + 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.part_set_header != null && message.hasOwnProperty("part_set_header")) { + var error = $root.tendermint.types.PartSetHeader.verify(message.part_set_header); if (error) - return "header." + error; + return "part_set_header." + error; } - if (message.num_txs != null && message.hasOwnProperty("num_txs")) - if (!$util.isInteger(message.num_txs) && !(message.num_txs && $util.isInteger(message.num_txs.low) && $util.isInteger(message.num_txs.high))) - return "num_txs: integer|Long expected"; return null; }; /** - * Creates a BlockMeta message from a plain object. Also converts values to their respective internal types. + * Creates a BlockID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.BlockMeta + * @memberof tendermint.types.BlockID * @static * @param {Object.} object Plain object - * @returns {tendermint.types.BlockMeta} BlockMeta + * @returns {tendermint.types.BlockID} BlockID */ - BlockMeta.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.BlockMeta) + BlockID.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.BlockID) return object; - var message = new $root.tendermint.types.BlockMeta(); - if (object.block_id != null) { - if (typeof object.block_id !== "object") - throw TypeError(".tendermint.types.BlockMeta.block_id: object expected"); - message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); - } - if (object.block_size != null) - if ($util.Long) - (message.block_size = $util.Long.fromValue(object.block_size)).unsigned = false; - else if (typeof object.block_size === "string") - message.block_size = parseInt(object.block_size, 10); - else if (typeof object.block_size === "number") - message.block_size = object.block_size; - else if (typeof object.block_size === "object") - message.block_size = new $util.LongBits(object.block_size.low >>> 0, object.block_size.high >>> 0).toNumber(); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".tendermint.types.BlockMeta.header: object expected"); - message.header = $root.tendermint.types.Header.fromObject(object.header); + var message = new $root.tendermint.types.BlockID(); + 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; + if (object.part_set_header != null) { + if (typeof object.part_set_header !== "object") + throw TypeError(".tendermint.types.BlockID.part_set_header: object expected"); + message.part_set_header = $root.tendermint.types.PartSetHeader.fromObject(object.part_set_header); } - if (object.num_txs != null) - if ($util.Long) - (message.num_txs = $util.Long.fromValue(object.num_txs)).unsigned = false; - else if (typeof object.num_txs === "string") - message.num_txs = parseInt(object.num_txs, 10); - else if (typeof object.num_txs === "number") - message.num_txs = object.num_txs; - else if (typeof object.num_txs === "object") - message.num_txs = new $util.LongBits(object.num_txs.low >>> 0, object.num_txs.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a BlockMeta message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.types.BlockMeta - * @static - * @param {tendermint.types.BlockMeta} message BlockMeta - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Creates a plain object from a BlockID message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.types.BlockID + * @static + * @param {tendermint.types.BlockID} message BlockID + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BlockID.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } + object.part_set_header = null; + } + 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; + if (message.part_set_header != null && message.hasOwnProperty("part_set_header")) + object.part_set_header = $root.tendermint.types.PartSetHeader.toObject(message.part_set_header, options); + return object; + }; + + /** + * Converts this BlockID to JSON. + * @function toJSON + * @memberof tendermint.types.BlockID + * @instance + * @returns {Object.} JSON object + */ + BlockID.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BlockID; + })(); + + types.Header = (function() { + + /** + * Properties of a Header. + * @memberof tendermint.types + * @interface IHeader + * @property {tendermint.version.IConsensus|null} [version] Header version + * @property {string|null} [chain_id] Header chain_id + * @property {Long|null} [height] Header height + * @property {google.protobuf.ITimestamp|null} [time] Header time + * @property {tendermint.types.IBlockID|null} [last_block_id] Header last_block_id + * @property {Uint8Array|null} [last_commit_hash] Header last_commit_hash + * @property {Uint8Array|null} [data_hash] Header data_hash + * @property {Uint8Array|null} [validators_hash] Header validators_hash + * @property {Uint8Array|null} [next_validators_hash] Header next_validators_hash + * @property {Uint8Array|null} [consensus_hash] Header consensus_hash + * @property {Uint8Array|null} [app_hash] Header app_hash + * @property {Uint8Array|null} [last_results_hash] Header last_results_hash + * @property {Uint8Array|null} [evidence_hash] Header evidence_hash + * @property {Uint8Array|null} [proposer_address] Header proposer_address + */ + + /** + * Constructs a new Header. + * @memberof tendermint.types + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {tendermint.types.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]]; + } + + /** + * Header version. + * @member {tendermint.version.IConsensus|null|undefined} version + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.version = null; + + /** + * Header chain_id. + * @member {string} chain_id + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.chain_id = ""; + + /** + * Header height. + * @member {Long} height + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Header time. + * @member {google.protobuf.ITimestamp|null|undefined} time + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.time = null; + + /** + * Header last_block_id. + * @member {tendermint.types.IBlockID|null|undefined} last_block_id + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.last_block_id = null; + + /** + * Header last_commit_hash. + * @member {Uint8Array} last_commit_hash + * @memberof tendermint.types.Header + * @instance */ - BlockMeta.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.block_id = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.block_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.block_size = options.longs === String ? "0" : 0; - object.header = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.num_txs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.num_txs = options.longs === String ? "0" : 0; - } - if (message.block_id != null && message.hasOwnProperty("block_id")) - object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); - if (message.block_size != null && message.hasOwnProperty("block_size")) - if (typeof message.block_size === "number") - object.block_size = options.longs === String ? String(message.block_size) : message.block_size; - else - object.block_size = options.longs === String ? $util.Long.prototype.toString.call(message.block_size) : options.longs === Number ? new $util.LongBits(message.block_size.low >>> 0, message.block_size.high >>> 0).toNumber() : message.block_size; - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.tendermint.types.Header.toObject(message.header, options); - if (message.num_txs != null && message.hasOwnProperty("num_txs")) - if (typeof message.num_txs === "number") - object.num_txs = options.longs === String ? String(message.num_txs) : message.num_txs; - else - object.num_txs = options.longs === String ? $util.Long.prototype.toString.call(message.num_txs) : options.longs === Number ? new $util.LongBits(message.num_txs.low >>> 0, message.num_txs.high >>> 0).toNumber() : message.num_txs; - return object; - }; + Header.prototype.last_commit_hash = $util.newBuffer([]); /** - * Converts this BlockMeta to JSON. - * @function toJSON - * @memberof tendermint.types.BlockMeta + * Header data_hash. + * @member {Uint8Array} data_hash + * @memberof tendermint.types.Header * @instance - * @returns {Object.} JSON object */ - BlockMeta.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Header.prototype.data_hash = $util.newBuffer([]); - return BlockMeta; - })(); + /** + * Header validators_hash. + * @member {Uint8Array} validators_hash + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.validators_hash = $util.newBuffer([]); - types.TxProof = (function() { + /** + * Header next_validators_hash. + * @member {Uint8Array} next_validators_hash + * @memberof tendermint.types.Header + * @instance + */ + Header.prototype.next_validators_hash = $util.newBuffer([]); /** - * Properties of a TxProof. - * @memberof tendermint.types - * @interface ITxProof - * @property {Uint8Array|null} [root_hash] TxProof root_hash - * @property {Uint8Array|null} [data] TxProof data - * @property {tendermint.crypto.IProof|null} [proof] TxProof proof + * Header consensus_hash. + * @member {Uint8Array} consensus_hash + * @memberof tendermint.types.Header + * @instance */ + Header.prototype.consensus_hash = $util.newBuffer([]); /** - * Constructs a new TxProof. - * @memberof tendermint.types - * @classdesc Represents a TxProof. - * @implements ITxProof - * @constructor - * @param {tendermint.types.ITxProof=} [properties] Properties to set + * Header app_hash. + * @member {Uint8Array} app_hash + * @memberof tendermint.types.Header + * @instance */ - function TxProof(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]]; - } + Header.prototype.app_hash = $util.newBuffer([]); /** - * TxProof root_hash. - * @member {Uint8Array} root_hash - * @memberof tendermint.types.TxProof + * Header last_results_hash. + * @member {Uint8Array} last_results_hash + * @memberof tendermint.types.Header * @instance */ - TxProof.prototype.root_hash = $util.newBuffer([]); + Header.prototype.last_results_hash = $util.newBuffer([]); /** - * TxProof data. - * @member {Uint8Array} data - * @memberof tendermint.types.TxProof + * Header evidence_hash. + * @member {Uint8Array} evidence_hash + * @memberof tendermint.types.Header * @instance */ - TxProof.prototype.data = $util.newBuffer([]); + Header.prototype.evidence_hash = $util.newBuffer([]); /** - * TxProof proof. - * @member {tendermint.crypto.IProof|null|undefined} proof - * @memberof tendermint.types.TxProof + * Header proposer_address. + * @member {Uint8Array} proposer_address + * @memberof tendermint.types.Header * @instance */ - TxProof.prototype.proof = null; + Header.prototype.proposer_address = $util.newBuffer([]); /** - * Encodes the specified TxProof message. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. + * Encodes the specified Header message. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. * @function encode - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @static - * @param {tendermint.types.ITxProof} message TxProof message or plain object to encode + * @param {tendermint.types.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxProof.encode = function encode(message, writer) { + Header.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.root_hash != null && Object.hasOwnProperty.call(message, "root_hash")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.root_hash); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.tendermint.version.Consensus.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.chain_id); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.last_block_id != null && Object.hasOwnProperty.call(message, "last_block_id")) + $root.tendermint.types.BlockID.encode(message.last_block_id, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.last_commit_hash != null && Object.hasOwnProperty.call(message, "last_commit_hash")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.last_commit_hash); + if (message.data_hash != null && Object.hasOwnProperty.call(message, "data_hash")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data_hash); + if (message.validators_hash != null && Object.hasOwnProperty.call(message, "validators_hash")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.validators_hash); + if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.next_validators_hash); + if (message.consensus_hash != null && Object.hasOwnProperty.call(message, "consensus_hash")) + writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.consensus_hash); + if (message.app_hash != null && Object.hasOwnProperty.call(message, "app_hash")) + writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.app_hash); + if (message.last_results_hash != null && Object.hasOwnProperty.call(message, "last_results_hash")) + writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.last_results_hash); + if (message.evidence_hash != null && Object.hasOwnProperty.call(message, "evidence_hash")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.evidence_hash); + if (message.proposer_address != null && Object.hasOwnProperty.call(message, "proposer_address")) + writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.proposer_address); return writer; }; /** - * Encodes the specified TxProof message, length delimited. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. + * Encodes the specified Header message, length delimited. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @static - * @param {tendermint.types.ITxProof} message TxProof message or plain object to encode + * @param {tendermint.types.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TxProof.encodeDelimited = function encodeDelimited(message, writer) { + Header.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TxProof message from the specified reader or buffer. + * Decodes a Header message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.TxProof} TxProof + * @returns {tendermint.types.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxProof.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.tendermint.types.TxProof(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Header(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.root_hash = reader.bytes(); + message.version = $root.tendermint.version.Consensus.decode(reader, reader.uint32()); break; case 2: - message.data = reader.bytes(); + message.chain_id = reader.string(); break; case 3: - message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); + message.height = reader.int64(); + break; + case 4: + message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.last_block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.last_commit_hash = reader.bytes(); + break; + case 7: + message.data_hash = reader.bytes(); + break; + case 8: + message.validators_hash = reader.bytes(); + break; + case 9: + message.next_validators_hash = reader.bytes(); + break; + case 10: + message.consensus_hash = reader.bytes(); + break; + case 11: + message.app_hash = reader.bytes(); + break; + case 12: + message.last_results_hash = reader.bytes(); + break; + case 13: + message.evidence_hash = reader.bytes(); + break; + case 14: + message.proposer_address = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -36085,150 +44347,323 @@ }; /** - * Decodes a TxProof message from the specified reader or buffer, length delimited. + * Decodes a Header message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.TxProof} TxProof + * @returns {tendermint.types.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TxProof.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 TxProof message. + * Verifies a Header message. * @function verify - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TxProof.verify = function verify(message) { + Header.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.root_hash != null && message.hasOwnProperty("root_hash")) - if (!(message.root_hash && typeof message.root_hash.length === "number" || $util.isString(message.root_hash))) - return "root_hash: 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.proof != null && message.hasOwnProperty("proof")) { - var error = $root.tendermint.crypto.Proof.verify(message.proof); + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.tendermint.version.Consensus.verify(message.version); if (error) - return "proof." + error; + return "version." + error; + } + 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")) + if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) + return "height: integer|Long expected"; + if (message.time != null && message.hasOwnProperty("time")) { + var error = $root.google.protobuf.Timestamp.verify(message.time); + if (error) + return "time." + error; + } + if (message.last_block_id != null && message.hasOwnProperty("last_block_id")) { + var error = $root.tendermint.types.BlockID.verify(message.last_block_id); + if (error) + return "last_block_id." + error; } + if (message.last_commit_hash != null && message.hasOwnProperty("last_commit_hash")) + if (!(message.last_commit_hash && typeof message.last_commit_hash.length === "number" || $util.isString(message.last_commit_hash))) + return "last_commit_hash: buffer expected"; + if (message.data_hash != null && message.hasOwnProperty("data_hash")) + if (!(message.data_hash && typeof message.data_hash.length === "number" || $util.isString(message.data_hash))) + return "data_hash: buffer expected"; + if (message.validators_hash != null && message.hasOwnProperty("validators_hash")) + if (!(message.validators_hash && typeof message.validators_hash.length === "number" || $util.isString(message.validators_hash))) + return "validators_hash: buffer expected"; + 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.consensus_hash != null && message.hasOwnProperty("consensus_hash")) + if (!(message.consensus_hash && typeof message.consensus_hash.length === "number" || $util.isString(message.consensus_hash))) + return "consensus_hash: buffer expected"; + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + if (!(message.app_hash && typeof message.app_hash.length === "number" || $util.isString(message.app_hash))) + return "app_hash: buffer expected"; + if (message.last_results_hash != null && message.hasOwnProperty("last_results_hash")) + if (!(message.last_results_hash && typeof message.last_results_hash.length === "number" || $util.isString(message.last_results_hash))) + return "last_results_hash: buffer expected"; + if (message.evidence_hash != null && message.hasOwnProperty("evidence_hash")) + if (!(message.evidence_hash && typeof message.evidence_hash.length === "number" || $util.isString(message.evidence_hash))) + return "evidence_hash: buffer expected"; + if (message.proposer_address != null && message.hasOwnProperty("proposer_address")) + if (!(message.proposer_address && typeof message.proposer_address.length === "number" || $util.isString(message.proposer_address))) + return "proposer_address: buffer expected"; return null; }; /** - * Creates a TxProof 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 tendermint.types.TxProof + * @memberof tendermint.types.Header * @static * @param {Object.} object Plain object - * @returns {tendermint.types.TxProof} TxProof + * @returns {tendermint.types.Header} Header */ - TxProof.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.TxProof) + Header.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Header) return object; - var message = new $root.tendermint.types.TxProof(); - if (object.root_hash != null) - if (typeof object.root_hash === "string") - $util.base64.decode(object.root_hash, message.root_hash = $util.newBuffer($util.base64.length(object.root_hash)), 0); - else if (object.root_hash.length) - message.root_hash = object.root_hash; - 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.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".tendermint.types.TxProof.proof: object expected"); - message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); + var message = new $root.tendermint.types.Header(); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".tendermint.types.Header.version: object expected"); + message.version = $root.tendermint.version.Consensus.fromObject(object.version); + } + if (object.chain_id != null) + message.chain_id = String(object.chain_id); + 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.time != null) { + if (typeof object.time !== "object") + throw TypeError(".tendermint.types.Header.time: object expected"); + message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + } + if (object.last_block_id != null) { + if (typeof object.last_block_id !== "object") + throw TypeError(".tendermint.types.Header.last_block_id: object expected"); + message.last_block_id = $root.tendermint.types.BlockID.fromObject(object.last_block_id); } + if (object.last_commit_hash != null) + if (typeof object.last_commit_hash === "string") + $util.base64.decode(object.last_commit_hash, message.last_commit_hash = $util.newBuffer($util.base64.length(object.last_commit_hash)), 0); + else if (object.last_commit_hash.length) + message.last_commit_hash = object.last_commit_hash; + if (object.data_hash != null) + if (typeof object.data_hash === "string") + $util.base64.decode(object.data_hash, message.data_hash = $util.newBuffer($util.base64.length(object.data_hash)), 0); + else if (object.data_hash.length) + message.data_hash = object.data_hash; + if (object.validators_hash != null) + if (typeof object.validators_hash === "string") + $util.base64.decode(object.validators_hash, message.validators_hash = $util.newBuffer($util.base64.length(object.validators_hash)), 0); + else if (object.validators_hash.length) + message.validators_hash = object.validators_hash; + 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; + if (object.consensus_hash != null) + if (typeof object.consensus_hash === "string") + $util.base64.decode(object.consensus_hash, message.consensus_hash = $util.newBuffer($util.base64.length(object.consensus_hash)), 0); + else if (object.consensus_hash.length) + message.consensus_hash = object.consensus_hash; + if (object.app_hash != null) + if (typeof object.app_hash === "string") + $util.base64.decode(object.app_hash, message.app_hash = $util.newBuffer($util.base64.length(object.app_hash)), 0); + else if (object.app_hash.length) + message.app_hash = object.app_hash; + if (object.last_results_hash != null) + if (typeof object.last_results_hash === "string") + $util.base64.decode(object.last_results_hash, message.last_results_hash = $util.newBuffer($util.base64.length(object.last_results_hash)), 0); + else if (object.last_results_hash.length) + message.last_results_hash = object.last_results_hash; + if (object.evidence_hash != null) + if (typeof object.evidence_hash === "string") + $util.base64.decode(object.evidence_hash, message.evidence_hash = $util.newBuffer($util.base64.length(object.evidence_hash)), 0); + else if (object.evidence_hash.length) + message.evidence_hash = object.evidence_hash; + if (object.proposer_address != null) + if (typeof object.proposer_address === "string") + $util.base64.decode(object.proposer_address, message.proposer_address = $util.newBuffer($util.base64.length(object.proposer_address)), 0); + else if (object.proposer_address.length) + message.proposer_address = object.proposer_address; return message; }; /** - * Creates a plain object from a TxProof 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 tendermint.types.TxProof + * @memberof tendermint.types.Header * @static - * @param {tendermint.types.TxProof} message TxProof + * @param {tendermint.types.Header} message Header * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TxProof.toObject = function toObject(message, options) { + Header.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.version = null; + object.chain_id = ""; + 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.time = null; + object.last_block_id = null; if (options.bytes === String) - object.root_hash = ""; + object.last_commit_hash = ""; else { - object.root_hash = []; + object.last_commit_hash = []; if (options.bytes !== Array) - object.root_hash = $util.newBuffer(object.root_hash); + object.last_commit_hash = $util.newBuffer(object.last_commit_hash); } if (options.bytes === String) - object.data = ""; + object.data_hash = ""; else { - object.data = []; + object.data_hash = []; if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + object.data_hash = $util.newBuffer(object.data_hash); + } + if (options.bytes === String) + object.validators_hash = ""; + else { + object.validators_hash = []; + if (options.bytes !== Array) + object.validators_hash = $util.newBuffer(object.validators_hash); + } + 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 (options.bytes === String) + object.consensus_hash = ""; + else { + object.consensus_hash = []; + if (options.bytes !== Array) + object.consensus_hash = $util.newBuffer(object.consensus_hash); + } + if (options.bytes === String) + object.app_hash = ""; + else { + object.app_hash = []; + if (options.bytes !== Array) + object.app_hash = $util.newBuffer(object.app_hash); + } + if (options.bytes === String) + object.last_results_hash = ""; + else { + object.last_results_hash = []; + if (options.bytes !== Array) + object.last_results_hash = $util.newBuffer(object.last_results_hash); + } + if (options.bytes === String) + object.evidence_hash = ""; + else { + object.evidence_hash = []; + if (options.bytes !== Array) + object.evidence_hash = $util.newBuffer(object.evidence_hash); + } + if (options.bytes === String) + object.proposer_address = ""; + else { + object.proposer_address = []; + if (options.bytes !== Array) + object.proposer_address = $util.newBuffer(object.proposer_address); } - object.proof = null; } - if (message.root_hash != null && message.hasOwnProperty("root_hash")) - object.root_hash = options.bytes === String ? $util.base64.encode(message.root_hash, 0, message.root_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.root_hash) : message.root_hash; - 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.proof != null && message.hasOwnProperty("proof")) - object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.tendermint.version.Consensus.toObject(message.version, options); + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + object.chain_id = message.chain_id; + 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.time != null && message.hasOwnProperty("time")) + object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); + if (message.last_block_id != null && message.hasOwnProperty("last_block_id")) + object.last_block_id = $root.tendermint.types.BlockID.toObject(message.last_block_id, options); + if (message.last_commit_hash != null && message.hasOwnProperty("last_commit_hash")) + object.last_commit_hash = options.bytes === String ? $util.base64.encode(message.last_commit_hash, 0, message.last_commit_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_commit_hash) : message.last_commit_hash; + if (message.data_hash != null && message.hasOwnProperty("data_hash")) + object.data_hash = options.bytes === String ? $util.base64.encode(message.data_hash, 0, message.data_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.data_hash) : message.data_hash; + if (message.validators_hash != null && message.hasOwnProperty("validators_hash")) + object.validators_hash = options.bytes === String ? $util.base64.encode(message.validators_hash, 0, message.validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.validators_hash) : message.validators_hash; + 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.consensus_hash != null && message.hasOwnProperty("consensus_hash")) + object.consensus_hash = options.bytes === String ? $util.base64.encode(message.consensus_hash, 0, message.consensus_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.consensus_hash) : message.consensus_hash; + if (message.app_hash != null && message.hasOwnProperty("app_hash")) + object.app_hash = options.bytes === String ? $util.base64.encode(message.app_hash, 0, message.app_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_hash) : message.app_hash; + if (message.last_results_hash != null && message.hasOwnProperty("last_results_hash")) + object.last_results_hash = options.bytes === String ? $util.base64.encode(message.last_results_hash, 0, message.last_results_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.last_results_hash) : message.last_results_hash; + if (message.evidence_hash != null && message.hasOwnProperty("evidence_hash")) + object.evidence_hash = options.bytes === String ? $util.base64.encode(message.evidence_hash, 0, message.evidence_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.evidence_hash) : message.evidence_hash; + if (message.proposer_address != null && message.hasOwnProperty("proposer_address")) + object.proposer_address = options.bytes === String ? $util.base64.encode(message.proposer_address, 0, message.proposer_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.proposer_address) : message.proposer_address; return object; }; /** - * Converts this TxProof to JSON. + * Converts this Header to JSON. * @function toJSON - * @memberof tendermint.types.TxProof + * @memberof tendermint.types.Header * @instance * @returns {Object.} JSON object */ - TxProof.prototype.toJSON = function toJSON() { + Header.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TxProof; + return Header; })(); - types.ValidatorSet = (function() { + types.Data = (function() { /** - * Properties of a ValidatorSet. + * Properties of a Data. * @memberof tendermint.types - * @interface IValidatorSet - * @property {Array.|null} [validators] ValidatorSet validators - * @property {tendermint.types.IValidator|null} [proposer] ValidatorSet proposer - * @property {Long|null} [total_voting_power] ValidatorSet total_voting_power + * @interface IData + * @property {Array.|null} [txs] Data txs */ /** - * Constructs a new ValidatorSet. + * Constructs a new Data. * @memberof tendermint.types - * @classdesc Represents a ValidatorSet. - * @implements IValidatorSet + * @classdesc Represents a Data. + * @implements IData * @constructor - * @param {tendermint.types.IValidatorSet=} [properties] Properties to set + * @param {tendermint.types.IData=} [properties] Properties to set */ - function ValidatorSet(properties) { - this.validators = []; + function Data(properties) { + this.txs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36236,92 +44671,66 @@ } /** - * ValidatorSet validators. - * @member {Array.} validators - * @memberof tendermint.types.ValidatorSet - * @instance - */ - ValidatorSet.prototype.validators = $util.emptyArray; - - /** - * ValidatorSet proposer. - * @member {tendermint.types.IValidator|null|undefined} proposer - * @memberof tendermint.types.ValidatorSet - * @instance - */ - ValidatorSet.prototype.proposer = null; - - /** - * ValidatorSet total_voting_power. - * @member {Long} total_voting_power - * @memberof tendermint.types.ValidatorSet + * Data txs. + * @member {Array.} txs + * @memberof tendermint.types.Data * @instance */ - ValidatorSet.prototype.total_voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Data.prototype.txs = $util.emptyArray; /** - * Encodes the specified ValidatorSet message. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. + * Encodes the specified Data message. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. * @function encode - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static - * @param {tendermint.types.IValidatorSet} message ValidatorSet message or plain object to encode + * @param {tendermint.types.IData} message Data message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorSet.encode = function encode(message, writer) { + Data.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.validators != null && message.validators.length) - for (var i = 0; i < message.validators.length; ++i) - $root.tendermint.types.Validator.encode(message.validators[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) - $root.tendermint.types.Validator.encode(message.proposer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.total_voting_power != null && Object.hasOwnProperty.call(message, "total_voting_power")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.total_voting_power); + if (message.txs != null && message.txs.length) + for (var i = 0; i < message.txs.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.txs[i]); return writer; }; /** - * Encodes the specified ValidatorSet message, length delimited. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. + * Encodes the specified Data message, length delimited. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static - * @param {tendermint.types.IValidatorSet} message ValidatorSet message or plain object to encode + * @param {tendermint.types.IData} message Data message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorSet.encodeDelimited = function encodeDelimited(message, writer) { + Data.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidatorSet message from the specified reader or buffer. + * Decodes a Data message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.ValidatorSet} ValidatorSet + * @returns {tendermint.types.Data} Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorSet.decode = function decode(reader, length) { + Data.decode = 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.types.ValidatorSet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Data(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.validators && message.validators.length)) - message.validators = []; - message.validators.push($root.tendermint.types.Validator.decode(reader, reader.uint32())); - break; - case 2: - message.proposer = $root.tendermint.types.Validator.decode(reader, reader.uint32()); - break; - case 3: - message.total_voting_power = reader.int64(); + if (!(message.txs && message.txs.length)) + message.txs = []; + message.txs.push(reader.bytes()); break; default: reader.skipType(tag & 7); @@ -36332,164 +44741,129 @@ }; /** - * Decodes a ValidatorSet message from the specified reader or buffer, length delimited. + * Decodes a Data message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.ValidatorSet} ValidatorSet + * @returns {tendermint.types.Data} Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorSet.decodeDelimited = function decodeDelimited(reader) { + Data.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidatorSet message. + * Verifies a Data message. * @function verify - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidatorSet.verify = function verify(message) { + Data.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.validators != null && message.hasOwnProperty("validators")) { - if (!Array.isArray(message.validators)) - return "validators: array expected"; - for (var i = 0; i < message.validators.length; ++i) { - var error = $root.tendermint.types.Validator.verify(message.validators[i]); - if (error) - return "validators." + error; - } - } - if (message.proposer != null && message.hasOwnProperty("proposer")) { - var error = $root.tendermint.types.Validator.verify(message.proposer); - if (error) - return "proposer." + error; + if (message.txs != null && message.hasOwnProperty("txs")) { + if (!Array.isArray(message.txs)) + return "txs: array expected"; + for (var i = 0; i < message.txs.length; ++i) + if (!(message.txs[i] && typeof message.txs[i].length === "number" || $util.isString(message.txs[i]))) + return "txs: buffer[] expected"; } - if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) - if (!$util.isInteger(message.total_voting_power) && !(message.total_voting_power && $util.isInteger(message.total_voting_power.low) && $util.isInteger(message.total_voting_power.high))) - return "total_voting_power: integer|Long expected"; return null; }; /** - * Creates a ValidatorSet message from a plain object. Also converts values to their respective internal types. + * Creates a Data message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static * @param {Object.} object Plain object - * @returns {tendermint.types.ValidatorSet} ValidatorSet + * @returns {tendermint.types.Data} Data */ - ValidatorSet.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.ValidatorSet) + Data.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Data) return object; - var message = new $root.tendermint.types.ValidatorSet(); - if (object.validators) { - if (!Array.isArray(object.validators)) - throw TypeError(".tendermint.types.ValidatorSet.validators: array expected"); - message.validators = []; - for (var i = 0; i < object.validators.length; ++i) { - if (typeof object.validators[i] !== "object") - throw TypeError(".tendermint.types.ValidatorSet.validators: object expected"); - message.validators[i] = $root.tendermint.types.Validator.fromObject(object.validators[i]); - } - } - if (object.proposer != null) { - if (typeof object.proposer !== "object") - throw TypeError(".tendermint.types.ValidatorSet.proposer: object expected"); - message.proposer = $root.tendermint.types.Validator.fromObject(object.proposer); + var message = new $root.tendermint.types.Data(); + if (object.txs) { + if (!Array.isArray(object.txs)) + throw TypeError(".tendermint.types.Data.txs: array expected"); + message.txs = []; + for (var i = 0; i < object.txs.length; ++i) + if (typeof object.txs[i] === "string") + $util.base64.decode(object.txs[i], message.txs[i] = $util.newBuffer($util.base64.length(object.txs[i])), 0); + else if (object.txs[i].length) + message.txs[i] = object.txs[i]; } - if (object.total_voting_power != null) - if ($util.Long) - (message.total_voting_power = $util.Long.fromValue(object.total_voting_power)).unsigned = false; - else if (typeof object.total_voting_power === "string") - message.total_voting_power = parseInt(object.total_voting_power, 10); - else if (typeof object.total_voting_power === "number") - message.total_voting_power = object.total_voting_power; - else if (typeof object.total_voting_power === "object") - message.total_voting_power = new $util.LongBits(object.total_voting_power.low >>> 0, object.total_voting_power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ValidatorSet message. Also converts values to other types if specified. + * Creates a plain object from a Data message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @static - * @param {tendermint.types.ValidatorSet} message ValidatorSet + * @param {tendermint.types.Data} message Data * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidatorSet.toObject = function toObject(message, options) { + Data.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.validators = []; - if (options.defaults) { - object.proposer = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.total_voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.total_voting_power = options.longs === String ? "0" : 0; - } - if (message.validators && message.validators.length) { - object.validators = []; - for (var j = 0; j < message.validators.length; ++j) - object.validators[j] = $root.tendermint.types.Validator.toObject(message.validators[j], options); + object.txs = []; + if (message.txs && message.txs.length) { + object.txs = []; + for (var j = 0; j < message.txs.length; ++j) + object.txs[j] = options.bytes === String ? $util.base64.encode(message.txs[j], 0, message.txs[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.txs[j]) : message.txs[j]; } - if (message.proposer != null && message.hasOwnProperty("proposer")) - object.proposer = $root.tendermint.types.Validator.toObject(message.proposer, options); - if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) - if (typeof message.total_voting_power === "number") - object.total_voting_power = options.longs === String ? String(message.total_voting_power) : message.total_voting_power; - else - object.total_voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.total_voting_power) : options.longs === Number ? new $util.LongBits(message.total_voting_power.low >>> 0, message.total_voting_power.high >>> 0).toNumber() : message.total_voting_power; return object; }; /** - * Converts this ValidatorSet to JSON. + * Converts this Data to JSON. * @function toJSON - * @memberof tendermint.types.ValidatorSet + * @memberof tendermint.types.Data * @instance * @returns {Object.} JSON object */ - ValidatorSet.prototype.toJSON = function toJSON() { + Data.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ValidatorSet; + return Data; })(); - types.Validator = (function() { + types.Vote = (function() { /** - * Properties of a Validator. + * Properties of a Vote. * @memberof tendermint.types - * @interface IValidator - * @property {Uint8Array|null} [address] Validator address - * @property {tendermint.crypto.IPublicKey|null} [pub_key] Validator pub_key - * @property {Long|null} [voting_power] Validator voting_power - * @property {Long|null} [proposer_priority] Validator proposer_priority + * @interface IVote + * @property {tendermint.types.SignedMsgType|null} [type] Vote type + * @property {Long|null} [height] Vote height + * @property {number|null} [round] Vote round + * @property {tendermint.types.IBlockID|null} [block_id] Vote block_id + * @property {google.protobuf.ITimestamp|null} [timestamp] Vote timestamp + * @property {Uint8Array|null} [validator_address] Vote validator_address + * @property {number|null} [validator_index] Vote validator_index + * @property {Uint8Array|null} [signature] Vote signature */ /** - * Constructs a new Validator. + * Constructs a new Vote. * @memberof tendermint.types - * @classdesc Represents a Validator. - * @implements IValidator + * @classdesc Represents a Vote. + * @implements IVote * @constructor - * @param {tendermint.types.IValidator=} [properties] Properties to set + * @param {tendermint.types.IVote=} [properties] Properties to set */ - function Validator(properties) { + function Vote(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36497,358 +44871,154 @@ } /** - * Validator address. - * @member {Uint8Array} address - * @memberof tendermint.types.Validator - * @instance - */ - Validator.prototype.address = $util.newBuffer([]); - - /** - * Validator pub_key. - * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key - * @memberof tendermint.types.Validator + * Vote type. + * @member {tendermint.types.SignedMsgType} type + * @memberof tendermint.types.Vote * @instance */ - Validator.prototype.pub_key = null; + Vote.prototype.type = 0; /** - * Validator voting_power. - * @member {Long} voting_power - * @memberof tendermint.types.Validator + * Vote height. + * @member {Long} height + * @memberof tendermint.types.Vote * @instance */ - Validator.prototype.voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Vote.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Validator proposer_priority. - * @member {Long} proposer_priority - * @memberof tendermint.types.Validator + * Vote round. + * @member {number} round + * @memberof tendermint.types.Vote * @instance */ - Validator.prototype.proposer_priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. - * @function encode - * @memberof tendermint.types.Validator - * @static - * @param {tendermint.types.IValidator} message Validator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Validator.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).bytes(message.address); - if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) - $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.voting_power != null && Object.hasOwnProperty.call(message, "voting_power")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.voting_power); - if (message.proposer_priority != null && Object.hasOwnProperty.call(message, "proposer_priority")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.proposer_priority); - return writer; - }; - - /** - * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.types.Validator - * @static - * @param {tendermint.types.IValidator} message Validator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Validator.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Validator message from the specified reader or buffer. - * @function decode - * @memberof tendermint.types.Validator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.Validator} Validator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Validator.decode = 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.types.Validator(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.bytes(); - break; - case 2: - message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); - break; - case 3: - message.voting_power = reader.int64(); - break; - case 4: - message.proposer_priority = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Validator message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.types.Validator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.Validator} Validator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Validator.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Validator message. - * @function verify - * @memberof tendermint.types.Validator - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Validator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address))) - return "address: buffer expected"; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) { - var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); - if (error) - return "pub_key." + error; - } - if (message.voting_power != null && message.hasOwnProperty("voting_power")) - if (!$util.isInteger(message.voting_power) && !(message.voting_power && $util.isInteger(message.voting_power.low) && $util.isInteger(message.voting_power.high))) - return "voting_power: integer|Long expected"; - if (message.proposer_priority != null && message.hasOwnProperty("proposer_priority")) - if (!$util.isInteger(message.proposer_priority) && !(message.proposer_priority && $util.isInteger(message.proposer_priority.low) && $util.isInteger(message.proposer_priority.high))) - return "proposer_priority: integer|Long expected"; - return null; - }; - - /** - * Creates a Validator message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.types.Validator - * @static - * @param {Object.} object Plain object - * @returns {tendermint.types.Validator} Validator - */ - Validator.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.Validator) - return object; - var message = new $root.tendermint.types.Validator(); - if (object.address != null) - if (typeof object.address === "string") - $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0); - else if (object.address.length) - message.address = object.address; - if (object.pub_key != null) { - if (typeof object.pub_key !== "object") - throw TypeError(".tendermint.types.Validator.pub_key: object expected"); - message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); - } - if (object.voting_power != null) - if ($util.Long) - (message.voting_power = $util.Long.fromValue(object.voting_power)).unsigned = false; - else if (typeof object.voting_power === "string") - message.voting_power = parseInt(object.voting_power, 10); - else if (typeof object.voting_power === "number") - message.voting_power = object.voting_power; - else if (typeof object.voting_power === "object") - message.voting_power = new $util.LongBits(object.voting_power.low >>> 0, object.voting_power.high >>> 0).toNumber(); - if (object.proposer_priority != null) - if ($util.Long) - (message.proposer_priority = $util.Long.fromValue(object.proposer_priority)).unsigned = false; - else if (typeof object.proposer_priority === "string") - message.proposer_priority = parseInt(object.proposer_priority, 10); - else if (typeof object.proposer_priority === "number") - message.proposer_priority = object.proposer_priority; - else if (typeof object.proposer_priority === "object") - message.proposer_priority = new $util.LongBits(object.proposer_priority.low >>> 0, object.proposer_priority.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a Validator message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.types.Validator - * @static - * @param {tendermint.types.Validator} message Validator - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Validator.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.address = ""; - else { - object.address = []; - if (options.bytes !== Array) - object.address = $util.newBuffer(object.address); - } - object.pub_key = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.voting_power = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.proposer_priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.proposer_priority = options.longs === String ? "0" : 0; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) - object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); - if (message.voting_power != null && message.hasOwnProperty("voting_power")) - if (typeof message.voting_power === "number") - object.voting_power = options.longs === String ? String(message.voting_power) : message.voting_power; - else - object.voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.voting_power) : options.longs === Number ? new $util.LongBits(message.voting_power.low >>> 0, message.voting_power.high >>> 0).toNumber() : message.voting_power; - if (message.proposer_priority != null && message.hasOwnProperty("proposer_priority")) - if (typeof message.proposer_priority === "number") - object.proposer_priority = options.longs === String ? String(message.proposer_priority) : message.proposer_priority; - else - object.proposer_priority = options.longs === String ? $util.Long.prototype.toString.call(message.proposer_priority) : options.longs === Number ? new $util.LongBits(message.proposer_priority.low >>> 0, message.proposer_priority.high >>> 0).toNumber() : message.proposer_priority; - return object; - }; + Vote.prototype.round = 0; /** - * Converts this Validator to JSON. - * @function toJSON - * @memberof tendermint.types.Validator - * @instance - * @returns {Object.} JSON object - */ - Validator.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Validator; - })(); - - types.SimpleValidator = (function() { + * Vote block_id. + * @member {tendermint.types.IBlockID|null|undefined} block_id + * @memberof tendermint.types.Vote + * @instance + */ + Vote.prototype.block_id = null; /** - * Properties of a SimpleValidator. - * @memberof tendermint.types - * @interface ISimpleValidator - * @property {tendermint.crypto.IPublicKey|null} [pub_key] SimpleValidator pub_key - * @property {Long|null} [voting_power] SimpleValidator voting_power + * Vote timestamp. + * @member {google.protobuf.ITimestamp|null|undefined} timestamp + * @memberof tendermint.types.Vote + * @instance */ + Vote.prototype.timestamp = null; /** - * Constructs a new SimpleValidator. - * @memberof tendermint.types - * @classdesc Represents a SimpleValidator. - * @implements ISimpleValidator - * @constructor - * @param {tendermint.types.ISimpleValidator=} [properties] Properties to set + * Vote validator_address. + * @member {Uint8Array} validator_address + * @memberof tendermint.types.Vote + * @instance */ - function SimpleValidator(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]]; - } + Vote.prototype.validator_address = $util.newBuffer([]); /** - * SimpleValidator pub_key. - * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key - * @memberof tendermint.types.SimpleValidator + * Vote validator_index. + * @member {number} validator_index + * @memberof tendermint.types.Vote * @instance */ - SimpleValidator.prototype.pub_key = null; + Vote.prototype.validator_index = 0; /** - * SimpleValidator voting_power. - * @member {Long} voting_power - * @memberof tendermint.types.SimpleValidator + * Vote signature. + * @member {Uint8Array} signature + * @memberof tendermint.types.Vote * @instance */ - SimpleValidator.prototype.voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Vote.prototype.signature = $util.newBuffer([]); /** - * Encodes the specified SimpleValidator message. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. + * Encodes the specified Vote message. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. * @function encode - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static - * @param {tendermint.types.ISimpleValidator} message SimpleValidator message or plain object to encode + * @param {tendermint.types.IVote} message Vote message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SimpleValidator.encode = function encode(message, writer) { + Vote.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) - $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.voting_power != null && Object.hasOwnProperty.call(message, "voting_power")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.voting_power); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.height); + if (message.round != null && Object.hasOwnProperty.call(message, "round")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.round); + if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) + $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.validator_address != null && Object.hasOwnProperty.call(message, "validator_address")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.validator_address); + if (message.validator_index != null && Object.hasOwnProperty.call(message, "validator_index")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.validator_index); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.signature); return writer; }; /** - * Encodes the specified SimpleValidator message, length delimited. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. + * Encodes the specified Vote message, length delimited. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static - * @param {tendermint.types.ISimpleValidator} message SimpleValidator message or plain object to encode + * @param {tendermint.types.IVote} message Vote message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SimpleValidator.encodeDelimited = function encodeDelimited(message, writer) { + Vote.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SimpleValidator message from the specified reader or buffer. + * Decodes a Vote message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.SimpleValidator} SimpleValidator + * @returns {tendermint.types.Vote} Vote * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SimpleValidator.decode = function decode(reader, length) { + 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.tendermint.types.SimpleValidator(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Vote(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); + message.type = reader.int32(); break; case 2: - message.voting_power = reader.int64(); + message.height = reader.int64(); + break; + case 3: + message.round = reader.int32(); + break; + case 4: + message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + break; + case 5: + message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.validator_address = reader.bytes(); + break; + case 7: + message.validator_index = reader.int32(); + break; + case 8: + message.signature = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -36859,138 +45029,233 @@ }; /** - * Decodes a SimpleValidator message from the specified reader or buffer, length delimited. + * Decodes a Vote message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.SimpleValidator} SimpleValidator + * @returns {tendermint.types.Vote} Vote * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SimpleValidator.decodeDelimited = function decodeDelimited(reader) { + Vote.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SimpleValidator message. + * Verifies a Vote message. * @function verify - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SimpleValidator.verify = function verify(message) { + Vote.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) { - var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 32: + break; + } + 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.round != null && message.hasOwnProperty("round")) + if (!$util.isInteger(message.round)) + return "round: integer expected"; + if (message.block_id != null && message.hasOwnProperty("block_id")) { + var error = $root.tendermint.types.BlockID.verify(message.block_id); if (error) - return "pub_key." + error; + return "block_id." + error; } - if (message.voting_power != null && message.hasOwnProperty("voting_power")) - if (!$util.isInteger(message.voting_power) && !(message.voting_power && $util.isInteger(message.voting_power.low) && $util.isInteger(message.voting_power.high))) - return "voting_power: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.validator_address != null && message.hasOwnProperty("validator_address")) + if (!(message.validator_address && typeof message.validator_address.length === "number" || $util.isString(message.validator_address))) + return "validator_address: buffer expected"; + if (message.validator_index != null && message.hasOwnProperty("validator_index")) + if (!$util.isInteger(message.validator_index)) + return "validator_index: integer expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; return null; }; /** - * Creates a SimpleValidator message from a plain object. Also converts values to their respective internal types. + * Creates a Vote message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static * @param {Object.} object Plain object - * @returns {tendermint.types.SimpleValidator} SimpleValidator + * @returns {tendermint.types.Vote} Vote */ - SimpleValidator.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.SimpleValidator) + Vote.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Vote) return object; - var message = new $root.tendermint.types.SimpleValidator(); - if (object.pub_key != null) { - if (typeof object.pub_key !== "object") - throw TypeError(".tendermint.types.SimpleValidator.pub_key: object expected"); - message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); + var message = new $root.tendermint.types.Vote(); + switch (object.type) { + case "SIGNED_MSG_TYPE_UNKNOWN": + case 0: + message.type = 0; + break; + case "SIGNED_MSG_TYPE_PREVOTE": + case 1: + message.type = 1; + break; + case "SIGNED_MSG_TYPE_PRECOMMIT": + case 2: + message.type = 2; + break; + case "SIGNED_MSG_TYPE_PROPOSAL": + case 32: + message.type = 32; + break; } - if (object.voting_power != null) + if (object.height != null) if ($util.Long) - (message.voting_power = $util.Long.fromValue(object.voting_power)).unsigned = false; - else if (typeof object.voting_power === "string") - message.voting_power = parseInt(object.voting_power, 10); - else if (typeof object.voting_power === "number") - message.voting_power = object.voting_power; - else if (typeof object.voting_power === "object") - message.voting_power = new $util.LongBits(object.voting_power.low >>> 0, object.voting_power.high >>> 0).toNumber(); + (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.round != null) + message.round = object.round | 0; + if (object.block_id != null) { + if (typeof object.block_id !== "object") + throw TypeError(".tendermint.types.Vote.block_id: object expected"); + message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); + } + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".tendermint.types.Vote.timestamp: object expected"); + message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + } + if (object.validator_address != null) + if (typeof object.validator_address === "string") + $util.base64.decode(object.validator_address, message.validator_address = $util.newBuffer($util.base64.length(object.validator_address)), 0); + else if (object.validator_address.length) + message.validator_address = object.validator_address; + if (object.validator_index != null) + message.validator_index = object.validator_index | 0; + 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; return message; }; /** - * Creates a plain object from a SimpleValidator message. Also converts values to other types if specified. + * Creates a plain object from a Vote message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @static - * @param {tendermint.types.SimpleValidator} message SimpleValidator + * @param {tendermint.types.Vote} message Vote * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SimpleValidator.toObject = function toObject(message, options) { + Vote.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.pub_key = null; + object.type = options.enums === String ? "SIGNED_MSG_TYPE_UNKNOWN" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.voting_power = options.longs === String ? "0" : 0; + object.height = options.longs === String ? "0" : 0; + object.round = 0; + object.block_id = null; + object.timestamp = null; + if (options.bytes === String) + object.validator_address = ""; + else { + object.validator_address = []; + if (options.bytes !== Array) + object.validator_address = $util.newBuffer(object.validator_address); + } + object.validator_index = 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } } - if (message.pub_key != null && message.hasOwnProperty("pub_key")) - object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); - if (message.voting_power != null && message.hasOwnProperty("voting_power")) - if (typeof message.voting_power === "number") - object.voting_power = options.longs === String ? String(message.voting_power) : message.voting_power; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.tendermint.types.SignedMsgType[message.type] : message.type; + if (message.height != null && message.hasOwnProperty("height")) + if (typeof message.height === "number") + object.height = options.longs === String ? String(message.height) : message.height; else - object.voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.voting_power) : options.longs === Number ? new $util.LongBits(message.voting_power.low >>> 0, message.voting_power.high >>> 0).toNumber() : message.voting_power; + 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.round != null && message.hasOwnProperty("round")) + object.round = message.round; + if (message.block_id != null && message.hasOwnProperty("block_id")) + object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); + if (message.validator_address != null && message.hasOwnProperty("validator_address")) + object.validator_address = options.bytes === String ? $util.base64.encode(message.validator_address, 0, message.validator_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.validator_address) : message.validator_address; + if (message.validator_index != null && message.hasOwnProperty("validator_index")) + object.validator_index = message.validator_index; + 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; return object; }; /** - * Converts this SimpleValidator to JSON. + * Converts this Vote to JSON. * @function toJSON - * @memberof tendermint.types.SimpleValidator + * @memberof tendermint.types.Vote * @instance * @returns {Object.} JSON object */ - SimpleValidator.prototype.toJSON = function toJSON() { + Vote.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SimpleValidator; + return Vote; })(); - types.ConsensusParams = (function() { + types.Commit = (function() { /** - * Properties of a ConsensusParams. + * Properties of a Commit. * @memberof tendermint.types - * @interface IConsensusParams - * @property {tendermint.types.IBlockParams|null} [block] ConsensusParams block - * @property {tendermint.types.IEvidenceParams|null} [evidence] ConsensusParams evidence - * @property {tendermint.types.IValidatorParams|null} [validator] ConsensusParams validator - * @property {tendermint.types.IVersionParams|null} [version] ConsensusParams version + * @interface ICommit + * @property {Long|null} [height] Commit height + * @property {number|null} [round] Commit round + * @property {tendermint.types.IBlockID|null} [block_id] Commit block_id + * @property {Array.|null} [signatures] Commit signatures */ /** - * Constructs a new ConsensusParams. + * Constructs a new Commit. * @memberof tendermint.types - * @classdesc Represents a ConsensusParams. - * @implements IConsensusParams + * @classdesc Represents a Commit. + * @implements ICommit * @constructor - * @param {tendermint.types.IConsensusParams=} [properties] Properties to set + * @param {tendermint.types.ICommit=} [properties] Properties to set */ - function ConsensusParams(properties) { + function Commit(properties) { + this.signatures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36998,102 +45263,105 @@ } /** - * ConsensusParams block. - * @member {tendermint.types.IBlockParams|null|undefined} block - * @memberof tendermint.types.ConsensusParams + * Commit height. + * @member {Long} height + * @memberof tendermint.types.Commit * @instance */ - ConsensusParams.prototype.block = null; + Commit.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ConsensusParams evidence. - * @member {tendermint.types.IEvidenceParams|null|undefined} evidence - * @memberof tendermint.types.ConsensusParams + * Commit round. + * @member {number} round + * @memberof tendermint.types.Commit * @instance */ - ConsensusParams.prototype.evidence = null; + Commit.prototype.round = 0; /** - * ConsensusParams validator. - * @member {tendermint.types.IValidatorParams|null|undefined} validator - * @memberof tendermint.types.ConsensusParams + * Commit block_id. + * @member {tendermint.types.IBlockID|null|undefined} block_id + * @memberof tendermint.types.Commit * @instance */ - ConsensusParams.prototype.validator = null; + Commit.prototype.block_id = null; /** - * ConsensusParams version. - * @member {tendermint.types.IVersionParams|null|undefined} version - * @memberof tendermint.types.ConsensusParams + * Commit signatures. + * @member {Array.} signatures + * @memberof tendermint.types.Commit * @instance */ - ConsensusParams.prototype.version = null; + Commit.prototype.signatures = $util.emptyArray; /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. + * Encodes the specified Commit message. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. * @function encode - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static - * @param {tendermint.types.IConsensusParams} message ConsensusParams message or plain object to encode + * @param {tendermint.types.ICommit} message Commit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusParams.encode = function encode(message, writer) { + Commit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.block != null && Object.hasOwnProperty.call(message, "block")) - $root.tendermint.types.BlockParams.encode(message.block, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.evidence != null && Object.hasOwnProperty.call(message, "evidence")) - $root.tendermint.types.EvidenceParams.encode(message.evidence, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) - $root.tendermint.types.ValidatorParams.encode(message.validator, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.tendermint.types.VersionParams.encode(message.version, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.height); + if (message.round != null && Object.hasOwnProperty.call(message, "round")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.round); + if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) + $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signatures != null && message.signatures.length) + for (var i = 0; i < message.signatures.length; ++i) + $root.tendermint.types.CommitSig.encode(message.signatures[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. + * Encodes the specified Commit message, length delimited. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static - * @param {tendermint.types.IConsensusParams} message ConsensusParams message or plain object to encode + * @param {tendermint.types.ICommit} message Commit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusParams.encodeDelimited = function encodeDelimited(message, writer) { + Commit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusParams message from the specified reader or buffer. + * Decodes a Commit message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.ConsensusParams} ConsensusParams + * @returns {tendermint.types.Commit} Commit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusParams.decode = function decode(reader, length) { + Commit.decode = 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.types.ConsensusParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Commit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.block = $root.tendermint.types.BlockParams.decode(reader, reader.uint32()); + message.height = reader.int64(); break; case 2: - message.evidence = $root.tendermint.types.EvidenceParams.decode(reader, reader.uint32()); + message.round = reader.int32(); break; case 3: - message.validator = $root.tendermint.types.ValidatorParams.decode(reader, reader.uint32()); + message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); break; case 4: - message.version = $root.tendermint.types.VersionParams.decode(reader, reader.uint32()); + if (!(message.signatures && message.signatures.length)) + message.signatures = []; + message.signatures.push($root.tendermint.types.CommitSig.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -37104,154 +45372,172 @@ }; /** - * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. + * Decodes a Commit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.ConsensusParams} ConsensusParams + * @returns {tendermint.types.Commit} Commit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusParams.decodeDelimited = function decodeDelimited(reader) { + Commit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusParams message. + * Verifies a Commit message. * @function verify - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusParams.verify = function verify(message) { + Commit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.block != null && message.hasOwnProperty("block")) { - var error = $root.tendermint.types.BlockParams.verify(message.block); - if (error) - return "block." + error; - } - if (message.evidence != null && message.hasOwnProperty("evidence")) { - var error = $root.tendermint.types.EvidenceParams.verify(message.evidence); - if (error) - return "evidence." + error; - } - if (message.validator != null && message.hasOwnProperty("validator")) { - var error = $root.tendermint.types.ValidatorParams.verify(message.validator); + 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.round != null && message.hasOwnProperty("round")) + if (!$util.isInteger(message.round)) + return "round: integer expected"; + if (message.block_id != null && message.hasOwnProperty("block_id")) { + var error = $root.tendermint.types.BlockID.verify(message.block_id); if (error) - return "validator." + error; + return "block_id." + error; } - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.tendermint.types.VersionParams.verify(message.version); - if (error) - return "version." + error; + if (message.signatures != null && message.hasOwnProperty("signatures")) { + if (!Array.isArray(message.signatures)) + return "signatures: array expected"; + for (var i = 0; i < message.signatures.length; ++i) { + var error = $root.tendermint.types.CommitSig.verify(message.signatures[i]); + if (error) + return "signatures." + error; + } } return null; }; /** - * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. + * Creates a Commit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static * @param {Object.} object Plain object - * @returns {tendermint.types.ConsensusParams} ConsensusParams + * @returns {tendermint.types.Commit} Commit */ - ConsensusParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.ConsensusParams) + Commit.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Commit) return object; - var message = new $root.tendermint.types.ConsensusParams(); - if (object.block != null) { - if (typeof object.block !== "object") - throw TypeError(".tendermint.types.ConsensusParams.block: object expected"); - message.block = $root.tendermint.types.BlockParams.fromObject(object.block); - } - if (object.evidence != null) { - if (typeof object.evidence !== "object") - throw TypeError(".tendermint.types.ConsensusParams.evidence: object expected"); - message.evidence = $root.tendermint.types.EvidenceParams.fromObject(object.evidence); - } - if (object.validator != null) { - if (typeof object.validator !== "object") - throw TypeError(".tendermint.types.ConsensusParams.validator: object expected"); - message.validator = $root.tendermint.types.ValidatorParams.fromObject(object.validator); + var message = new $root.tendermint.types.Commit(); + 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.round != null) + message.round = object.round | 0; + if (object.block_id != null) { + if (typeof object.block_id !== "object") + throw TypeError(".tendermint.types.Commit.block_id: object expected"); + message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); } - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".tendermint.types.ConsensusParams.version: object expected"); - message.version = $root.tendermint.types.VersionParams.fromObject(object.version); + if (object.signatures) { + if (!Array.isArray(object.signatures)) + throw TypeError(".tendermint.types.Commit.signatures: array expected"); + message.signatures = []; + for (var i = 0; i < object.signatures.length; ++i) { + if (typeof object.signatures[i] !== "object") + throw TypeError(".tendermint.types.Commit.signatures: object expected"); + message.signatures[i] = $root.tendermint.types.CommitSig.fromObject(object.signatures[i]); + } } return message; }; /** - * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * Creates a plain object from a Commit message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @static - * @param {tendermint.types.ConsensusParams} message ConsensusParams + * @param {tendermint.types.Commit} message Commit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusParams.toObject = function toObject(message, options) { + Commit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.signatures = []; if (options.defaults) { - object.block = null; - object.evidence = null; - object.validator = null; - object.version = 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.round = 0; + object.block_id = null; + } + 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.round != null && message.hasOwnProperty("round")) + object.round = message.round; + if (message.block_id != null && message.hasOwnProperty("block_id")) + object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); + if (message.signatures && message.signatures.length) { + object.signatures = []; + for (var j = 0; j < message.signatures.length; ++j) + object.signatures[j] = $root.tendermint.types.CommitSig.toObject(message.signatures[j], options); } - if (message.block != null && message.hasOwnProperty("block")) - object.block = $root.tendermint.types.BlockParams.toObject(message.block, options); - if (message.evidence != null && message.hasOwnProperty("evidence")) - object.evidence = $root.tendermint.types.EvidenceParams.toObject(message.evidence, options); - if (message.validator != null && message.hasOwnProperty("validator")) - object.validator = $root.tendermint.types.ValidatorParams.toObject(message.validator, options); - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.tendermint.types.VersionParams.toObject(message.version, options); return object; }; /** - * Converts this ConsensusParams to JSON. + * Converts this Commit to JSON. * @function toJSON - * @memberof tendermint.types.ConsensusParams + * @memberof tendermint.types.Commit * @instance * @returns {Object.} JSON object */ - ConsensusParams.prototype.toJSON = function toJSON() { + Commit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusParams; + return Commit; })(); - types.BlockParams = (function() { + types.CommitSig = (function() { /** - * Properties of a BlockParams. + * Properties of a CommitSig. * @memberof tendermint.types - * @interface IBlockParams - * @property {Long|null} [max_bytes] BlockParams max_bytes - * @property {Long|null} [max_gas] BlockParams max_gas - * @property {Long|null} [time_iota_ms] BlockParams time_iota_ms + * @interface ICommitSig + * @property {tendermint.types.BlockIDFlag|null} [block_id_flag] CommitSig block_id_flag + * @property {Uint8Array|null} [validator_address] CommitSig validator_address + * @property {google.protobuf.ITimestamp|null} [timestamp] CommitSig timestamp + * @property {Uint8Array|null} [signature] CommitSig signature */ /** - * Constructs a new BlockParams. + * Constructs a new CommitSig. * @memberof tendermint.types - * @classdesc Represents a BlockParams. - * @implements IBlockParams + * @classdesc Represents a CommitSig. + * @implements ICommitSig * @constructor - * @param {tendermint.types.IBlockParams=} [properties] Properties to set + * @param {tendermint.types.ICommitSig=} [properties] Properties to set */ - function BlockParams(properties) { + function CommitSig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37259,89 +45545,102 @@ } /** - * BlockParams max_bytes. - * @member {Long} max_bytes - * @memberof tendermint.types.BlockParams + * CommitSig block_id_flag. + * @member {tendermint.types.BlockIDFlag} block_id_flag + * @memberof tendermint.types.CommitSig * @instance */ - BlockParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitSig.prototype.block_id_flag = 0; /** - * BlockParams max_gas. - * @member {Long} max_gas - * @memberof tendermint.types.BlockParams + * CommitSig validator_address. + * @member {Uint8Array} validator_address + * @memberof tendermint.types.CommitSig * @instance */ - BlockParams.prototype.max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitSig.prototype.validator_address = $util.newBuffer([]); /** - * BlockParams time_iota_ms. - * @member {Long} time_iota_ms - * @memberof tendermint.types.BlockParams + * CommitSig timestamp. + * @member {google.protobuf.ITimestamp|null|undefined} timestamp + * @memberof tendermint.types.CommitSig * @instance */ - BlockParams.prototype.time_iota_ms = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitSig.prototype.timestamp = null; /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * CommitSig signature. + * @member {Uint8Array} signature + * @memberof tendermint.types.CommitSig + * @instance + */ + CommitSig.prototype.signature = $util.newBuffer([]); + + /** + * Encodes the specified CommitSig message. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. * @function encode - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static - * @param {tendermint.types.IBlockParams} message BlockParams message or plain object to encode + * @param {tendermint.types.ICommitSig} message CommitSig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockParams.encode = function encode(message, writer) { + CommitSig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_bytes); - if (message.max_gas != null && Object.hasOwnProperty.call(message, "max_gas")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.max_gas); - if (message.time_iota_ms != null && Object.hasOwnProperty.call(message, "time_iota_ms")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_iota_ms); + if (message.block_id_flag != null && Object.hasOwnProperty.call(message, "block_id_flag")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.block_id_flag); + if (message.validator_address != null && Object.hasOwnProperty.call(message, "validator_address")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.validator_address); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signature); return writer; }; /** - * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * Encodes the specified CommitSig message, length delimited. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static - * @param {tendermint.types.IBlockParams} message BlockParams message or plain object to encode + * @param {tendermint.types.ICommitSig} message CommitSig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BlockParams.encodeDelimited = function encodeDelimited(message, writer) { + CommitSig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BlockParams message from the specified reader or buffer. + * Decodes a CommitSig message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.BlockParams} BlockParams + * @returns {tendermint.types.CommitSig} CommitSig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockParams.decode = function decode(reader, length) { + CommitSig.decode = 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.types.BlockParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.CommitSig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_bytes = reader.int64(); + message.block_id_flag = reader.int32(); break; case 2: - message.max_gas = reader.int64(); + message.validator_address = reader.bytes(); break; case 3: - message.time_iota_ms = reader.int64(); + message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.signature = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -37352,168 +45651,184 @@ }; /** - * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * Decodes a CommitSig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.BlockParams} BlockParams + * @returns {tendermint.types.CommitSig} CommitSig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BlockParams.decodeDelimited = function decodeDelimited(reader) { + CommitSig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BlockParams message. + * Verifies a CommitSig message. * @function verify - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BlockParams.verify = function verify(message) { + CommitSig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) - return "max_bytes: integer|Long expected"; - if (message.max_gas != null && message.hasOwnProperty("max_gas")) - if (!$util.isInteger(message.max_gas) && !(message.max_gas && $util.isInteger(message.max_gas.low) && $util.isInteger(message.max_gas.high))) - return "max_gas: integer|Long expected"; - if (message.time_iota_ms != null && message.hasOwnProperty("time_iota_ms")) - if (!$util.isInteger(message.time_iota_ms) && !(message.time_iota_ms && $util.isInteger(message.time_iota_ms.low) && $util.isInteger(message.time_iota_ms.high))) - return "time_iota_ms: integer|Long expected"; + if (message.block_id_flag != null && message.hasOwnProperty("block_id_flag")) + switch (message.block_id_flag) { + default: + return "block_id_flag: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.validator_address != null && message.hasOwnProperty("validator_address")) + if (!(message.validator_address && typeof message.validator_address.length === "number" || $util.isString(message.validator_address))) + return "validator_address: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; return null; }; /** - * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. + * Creates a CommitSig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static * @param {Object.} object Plain object - * @returns {tendermint.types.BlockParams} BlockParams + * @returns {tendermint.types.CommitSig} CommitSig */ - BlockParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.BlockParams) + CommitSig.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.CommitSig) return object; - var message = new $root.tendermint.types.BlockParams(); - if (object.max_bytes != null) - if ($util.Long) - (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; - else if (typeof object.max_bytes === "string") - message.max_bytes = parseInt(object.max_bytes, 10); - else if (typeof object.max_bytes === "number") - message.max_bytes = object.max_bytes; - else if (typeof object.max_bytes === "object") - message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); - if (object.max_gas != null) - if ($util.Long) - (message.max_gas = $util.Long.fromValue(object.max_gas)).unsigned = false; - else if (typeof object.max_gas === "string") - message.max_gas = parseInt(object.max_gas, 10); - else if (typeof object.max_gas === "number") - message.max_gas = object.max_gas; - else if (typeof object.max_gas === "object") - message.max_gas = new $util.LongBits(object.max_gas.low >>> 0, object.max_gas.high >>> 0).toNumber(); - if (object.time_iota_ms != null) - if ($util.Long) - (message.time_iota_ms = $util.Long.fromValue(object.time_iota_ms)).unsigned = false; - else if (typeof object.time_iota_ms === "string") - message.time_iota_ms = parseInt(object.time_iota_ms, 10); - else if (typeof object.time_iota_ms === "number") - message.time_iota_ms = object.time_iota_ms; - else if (typeof object.time_iota_ms === "object") - message.time_iota_ms = new $util.LongBits(object.time_iota_ms.low >>> 0, object.time_iota_ms.high >>> 0).toNumber(); + var message = new $root.tendermint.types.CommitSig(); + switch (object.block_id_flag) { + case "BLOCK_ID_FLAG_UNKNOWN": + case 0: + message.block_id_flag = 0; + break; + case "BLOCK_ID_FLAG_ABSENT": + case 1: + message.block_id_flag = 1; + break; + case "BLOCK_ID_FLAG_COMMIT": + case 2: + message.block_id_flag = 2; + break; + case "BLOCK_ID_FLAG_NIL": + case 3: + message.block_id_flag = 3; + break; + } + if (object.validator_address != null) + if (typeof object.validator_address === "string") + $util.base64.decode(object.validator_address, message.validator_address = $util.newBuffer($util.base64.length(object.validator_address)), 0); + else if (object.validator_address.length) + message.validator_address = object.validator_address; + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".tendermint.types.CommitSig.timestamp: object expected"); + message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + } + 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; return message; }; /** - * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * Creates a plain object from a CommitSig message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @static - * @param {tendermint.types.BlockParams} message BlockParams + * @param {tendermint.types.CommitSig} message CommitSig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BlockParams.toObject = function toObject(message, options) { + CommitSig.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.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_bytes = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_gas = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.time_iota_ms = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.time_iota_ms = options.longs === String ? "0" : 0; + object.block_id_flag = options.enums === String ? "BLOCK_ID_FLAG_UNKNOWN" : 0; + if (options.bytes === String) + object.validator_address = ""; + else { + object.validator_address = []; + if (options.bytes !== Array) + object.validator_address = $util.newBuffer(object.validator_address); + } + object.timestamp = null; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } } - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (typeof message.max_bytes === "number") - object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; - else - object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; - if (message.max_gas != null && message.hasOwnProperty("max_gas")) - if (typeof message.max_gas === "number") - object.max_gas = options.longs === String ? String(message.max_gas) : message.max_gas; - else - object.max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.max_gas) : options.longs === Number ? new $util.LongBits(message.max_gas.low >>> 0, message.max_gas.high >>> 0).toNumber() : message.max_gas; - if (message.time_iota_ms != null && message.hasOwnProperty("time_iota_ms")) - if (typeof message.time_iota_ms === "number") - object.time_iota_ms = options.longs === String ? String(message.time_iota_ms) : message.time_iota_ms; - else - object.time_iota_ms = options.longs === String ? $util.Long.prototype.toString.call(message.time_iota_ms) : options.longs === Number ? new $util.LongBits(message.time_iota_ms.low >>> 0, message.time_iota_ms.high >>> 0).toNumber() : message.time_iota_ms; + if (message.block_id_flag != null && message.hasOwnProperty("block_id_flag")) + object.block_id_flag = options.enums === String ? $root.tendermint.types.BlockIDFlag[message.block_id_flag] : message.block_id_flag; + if (message.validator_address != null && message.hasOwnProperty("validator_address")) + object.validator_address = options.bytes === String ? $util.base64.encode(message.validator_address, 0, message.validator_address.length) : options.bytes === Array ? Array.prototype.slice.call(message.validator_address) : message.validator_address; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); + 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; return object; }; /** - * Converts this BlockParams to JSON. + * Converts this CommitSig to JSON. * @function toJSON - * @memberof tendermint.types.BlockParams + * @memberof tendermint.types.CommitSig * @instance * @returns {Object.} JSON object */ - BlockParams.prototype.toJSON = function toJSON() { + CommitSig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BlockParams; + return CommitSig; })(); - types.EvidenceParams = (function() { + types.Proposal = (function() { /** - * Properties of an EvidenceParams. + * Properties of a Proposal. * @memberof tendermint.types - * @interface IEvidenceParams - * @property {Long|null} [max_age_num_blocks] EvidenceParams max_age_num_blocks - * @property {google.protobuf.IDuration|null} [max_age_duration] EvidenceParams max_age_duration - * @property {Long|null} [max_bytes] EvidenceParams max_bytes + * @interface IProposal + * @property {tendermint.types.SignedMsgType|null} [type] Proposal type + * @property {Long|null} [height] Proposal height + * @property {number|null} [round] Proposal round + * @property {number|null} [pol_round] Proposal pol_round + * @property {tendermint.types.IBlockID|null} [block_id] Proposal block_id + * @property {google.protobuf.ITimestamp|null} [timestamp] Proposal timestamp + * @property {Uint8Array|null} [signature] Proposal signature */ /** - * Constructs a new EvidenceParams. + * Constructs a new Proposal. * @memberof tendermint.types - * @classdesc Represents an EvidenceParams. - * @implements IEvidenceParams + * @classdesc Represents a Proposal. + * @implements IProposal * @constructor - * @param {tendermint.types.IEvidenceParams=} [properties] Properties to set + * @param {tendermint.types.IProposal=} [properties] Properties to set */ - function EvidenceParams(properties) { + function Proposal(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37521,89 +45836,141 @@ } /** - * EvidenceParams max_age_num_blocks. - * @member {Long} max_age_num_blocks - * @memberof tendermint.types.EvidenceParams + * Proposal type. + * @member {tendermint.types.SignedMsgType} type + * @memberof tendermint.types.Proposal * @instance */ - EvidenceParams.prototype.max_age_num_blocks = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Proposal.prototype.type = 0; /** - * EvidenceParams max_age_duration. - * @member {google.protobuf.IDuration|null|undefined} max_age_duration - * @memberof tendermint.types.EvidenceParams + * Proposal height. + * @member {Long} height + * @memberof tendermint.types.Proposal * @instance */ - EvidenceParams.prototype.max_age_duration = null; + Proposal.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * EvidenceParams max_bytes. - * @member {Long} max_bytes - * @memberof tendermint.types.EvidenceParams + * Proposal round. + * @member {number} round + * @memberof tendermint.types.Proposal * @instance */ - EvidenceParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Proposal.prototype.round = 0; /** - * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. + * Proposal pol_round. + * @member {number} pol_round + * @memberof tendermint.types.Proposal + * @instance + */ + Proposal.prototype.pol_round = 0; + + /** + * Proposal block_id. + * @member {tendermint.types.IBlockID|null|undefined} block_id + * @memberof tendermint.types.Proposal + * @instance + */ + Proposal.prototype.block_id = null; + + /** + * Proposal timestamp. + * @member {google.protobuf.ITimestamp|null|undefined} timestamp + * @memberof tendermint.types.Proposal + * @instance + */ + Proposal.prototype.timestamp = null; + + /** + * Proposal signature. + * @member {Uint8Array} signature + * @memberof tendermint.types.Proposal + * @instance + */ + Proposal.prototype.signature = $util.newBuffer([]); + + /** + * Encodes the specified Proposal message. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. * @function encode - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static - * @param {tendermint.types.IEvidenceParams} message EvidenceParams message or plain object to encode + * @param {tendermint.types.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EvidenceParams.encode = function encode(message, writer) { + Proposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_age_num_blocks != null && Object.hasOwnProperty.call(message, "max_age_num_blocks")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_age_num_blocks); - if (message.max_age_duration != null && Object.hasOwnProperty.call(message, "max_age_duration")) - $root.google.protobuf.Duration.encode(message.max_age_duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_bytes); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.height); + if (message.round != null && Object.hasOwnProperty.call(message, "round")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.round); + if (message.pol_round != null && Object.hasOwnProperty.call(message, "pol_round")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pol_round); + if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) + $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.signature); return writer; }; /** - * Encodes the specified EvidenceParams message, length delimited. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static - * @param {tendermint.types.IEvidenceParams} message EvidenceParams message or plain object to encode + * @param {tendermint.types.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EvidenceParams.encodeDelimited = function encodeDelimited(message, writer) { + Proposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EvidenceParams message from the specified reader or buffer. + * Decodes a Proposal message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.EvidenceParams} EvidenceParams + * @returns {tendermint.types.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EvidenceParams.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.tendermint.types.EvidenceParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Proposal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_age_num_blocks = reader.int64(); + message.type = reader.int32(); break; case 2: - message.max_age_duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.height = reader.int64(); break; case 3: - message.max_bytes = reader.int64(); + message.round = reader.int32(); + break; + case 4: + message.pol_round = reader.int32(); + break; + case 5: + message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); + break; + case 6: + message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.signature = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -37614,158 +45981,213 @@ }; /** - * Decodes an EvidenceParams message from the specified reader or buffer, length delimited. + * Decodes a Proposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.EvidenceParams} EvidenceParams + * @returns {tendermint.types.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EvidenceParams.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 EvidenceParams message. + * Verifies a Proposal message. * @function verify - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EvidenceParams.verify = function verify(message) { + Proposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_age_num_blocks != null && message.hasOwnProperty("max_age_num_blocks")) - if (!$util.isInteger(message.max_age_num_blocks) && !(message.max_age_num_blocks && $util.isInteger(message.max_age_num_blocks.low) && $util.isInteger(message.max_age_num_blocks.high))) - return "max_age_num_blocks: integer|Long expected"; - if (message.max_age_duration != null && message.hasOwnProperty("max_age_duration")) { - var error = $root.google.protobuf.Duration.verify(message.max_age_duration); + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 32: + break; + } + 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.round != null && message.hasOwnProperty("round")) + if (!$util.isInteger(message.round)) + return "round: integer expected"; + if (message.pol_round != null && message.hasOwnProperty("pol_round")) + if (!$util.isInteger(message.pol_round)) + return "pol_round: integer expected"; + if (message.block_id != null && message.hasOwnProperty("block_id")) { + var error = $root.tendermint.types.BlockID.verify(message.block_id); if (error) - return "max_age_duration." + error; + return "block_id." + error; } - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) - return "max_bytes: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; return null; }; /** - * Creates an EvidenceParams 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 tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static * @param {Object.} object Plain object - * @returns {tendermint.types.EvidenceParams} EvidenceParams + * @returns {tendermint.types.Proposal} Proposal */ - EvidenceParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.EvidenceParams) + Proposal.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Proposal) return object; - var message = new $root.tendermint.types.EvidenceParams(); - if (object.max_age_num_blocks != null) - if ($util.Long) - (message.max_age_num_blocks = $util.Long.fromValue(object.max_age_num_blocks)).unsigned = false; - else if (typeof object.max_age_num_blocks === "string") - message.max_age_num_blocks = parseInt(object.max_age_num_blocks, 10); - else if (typeof object.max_age_num_blocks === "number") - message.max_age_num_blocks = object.max_age_num_blocks; - else if (typeof object.max_age_num_blocks === "object") - message.max_age_num_blocks = new $util.LongBits(object.max_age_num_blocks.low >>> 0, object.max_age_num_blocks.high >>> 0).toNumber(); - if (object.max_age_duration != null) { - if (typeof object.max_age_duration !== "object") - throw TypeError(".tendermint.types.EvidenceParams.max_age_duration: object expected"); - message.max_age_duration = $root.google.protobuf.Duration.fromObject(object.max_age_duration); + var message = new $root.tendermint.types.Proposal(); + switch (object.type) { + case "SIGNED_MSG_TYPE_UNKNOWN": + case 0: + message.type = 0; + break; + case "SIGNED_MSG_TYPE_PREVOTE": + case 1: + message.type = 1; + break; + case "SIGNED_MSG_TYPE_PRECOMMIT": + case 2: + message.type = 2; + break; + case "SIGNED_MSG_TYPE_PROPOSAL": + case 32: + message.type = 32; + break; } - if (object.max_bytes != null) + if (object.height != null) if ($util.Long) - (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; - else if (typeof object.max_bytes === "string") - message.max_bytes = parseInt(object.max_bytes, 10); - else if (typeof object.max_bytes === "number") - message.max_bytes = object.max_bytes; - else if (typeof object.max_bytes === "object") - message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); + (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.round != null) + message.round = object.round | 0; + if (object.pol_round != null) + message.pol_round = object.pol_round | 0; + if (object.block_id != null) { + if (typeof object.block_id !== "object") + throw TypeError(".tendermint.types.Proposal.block_id: object expected"); + message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); + } + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".tendermint.types.Proposal.timestamp: object expected"); + message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + } + 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; return message; }; /** - * Creates a plain object from an EvidenceParams 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 tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @static - * @param {tendermint.types.EvidenceParams} message EvidenceParams + * @param {tendermint.types.Proposal} message Proposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EvidenceParams.toObject = function toObject(message, options) { + Proposal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.type = options.enums === String ? "SIGNED_MSG_TYPE_UNKNOWN" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.max_age_num_blocks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_age_num_blocks = options.longs === String ? "0" : 0; - object.max_age_duration = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.max_bytes = options.longs === String ? "0" : 0; + object.height = options.longs === String ? "0" : 0; + object.round = 0; + object.pol_round = 0; + object.block_id = null; + object.timestamp = null; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } } - if (message.max_age_num_blocks != null && message.hasOwnProperty("max_age_num_blocks")) - if (typeof message.max_age_num_blocks === "number") - object.max_age_num_blocks = options.longs === String ? String(message.max_age_num_blocks) : message.max_age_num_blocks; - else - object.max_age_num_blocks = options.longs === String ? $util.Long.prototype.toString.call(message.max_age_num_blocks) : options.longs === Number ? new $util.LongBits(message.max_age_num_blocks.low >>> 0, message.max_age_num_blocks.high >>> 0).toNumber() : message.max_age_num_blocks; - if (message.max_age_duration != null && message.hasOwnProperty("max_age_duration")) - object.max_age_duration = $root.google.protobuf.Duration.toObject(message.max_age_duration, options); - if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) - if (typeof message.max_bytes === "number") - object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.tendermint.types.SignedMsgType[message.type] : message.type; + if (message.height != null && message.hasOwnProperty("height")) + if (typeof message.height === "number") + object.height = options.longs === String ? String(message.height) : message.height; else - object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; + 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.round != null && message.hasOwnProperty("round")) + object.round = message.round; + if (message.pol_round != null && message.hasOwnProperty("pol_round")) + object.pol_round = message.pol_round; + if (message.block_id != null && message.hasOwnProperty("block_id")) + object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); + 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; return object; }; /** - * Converts this EvidenceParams to JSON. + * Converts this Proposal to JSON. * @function toJSON - * @memberof tendermint.types.EvidenceParams + * @memberof tendermint.types.Proposal * @instance * @returns {Object.} JSON object */ - EvidenceParams.prototype.toJSON = function toJSON() { + Proposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EvidenceParams; + return Proposal; })(); - types.ValidatorParams = (function() { + types.SignedHeader = (function() { /** - * Properties of a ValidatorParams. + * Properties of a SignedHeader. * @memberof tendermint.types - * @interface IValidatorParams - * @property {Array.|null} [pub_key_types] ValidatorParams pub_key_types + * @interface ISignedHeader + * @property {tendermint.types.IHeader|null} [header] SignedHeader header + * @property {tendermint.types.ICommit|null} [commit] SignedHeader commit */ /** - * Constructs a new ValidatorParams. + * Constructs a new SignedHeader. * @memberof tendermint.types - * @classdesc Represents a ValidatorParams. - * @implements IValidatorParams + * @classdesc Represents a SignedHeader. + * @implements ISignedHeader * @constructor - * @param {tendermint.types.IValidatorParams=} [properties] Properties to set + * @param {tendermint.types.ISignedHeader=} [properties] Properties to set */ - function ValidatorParams(properties) { - this.pub_key_types = []; + function SignedHeader(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37773,66 +46195,76 @@ } /** - * ValidatorParams pub_key_types. - * @member {Array.} pub_key_types - * @memberof tendermint.types.ValidatorParams + * SignedHeader header. + * @member {tendermint.types.IHeader|null|undefined} header + * @memberof tendermint.types.SignedHeader * @instance */ - ValidatorParams.prototype.pub_key_types = $util.emptyArray; + SignedHeader.prototype.header = null; /** - * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. + * SignedHeader commit. + * @member {tendermint.types.ICommit|null|undefined} commit + * @memberof tendermint.types.SignedHeader + * @instance + */ + SignedHeader.prototype.commit = null; + + /** + * Encodes the specified SignedHeader message. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. * @function encode - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static - * @param {tendermint.types.IValidatorParams} message ValidatorParams message or plain object to encode + * @param {tendermint.types.ISignedHeader} message SignedHeader message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorParams.encode = function encode(message, writer) { + SignedHeader.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pub_key_types != null && message.pub_key_types.length) - for (var i = 0; i < message.pub_key_types.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pub_key_types[i]); + if (message.header != null && Object.hasOwnProperty.call(message, "header")) + $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.commit != null && Object.hasOwnProperty.call(message, "commit")) + $root.tendermint.types.Commit.encode(message.commit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ValidatorParams message, length delimited. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. + * Encodes the specified SignedHeader message, length delimited. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static - * @param {tendermint.types.IValidatorParams} message ValidatorParams message or plain object to encode + * @param {tendermint.types.ISignedHeader} message SignedHeader message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidatorParams.encodeDelimited = function encodeDelimited(message, writer) { + SignedHeader.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidatorParams message from the specified reader or buffer. + * Decodes a SignedHeader message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.ValidatorParams} ValidatorParams + * @returns {tendermint.types.SignedHeader} SignedHeader * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorParams.decode = function decode(reader, length) { + SignedHeader.decode = 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.types.ValidatorParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.SignedHeader(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.pub_key_types && message.pub_key_types.length)) - message.pub_key_types = []; - message.pub_key_types.push(reader.string()); + message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); + break; + case 2: + message.commit = $root.tendermint.types.Commit.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -37843,119 +46275,127 @@ }; /** - * Decodes a ValidatorParams message from the specified reader or buffer, length delimited. + * Decodes a SignedHeader message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.ValidatorParams} ValidatorParams + * @returns {tendermint.types.SignedHeader} SignedHeader * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidatorParams.decodeDelimited = function decodeDelimited(reader) { + SignedHeader.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidatorParams message. + * Verifies a SignedHeader message. * @function verify - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidatorParams.verify = function verify(message) { + SignedHeader.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pub_key_types != null && message.hasOwnProperty("pub_key_types")) { - if (!Array.isArray(message.pub_key_types)) - return "pub_key_types: array expected"; - for (var i = 0; i < message.pub_key_types.length; ++i) - if (!$util.isString(message.pub_key_types[i])) - return "pub_key_types: string[] expected"; + if (message.header != null && message.hasOwnProperty("header")) { + var error = $root.tendermint.types.Header.verify(message.header); + if (error) + return "header." + error; + } + if (message.commit != null && message.hasOwnProperty("commit")) { + var error = $root.tendermint.types.Commit.verify(message.commit); + if (error) + return "commit." + error; } return null; }; /** - * Creates a ValidatorParams message from a plain object. Also converts values to their respective internal types. + * Creates a SignedHeader message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static * @param {Object.} object Plain object - * @returns {tendermint.types.ValidatorParams} ValidatorParams + * @returns {tendermint.types.SignedHeader} SignedHeader */ - ValidatorParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.ValidatorParams) + SignedHeader.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.SignedHeader) return object; - var message = new $root.tendermint.types.ValidatorParams(); - if (object.pub_key_types) { - if (!Array.isArray(object.pub_key_types)) - throw TypeError(".tendermint.types.ValidatorParams.pub_key_types: array expected"); - message.pub_key_types = []; - for (var i = 0; i < object.pub_key_types.length; ++i) - message.pub_key_types[i] = String(object.pub_key_types[i]); + var message = new $root.tendermint.types.SignedHeader(); + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".tendermint.types.SignedHeader.header: object expected"); + message.header = $root.tendermint.types.Header.fromObject(object.header); + } + if (object.commit != null) { + if (typeof object.commit !== "object") + throw TypeError(".tendermint.types.SignedHeader.commit: object expected"); + message.commit = $root.tendermint.types.Commit.fromObject(object.commit); } return message; }; /** - * Creates a plain object from a ValidatorParams message. Also converts values to other types if specified. + * Creates a plain object from a SignedHeader message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @static - * @param {tendermint.types.ValidatorParams} message ValidatorParams + * @param {tendermint.types.SignedHeader} message SignedHeader * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidatorParams.toObject = function toObject(message, options) { + SignedHeader.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pub_key_types = []; - if (message.pub_key_types && message.pub_key_types.length) { - object.pub_key_types = []; - for (var j = 0; j < message.pub_key_types.length; ++j) - object.pub_key_types[j] = message.pub_key_types[j]; + if (options.defaults) { + object.header = null; + object.commit = null; } + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.tendermint.types.Header.toObject(message.header, options); + if (message.commit != null && message.hasOwnProperty("commit")) + object.commit = $root.tendermint.types.Commit.toObject(message.commit, options); return object; }; /** - * Converts this ValidatorParams to JSON. + * Converts this SignedHeader to JSON. * @function toJSON - * @memberof tendermint.types.ValidatorParams + * @memberof tendermint.types.SignedHeader * @instance * @returns {Object.} JSON object */ - ValidatorParams.prototype.toJSON = function toJSON() { + SignedHeader.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ValidatorParams; + return SignedHeader; })(); - types.VersionParams = (function() { + types.LightBlock = (function() { /** - * Properties of a VersionParams. + * Properties of a LightBlock. * @memberof tendermint.types - * @interface IVersionParams - * @property {Long|null} [app_version] VersionParams app_version + * @interface ILightBlock + * @property {tendermint.types.ISignedHeader|null} [signed_header] LightBlock signed_header + * @property {tendermint.types.IValidatorSet|null} [validator_set] LightBlock validator_set */ /** - * Constructs a new VersionParams. + * Constructs a new LightBlock. * @memberof tendermint.types - * @classdesc Represents a VersionParams. - * @implements IVersionParams + * @classdesc Represents a LightBlock. + * @implements ILightBlock * @constructor - * @param {tendermint.types.IVersionParams=} [properties] Properties to set + * @param {tendermint.types.ILightBlock=} [properties] Properties to set */ - function VersionParams(properties) { + function LightBlock(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37963,63 +46403,76 @@ } /** - * VersionParams app_version. - * @member {Long} app_version - * @memberof tendermint.types.VersionParams + * LightBlock signed_header. + * @member {tendermint.types.ISignedHeader|null|undefined} signed_header + * @memberof tendermint.types.LightBlock * @instance */ - VersionParams.prototype.app_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + LightBlock.prototype.signed_header = null; /** - * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * LightBlock validator_set. + * @member {tendermint.types.IValidatorSet|null|undefined} validator_set + * @memberof tendermint.types.LightBlock + * @instance + */ + LightBlock.prototype.validator_set = null; + + /** + * Encodes the specified LightBlock message. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. * @function encode - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static - * @param {tendermint.types.IVersionParams} message VersionParams message or plain object to encode + * @param {tendermint.types.ILightBlock} message LightBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionParams.encode = function encode(message, writer) { + LightBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.app_version); + 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(); return writer; }; /** - * Encodes the specified VersionParams message, length delimited. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * Encodes the specified LightBlock message, length delimited. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static - * @param {tendermint.types.IVersionParams} message VersionParams message or plain object to encode + * @param {tendermint.types.ILightBlock} message LightBlock message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionParams.encodeDelimited = function encodeDelimited(message, writer) { + LightBlock.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionParams message from the specified reader or buffer. + * Decodes a LightBlock message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.VersionParams} VersionParams + * @returns {tendermint.types.LightBlock} LightBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionParams.decode = function decode(reader, length) { + LightBlock.decode = 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.types.VersionParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.LightBlock(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.app_version = reader.uint64(); + 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; default: reader.skipType(tag & 7); @@ -38030,122 +46483,129 @@ }; /** - * Decodes a VersionParams message from the specified reader or buffer, length delimited. + * Decodes a LightBlock message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.VersionParams} VersionParams + * @returns {tendermint.types.LightBlock} LightBlock * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionParams.decodeDelimited = function decodeDelimited(reader) { + LightBlock.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionParams message. + * Verifies a LightBlock message. * @function verify - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VersionParams.verify = function verify(message) { + LightBlock.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (!$util.isInteger(message.app_version) && !(message.app_version && $util.isInteger(message.app_version.low) && $util.isInteger(message.app_version.high))) - return "app_version: integer|Long 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; + } return null; }; /** - * Creates a VersionParams message from a plain object. Also converts values to their respective internal types. + * Creates a LightBlock message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static * @param {Object.} object Plain object - * @returns {tendermint.types.VersionParams} VersionParams + * @returns {tendermint.types.LightBlock} LightBlock */ - VersionParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.VersionParams) + LightBlock.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.LightBlock) return object; - var message = new $root.tendermint.types.VersionParams(); - if (object.app_version != null) - if ($util.Long) - (message.app_version = $util.Long.fromValue(object.app_version)).unsigned = true; - else if (typeof object.app_version === "string") - message.app_version = parseInt(object.app_version, 10); - else if (typeof object.app_version === "number") - message.app_version = object.app_version; - else if (typeof object.app_version === "object") - message.app_version = new $util.LongBits(object.app_version.low >>> 0, object.app_version.high >>> 0).toNumber(true); + var message = new $root.tendermint.types.LightBlock(); + if (object.signed_header != null) { + if (typeof object.signed_header !== "object") + throw TypeError(".tendermint.types.LightBlock.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(".tendermint.types.LightBlock.validator_set: object expected"); + message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); + } return message; }; /** - * Creates a plain object from a VersionParams message. Also converts values to other types if specified. + * Creates a plain object from a LightBlock message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @static - * @param {tendermint.types.VersionParams} message VersionParams + * @param {tendermint.types.LightBlock} message LightBlock * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionParams.toObject = function toObject(message, options) { + LightBlock.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.app_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.app_version = options.longs === String ? "0" : 0; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (typeof message.app_version === "number") - object.app_version = options.longs === String ? String(message.app_version) : message.app_version; - else - object.app_version = options.longs === String ? $util.Long.prototype.toString.call(message.app_version) : options.longs === Number ? new $util.LongBits(message.app_version.low >>> 0, message.app_version.high >>> 0).toNumber(true) : message.app_version; + if (options.defaults) { + object.signed_header = null; + object.validator_set = 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); return object; }; /** - * Converts this VersionParams to JSON. + * Converts this LightBlock to JSON. * @function toJSON - * @memberof tendermint.types.VersionParams + * @memberof tendermint.types.LightBlock * @instance * @returns {Object.} JSON object */ - VersionParams.prototype.toJSON = function toJSON() { + LightBlock.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VersionParams; + return LightBlock; })(); - types.HashedParams = (function() { + types.BlockMeta = (function() { /** - * Properties of a HashedParams. + * Properties of a BlockMeta. * @memberof tendermint.types - * @interface IHashedParams - * @property {Long|null} [block_max_bytes] HashedParams block_max_bytes - * @property {Long|null} [block_max_gas] HashedParams block_max_gas + * @interface IBlockMeta + * @property {tendermint.types.IBlockID|null} [block_id] BlockMeta block_id + * @property {Long|null} [block_size] BlockMeta block_size + * @property {tendermint.types.IHeader|null} [header] BlockMeta header + * @property {Long|null} [num_txs] BlockMeta num_txs */ /** - * Constructs a new HashedParams. + * Constructs a new BlockMeta. * @memberof tendermint.types - * @classdesc Represents a HashedParams. - * @implements IHashedParams + * @classdesc Represents a BlockMeta. + * @implements IBlockMeta * @constructor - * @param {tendermint.types.IHashedParams=} [properties] Properties to set + * @param {tendermint.types.IBlockMeta=} [properties] Properties to set */ - function HashedParams(properties) { + function BlockMeta(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38153,76 +46613,102 @@ } /** - * HashedParams block_max_bytes. - * @member {Long} block_max_bytes - * @memberof tendermint.types.HashedParams + * BlockMeta block_id. + * @member {tendermint.types.IBlockID|null|undefined} block_id + * @memberof tendermint.types.BlockMeta * @instance */ - HashedParams.prototype.block_max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BlockMeta.prototype.block_id = null; /** - * HashedParams block_max_gas. - * @member {Long} block_max_gas - * @memberof tendermint.types.HashedParams + * BlockMeta block_size. + * @member {Long} block_size + * @memberof tendermint.types.BlockMeta * @instance */ - HashedParams.prototype.block_max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BlockMeta.prototype.block_size = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * BlockMeta header. + * @member {tendermint.types.IHeader|null|undefined} header + * @memberof tendermint.types.BlockMeta + * @instance + */ + BlockMeta.prototype.header = null; + + /** + * BlockMeta num_txs. + * @member {Long} num_txs + * @memberof tendermint.types.BlockMeta + * @instance + */ + BlockMeta.prototype.num_txs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Encodes the specified BlockMeta message. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. * @function encode - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static - * @param {tendermint.types.IHashedParams} message HashedParams message or plain object to encode + * @param {tendermint.types.IBlockMeta} message BlockMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HashedParams.encode = function encode(message, writer) { + BlockMeta.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.block_max_bytes != null && Object.hasOwnProperty.call(message, "block_max_bytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.block_max_bytes); - if (message.block_max_gas != null && Object.hasOwnProperty.call(message, "block_max_gas")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.block_max_gas); + if (message.block_id != null && Object.hasOwnProperty.call(message, "block_id")) + $root.tendermint.types.BlockID.encode(message.block_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.block_size != null && Object.hasOwnProperty.call(message, "block_size")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.block_size); + if (message.header != null && Object.hasOwnProperty.call(message, "header")) + $root.tendermint.types.Header.encode(message.header, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.num_txs != null && Object.hasOwnProperty.call(message, "num_txs")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num_txs); return writer; }; /** - * Encodes the specified HashedParams message, length delimited. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * Encodes the specified BlockMeta message, length delimited. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static - * @param {tendermint.types.IHashedParams} message HashedParams message or plain object to encode + * @param {tendermint.types.IBlockMeta} message BlockMeta message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HashedParams.encodeDelimited = function encodeDelimited(message, writer) { + BlockMeta.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HashedParams message from the specified reader or buffer. + * Decodes a BlockMeta message from the specified reader or buffer. * @function decode - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.types.HashedParams} HashedParams + * @returns {tendermint.types.BlockMeta} BlockMeta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HashedParams.decode = function decode(reader, length) { + BlockMeta.decode = 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.types.HashedParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.BlockMeta(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.block_max_bytes = reader.int64(); + message.block_id = $root.tendermint.types.BlockID.decode(reader, reader.uint32()); break; case 2: - message.block_max_gas = reader.int64(); + message.block_size = reader.int64(); + break; + case 3: + message.header = $root.tendermint.types.Header.decode(reader, reader.uint32()); + break; + case 4: + message.num_txs = reader.int64(); break; default: reader.skipType(tag & 7); @@ -38233,157 +46719,172 @@ }; /** - * Decodes a HashedParams message from the specified reader or buffer, length delimited. + * Decodes a BlockMeta message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.types.HashedParams} HashedParams + * @returns {tendermint.types.BlockMeta} BlockMeta * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HashedParams.decodeDelimited = function decodeDelimited(reader) { + BlockMeta.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HashedParams message. + * Verifies a BlockMeta message. * @function verify - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HashedParams.verify = function verify(message) { + BlockMeta.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.block_max_bytes != null && message.hasOwnProperty("block_max_bytes")) - if (!$util.isInteger(message.block_max_bytes) && !(message.block_max_bytes && $util.isInteger(message.block_max_bytes.low) && $util.isInteger(message.block_max_bytes.high))) - return "block_max_bytes: integer|Long expected"; - if (message.block_max_gas != null && message.hasOwnProperty("block_max_gas")) - if (!$util.isInteger(message.block_max_gas) && !(message.block_max_gas && $util.isInteger(message.block_max_gas.low) && $util.isInteger(message.block_max_gas.high))) - return "block_max_gas: integer|Long expected"; + if (message.block_id != null && message.hasOwnProperty("block_id")) { + var error = $root.tendermint.types.BlockID.verify(message.block_id); + if (error) + return "block_id." + error; + } + if (message.block_size != null && message.hasOwnProperty("block_size")) + if (!$util.isInteger(message.block_size) && !(message.block_size && $util.isInteger(message.block_size.low) && $util.isInteger(message.block_size.high))) + return "block_size: integer|Long expected"; + if (message.header != null && message.hasOwnProperty("header")) { + var error = $root.tendermint.types.Header.verify(message.header); + if (error) + return "header." + error; + } + if (message.num_txs != null && message.hasOwnProperty("num_txs")) + if (!$util.isInteger(message.num_txs) && !(message.num_txs && $util.isInteger(message.num_txs.low) && $util.isInteger(message.num_txs.high))) + return "num_txs: integer|Long expected"; return null; }; /** - * Creates a HashedParams message from a plain object. Also converts values to their respective internal types. + * Creates a BlockMeta message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static * @param {Object.} object Plain object - * @returns {tendermint.types.HashedParams} HashedParams + * @returns {tendermint.types.BlockMeta} BlockMeta */ - HashedParams.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.types.HashedParams) + BlockMeta.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.BlockMeta) return object; - var message = new $root.tendermint.types.HashedParams(); - if (object.block_max_bytes != null) + var message = new $root.tendermint.types.BlockMeta(); + if (object.block_id != null) { + if (typeof object.block_id !== "object") + throw TypeError(".tendermint.types.BlockMeta.block_id: object expected"); + message.block_id = $root.tendermint.types.BlockID.fromObject(object.block_id); + } + if (object.block_size != null) if ($util.Long) - (message.block_max_bytes = $util.Long.fromValue(object.block_max_bytes)).unsigned = false; - else if (typeof object.block_max_bytes === "string") - message.block_max_bytes = parseInt(object.block_max_bytes, 10); - else if (typeof object.block_max_bytes === "number") - message.block_max_bytes = object.block_max_bytes; - else if (typeof object.block_max_bytes === "object") - message.block_max_bytes = new $util.LongBits(object.block_max_bytes.low >>> 0, object.block_max_bytes.high >>> 0).toNumber(); - if (object.block_max_gas != null) + (message.block_size = $util.Long.fromValue(object.block_size)).unsigned = false; + else if (typeof object.block_size === "string") + message.block_size = parseInt(object.block_size, 10); + else if (typeof object.block_size === "number") + message.block_size = object.block_size; + else if (typeof object.block_size === "object") + message.block_size = new $util.LongBits(object.block_size.low >>> 0, object.block_size.high >>> 0).toNumber(); + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".tendermint.types.BlockMeta.header: object expected"); + message.header = $root.tendermint.types.Header.fromObject(object.header); + } + if (object.num_txs != null) if ($util.Long) - (message.block_max_gas = $util.Long.fromValue(object.block_max_gas)).unsigned = false; - else if (typeof object.block_max_gas === "string") - message.block_max_gas = parseInt(object.block_max_gas, 10); - else if (typeof object.block_max_gas === "number") - message.block_max_gas = object.block_max_gas; - else if (typeof object.block_max_gas === "object") - message.block_max_gas = new $util.LongBits(object.block_max_gas.low >>> 0, object.block_max_gas.high >>> 0).toNumber(); + (message.num_txs = $util.Long.fromValue(object.num_txs)).unsigned = false; + else if (typeof object.num_txs === "string") + message.num_txs = parseInt(object.num_txs, 10); + else if (typeof object.num_txs === "number") + message.num_txs = object.num_txs; + else if (typeof object.num_txs === "object") + message.num_txs = new $util.LongBits(object.num_txs.low >>> 0, object.num_txs.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a HashedParams message. Also converts values to other types if specified. + * Creates a plain object from a BlockMeta message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @static - * @param {tendermint.types.HashedParams} message HashedParams + * @param {tendermint.types.BlockMeta} message BlockMeta * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HashedParams.toObject = function toObject(message, options) { + BlockMeta.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.block_id = null; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.block_max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.block_size = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.block_max_bytes = options.longs === String ? "0" : 0; + object.block_size = options.longs === String ? "0" : 0; + object.header = null; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.block_max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.num_txs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.block_max_gas = options.longs === String ? "0" : 0; + object.num_txs = options.longs === String ? "0" : 0; } - if (message.block_max_bytes != null && message.hasOwnProperty("block_max_bytes")) - if (typeof message.block_max_bytes === "number") - object.block_max_bytes = options.longs === String ? String(message.block_max_bytes) : message.block_max_bytes; + if (message.block_id != null && message.hasOwnProperty("block_id")) + object.block_id = $root.tendermint.types.BlockID.toObject(message.block_id, options); + if (message.block_size != null && message.hasOwnProperty("block_size")) + if (typeof message.block_size === "number") + object.block_size = options.longs === String ? String(message.block_size) : message.block_size; else - object.block_max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.block_max_bytes) : options.longs === Number ? new $util.LongBits(message.block_max_bytes.low >>> 0, message.block_max_bytes.high >>> 0).toNumber() : message.block_max_bytes; - if (message.block_max_gas != null && message.hasOwnProperty("block_max_gas")) - if (typeof message.block_max_gas === "number") - object.block_max_gas = options.longs === String ? String(message.block_max_gas) : message.block_max_gas; + object.block_size = options.longs === String ? $util.Long.prototype.toString.call(message.block_size) : options.longs === Number ? new $util.LongBits(message.block_size.low >>> 0, message.block_size.high >>> 0).toNumber() : message.block_size; + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.tendermint.types.Header.toObject(message.header, options); + if (message.num_txs != null && message.hasOwnProperty("num_txs")) + if (typeof message.num_txs === "number") + object.num_txs = options.longs === String ? String(message.num_txs) : message.num_txs; else - object.block_max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.block_max_gas) : options.longs === Number ? new $util.LongBits(message.block_max_gas.low >>> 0, message.block_max_gas.high >>> 0).toNumber() : message.block_max_gas; + object.num_txs = options.longs === String ? $util.Long.prototype.toString.call(message.num_txs) : options.longs === Number ? new $util.LongBits(message.num_txs.low >>> 0, message.num_txs.high >>> 0).toNumber() : message.num_txs; return object; }; /** - * Converts this HashedParams to JSON. + * Converts this BlockMeta to JSON. * @function toJSON - * @memberof tendermint.types.HashedParams + * @memberof tendermint.types.BlockMeta * @instance * @returns {Object.} JSON object */ - HashedParams.prototype.toJSON = function toJSON() { + BlockMeta.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HashedParams; + return BlockMeta; })(); - return types; - })(); - - tendermint.version = (function() { - - /** - * Namespace version. - * @memberof tendermint - * @namespace - */ - var version = {}; - - version.App = (function() { + types.TxProof = (function() { /** - * Properties of an App. - * @memberof tendermint.version - * @interface IApp - * @property {Long|null} [protocol] App protocol - * @property {string|null} [software] App software + * Properties of a TxProof. + * @memberof tendermint.types + * @interface ITxProof + * @property {Uint8Array|null} [root_hash] TxProof root_hash + * @property {Uint8Array|null} [data] TxProof data + * @property {tendermint.crypto.IProof|null} [proof] TxProof proof */ /** - * Constructs a new App. - * @memberof tendermint.version - * @classdesc Represents an App. - * @implements IApp + * Constructs a new TxProof. + * @memberof tendermint.types + * @classdesc Represents a TxProof. + * @implements ITxProof * @constructor - * @param {tendermint.version.IApp=} [properties] Properties to set + * @param {tendermint.types.ITxProof=} [properties] Properties to set */ - function App(properties) { + function TxProof(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38391,76 +46892,89 @@ } /** - * App protocol. - * @member {Long} protocol - * @memberof tendermint.version.App + * TxProof root_hash. + * @member {Uint8Array} root_hash + * @memberof tendermint.types.TxProof * @instance */ - App.prototype.protocol = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + TxProof.prototype.root_hash = $util.newBuffer([]); /** - * App software. - * @member {string} software - * @memberof tendermint.version.App + * TxProof data. + * @member {Uint8Array} data + * @memberof tendermint.types.TxProof * @instance */ - App.prototype.software = ""; + TxProof.prototype.data = $util.newBuffer([]); /** - * Encodes the specified App message. Does not implicitly {@link tendermint.version.App.verify|verify} messages. + * TxProof proof. + * @member {tendermint.crypto.IProof|null|undefined} proof + * @memberof tendermint.types.TxProof + * @instance + */ + TxProof.prototype.proof = null; + + /** + * Encodes the specified TxProof message. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. * @function encode - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static - * @param {tendermint.version.IApp} message App message or plain object to encode + * @param {tendermint.types.ITxProof} message TxProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - App.encode = function encode(message, writer) { + TxProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.protocol); - if (message.software != null && Object.hasOwnProperty.call(message, "software")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.software); + if (message.root_hash != null && Object.hasOwnProperty.call(message, "root_hash")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.root_hash); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + $root.tendermint.crypto.Proof.encode(message.proof, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified App message, length delimited. Does not implicitly {@link tendermint.version.App.verify|verify} messages. + * Encodes the specified TxProof message, length delimited. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static - * @param {tendermint.version.IApp} message App message or plain object to encode + * @param {tendermint.types.ITxProof} message TxProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - App.encodeDelimited = function encodeDelimited(message, writer) { + TxProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an App message from the specified reader or buffer. + * Decodes a TxProof message from the specified reader or buffer. * @function decode - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.version.App} App + * @returns {tendermint.types.TxProof} TxProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - App.decode = function decode(reader, length) { + TxProof.decode = 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.version.App(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.TxProof(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.protocol = reader.uint64(); + message.root_hash = reader.bytes(); break; case 2: - message.software = reader.string(); + message.data = reader.bytes(); + break; + case 3: + message.proof = $root.tendermint.crypto.Proof.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -38471,131 +46985,150 @@ }; /** - * Decodes an App message from the specified reader or buffer, length delimited. + * Decodes a TxProof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.version.App} App + * @returns {tendermint.types.TxProof} TxProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - App.decodeDelimited = function decodeDelimited(reader) { + TxProof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an App message. + * Verifies a TxProof message. * @function verify - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - App.verify = function verify(message) { + TxProof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.protocol != null && message.hasOwnProperty("protocol")) - if (!$util.isInteger(message.protocol) && !(message.protocol && $util.isInteger(message.protocol.low) && $util.isInteger(message.protocol.high))) - return "protocol: integer|Long expected"; - if (message.software != null && message.hasOwnProperty("software")) - if (!$util.isString(message.software)) - return "software: string expected"; + if (message.root_hash != null && message.hasOwnProperty("root_hash")) + if (!(message.root_hash && typeof message.root_hash.length === "number" || $util.isString(message.root_hash))) + return "root_hash: 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.proof != null && message.hasOwnProperty("proof")) { + var error = $root.tendermint.crypto.Proof.verify(message.proof); + if (error) + return "proof." + error; + } return null; }; /** - * Creates an App message from a plain object. Also converts values to their respective internal types. + * Creates a TxProof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static * @param {Object.} object Plain object - * @returns {tendermint.version.App} App + * @returns {tendermint.types.TxProof} TxProof */ - App.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.version.App) + TxProof.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.TxProof) return object; - var message = new $root.tendermint.version.App(); - if (object.protocol != null) - if ($util.Long) - (message.protocol = $util.Long.fromValue(object.protocol)).unsigned = true; - else if (typeof object.protocol === "string") - message.protocol = parseInt(object.protocol, 10); - else if (typeof object.protocol === "number") - message.protocol = object.protocol; - else if (typeof object.protocol === "object") - message.protocol = new $util.LongBits(object.protocol.low >>> 0, object.protocol.high >>> 0).toNumber(true); - if (object.software != null) - message.software = String(object.software); + var message = new $root.tendermint.types.TxProof(); + if (object.root_hash != null) + if (typeof object.root_hash === "string") + $util.base64.decode(object.root_hash, message.root_hash = $util.newBuffer($util.base64.length(object.root_hash)), 0); + else if (object.root_hash.length) + message.root_hash = object.root_hash; + 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.proof != null) { + if (typeof object.proof !== "object") + throw TypeError(".tendermint.types.TxProof.proof: object expected"); + message.proof = $root.tendermint.crypto.Proof.fromObject(object.proof); + } return message; }; /** - * Creates a plain object from an App message. Also converts values to other types if specified. + * Creates a plain object from a TxProof message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @static - * @param {tendermint.version.App} message App + * @param {tendermint.types.TxProof} message TxProof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - App.toObject = function toObject(message, options) { + TxProof.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.protocol = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.protocol = options.longs === String ? "0" : 0; - object.software = ""; + if (options.bytes === String) + object.root_hash = ""; + else { + object.root_hash = []; + if (options.bytes !== Array) + object.root_hash = $util.newBuffer(object.root_hash); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + object.proof = null; } - if (message.protocol != null && message.hasOwnProperty("protocol")) - if (typeof message.protocol === "number") - object.protocol = options.longs === String ? String(message.protocol) : message.protocol; - else - object.protocol = options.longs === String ? $util.Long.prototype.toString.call(message.protocol) : options.longs === Number ? new $util.LongBits(message.protocol.low >>> 0, message.protocol.high >>> 0).toNumber(true) : message.protocol; - if (message.software != null && message.hasOwnProperty("software")) - object.software = message.software; + if (message.root_hash != null && message.hasOwnProperty("root_hash")) + object.root_hash = options.bytes === String ? $util.base64.encode(message.root_hash, 0, message.root_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.root_hash) : message.root_hash; + 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.proof != null && message.hasOwnProperty("proof")) + object.proof = $root.tendermint.crypto.Proof.toObject(message.proof, options); return object; }; /** - * Converts this App to JSON. + * Converts this TxProof to JSON. * @function toJSON - * @memberof tendermint.version.App + * @memberof tendermint.types.TxProof * @instance * @returns {Object.} JSON object */ - App.prototype.toJSON = function toJSON() { + TxProof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return App; + return TxProof; })(); - version.Consensus = (function() { + types.ValidatorSet = (function() { /** - * Properties of a Consensus. - * @memberof tendermint.version - * @interface IConsensus - * @property {Long|null} [block] Consensus block - * @property {Long|null} [app] Consensus app + * Properties of a ValidatorSet. + * @memberof tendermint.types + * @interface IValidatorSet + * @property {Array.|null} [validators] ValidatorSet validators + * @property {tendermint.types.IValidator|null} [proposer] ValidatorSet proposer + * @property {Long|null} [total_voting_power] ValidatorSet total_voting_power */ /** - * Constructs a new Consensus. - * @memberof tendermint.version - * @classdesc Represents a Consensus. - * @implements IConsensus + * Constructs a new ValidatorSet. + * @memberof tendermint.types + * @classdesc Represents a ValidatorSet. + * @implements IValidatorSet * @constructor - * @param {tendermint.version.IConsensus=} [properties] Properties to set + * @param {tendermint.types.IValidatorSet=} [properties] Properties to set */ - function Consensus(properties) { + function ValidatorSet(properties) { + this.validators = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38603,76 +47136,92 @@ } /** - * Consensus block. - * @member {Long} block - * @memberof tendermint.version.Consensus + * ValidatorSet validators. + * @member {Array.} validators + * @memberof tendermint.types.ValidatorSet * @instance */ - Consensus.prototype.block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ValidatorSet.prototype.validators = $util.emptyArray; /** - * Consensus app. - * @member {Long} app - * @memberof tendermint.version.Consensus + * ValidatorSet proposer. + * @member {tendermint.types.IValidator|null|undefined} proposer + * @memberof tendermint.types.ValidatorSet * @instance */ - Consensus.prototype.app = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ValidatorSet.prototype.proposer = null; /** - * Encodes the specified Consensus message. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. + * ValidatorSet total_voting_power. + * @member {Long} total_voting_power + * @memberof tendermint.types.ValidatorSet + * @instance + */ + ValidatorSet.prototype.total_voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Encodes the specified ValidatorSet message. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. * @function encode - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static - * @param {tendermint.version.IConsensus} message Consensus message or plain object to encode + * @param {tendermint.types.IValidatorSet} message ValidatorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Consensus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.block != null && Object.hasOwnProperty.call(message, "block")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.block); - if (message.app != null && Object.hasOwnProperty.call(message, "app")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.app); + ValidatorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.validators != null && message.validators.length) + for (var i = 0; i < message.validators.length; ++i) + $root.tendermint.types.Validator.encode(message.validators[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) + $root.tendermint.types.Validator.encode(message.proposer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.total_voting_power != null && Object.hasOwnProperty.call(message, "total_voting_power")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.total_voting_power); return writer; }; /** - * Encodes the specified Consensus message, length delimited. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. + * Encodes the specified ValidatorSet message, length delimited. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. * @function encodeDelimited - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static - * @param {tendermint.version.IConsensus} message Consensus message or plain object to encode + * @param {tendermint.types.IValidatorSet} message ValidatorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Consensus.encodeDelimited = function encodeDelimited(message, writer) { + ValidatorSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Consensus message from the specified reader or buffer. + * Decodes a ValidatorSet message from the specified reader or buffer. * @function decode - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tendermint.version.Consensus} Consensus + * @returns {tendermint.types.ValidatorSet} ValidatorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Consensus.decode = function decode(reader, length) { + ValidatorSet.decode = 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.version.Consensus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.ValidatorSet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.block = reader.uint64(); + if (!(message.validators && message.validators.length)) + message.validators = []; + message.validators.push($root.tendermint.types.Validator.decode(reader, reader.uint32())); break; case 2: - message.app = reader.uint64(); + message.proposer = $root.tendermint.types.Validator.decode(reader, reader.uint32()); + break; + case 3: + message.total_voting_power = reader.int64(); break; default: reader.skipType(tag & 7); @@ -38683,169 +47232,164 @@ }; /** - * Decodes a Consensus message from the specified reader or buffer, length delimited. + * Decodes a ValidatorSet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.version.Consensus} Consensus + * @returns {tendermint.types.ValidatorSet} ValidatorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Consensus.decodeDelimited = function decodeDelimited(reader) { + ValidatorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Consensus message. + * Verifies a ValidatorSet message. * @function verify - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Consensus.verify = function verify(message) { + ValidatorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.block != null && message.hasOwnProperty("block")) - if (!$util.isInteger(message.block) && !(message.block && $util.isInteger(message.block.low) && $util.isInteger(message.block.high))) - return "block: integer|Long expected"; - if (message.app != null && message.hasOwnProperty("app")) - if (!$util.isInteger(message.app) && !(message.app && $util.isInteger(message.app.low) && $util.isInteger(message.app.high))) - return "app: integer|Long expected"; + if (message.validators != null && message.hasOwnProperty("validators")) { + if (!Array.isArray(message.validators)) + return "validators: array expected"; + for (var i = 0; i < message.validators.length; ++i) { + var error = $root.tendermint.types.Validator.verify(message.validators[i]); + if (error) + return "validators." + error; + } + } + if (message.proposer != null && message.hasOwnProperty("proposer")) { + var error = $root.tendermint.types.Validator.verify(message.proposer); + if (error) + return "proposer." + error; + } + if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) + if (!$util.isInteger(message.total_voting_power) && !(message.total_voting_power && $util.isInteger(message.total_voting_power.low) && $util.isInteger(message.total_voting_power.high))) + return "total_voting_power: integer|Long expected"; return null; }; /** - * Creates a Consensus message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static * @param {Object.} object Plain object - * @returns {tendermint.version.Consensus} Consensus + * @returns {tendermint.types.ValidatorSet} ValidatorSet */ - Consensus.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.version.Consensus) + ValidatorSet.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.ValidatorSet) return object; - var message = new $root.tendermint.version.Consensus(); - if (object.block != null) - if ($util.Long) - (message.block = $util.Long.fromValue(object.block)).unsigned = true; - else if (typeof object.block === "string") - message.block = parseInt(object.block, 10); - else if (typeof object.block === "number") - message.block = object.block; - else if (typeof object.block === "object") - message.block = new $util.LongBits(object.block.low >>> 0, object.block.high >>> 0).toNumber(true); - if (object.app != null) + var message = new $root.tendermint.types.ValidatorSet(); + if (object.validators) { + if (!Array.isArray(object.validators)) + throw TypeError(".tendermint.types.ValidatorSet.validators: array expected"); + message.validators = []; + for (var i = 0; i < object.validators.length; ++i) { + if (typeof object.validators[i] !== "object") + throw TypeError(".tendermint.types.ValidatorSet.validators: object expected"); + message.validators[i] = $root.tendermint.types.Validator.fromObject(object.validators[i]); + } + } + if (object.proposer != null) { + if (typeof object.proposer !== "object") + throw TypeError(".tendermint.types.ValidatorSet.proposer: object expected"); + message.proposer = $root.tendermint.types.Validator.fromObject(object.proposer); + } + if (object.total_voting_power != null) if ($util.Long) - (message.app = $util.Long.fromValue(object.app)).unsigned = true; - else if (typeof object.app === "string") - message.app = parseInt(object.app, 10); - else if (typeof object.app === "number") - message.app = object.app; - else if (typeof object.app === "object") - message.app = new $util.LongBits(object.app.low >>> 0, object.app.high >>> 0).toNumber(true); + (message.total_voting_power = $util.Long.fromValue(object.total_voting_power)).unsigned = false; + else if (typeof object.total_voting_power === "string") + message.total_voting_power = parseInt(object.total_voting_power, 10); + else if (typeof object.total_voting_power === "number") + message.total_voting_power = object.total_voting_power; + else if (typeof object.total_voting_power === "object") + message.total_voting_power = new $util.LongBits(object.total_voting_power.low >>> 0, object.total_voting_power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Consensus message. Also converts values to other types if specified. + * Creates a plain object from a ValidatorSet message. Also converts values to other types if specified. * @function toObject - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @static - * @param {tendermint.version.Consensus} message Consensus + * @param {tendermint.types.ValidatorSet} message ValidatorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Consensus.toObject = function toObject(message, options) { + ValidatorSet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.validators = []; if (options.defaults) { + object.proposer = null; if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.block = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.app = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + var long = new $util.Long(0, 0, false); + object.total_voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.app = options.longs === String ? "0" : 0; + object.total_voting_power = options.longs === String ? "0" : 0; } - if (message.block != null && message.hasOwnProperty("block")) - if (typeof message.block === "number") - object.block = options.longs === String ? String(message.block) : message.block; - else - object.block = options.longs === String ? $util.Long.prototype.toString.call(message.block) : options.longs === Number ? new $util.LongBits(message.block.low >>> 0, message.block.high >>> 0).toNumber(true) : message.block; - if (message.app != null && message.hasOwnProperty("app")) - if (typeof message.app === "number") - object.app = options.longs === String ? String(message.app) : message.app; + if (message.validators && message.validators.length) { + object.validators = []; + for (var j = 0; j < message.validators.length; ++j) + object.validators[j] = $root.tendermint.types.Validator.toObject(message.validators[j], options); + } + if (message.proposer != null && message.hasOwnProperty("proposer")) + object.proposer = $root.tendermint.types.Validator.toObject(message.proposer, options); + if (message.total_voting_power != null && message.hasOwnProperty("total_voting_power")) + if (typeof message.total_voting_power === "number") + object.total_voting_power = options.longs === String ? String(message.total_voting_power) : message.total_voting_power; else - object.app = options.longs === String ? $util.Long.prototype.toString.call(message.app) : options.longs === Number ? new $util.LongBits(message.app.low >>> 0, message.app.high >>> 0).toNumber(true) : message.app; + object.total_voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.total_voting_power) : options.longs === Number ? new $util.LongBits(message.total_voting_power.low >>> 0, message.total_voting_power.high >>> 0).toNumber() : message.total_voting_power; return object; }; /** - * Converts this Consensus to JSON. + * Converts this ValidatorSet to JSON. * @function toJSON - * @memberof tendermint.version.Consensus + * @memberof tendermint.types.ValidatorSet * @instance * @returns {Object.} JSON object */ - Consensus.prototype.toJSON = function toJSON() { + ValidatorSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Consensus; + return ValidatorSet; })(); - return version; - })(); - - return tendermint; - })(); - - $root.google = (function() { - - /** - * Namespace google. - * @exports google - * @namespace - */ - var google = {}; - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.FileDescriptorSet = (function() { + types.Validator = (function() { /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file + * Properties of a Validator. + * @memberof tendermint.types + * @interface IValidator + * @property {Uint8Array|null} [address] Validator address + * @property {tendermint.crypto.IPublicKey|null} [pub_key] Validator pub_key + * @property {Long|null} [voting_power] Validator voting_power + * @property {Long|null} [proposer_priority] Validator proposer_priority */ /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet + * Constructs a new Validator. + * @memberof tendermint.types + * @classdesc Represents a Validator. + * @implements IValidator * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @param {tendermint.types.IValidator=} [properties] Properties to set */ - function FileDescriptorSet(properties) { - this.file = []; + function Validator(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38853,66 +47397,102 @@ } /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet + * Validator address. + * @member {Uint8Array} address + * @memberof tendermint.types.Validator * @instance */ - FileDescriptorSet.prototype.file = $util.emptyArray; + Validator.prototype.address = $util.newBuffer([]); /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Validator pub_key. + * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key + * @memberof tendermint.types.Validator + * @instance + */ + Validator.prototype.pub_key = null; + + /** + * Validator voting_power. + * @member {Long} voting_power + * @memberof tendermint.types.Validator + * @instance + */ + Validator.prototype.voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Validator proposer_priority. + * @member {Long} proposer_priority + * @memberof tendermint.types.Validator + * @instance + */ + Validator.prototype.proposer_priority = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {tendermint.types.IValidator} message Validator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encode = function encode(message, writer) { + Validator.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(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address); + if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) + $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.voting_power != null && Object.hasOwnProperty.call(message, "voting_power")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.voting_power); + if (message.proposer_priority != null && Object.hasOwnProperty.call(message, "proposer_priority")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.proposer_priority); return writer; }; /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {tendermint.types.IValidator} message Validator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + Validator.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a Validator message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @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 + * @returns {tendermint.types.Validator} Validator * @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) { + Validator.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.Validator(); 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())); + message.address = reader.bytes(); + break; + case 2: + message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); + break; + case 3: + message.voting_power = reader.int64(); + break; + case 4: + message.proposer_priority = reader.int64(); break; default: reader.skipType(tag & 7); @@ -38923,380 +47503,252 @@ }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a Validator message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {tendermint.types.Validator} Validator * @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) { + Validator.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorSet message. + * Verifies a Validator message. * @function verify - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @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) { + Validator.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; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address))) + return "address: buffer expected"; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) { + var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); + if (error) + return "pub_key." + error; } + if (message.voting_power != null && message.hasOwnProperty("voting_power")) + if (!$util.isInteger(message.voting_power) && !(message.voting_power && $util.isInteger(message.voting_power.low) && $util.isInteger(message.voting_power.high))) + return "voting_power: integer|Long expected"; + if (message.proposer_priority != null && message.hasOwnProperty("proposer_priority")) + if (!$util.isInteger(message.proposer_priority) && !(message.proposer_priority && $util.isInteger(message.proposer_priority.low) && $util.isInteger(message.proposer_priority.high))) + return "proposer_priority: integer|Long expected"; return null; }; /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a Validator message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorSet + * @memberof tendermint.types.Validator * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {tendermint.types.Validator} Validator */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) + Validator.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.Validator) 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); + var message = new $root.tendermint.types.Validator(); + if (object.address != null) + if (typeof object.address === "string") + $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0); + else if (object.address.length) + message.address = object.address; + if (object.pub_key != null) { + if (typeof object.pub_key !== "object") + throw TypeError(".tendermint.types.Validator.pub_key: object expected"); + message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); } - return object; - }; - - /** - * 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 FileDescriptorSet; - })(); - - protobuf.FileDescriptorProto = (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 - */ - 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]]; - } - - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto public_dependency. - * @member {Array.} public_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.public_dependency = $util.emptyArray; - - /** - * FileDescriptorProto weak_dependency. - * @member {Array.} weak_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; + if (object.voting_power != null) + if ($util.Long) + (message.voting_power = $util.Long.fromValue(object.voting_power)).unsigned = false; + else if (typeof object.voting_power === "string") + message.voting_power = parseInt(object.voting_power, 10); + else if (typeof object.voting_power === "number") + message.voting_power = object.voting_power; + else if (typeof object.voting_power === "object") + message.voting_power = new $util.LongBits(object.voting_power.low >>> 0, object.voting_power.high >>> 0).toNumber(); + if (object.proposer_priority != null) + if ($util.Long) + (message.proposer_priority = $util.Long.fromValue(object.proposer_priority)).unsigned = false; + else if (typeof object.proposer_priority === "string") + message.proposer_priority = parseInt(object.proposer_priority, 10); + else if (typeof object.proposer_priority === "number") + message.proposer_priority = object.proposer_priority; + else if (typeof object.proposer_priority === "object") + message.proposer_priority = new $util.LongBits(object.proposer_priority.low >>> 0, object.proposer_priority.high >>> 0).toNumber(); + return message; + }; /** - * FileDescriptorProto message_type. - * @member {Array.} message_type - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Creates a plain object from a Validator message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.types.Validator + * @static + * @param {tendermint.types.Validator} message Validator + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FileDescriptorProto.prototype.message_type = $util.emptyArray; + Validator.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.address = ""; + else { + object.address = []; + if (options.bytes !== Array) + object.address = $util.newBuffer(object.address); + } + object.pub_key = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.voting_power = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.proposer_priority = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposer_priority = options.longs === String ? "0" : 0; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) + object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); + if (message.voting_power != null && message.hasOwnProperty("voting_power")) + if (typeof message.voting_power === "number") + object.voting_power = options.longs === String ? String(message.voting_power) : message.voting_power; + else + object.voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.voting_power) : options.longs === Number ? new $util.LongBits(message.voting_power.low >>> 0, message.voting_power.high >>> 0).toNumber() : message.voting_power; + if (message.proposer_priority != null && message.hasOwnProperty("proposer_priority")) + if (typeof message.proposer_priority === "number") + object.proposer_priority = options.longs === String ? String(message.proposer_priority) : message.proposer_priority; + else + object.proposer_priority = options.longs === String ? $util.Long.prototype.toString.call(message.proposer_priority) : options.longs === Number ? new $util.LongBits(message.proposer_priority.low >>> 0, message.proposer_priority.high >>> 0).toNumber() : message.proposer_priority; + return object; + }; /** - * FileDescriptorProto enum_type. - * @member {Array.} enum_type - * @memberof google.protobuf.FileDescriptorProto + * Converts this Validator to JSON. + * @function toJSON + * @memberof tendermint.types.Validator * @instance + * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.enum_type = $util.emptyArray; + Validator.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; + return Validator; + })(); + + types.SimpleValidator = (function() { /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Properties of a SimpleValidator. + * @memberof tendermint.types + * @interface ISimpleValidator + * @property {tendermint.crypto.IPublicKey|null} [pub_key] SimpleValidator pub_key + * @property {Long|null} [voting_power] SimpleValidator voting_power */ - FileDescriptorProto.prototype.extension = $util.emptyArray; /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance + * Constructs a new SimpleValidator. + * @memberof tendermint.types + * @classdesc Represents a SimpleValidator. + * @implements ISimpleValidator + * @constructor + * @param {tendermint.types.ISimpleValidator=} [properties] Properties to set */ - FileDescriptorProto.prototype.options = null; + function SimpleValidator(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 source_code_info. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info - * @memberof google.protobuf.FileDescriptorProto + * SimpleValidator pub_key. + * @member {tendermint.crypto.IPublicKey|null|undefined} pub_key + * @memberof tendermint.types.SimpleValidator * @instance */ - FileDescriptorProto.prototype.source_code_info = null; + SimpleValidator.prototype.pub_key = null; /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto + * SimpleValidator voting_power. + * @member {Long} voting_power + * @memberof tendermint.types.SimpleValidator * @instance */ - FileDescriptorProto.prototype.syntax = ""; + SimpleValidator.prototype.voting_power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified SimpleValidator message. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {tendermint.types.ISimpleValidator} message SimpleValidator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encode = function encode(message, writer) { + SimpleValidator.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); + if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) + $root.tendermint.crypto.PublicKey.encode(message.pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.voting_power != null && Object.hasOwnProperty.call(message, "voting_power")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.voting_power); return writer; }; /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified SimpleValidator message, length delimited. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {tendermint.types.ISimpleValidator} message SimpleValidator message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + SimpleValidator.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes a SimpleValidator message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @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 + * @returns {tendermint.types.SimpleValidator} SimpleValidator * @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) { + SimpleValidator.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.SimpleValidator(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.pub_key = $root.tendermint.crypto.PublicKey.decode(reader, reader.uint32()); 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(); + message.voting_power = reader.int64(); break; default: reader.skipType(tag & 7); @@ -39307,329 +47759,138 @@ }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a SimpleValidator message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {tendermint.types.SimpleValidator} SimpleValidator * @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) { + SimpleValidator.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorProto message. + * Verifies a SimpleValidator message. * @function verify - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @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) { + SimpleValidator.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"; - } - 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 "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.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 (message.pub_key != null && message.hasOwnProperty("pub_key")) { + var error = $root.tendermint.crypto.PublicKey.verify(message.pub_key); if (error) - return "source_code_info." + error; + return "pub_key." + error; } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; + if (message.voting_power != null && message.hasOwnProperty("voting_power")) + if (!$util.isInteger(message.voting_power) && !(message.voting_power && $util.isInteger(message.voting_power.low) && $util.isInteger(message.voting_power.high))) + return "voting_power: integer|Long expected"; return null; }; /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a SimpleValidator message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {tendermint.types.SimpleValidator} SimpleValidator */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) + SimpleValidator.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.SimpleValidator) 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; - } - 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.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); + var message = new $root.tendermint.types.SimpleValidator(); + if (object.pub_key != null) { + if (typeof object.pub_key !== "object") + throw TypeError(".tendermint.types.SimpleValidator.pub_key: object expected"); + message.pub_key = $root.tendermint.crypto.PublicKey.fromObject(object.pub_key); } - if (object.syntax != null) - message.syntax = String(object.syntax); + if (object.voting_power != null) + if ($util.Long) + (message.voting_power = $util.Long.fromValue(object.voting_power)).unsigned = false; + else if (typeof object.voting_power === "string") + message.voting_power = parseInt(object.voting_power, 10); + else if (typeof object.voting_power === "number") + message.voting_power = object.voting_power; + else if (typeof object.voting_power === "object") + message.voting_power = new $util.LongBits(object.voting_power.low >>> 0, object.voting_power.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a SimpleValidator message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {tendermint.types.SimpleValidator} message SimpleValidator * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorProto.toObject = function toObject(message, options) { + SimpleValidator.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]; + object.pub_key = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.voting_power = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.voting_power = options.longs === String ? "0" : 0; } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) + object.pub_key = $root.tendermint.crypto.PublicKey.toObject(message.pub_key, options); + if (message.voting_power != null && message.hasOwnProperty("voting_power")) + if (typeof message.voting_power === "number") + object.voting_power = options.longs === String ? String(message.voting_power) : message.voting_power; + else + object.voting_power = options.longs === String ? $util.Long.prototype.toString.call(message.voting_power) : options.longs === Number ? new $util.LongBits(message.voting_power.low >>> 0, message.voting_power.high >>> 0).toNumber() : message.voting_power; return object; }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this SimpleValidator to JSON. * @function toJSON - * @memberof google.protobuf.FileDescriptorProto + * @memberof tendermint.types.SimpleValidator * @instance * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.toJSON = function toJSON() { + SimpleValidator.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FileDescriptorProto; + return SimpleValidator; })(); - protobuf.DescriptorProto = (function() { + types.ConsensusParams = (function() { /** - * 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 + * Properties of a ConsensusParams. + * @memberof tendermint.types + * @interface IConsensusParams + * @property {tendermint.types.IBlockParams|null} [block] ConsensusParams block + * @property {tendermint.types.IEvidenceParams|null} [evidence] ConsensusParams evidence + * @property {tendermint.types.IValidatorParams|null} [validator] ConsensusParams validator + * @property {tendermint.types.IVersionParams|null} [version] ConsensusParams version */ /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto + * Constructs a new ConsensusParams. + * @memberof tendermint.types + * @classdesc Represents a ConsensusParams. + * @implements IConsensusParams * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @param {tendermint.types.IConsensusParams=} [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 = []; + function ConsensusParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39637,204 +47898,102 @@ } /** - * DescriptorProto name. - * @member {string} name - * @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 - */ - DescriptorProto.prototype.enum_type = $util.emptyArray; - - /** - * DescriptorProto extension_range. - * @member {Array.} extension_range - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension_range = $util.emptyArray; - - /** - * DescriptorProto oneof_decl. - * @member {Array.} oneof_decl - * @memberof google.protobuf.DescriptorProto + * ConsensusParams block. + * @member {tendermint.types.IBlockParams|null|undefined} block + * @memberof tendermint.types.ConsensusParams * @instance */ - DescriptorProto.prototype.oneof_decl = $util.emptyArray; + ConsensusParams.prototype.block = null; /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto + * ConsensusParams evidence. + * @member {tendermint.types.IEvidenceParams|null|undefined} evidence + * @memberof tendermint.types.ConsensusParams * @instance */ - DescriptorProto.prototype.options = null; + ConsensusParams.prototype.evidence = null; /** - * DescriptorProto reserved_range. - * @member {Array.} reserved_range - * @memberof google.protobuf.DescriptorProto + * ConsensusParams validator. + * @member {tendermint.types.IValidatorParams|null|undefined} validator + * @memberof tendermint.types.ConsensusParams * @instance */ - DescriptorProto.prototype.reserved_range = $util.emptyArray; + ConsensusParams.prototype.validator = null; /** - * DescriptorProto reserved_name. - * @member {Array.} reserved_name - * @memberof google.protobuf.DescriptorProto + * ConsensusParams version. + * @member {tendermint.types.IVersionParams|null|undefined} version + * @memberof tendermint.types.ConsensusParams * @instance */ - DescriptorProto.prototype.reserved_name = $util.emptyArray; + ConsensusParams.prototype.version = null; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {tendermint.types.IConsensusParams} message ConsensusParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encode = function encode(message, writer) { + ConsensusParams.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]); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + $root.tendermint.types.BlockParams.encode(message.block, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.evidence != null && Object.hasOwnProperty.call(message, "evidence")) + $root.tendermint.types.EvidenceParams.encode(message.evidence, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.validator != null && Object.hasOwnProperty.call(message, "validator")) + $root.tendermint.types.ValidatorParams.encode(message.validator, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.tendermint.types.VersionParams.encode(message.version, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {tendermint.types.IConsensusParams} message ConsensusParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes a ConsensusParams message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @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 + * @returns {tendermint.types.ConsensusParams} ConsensusParams * @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) { + ConsensusParams.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.ConsensusParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.block = $root.tendermint.types.BlockParams.decode(reader, reader.uint32()); 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())); + message.evidence = $root.tendermint.types.EvidenceParams.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())); + message.validator = $root.tendermint.types.ValidatorParams.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()); + message.version = $root.tendermint.types.VersionParams.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -39845,904 +48004,506 @@ }; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {tendermint.types.ConsensusParams} ConsensusParams * @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) { + ConsensusParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DescriptorProto message. + * Verifies a ConsensusParams message. * @function verify - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @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) { + ConsensusParams.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; - } - } - 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.block != null && message.hasOwnProperty("block")) { + var error = $root.tendermint.types.BlockParams.verify(message.block); + if (error) + return "block." + error; } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (message.evidence != null && message.hasOwnProperty("evidence")) { + var error = $root.tendermint.types.EvidenceParams.verify(message.evidence); if (error) - return "options." + error; + return "evidence." + 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.validator != null && message.hasOwnProperty("validator")) { + var error = $root.tendermint.types.ValidatorParams.verify(message.validator); + if (error) + return "validator." + 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"; + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.tendermint.types.VersionParams.verify(message.version); + if (error) + return "version." + error; } return null; }; /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {tendermint.types.ConsensusParams} ConsensusParams */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) + ConsensusParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.ConsensusParams) 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]); - } - } - 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]); - } + var message = new $root.tendermint.types.ConsensusParams(); + if (object.block != null) { + if (typeof object.block !== "object") + throw TypeError(".tendermint.types.ConsensusParams.block: object expected"); + message.block = $root.tendermint.types.BlockParams.fromObject(object.block); } - 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.evidence != null) { + if (typeof object.evidence !== "object") + throw TypeError(".tendermint.types.ConsensusParams.evidence: object expected"); + message.evidence = $root.tendermint.types.EvidenceParams.fromObject(object.evidence); } - 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 (object.validator != null) { + if (typeof object.validator !== "object") + throw TypeError(".tendermint.types.ConsensusParams.validator: object expected"); + message.validator = $root.tendermint.types.ValidatorParams.fromObject(object.validator); } - 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]); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".tendermint.types.ConsensusParams.version: object expected"); + message.version = $root.tendermint.types.VersionParams.fromObject(object.version); } return message; }; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {tendermint.types.ConsensusParams} message ConsensusParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DescriptorProto.toObject = function toObject(message, options) { + ConsensusParams.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]; + object.block = null; + object.evidence = null; + object.validator = null; + object.version = null; } + if (message.block != null && message.hasOwnProperty("block")) + object.block = $root.tendermint.types.BlockParams.toObject(message.block, options); + if (message.evidence != null && message.hasOwnProperty("evidence")) + object.evidence = $root.tendermint.types.EvidenceParams.toObject(message.evidence, options); + if (message.validator != null && message.hasOwnProperty("validator")) + object.validator = $root.tendermint.types.ValidatorParams.toObject(message.validator, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.tendermint.types.VersionParams.toObject(message.version, options); return object; }; /** - * Converts this DescriptorProto to JSON. + * Converts this ConsensusParams to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto + * @memberof tendermint.types.ConsensusParams * @instance * @returns {Object.} JSON object */ - DescriptorProto.prototype.toJSON = function toJSON() { + ConsensusParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - */ - - /** - * 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]]; - } + return ConsensusParams; + })(); - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; + types.BlockParams = (function() { - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; + /** + * Properties of a BlockParams. + * @memberof tendermint.types + * @interface IBlockParams + * @property {Long|null} [max_bytes] BlockParams max_bytes + * @property {Long|null} [max_gas] BlockParams max_gas + * @property {Long|null} [time_iota_ms] BlockParams time_iota_ms + */ - /** - * 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; - }; + /** + * Constructs a new BlockParams. + * @memberof tendermint.types + * @classdesc Represents a BlockParams. + * @implements IBlockParams + * @constructor + * @param {tendermint.types.IBlockParams=} [properties] Properties to set + */ + function BlockParams(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 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(); - }; + /** + * BlockParams max_bytes. + * @member {Long} max_bytes + * @memberof tendermint.types.BlockParams + * @instance + */ + BlockParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * 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; - }; + /** + * BlockParams max_gas. + * @member {Long} max_gas + * @memberof tendermint.types.BlockParams + * @instance + */ + BlockParams.prototype.max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * 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()); - }; + /** + * BlockParams time_iota_ms. + * @member {Long} time_iota_ms + * @memberof tendermint.types.BlockParams + * @instance + */ + BlockParams.prototype.time_iota_ms = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * 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; - }; + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * @function encode + * @memberof tendermint.types.BlockParams + * @static + * @param {tendermint.types.IBlockParams} message BlockParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlockParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_bytes); + if (message.max_gas != null && Object.hasOwnProperty.call(message, "max_gas")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.max_gas); + if (message.time_iota_ms != null && Object.hasOwnProperty.call(message, "time_iota_ms")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_iota_ms); + return writer; + }; - /** - * 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; - }; + /** + * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * @function encodeDelimited + * @memberof tendermint.types.BlockParams + * @static + * @param {tendermint.types.IBlockParams} message BlockParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlockParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; + /** + * Decodes a BlockParams message from the specified reader or buffer. + * @function decode + * @memberof tendermint.types.BlockParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tendermint.types.BlockParams} BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlockParams.decode = 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.types.BlockParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.max_bytes = reader.int64(); + break; + case 2: + message.max_gas = reader.int64(); + break; + case 3: + message.time_iota_ms = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; } - 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. - * @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); - }; - - return ExtensionRange; - })(); - - DescriptorProto.ReservedRange = (function() { - - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ - - /** - * 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]]; } - - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; - - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; - - /** - * 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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); - }; - - return ReservedRange; - })(); - - return DescriptorProto; - })(); - - protobuf.FieldDescriptorProto = (function() { + return message; + }; /** - * 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 + * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tendermint.types.BlockParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tendermint.types.BlockParams} BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + BlockParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * Verifies a BlockParams message. + * @function verify + * @memberof tendermint.types.BlockParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - 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]]; - } + BlockParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) + return "max_bytes: integer|Long expected"; + if (message.max_gas != null && message.hasOwnProperty("max_gas")) + if (!$util.isInteger(message.max_gas) && !(message.max_gas && $util.isInteger(message.max_gas.low) && $util.isInteger(message.max_gas.high))) + return "max_gas: integer|Long expected"; + if (message.time_iota_ms != null && message.hasOwnProperty("time_iota_ms")) + if (!$util.isInteger(message.time_iota_ms) && !(message.time_iota_ms && $util.isInteger(message.time_iota_ms.low) && $util.isInteger(message.time_iota_ms.high))) + return "time_iota_ms: integer|Long expected"; + return null; + }; /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tendermint.types.BlockParams + * @static + * @param {Object.} object Plain object + * @returns {tendermint.types.BlockParams} BlockParams */ - FieldDescriptorProto.prototype.name = ""; + BlockParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.BlockParams) + return object; + var message = new $root.tendermint.types.BlockParams(); + if (object.max_bytes != null) + if ($util.Long) + (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; + else if (typeof object.max_bytes === "string") + message.max_bytes = parseInt(object.max_bytes, 10); + else if (typeof object.max_bytes === "number") + message.max_bytes = object.max_bytes; + else if (typeof object.max_bytes === "object") + message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); + if (object.max_gas != null) + if ($util.Long) + (message.max_gas = $util.Long.fromValue(object.max_gas)).unsigned = false; + else if (typeof object.max_gas === "string") + message.max_gas = parseInt(object.max_gas, 10); + else if (typeof object.max_gas === "number") + message.max_gas = object.max_gas; + else if (typeof object.max_gas === "object") + message.max_gas = new $util.LongBits(object.max_gas.low >>> 0, object.max_gas.high >>> 0).toNumber(); + if (object.time_iota_ms != null) + if ($util.Long) + (message.time_iota_ms = $util.Long.fromValue(object.time_iota_ms)).unsigned = false; + else if (typeof object.time_iota_ms === "string") + message.time_iota_ms = parseInt(object.time_iota_ms, 10); + else if (typeof object.time_iota_ms === "number") + message.time_iota_ms = object.time_iota_ms; + else if (typeof object.time_iota_ms === "object") + message.time_iota_ms = new $util.LongBits(object.time_iota_ms.low >>> 0, object.time_iota_ms.high >>> 0).toNumber(); + return message; + }; /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * @function toObject + * @memberof tendermint.types.BlockParams + * @static + * @param {tendermint.types.BlockParams} message BlockParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FieldDescriptorProto.prototype.number = 0; + BlockParams.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.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_bytes = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_gas = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.time_iota_ms = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_iota_ms = options.longs === String ? "0" : 0; + } + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (typeof message.max_bytes === "number") + object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; + else + object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; + if (message.max_gas != null && message.hasOwnProperty("max_gas")) + if (typeof message.max_gas === "number") + object.max_gas = options.longs === String ? String(message.max_gas) : message.max_gas; + else + object.max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.max_gas) : options.longs === Number ? new $util.LongBits(message.max_gas.low >>> 0, message.max_gas.high >>> 0).toNumber() : message.max_gas; + if (message.time_iota_ms != null && message.hasOwnProperty("time_iota_ms")) + if (typeof message.time_iota_ms === "number") + object.time_iota_ms = options.longs === String ? String(message.time_iota_ms) : message.time_iota_ms; + else + object.time_iota_ms = options.longs === String ? $util.Long.prototype.toString.call(message.time_iota_ms) : options.longs === Number ? new $util.LongBits(message.time_iota_ms.low >>> 0, message.time_iota_ms.high >>> 0).toNumber() : message.time_iota_ms; + return object; + }; /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto + * Converts this BlockParams to JSON. + * @function toJSON + * @memberof tendermint.types.BlockParams * @instance + * @returns {Object.} JSON object */ - FieldDescriptorProto.prototype.label = 1; + BlockParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; + return BlockParams; + })(); - /** - * FieldDescriptorProto type_name. - * @member {string} type_name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type_name = ""; + types.EvidenceParams = (function() { /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Properties of an EvidenceParams. + * @memberof tendermint.types + * @interface IEvidenceParams + * @property {Long|null} [max_age_num_blocks] EvidenceParams max_age_num_blocks + * @property {google.protobuf.IDuration|null} [max_age_duration] EvidenceParams max_age_duration + * @property {Long|null} [max_bytes] EvidenceParams max_bytes */ - FieldDescriptorProto.prototype.extendee = ""; /** - * FieldDescriptorProto default_value. - * @member {string} default_value - * @memberof google.protobuf.FieldDescriptorProto - * @instance + * Constructs a new EvidenceParams. + * @memberof tendermint.types + * @classdesc Represents an EvidenceParams. + * @implements IEvidenceParams + * @constructor + * @param {tendermint.types.IEvidenceParams=} [properties] Properties to set */ - FieldDescriptorProto.prototype.default_value = ""; + function EvidenceParams(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 oneof_index. - * @member {number} oneof_index - * @memberof google.protobuf.FieldDescriptorProto + * EvidenceParams max_age_num_blocks. + * @member {Long} max_age_num_blocks + * @memberof tendermint.types.EvidenceParams * @instance */ - FieldDescriptorProto.prototype.oneof_index = 0; + EvidenceParams.prototype.max_age_num_blocks = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * FieldDescriptorProto json_name. - * @member {string} json_name - * @memberof google.protobuf.FieldDescriptorProto + * EvidenceParams max_age_duration. + * @member {google.protobuf.IDuration|null|undefined} max_age_duration + * @memberof tendermint.types.EvidenceParams * @instance */ - FieldDescriptorProto.prototype.json_name = ""; + EvidenceParams.prototype.max_age_duration = null; /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto + * EvidenceParams max_bytes. + * @member {Long} max_bytes + * @memberof tendermint.types.EvidenceParams * @instance */ - FieldDescriptorProto.prototype.options = null; + EvidenceParams.prototype.max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {tendermint.types.IEvidenceParams} message EvidenceParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encode = function encode(message, writer) { + EvidenceParams.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); + if (message.max_age_num_blocks != null && Object.hasOwnProperty.call(message, "max_age_num_blocks")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.max_age_num_blocks); + if (message.max_age_duration != null && Object.hasOwnProperty.call(message, "max_age_duration")) + $root.google.protobuf.Duration.encode(message.max_age_duration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.max_bytes != null && Object.hasOwnProperty.call(message, "max_bytes")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.max_bytes); return writer; }; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified EvidenceParams message, length delimited. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {tendermint.types.IEvidenceParams} message EvidenceParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EvidenceParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes an EvidenceParams message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @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 + * @returns {tendermint.types.EvidenceParams} EvidenceParams * @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) { + EvidenceParams.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.EvidenceParams(); 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(); + message.max_age_num_blocks = reader.int64(); 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(); + message.max_age_duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + case 3: + message.max_bytes = reader.int64(); break; default: reader.skipType(tag & 7); @@ -40753,359 +48514,158 @@ }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EvidenceParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {tendermint.types.EvidenceParams} EvidenceParams * @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) { + EvidenceParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldDescriptorProto message. + * Verifies an EvidenceParams message. * @function verify - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @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) { + EvidenceParams.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 (message.max_age_num_blocks != null && message.hasOwnProperty("max_age_num_blocks")) + if (!$util.isInteger(message.max_age_num_blocks) && !(message.max_age_num_blocks && $util.isInteger(message.max_age_num_blocks.low) && $util.isInteger(message.max_age_num_blocks.high))) + return "max_age_num_blocks: integer|Long expected"; + if (message.max_age_duration != null && message.hasOwnProperty("max_age_duration")) { + var error = $root.google.protobuf.Duration.verify(message.max_age_duration); if (error) - return "options." + error; + return "max_age_duration." + error; } + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (!$util.isInteger(message.max_bytes) && !(message.max_bytes && $util.isInteger(message.max_bytes.low) && $util.isInteger(message.max_bytes.high))) + return "max_bytes: integer|Long expected"; return null; }; /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EvidenceParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {tendermint.types.EvidenceParams} EvidenceParams */ - 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; - break; - case "TYPE_SINT32": - case 17: - message.type = 17; - break; - case "TYPE_SINT64": - case 18: - message.type = 18; - 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); + EvidenceParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.EvidenceParams) + return object; + var message = new $root.tendermint.types.EvidenceParams(); + if (object.max_age_num_blocks != null) + if ($util.Long) + (message.max_age_num_blocks = $util.Long.fromValue(object.max_age_num_blocks)).unsigned = false; + else if (typeof object.max_age_num_blocks === "string") + message.max_age_num_blocks = parseInt(object.max_age_num_blocks, 10); + else if (typeof object.max_age_num_blocks === "number") + message.max_age_num_blocks = object.max_age_num_blocks; + else if (typeof object.max_age_num_blocks === "object") + message.max_age_num_blocks = new $util.LongBits(object.max_age_num_blocks.low >>> 0, object.max_age_num_blocks.high >>> 0).toNumber(); + if (object.max_age_duration != null) { + if (typeof object.max_age_duration !== "object") + throw TypeError(".tendermint.types.EvidenceParams.max_age_duration: object expected"); + message.max_age_duration = $root.google.protobuf.Duration.fromObject(object.max_age_duration); } + if (object.max_bytes != null) + if ($util.Long) + (message.max_bytes = $util.Long.fromValue(object.max_bytes)).unsigned = false; + else if (typeof object.max_bytes === "string") + message.max_bytes = parseInt(object.max_bytes, 10); + else if (typeof object.max_bytes === "number") + message.max_bytes = object.max_bytes; + else if (typeof object.max_bytes === "object") + message.max_bytes = new $util.LongBits(object.max_bytes.low >>> 0, object.max_bytes.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EvidenceParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {tendermint.types.EvidenceParams} message EvidenceParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldDescriptorProto.toObject = function toObject(message, options) { + EvidenceParams.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 ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_age_num_blocks = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_age_num_blocks = options.longs === String ? "0" : 0; + object.max_age_duration = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_bytes = options.longs === String ? "0" : 0; } - 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; + if (message.max_age_num_blocks != null && message.hasOwnProperty("max_age_num_blocks")) + if (typeof message.max_age_num_blocks === "number") + object.max_age_num_blocks = options.longs === String ? String(message.max_age_num_blocks) : message.max_age_num_blocks; + else + object.max_age_num_blocks = options.longs === String ? $util.Long.prototype.toString.call(message.max_age_num_blocks) : options.longs === Number ? new $util.LongBits(message.max_age_num_blocks.low >>> 0, message.max_age_num_blocks.high >>> 0).toNumber() : message.max_age_num_blocks; + if (message.max_age_duration != null && message.hasOwnProperty("max_age_duration")) + object.max_age_duration = $root.google.protobuf.Duration.toObject(message.max_age_duration, options); + if (message.max_bytes != null && message.hasOwnProperty("max_bytes")) + if (typeof message.max_bytes === "number") + object.max_bytes = options.longs === String ? String(message.max_bytes) : message.max_bytes; + else + object.max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.max_bytes) : options.longs === Number ? new $util.LongBits(message.max_bytes.low >>> 0, message.max_bytes.high >>> 0).toNumber() : message.max_bytes; return object; }; /** - * Converts this FieldDescriptorProto to JSON. + * Converts this EvidenceParams to JSON. * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto + * @memberof tendermint.types.EvidenceParams * @instance * @returns {Object.} JSON object */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { + EvidenceParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * 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; - })(); - - /** - * 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; + return EvidenceParams; })(); - protobuf.OneofDescriptorProto = (function() { + types.ValidatorParams = (function() { /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + * Properties of a ValidatorParams. + * @memberof tendermint.types + * @interface IValidatorParams + * @property {Array.|null} [pub_key_types] ValidatorParams pub_key_types */ /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto + * Constructs a new ValidatorParams. + * @memberof tendermint.types + * @classdesc Represents a ValidatorParams. + * @implements IValidatorParams * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @param {tendermint.types.IValidatorParams=} [properties] Properties to set */ - function OneofDescriptorProto(properties) { + function ValidatorParams(properties) { + this.pub_key_types = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41113,76 +48673,66 @@ } /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; - - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto + * ValidatorParams pub_key_types. + * @member {Array.} pub_key_types + * @memberof tendermint.types.ValidatorParams * @instance */ - OneofDescriptorProto.prototype.options = null; + ValidatorParams.prototype.pub_key_types = $util.emptyArray; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {tendermint.types.IValidatorParams} message ValidatorParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encode = function encode(message, writer) { + ValidatorParams.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(); + if (message.pub_key_types != null && message.pub_key_types.length) + for (var i = 0; i < message.pub_key_types.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.pub_key_types[i]); return writer; }; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified ValidatorParams message, length delimited. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {tendermint.types.IValidatorParams} message ValidatorParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + ValidatorParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a ValidatorParams message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @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 + * @returns {tendermint.types.ValidatorParams} ValidatorParams * @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) { + ValidatorParams.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.ValidatorParams(); 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()); + if (!(message.pub_key_types && message.pub_key_types.length)) + message.pub_key_types = []; + message.pub_key_types.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -41193,124 +48743,119 @@ }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ValidatorParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {tendermint.types.ValidatorParams} ValidatorParams * @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) { + ValidatorParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofDescriptorProto message. + * Verifies a ValidatorParams message. * @function verify - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @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) { + ValidatorParams.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; + if (message.pub_key_types != null && message.hasOwnProperty("pub_key_types")) { + if (!Array.isArray(message.pub_key_types)) + return "pub_key_types: array expected"; + for (var i = 0; i < message.pub_key_types.length; ++i) + if (!$util.isString(message.pub_key_types[i])) + return "pub_key_types: string[] expected"; } return null; }; /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {tendermint.types.ValidatorParams} ValidatorParams */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) + ValidatorParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.ValidatorParams) 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); + var message = new $root.tendermint.types.ValidatorParams(); + if (object.pub_key_types) { + if (!Array.isArray(object.pub_key_types)) + throw TypeError(".tendermint.types.ValidatorParams.pub_key_types: array expected"); + message.pub_key_types = []; + for (var i = 0; i < object.pub_key_types.length; ++i) + message.pub_key_types[i] = String(object.pub_key_types[i]); } return message; }; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a ValidatorParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {tendermint.types.ValidatorParams} message ValidatorParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofDescriptorProto.toObject = function toObject(message, options) { + ValidatorParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; + if (options.arrays || options.defaults) + object.pub_key_types = []; + if (message.pub_key_types && message.pub_key_types.length) { + object.pub_key_types = []; + for (var j = 0; j < message.pub_key_types.length; ++j) + object.pub_key_types[j] = message.pub_key_types[j]; } - 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; }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this ValidatorParams to JSON. * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto + * @memberof tendermint.types.ValidatorParams * @instance * @returns {Object.} JSON object */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { + ValidatorParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofDescriptorProto; + return ValidatorParams; })(); - protobuf.EnumDescriptorProto = (function() { + types.VersionParams = (function() { /** - * 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 + * Properties of a VersionParams. + * @memberof tendermint.types + * @interface IVersionParams + * @property {Long|null} [app_version] VersionParams app_version */ /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * Constructs a new VersionParams. + * @memberof tendermint.types + * @classdesc Represents a VersionParams. + * @implements IVersionParams * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {tendermint.types.IVersionParams=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; + function VersionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41318,92 +48863,63 @@ } /** - * 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 + * VersionParams app_version. + * @member {Long} app_version + * @memberof tendermint.types.VersionParams * @instance */ - EnumDescriptorProto.prototype.options = null; + VersionParams.prototype.app_version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {tendermint.types.IVersionParams} message VersionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + VersionParams.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.app_version != null && Object.hasOwnProperty.call(message, "app_version")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.app_version); return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified VersionParams message, length delimited. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {tendermint.types.IVersionParams} message VersionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + VersionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a VersionParams message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @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 {tendermint.types.VersionParams} VersionParams * @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) { + VersionParams.decode = 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.tendermint.types.VersionParams(); 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()); + message.app_version = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -41414,149 +48930,122 @@ }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a VersionParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {tendermint.types.VersionParams} VersionParams * @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) { + VersionParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies a VersionParams message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @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) { + VersionParams.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 (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (!$util.isInteger(message.app_version) && !(message.app_version && $util.isInteger(message.app_version.low) && $util.isInteger(message.app_version.high))) + return "app_version: integer|Long expected"; return null; }; /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a VersionParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {tendermint.types.VersionParams} VersionParams */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) + VersionParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.VersionParams) 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]); - } - } - 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); - } + var message = new $root.tendermint.types.VersionParams(); + if (object.app_version != null) + if ($util.Long) + (message.app_version = $util.Long.fromValue(object.app_version)).unsigned = true; + else if (typeof object.app_version === "string") + message.app_version = parseInt(object.app_version, 10); + else if (typeof object.app_version === "number") + message.app_version = object.app_version; + else if (typeof object.app_version === "object") + message.app_version = new $util.LongBits(object.app_version.low >>> 0, object.app_version.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a VersionParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {tendermint.types.VersionParams} message VersionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + VersionParams.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); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.app_version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.app_version = options.longs === String ? "0" : 0; + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (typeof message.app_version === "number") + object.app_version = options.longs === String ? String(message.app_version) : message.app_version; + else + object.app_version = options.longs === String ? $util.Long.prototype.toString.call(message.app_version) : options.longs === Number ? new $util.LongBits(message.app_version.low >>> 0, message.app_version.high >>> 0).toNumber(true) : message.app_version; return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this VersionParams to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof tendermint.types.VersionParams * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + VersionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumDescriptorProto; + return VersionParams; })(); - protobuf.EnumValueDescriptorProto = (function() { + types.HashedParams = (function() { /** - * Properties of an EnumValueDescriptorProto. - * @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 + * Properties of a HashedParams. + * @memberof tendermint.types + * @interface IHashedParams + * @property {Long|null} [block_max_bytes] HashedParams block_max_bytes + * @property {Long|null} [block_max_gas] HashedParams block_max_gas */ /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * Constructs a new HashedParams. + * @memberof tendermint.types + * @classdesc Represents a HashedParams. + * @implements IHashedParams * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {tendermint.types.IHashedParams=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function HashedParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41564,89 +49053,76 @@ } /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto + * HashedParams block_max_bytes. + * @member {Long} block_max_bytes + * @memberof tendermint.types.HashedParams * @instance */ - EnumValueDescriptorProto.prototype.number = 0; + HashedParams.prototype.block_max_bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * HashedParams block_max_gas. + * @member {Long} block_max_gas + * @memberof tendermint.types.HashedParams * @instance */ - EnumValueDescriptorProto.prototype.options = null; + HashedParams.prototype.block_max_gas = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {tendermint.types.IHashedParams} message HashedParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encode = function encode(message, writer) { + HashedParams.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(); + if (message.block_max_bytes != null && Object.hasOwnProperty.call(message, "block_max_bytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.block_max_bytes); + if (message.block_max_gas != null && Object.hasOwnProperty.call(message, "block_max_gas")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.block_max_gas); return writer; }; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified HashedParams message, length delimited. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {tendermint.types.IHashedParams} message HashedParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + HashedParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes a HashedParams message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @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 + * @returns {tendermint.types.HashedParams} HashedParams * @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) { + HashedParams.decode = 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.types.HashedParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.block_max_bytes = reader.int64(); break; case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + message.block_max_gas = reader.int64(); break; default: reader.skipType(tag & 7); @@ -41657,132 +49133,157 @@ }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a HashedParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {tendermint.types.HashedParams} HashedParams * @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) { + HashedParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies a HashedParams message. * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueDescriptorProto.verify = function verify(message) { + HashedParams.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; - } + if (message.block_max_bytes != null && message.hasOwnProperty("block_max_bytes")) + if (!$util.isInteger(message.block_max_bytes) && !(message.block_max_bytes && $util.isInteger(message.block_max_bytes.low) && $util.isInteger(message.block_max_bytes.high))) + return "block_max_bytes: integer|Long expected"; + if (message.block_max_gas != null && message.hasOwnProperty("block_max_gas")) + if (!$util.isInteger(message.block_max_gas) && !(message.block_max_gas && $util.isInteger(message.block_max_gas.low) && $util.isInteger(message.block_max_gas.high))) + return "block_max_gas: integer|Long expected"; return null; }; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a HashedParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {tendermint.types.HashedParams} HashedParams */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + HashedParams.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.types.HashedParams) 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); - } + var message = new $root.tendermint.types.HashedParams(); + if (object.block_max_bytes != null) + if ($util.Long) + (message.block_max_bytes = $util.Long.fromValue(object.block_max_bytes)).unsigned = false; + else if (typeof object.block_max_bytes === "string") + message.block_max_bytes = parseInt(object.block_max_bytes, 10); + else if (typeof object.block_max_bytes === "number") + message.block_max_bytes = object.block_max_bytes; + else if (typeof object.block_max_bytes === "object") + message.block_max_bytes = new $util.LongBits(object.block_max_bytes.low >>> 0, object.block_max_bytes.high >>> 0).toNumber(); + if (object.block_max_gas != null) + if ($util.Long) + (message.block_max_gas = $util.Long.fromValue(object.block_max_gas)).unsigned = false; + else if (typeof object.block_max_gas === "string") + message.block_max_gas = parseInt(object.block_max_gas, 10); + else if (typeof object.block_max_gas === "number") + message.block_max_gas = object.block_max_gas; + else if (typeof object.block_max_gas === "object") + message.block_max_gas = new $util.LongBits(object.block_max_gas.low >>> 0, object.block_max_gas.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a HashedParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {tendermint.types.HashedParams} message HashedParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { + HashedParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.block_max_bytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.block_max_bytes = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.block_max_gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.block_max_gas = options.longs === String ? "0" : 0; } - 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); + if (message.block_max_bytes != null && message.hasOwnProperty("block_max_bytes")) + if (typeof message.block_max_bytes === "number") + object.block_max_bytes = options.longs === String ? String(message.block_max_bytes) : message.block_max_bytes; + else + object.block_max_bytes = options.longs === String ? $util.Long.prototype.toString.call(message.block_max_bytes) : options.longs === Number ? new $util.LongBits(message.block_max_bytes.low >>> 0, message.block_max_bytes.high >>> 0).toNumber() : message.block_max_bytes; + if (message.block_max_gas != null && message.hasOwnProperty("block_max_gas")) + if (typeof message.block_max_gas === "number") + object.block_max_gas = options.longs === String ? String(message.block_max_gas) : message.block_max_gas; + else + object.block_max_gas = options.longs === String ? $util.Long.prototype.toString.call(message.block_max_gas) : options.longs === Number ? new $util.LongBits(message.block_max_gas.low >>> 0, message.block_max_gas.high >>> 0).toNumber() : message.block_max_gas; return object; }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this HashedParams to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof tendermint.types.HashedParams * @instance * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + HashedParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueDescriptorProto; + return HashedParams; })(); - protobuf.ServiceDescriptorProto = (function() { + return types; + })(); + + tendermint.version = (function() { + + /** + * Namespace version. + * @memberof tendermint + * @namespace + */ + var version = {}; + + version.App = (function() { /** - * 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 + * Properties of an App. + * @memberof tendermint.version + * @interface IApp + * @property {Long|null} [protocol] App protocol + * @property {string|null} [software] App software */ /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto + * Constructs a new App. + * @memberof tendermint.version + * @classdesc Represents an App. + * @implements IApp * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @param {tendermint.version.IApp=} [properties] Properties to set */ - function ServiceDescriptorProto(properties) { - this.method = []; + function App(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41790,92 +49291,76 @@ } /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; - - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto + * App protocol. + * @member {Long} protocol + * @memberof tendermint.version.App * @instance */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + App.prototype.protocol = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * App software. + * @member {string} software + * @memberof tendermint.version.App * @instance */ - ServiceDescriptorProto.prototype.options = null; + App.prototype.software = ""; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified App message. Does not implicitly {@link tendermint.version.App.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {tendermint.version.IApp} message App message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + App.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.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.protocol); + if (message.software != null && Object.hasOwnProperty.call(message, "software")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.software); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified App message, length delimited. Does not implicitly {@link tendermint.version.App.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {tendermint.version.IApp} message App message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + App.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes an App message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @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 {tendermint.version.App} App * @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) { + App.decode = 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.tendermint.version.App(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.protocol = reader.uint64(); break; case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + message.software = reader.string(); break; default: reader.skipType(tag & 7); @@ -41886,152 +49371,131 @@ }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an App message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {tendermint.version.App} App * @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) { + App.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies an App message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @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) { + App.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 (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } + if (message.protocol != null && message.hasOwnProperty("protocol")) + if (!$util.isInteger(message.protocol) && !(message.protocol && $util.isInteger(message.protocol.low) && $util.isInteger(message.protocol.high))) + return "protocol: integer|Long expected"; + if (message.software != null && message.hasOwnProperty("software")) + if (!$util.isString(message.software)) + return "software: string expected"; return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an App message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {tendermint.version.App} App */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + App.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.version.App) return object; - 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.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); - } + var message = new $root.tendermint.version.App(); + if (object.protocol != null) + if ($util.Long) + (message.protocol = $util.Long.fromValue(object.protocol)).unsigned = true; + else if (typeof object.protocol === "string") + message.protocol = parseInt(object.protocol, 10); + else if (typeof object.protocol === "number") + message.protocol = object.protocol; + else if (typeof object.protocol === "object") + message.protocol = new $util.LongBits(object.protocol.low >>> 0, object.protocol.high >>> 0).toNumber(true); + if (object.software != null) + message.software = String(object.software); return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an App message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {tendermint.version.App} message App * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + App.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.method = []; if (options.defaults) { - object.name = ""; - object.options = null; - } - 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 ($util.Long) { + var long = new $util.Long(0, 0, true); + object.protocol = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.protocol = options.longs === String ? "0" : 0; + object.software = ""; } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + if (message.protocol != null && message.hasOwnProperty("protocol")) + if (typeof message.protocol === "number") + object.protocol = options.longs === String ? String(message.protocol) : message.protocol; + else + object.protocol = options.longs === String ? $util.Long.prototype.toString.call(message.protocol) : options.longs === Number ? new $util.LongBits(message.protocol.low >>> 0, message.protocol.high >>> 0).toNumber(true) : message.protocol; + if (message.software != null && message.hasOwnProperty("software")) + object.software = message.software; return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this App to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof tendermint.version.App * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + App.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDescriptorProto; + return App; })(); - protobuf.MethodDescriptorProto = (function() { + version.Consensus = (function() { /** - * 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 + * Properties of a Consensus. + * @memberof tendermint.version + * @interface IConsensus + * @property {Long|null} [block] Consensus block + * @property {Long|null} [app] Consensus app */ /** - * Constructs a new MethodDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto + * Constructs a new Consensus. + * @memberof tendermint.version + * @classdesc Represents a Consensus. + * @implements IConsensus * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @param {tendermint.version.IConsensus=} [properties] Properties to set */ - function MethodDescriptorProto(properties) { + function Consensus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42039,128 +49503,76 @@ } /** - * 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 = ""; - - /** - * MethodDescriptorProto output_type. - * @member {string} output_type - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.output_type = ""; - - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.options = null; - - /** - * MethodDescriptorProto client_streaming. - * @member {boolean} client_streaming - * @memberof google.protobuf.MethodDescriptorProto + * Consensus block. + * @member {Long} block + * @memberof tendermint.version.Consensus * @instance */ - MethodDescriptorProto.prototype.client_streaming = false; + Consensus.prototype.block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MethodDescriptorProto server_streaming. - * @member {boolean} server_streaming - * @memberof google.protobuf.MethodDescriptorProto + * Consensus app. + * @member {Long} app + * @memberof tendermint.version.Consensus * @instance */ - MethodDescriptorProto.prototype.server_streaming = false; + Consensus.prototype.app = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified Consensus message. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {tendermint.version.IConsensus} message Consensus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + Consensus.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.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); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.block); + if (message.app != null && Object.hasOwnProperty.call(message, "app")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.app); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified Consensus message, length delimited. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {tendermint.version.IConsensus} message Consensus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + Consensus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a Consensus message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @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 {tendermint.version.Consensus} Consensus * @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) { + Consensus.decode = 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.tendermint.version.Consensus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.block = reader.uint64(); 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(); + message.app = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -42171,204 +49583,169 @@ }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a Consensus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {tendermint.version.Consensus} Consensus * @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) { + Consensus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies a Consensus message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @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) { + Consensus.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.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"; + if (message.block != null && message.hasOwnProperty("block")) + if (!$util.isInteger(message.block) && !(message.block && $util.isInteger(message.block.low) && $util.isInteger(message.block.high))) + return "block: integer|Long expected"; + if (message.app != null && message.hasOwnProperty("app")) + if (!$util.isInteger(message.app) && !(message.app && $util.isInteger(message.app.low) && $util.isInteger(message.app.high))) + return "app: integer|Long expected"; return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a Consensus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {tendermint.version.Consensus} Consensus */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + Consensus.fromObject = function fromObject(object) { + if (object instanceof $root.tendermint.version.Consensus) return object; - 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); + var message = new $root.tendermint.version.Consensus(); + if (object.block != null) + if ($util.Long) + (message.block = $util.Long.fromValue(object.block)).unsigned = true; + else if (typeof object.block === "string") + message.block = parseInt(object.block, 10); + else if (typeof object.block === "number") + message.block = object.block; + else if (typeof object.block === "object") + message.block = new $util.LongBits(object.block.low >>> 0, object.block.high >>> 0).toNumber(true); + if (object.app != null) + if ($util.Long) + (message.app = $util.Long.fromValue(object.app)).unsigned = true; + else if (typeof object.app === "string") + message.app = parseInt(object.app, 10); + else if (typeof object.app === "number") + message.app = object.app; + else if (typeof object.app === "object") + message.app = new $util.LongBits(object.app.low >>> 0, object.app.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a Consensus message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {tendermint.version.Consensus} message Consensus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodDescriptorProto.toObject = function toObject(message, options) { + Consensus.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 ($util.Long) { + var long = new $util.Long(0, 0, true); + object.block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.block = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.app = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.app = options.longs === String ? "0" : 0; } - 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; + if (message.block != null && message.hasOwnProperty("block")) + if (typeof message.block === "number") + object.block = options.longs === String ? String(message.block) : message.block; + else + object.block = options.longs === String ? $util.Long.prototype.toString.call(message.block) : options.longs === Number ? new $util.LongBits(message.block.low >>> 0, message.block.high >>> 0).toNumber(true) : message.block; + if (message.app != null && message.hasOwnProperty("app")) + if (typeof message.app === "number") + object.app = options.longs === String ? String(message.app) : message.app; + else + object.app = options.longs === String ? $util.Long.prototype.toString.call(message.app) : options.longs === Number ? new $util.LongBits(message.app.low >>> 0, message.app.high >>> 0).toNumber(true) : message.app; return object; }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this Consensus to JSON. * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto + * @memberof tendermint.version.Consensus * @instance * @returns {Object.} JSON object */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { + Consensus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MethodDescriptorProto; + return Consensus; })(); - protobuf.FileOptions = (function() { + return version; + })(); + + return tendermint; + })(); + + $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 a FileOptions. + * Properties of a FileDescriptorSet. * @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 - * @property {Array.|null} [".cosmos_proto.declare_interface"] FileOptions .cosmos_proto.declare_interface - * @property {Array.|null} [".cosmos_proto.declare_scalar"] FileOptions .cosmos_proto.declare_scalar + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file */ /** - * Constructs a new FileOptions. + * Constructs a new FileDescriptorSet. * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ - function FileOptions(properties) { - this.uninterpreted_option = []; - this[".cosmos_proto.declare_interface"] = []; - this[".cosmos_proto.declare_scalar"] = []; + function FileDescriptorSet(properties) { + this.file = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42376,696 +49753,988 @@ } /** - * 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 + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet * @instance */ - FileOptions.prototype.optimize_for = 1; + FileDescriptorSet.prototype.file = $util.emptyArray; /** - * FileOptions go_package. - * @member {string} go_package - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.go_package = ""; + 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; + }; /** - * FileOptions cc_generic_services. - * @member {boolean} cc_generic_services - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.cc_generic_services = false; + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FileOptions java_generic_services. - * @member {boolean} java_generic_services - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.java_generic_services = false; + 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; + } + } + return message; + }; /** - * FileOptions py_generic_services. - * @member {boolean} py_generic_services - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.py_generic_services = false; + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.deprecated = false; + 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; + }; /** - * FileOptions cc_enable_arenas. - * @member {boolean} cc_enable_arenas - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.cc_enable_arenas = false; + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + 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; + }; /** - * FileOptions objc_class_prefix. - * @member {string} objc_class_prefix - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype.objc_class_prefix = ""; + 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; + }; /** - * FileOptions csharp_namespace. - * @member {string} csharp_namespace - * @memberof google.protobuf.FileOptions + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet * @instance + * @returns {Object.} JSON object */ - FileOptions.prototype.csharp_namespace = ""; + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpreted_option = $util.emptyArray; + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { /** - * FileOptions .gogoproto.goproto_getters_all. - * @member {boolean} .gogoproto.goproto_getters_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - 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 + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ - FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = false; + 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]]; + } /** - * FileOptions .gogoproto.goproto_stringer_all. - * @member {boolean} .gogoproto.goproto_stringer_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; + FileDescriptorProto.prototype.name = ""; /** - * FileOptions .gogoproto.verbose_equal_all. - * @member {boolean} .gogoproto.verbose_equal_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.verbose_equal_all"] = false; + FileDescriptorProto.prototype["package"] = ""; /** - * FileOptions .gogoproto.face_all. - * @member {boolean} .gogoproto.face_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.face_all"] = false; + FileDescriptorProto.prototype.dependency = $util.emptyArray; /** - * FileOptions .gogoproto.gostring_all. - * @member {boolean} .gogoproto.gostring_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto public_dependency. + * @member {Array.} public_dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.gostring_all"] = false; + FileDescriptorProto.prototype.public_dependency = $util.emptyArray; /** - * FileOptions .gogoproto.populate_all. - * @member {boolean} .gogoproto.populate_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto weak_dependency. + * @member {Array.} weak_dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.populate_all"] = false; + FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; /** - * FileOptions .gogoproto.stringer_all. - * @member {boolean} .gogoproto.stringer_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto message_type. + * @member {Array.} message_type + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.stringer_all"] = false; + FileDescriptorProto.prototype.message_type = $util.emptyArray; /** - * FileOptions .gogoproto.onlyone_all. - * @member {boolean} .gogoproto.onlyone_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.onlyone_all"] = false; + FileDescriptorProto.prototype.enum_type = $util.emptyArray; /** - * FileOptions .gogoproto.equal_all. - * @member {boolean} .gogoproto.equal_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.equal_all"] = false; + FileDescriptorProto.prototype.service = $util.emptyArray; /** - * FileOptions .gogoproto.description_all. - * @member {boolean} .gogoproto.description_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.description_all"] = false; + FileDescriptorProto.prototype.extension = $util.emptyArray; /** - * FileOptions .gogoproto.testgen_all. - * @member {boolean} .gogoproto.testgen_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.testgen_all"] = false; + FileDescriptorProto.prototype.options = null; /** - * FileOptions .gogoproto.benchgen_all. - * @member {boolean} .gogoproto.benchgen_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto source_code_info. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.benchgen_all"] = false; + FileDescriptorProto.prototype.source_code_info = null; /** - * FileOptions .gogoproto.marshaler_all. - * @member {boolean} .gogoproto.marshaler_all - * @memberof google.protobuf.FileOptions + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.marshaler_all"] = false; + FileDescriptorProto.prototype.syntax = ""; /** - * FileOptions .gogoproto.unmarshaler_all. - * @member {boolean} .gogoproto.unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.unmarshaler_all"] = false; + 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; + }; /** - * FileOptions .gogoproto.stable_marshaler_all. - * @member {boolean} .gogoproto.stable_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.stable_marshaler_all"] = false; + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FileOptions .gogoproto.sizer_all. - * @member {boolean} .gogoproto.sizer_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.sizer_all"] = false; + 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; + }; /** - * FileOptions .gogoproto.goproto_enum_stringer_all. - * @member {boolean} .gogoproto.goproto_enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = false; + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FileOptions .gogoproto.enum_stringer_all. - * @member {boolean} .gogoproto.enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.enum_stringer_all"] = false; + 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"; + } + 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 "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.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; + }; /** - * FileOptions .gogoproto.unsafe_marshaler_all. - * @member {boolean} .gogoproto.unsafe_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = false; + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + 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; + } + 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.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; + }; /** - * FileOptions .gogoproto.unsafe_unmarshaler_all. - * @member {boolean} .gogoproto.unsafe_unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; + 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; + }; /** - * FileOptions .gogoproto.goproto_extensions_map_all. - * @member {boolean} .gogoproto.goproto_extensions_map_all - * @memberof google.protobuf.FileOptions + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto * @instance + * @returns {Object.} JSON object */ - FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { /** - * FileOptions .gogoproto.goproto_unrecognized_all. - * @member {boolean} .gogoproto.goproto_unrecognized_all - * @memberof google.protobuf.FileOptions - * @instance + * 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 */ - FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; /** - * FileOptions .gogoproto.gogoproto_import. - * @member {boolean} .gogoproto.gogoproto_import - * @memberof google.protobuf.FileOptions - * @instance + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set */ - FileOptions.prototype[".gogoproto.gogoproto_import"] = false; + 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]]; + } /** - * FileOptions .gogoproto.protosizer_all. - * @member {boolean} .gogoproto.protosizer_all - * @memberof google.protobuf.FileOptions + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.protosizer_all"] = false; + DescriptorProto.prototype.name = ""; /** - * FileOptions .gogoproto.compare_all. - * @member {boolean} .gogoproto.compare_all - * @memberof google.protobuf.FileOptions + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.compare_all"] = false; + DescriptorProto.prototype.field = $util.emptyArray; /** - * FileOptions .gogoproto.typedecl_all. - * @member {boolean} .gogoproto.typedecl_all - * @memberof google.protobuf.FileOptions + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.typedecl_all"] = false; + DescriptorProto.prototype.extension = $util.emptyArray; /** - * FileOptions .gogoproto.enumdecl_all. - * @member {boolean} .gogoproto.enumdecl_all - * @memberof google.protobuf.FileOptions + * DescriptorProto nested_type. + * @member {Array.} nested_type + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.enumdecl_all"] = false; + DescriptorProto.prototype.nested_type = $util.emptyArray; /** - * FileOptions .gogoproto.goproto_registration. - * @member {boolean} .gogoproto.goproto_registration - * @memberof google.protobuf.FileOptions + * DescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_registration"] = false; + DescriptorProto.prototype.enum_type = $util.emptyArray; /** - * FileOptions .gogoproto.messagename_all. - * @member {boolean} .gogoproto.messagename_all - * @memberof google.protobuf.FileOptions + * DescriptorProto extension_range. + * @member {Array.} extension_range + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.messagename_all"] = false; + DescriptorProto.prototype.extension_range = $util.emptyArray; /** - * FileOptions .gogoproto.goproto_sizecache_all. - * @member {boolean} .gogoproto.goproto_sizecache_all - * @memberof google.protobuf.FileOptions + * DescriptorProto oneof_decl. + * @member {Array.} oneof_decl + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; + DescriptorProto.prototype.oneof_decl = $util.emptyArray; /** - * FileOptions .gogoproto.goproto_unkeyed_all. - * @member {boolean} .gogoproto.goproto_unkeyed_all - * @memberof google.protobuf.FileOptions + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; + DescriptorProto.prototype.options = null; /** - * FileOptions .cosmos_proto.declare_interface. - * @member {Array.} .cosmos_proto.declare_interface - * @memberof google.protobuf.FileOptions + * DescriptorProto reserved_range. + * @member {Array.} reserved_range + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".cosmos_proto.declare_interface"] = $util.emptyArray; + DescriptorProto.prototype.reserved_range = $util.emptyArray; /** - * FileOptions .cosmos_proto.declare_scalar. - * @member {Array.} .cosmos_proto.declare_scalar - * @memberof google.protobuf.FileOptions + * DescriptorProto reserved_name. + * @member {Array.} reserved_name + * @memberof google.protobuf.DescriptorProto * @instance */ - FileOptions.prototype[".cosmos_proto.declare_scalar"] = $util.emptyArray; + DescriptorProto.prototype.reserved_name = $util.emptyArray; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions 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 */ - FileOptions.encode = function encode(message, writer) { + DescriptorProto.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[".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(); + 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; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.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.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions + * @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.FileOptions} FileOptions - * @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) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - 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 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(); + * @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(); + }; + + /** + * 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 63029: - message[".gogoproto.compare_all"] = reader.bool(); + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; - case 63030: - message[".gogoproto.typedecl_all"] = reader.bool(); + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; - case 63031: - message[".gogoproto.enumdecl_all"] = reader.bool(); + 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 63032: - message[".gogoproto.goproto_registration"] = reader.bool(); + 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 63033: - message[".gogoproto.messagename_all"] = reader.bool(); + 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 63034: - message[".gogoproto.goproto_sizecache_all"] = 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 63035: - message[".gogoproto.goproto_unkeyed_all"] = reader.bool(); + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); 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())); + 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 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())); + 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); @@ -43076,1085 +50745,904 @@ }; /** - * Decodes a FileOptions 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.FileOptions + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions + * @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 */ - FileOptions.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 FileOptions message. + * Verifies a DescriptorProto message. * @function verify - * @memberof google.protobuf.FileOptions + * @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 */ - FileOptions.verify = function verify(message) { + DescriptorProto.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.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; } - 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 (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 "uninterpreted_option." + error; + return "extension." + 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"; - 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 (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 ".cosmos_proto.declare_interface." + error; + return "nested_type." + 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 (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 ".cosmos_proto.declare_scalar." + 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.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.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 FileOptions 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.FileOptions + * @memberof google.protobuf.DescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) 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": - 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; + 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]); + } } - 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.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[".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.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[".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]); + 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 (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; }; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.FileOptions} message FileOptions + * @param {google.protobuf.DescriptorProto} message DescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileOptions.toObject = function toObject(message, options) { + DescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.uninterpreted_option = []; - object[".cosmos_proto.declare_interface"] = []; - object[".cosmos_proto.declare_scalar"] = []; + 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.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; + object.name = ""; + object.options = null; } - 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.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[".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.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[".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); + 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 FileOptions to JSON. + * Converts this DescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.DescriptorProto * @instance * @returns {Object.} JSON object */ - FileOptions.prototype.toJSON = function toJSON() { + DescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * 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; - })(); + DescriptorProto.ExtensionRange = (function() { - return FileOptions; - })(); + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ - protobuf.MessageOptions = (function() { + /** + * 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]]; + } - /** - * Properties of a MessageOptions. - * @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 {Array.|null} [".cosmos_proto.implements_interface"] MessageOptions .cosmos_proto.implements_interface - */ + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - */ - 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) - this[keys[i]] = properties[keys[i]]; - } + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; - /** - * MessageOptions message_set_wire_format. - * @member {boolean} message_set_wire_format - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.message_set_wire_format = false; + /** + * 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; + }; - /** - * MessageOptions no_standard_descriptor_accessor. - * @member {boolean} no_standard_descriptor_accessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.no_standard_descriptor_accessor = false; + /** + * 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(); + }; - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = 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; + }; - /** - * MessageOptions map_entry. - * @member {boolean} map_entry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.map_entry = 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; - /** - * MessageOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpreted_option = $util.emptyArray; + /** + * 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); + }; - /** - * MessageOptions .gogoproto.goproto_getters. - * @member {boolean} .gogoproto.goproto_getters - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_getters"] = false; + return ExtensionRange; + })(); - /** - * MessageOptions .gogoproto.goproto_stringer. - * @member {boolean} .gogoproto.goproto_stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; + DescriptorProto.ReservedRange = (function() { - /** - * MessageOptions .gogoproto.verbose_equal. - * @member {boolean} .gogoproto.verbose_equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.verbose_equal"] = false; + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ - /** - * MessageOptions .gogoproto.face. - * @member {boolean} .gogoproto.face - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.face"] = 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]]; + } - /** - * MessageOptions .gogoproto.gostring. - * @member {boolean} .gogoproto.gostring - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.gostring"] = false; + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; - /** - * MessageOptions .gogoproto.populate. - * @member {boolean} .gogoproto.populate - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.populate"] = false; + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; - /** - * MessageOptions .gogoproto.stringer. - * @member {boolean} .gogoproto.stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.stringer"] = 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; + }; - /** - * MessageOptions .gogoproto.onlyone. - * @member {boolean} .gogoproto.onlyone - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.onlyone"] = false; + /** + * 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(); + }; - /** - * MessageOptions .gogoproto.equal. - * @member {boolean} .gogoproto.equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.equal"] = false; + /** + * 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; + }; - /** - * MessageOptions .gogoproto.description. - * @member {boolean} .gogoproto.description - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.description"] = false; + /** + * 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()); + }; - /** - * MessageOptions .gogoproto.testgen. - * @member {boolean} .gogoproto.testgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.testgen"] = 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; + }; - /** - * MessageOptions .gogoproto.benchgen. - * @member {boolean} .gogoproto.benchgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.benchgen"] = 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; + }; - /** - * MessageOptions .gogoproto.marshaler. - * @member {boolean} .gogoproto.marshaler - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.marshaler"] = 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; + }; - /** - * MessageOptions .gogoproto.unmarshaler. - * @member {boolean} .gogoproto.unmarshaler - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.unmarshaler"] = 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); + }; - /** - * MessageOptions .gogoproto.stable_marshaler. - * @member {boolean} .gogoproto.stable_marshaler - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; + return ReservedRange; + })(); - /** - * MessageOptions .gogoproto.sizer. - * @member {boolean} .gogoproto.sizer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.sizer"] = false; + return DescriptorProto; + })(); - /** - * MessageOptions .gogoproto.unsafe_marshaler. - * @member {boolean} .gogoproto.unsafe_marshaler - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; + protobuf.FieldDescriptorProto = (function() { /** - * MessageOptions .gogoproto.unsafe_unmarshaler. - * @member {boolean} .gogoproto.unsafe_unmarshaler - * @memberof google.protobuf.MessageOptions - * @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 */ - MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; /** - * MessageOptions .gogoproto.goproto_extensions_map. - * @member {boolean} .gogoproto.goproto_extensions_map - * @memberof google.protobuf.MessageOptions - * @instance + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set */ - MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = 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]]; + } /** - * MessageOptions .gogoproto.goproto_unrecognized. - * @member {boolean} .gogoproto.goproto_unrecognized - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; + FieldDescriptorProto.prototype.name = ""; /** - * MessageOptions .gogoproto.protosizer. - * @member {boolean} .gogoproto.protosizer - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.protosizer"] = false; + FieldDescriptorProto.prototype.number = 0; /** - * MessageOptions .gogoproto.compare. - * @member {boolean} .gogoproto.compare - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.compare"] = false; + FieldDescriptorProto.prototype.label = 1; /** - * MessageOptions .gogoproto.typedecl. - * @member {boolean} .gogoproto.typedecl - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.typedecl"] = false; + FieldDescriptorProto.prototype.type = 1; /** - * MessageOptions .gogoproto.messagename. - * @member {boolean} .gogoproto.messagename - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto type_name. + * @member {string} type_name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.messagename"] = false; + FieldDescriptorProto.prototype.type_name = ""; /** - * MessageOptions .gogoproto.goproto_sizecache. - * @member {boolean} .gogoproto.goproto_sizecache - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.goproto_sizecache"] = false; + FieldDescriptorProto.prototype.extendee = ""; /** - * MessageOptions .gogoproto.goproto_unkeyed. - * @member {boolean} .gogoproto.goproto_unkeyed - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto default_value. + * @member {string} default_value + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; + FieldDescriptorProto.prototype.default_value = ""; /** - * MessageOptions .cosmos_proto.implements_interface. - * @member {Array.} .cosmos_proto.implements_interface - * @memberof google.protobuf.MessageOptions + * FieldDescriptorProto oneof_index. + * @member {number} oneof_index + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - MessageOptions.prototype[".cosmos_proto.implements_interface"] = $util.emptyArray; + FieldDescriptorProto.prototype.oneof_index = 0; - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.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.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]); + /** + * FieldDescriptorProto json_name. + * @member {string} json_name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.json_name = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * 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; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.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.MessageOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions 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 */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MessageOptions + * @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.MessageOptions} MessageOptions + * @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 */ - MessageOptions.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.MessageOptions(); + 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.message_set_wire_format = reader.bool(); - break; - case 2: - message.no_standard_descriptor_accessor = reader.bool(); + message.name = reader.string(); 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(); + message.number = reader.int32(); break; - case 64026: - message[".gogoproto.goproto_unrecognized"] = reader.bool(); + case 4: + message.label = reader.int32(); break; - case 64028: - message[".gogoproto.protosizer"] = reader.bool(); + case 5: + message.type = reader.int32(); break; - case 64029: - message[".gogoproto.compare"] = reader.bool(); + case 6: + message.type_name = reader.string(); break; - case 64030: - message[".gogoproto.typedecl"] = reader.bool(); + case 2: + message.extendee = reader.string(); break; - case 64033: - message[".gogoproto.messagename"] = reader.bool(); + case 7: + message.default_value = reader.string(); break; - case 64034: - message[".gogoproto.goproto_sizecache"] = reader.bool(); + case 9: + message.oneof_index = reader.int32(); break; - case 64035: - message[".gogoproto.goproto_unkeyed"] = reader.bool(); + case 10: + message.json_name = reader.string(); 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()); + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -44165,409 +51653,359 @@ }; /** - * Decodes a MessageOptions 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.MessageOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions + * @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 */ - MessageOptions.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 MessageOptions message. + * Verifies a FieldDescriptorProto message. * @function verify - * @memberof google.protobuf.MessageOptions + * @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 */ - MessageOptions.verify = function verify(message) { + FieldDescriptorProto.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 (error) - return "uninterpreted_option." + error; + 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[".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.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; }; /** - * Creates a MessageOptions 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.MessageOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) 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.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; } - 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]); + 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 (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; }; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageOptions.toObject = function toObject(message, options) { + FieldDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpreted_option = []; - object[".cosmos_proto.implements_interface"] = []; - } 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; - } - 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[".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]; + 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 MessageOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.FieldDescriptorProto * @instance * @returns {Object.} JSON object */ - MessageOptions.prototype.toJSON = function toJSON() { + FieldDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageOptions; + /** + * 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; + })(); + + /** + * 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.FieldOptions = (function() { + protobuf.OneofDescriptorProto = (function() { /** - * Properties of a FieldOptions. + * Properties of an OneofDescriptorProto. * @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 - * @property {string|null} [".cosmos_proto.scalar"] FieldOptions .cosmos_proto.scalar + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options */ /** - * Constructs a new FieldOptions. + * Constructs a new OneofDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set */ - function FieldOptions(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) @@ -44575,339 +52013,297 @@ } /** - * 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 - * @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 + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.nullable"] = false; + OneofDescriptorProto.prototype.name = ""; /** - * FieldOptions .gogoproto.embed. - * @member {boolean} .gogoproto.embed - * @memberof google.protobuf.FieldOptions + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.embed"] = false; + OneofDescriptorProto.prototype.options = null; /** - * FieldOptions .gogoproto.customtype. - * @member {string} .gogoproto.customtype - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.customtype"] = ""; + 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; + }; /** - * FieldOptions .gogoproto.customname. - * @member {string} .gogoproto.customname - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.customname"] = ""; + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FieldOptions .gogoproto.jsontag. - * @member {string} .gogoproto.jsontag - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.jsontag"] = ""; + 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; + }; /** - * FieldOptions .gogoproto.moretags. - * @member {string} .gogoproto.moretags - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.moretags"] = ""; + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FieldOptions .gogoproto.casttype. - * @member {string} .gogoproto.casttype - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.casttype"] = ""; + 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; + }; /** - * FieldOptions .gogoproto.castkey. - * @member {string} .gogoproto.castkey - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.castkey"] = ""; + 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; + }; /** - * FieldOptions .gogoproto.castvalue. - * @member {string} .gogoproto.castvalue - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.castvalue"] = ""; + 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; + }; /** - * FieldOptions .gogoproto.stdtime. - * @member {boolean} .gogoproto.stdtime - * @memberof google.protobuf.FieldOptions + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto * @instance + * @returns {Object.} JSON object */ - FieldOptions.prototype[".gogoproto.stdtime"] = false; + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { /** - * FieldOptions .gogoproto.stdduration. - * @member {boolean} .gogoproto.stdduration - * @memberof google.protobuf.FieldOptions - * @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 */ - FieldOptions.prototype[".gogoproto.stdduration"] = false; /** - * FieldOptions .gogoproto.wktpointer. - * @member {boolean} .gogoproto.wktpointer - * @memberof google.protobuf.FieldOptions - * @instance + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ - FieldOptions.prototype[".gogoproto.wktpointer"] = 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]]; + } /** - * FieldOptions .gogoproto.castrepeated. - * @member {string} .gogoproto.castrepeated - * @memberof google.protobuf.FieldOptions + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.castrepeated"] = ""; + EnumDescriptorProto.prototype.name = ""; /** - * FieldOptions .cosmos_proto.accepts_interface. - * @member {string} .cosmos_proto.accepts_interface - * @memberof google.protobuf.FieldOptions + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; + EnumDescriptorProto.prototype.value = $util.emptyArray; /** - * FieldOptions .cosmos_proto.scalar. - * @member {string} .cosmos_proto.scalar - * @memberof google.protobuf.FieldOptions + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - FieldOptions.prototype[".cosmos_proto.scalar"] = ""; + EnumDescriptorProto.prototype.options = null; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions 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 */ - FieldOptions.encode = function encode(message, writer) { + EnumDescriptorProto.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[".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.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 FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.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.FieldOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions 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 */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @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.FieldOptions} FieldOptions + * @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 */ - FieldOptions.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.FieldOptions(); + 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.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.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 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(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -44918,363 +52314,149 @@ }; /** - * Decodes a FieldOptions 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.FieldOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions + * @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 */ - FieldOptions.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 FieldOptions message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.protobuf.FieldOptions + * @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 */ - FieldOptions.verify = function verify(message) { + EnumDescriptorProto.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.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.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.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.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 an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) 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.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.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.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 FieldOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.FieldOptions} message FieldOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - 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"] = ""; - } - 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"]; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.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); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; /** - * Converts this FieldOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.EnumDescriptorProto * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + EnumDescriptorProto.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; - })(); - - /** - * 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 FieldOptions; + return EnumDescriptorProto; })(); - protobuf.OneofOptions = (function() { + protobuf.EnumValueDescriptorProto = (function() { /** - * Properties of an OneofOptions. + * Properties of an EnumValueDescriptorProto. * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option + * @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 OneofOptions. + * Constructs a new EnumValueDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ - function OneofOptions(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) @@ -45282,66 +52464,89 @@ } /** - * OneofOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.OneofOptions + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - OneofOptions.prototype.uninterpreted_option = $util.emptyArray; + EnumValueDescriptorProto.prototype.name = ""; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @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.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer) { + EnumValueDescriptorProto.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.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 OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofOptions + * @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.OneofOptions} OneofOptions + * @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 */ - OneofOptions.decode = function decode(reader, length) { + 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.OneofOptions(); + 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 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.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45352,132 +52557,132 @@ }; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions + * @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 */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofOptions message. + * Verifies an EnumValueDescriptorProto message. * @function verify - * @memberof google.protobuf.OneofOptions + * @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 */ - OneofOptions.verify = function verify(message) { + EnumValueDescriptorProto.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.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; }; /** - * Creates an OneofOptions 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. * @function fromObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) 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.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; }; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options) { + EnumValueDescriptorProto.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.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; }; /** - * Converts this OneofOptions to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.EnumValueDescriptorProto * @instance * @returns {Object.} JSON object */ - OneofOptions.prototype.toJSON = function toJSON() { + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofOptions; + return EnumValueDescriptorProto; })(); - protobuf.EnumOptions = (function() { + protobuf.ServiceDescriptorProto = (function() { /** - * Properties of an EnumOptions. + * Properties of a ServiceDescriptorProto. * @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 IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ /** - * Constructs a new EnumOptions. + * Constructs a new ServiceDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ - function EnumOptions(properties) { - this.uninterpreted_option = []; + function ServiceDescriptorProto(properties) { + this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45485,157 +52690,92 @@ } /** - * EnumOptions allow_alias. - * @member {boolean} allow_alias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allow_alias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.uninterpreted_option = $util.emptyArray; - - /** - * EnumOptions .gogoproto.goproto_enum_prefix. - * @member {boolean} .gogoproto.goproto_enum_prefix - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; - - /** - * EnumOptions .gogoproto.goproto_enum_stringer. - * @member {boolean} .gogoproto.goproto_enum_stringer - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; - - /** - * EnumOptions .gogoproto.enum_stringer. - * @member {boolean} .gogoproto.enum_stringer - * @memberof google.protobuf.EnumOptions + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - EnumOptions.prototype[".gogoproto.enum_stringer"] = false; + ServiceDescriptorProto.prototype.name = ""; /** - * EnumOptions .gogoproto.enum_customname. - * @member {string} .gogoproto.enum_customname - * @memberof google.protobuf.EnumOptions + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - EnumOptions.prototype[".gogoproto.enum_customname"] = ""; + ServiceDescriptorProto.prototype.method = $util.emptyArray; /** - * EnumOptions .gogoproto.enumdecl. - * @member {boolean} .gogoproto.enumdecl - * @memberof google.protobuf.EnumOptions + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - EnumOptions.prototype[".gogoproto.enumdecl"] = false; + ServiceDescriptorProto.prototype.options = null; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions 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 */ - EnumOptions.encode = function encode(message, writer) { + ServiceDescriptorProto.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"]); + 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 EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.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.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions 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 */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumOptions + * @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.EnumOptions} EnumOptions + * @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 */ - EnumOptions.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.EnumOptions(); + 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.name = reader.string(); + break; case 2: - message.allow_alias = 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 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(); + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45646,185 +52786,152 @@ }; /** - * Decodes an EnumOptions 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.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions + * @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 */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumOptions message. + * Verifies a ServiceDescriptorProto message. * @function verify - * @memberof google.protobuf.EnumOptions + * @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 */ - EnumOptions.verify = function verify(message) { + ServiceDescriptorProto.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 (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.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"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates an EnumOptions 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.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) 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]); + 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.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"]); + 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 an EnumOptions 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.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumOptions.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.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; + object.name = ""; + object.options = null; } - 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.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.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"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this EnumOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.ServiceDescriptorProto * @instance * @returns {Object.} JSON object */ - EnumOptions.prototype.toJSON = function toJSON() { + ServiceDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumOptions; + return ServiceDescriptorProto; })(); - protobuf.EnumValueOptions = (function() { + protobuf.MethodDescriptorProto = (function() { /** - * Properties of an EnumValueOptions. + * Properties of a MethodDescriptorProto. * @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 + * @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 */ /** - * Constructs a new EnumValueOptions. + * Constructs a new MethodDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - function EnumValueOptions(properties) { - this.uninterpreted_option = []; + function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45832,92 +52939,128 @@ } /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - EnumValueOptions.prototype.deprecated = false; + MethodDescriptorProto.prototype.name = ""; /** - * EnumValueOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumValueOptions + * MethodDescriptorProto input_type. + * @member {string} input_type + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; + MethodDescriptorProto.prototype.input_type = ""; /** - * EnumValueOptions .gogoproto.enumvalue_customname. - * @member {string} .gogoproto.enumvalue_customname - * @memberof google.protobuf.EnumValueOptions + * MethodDescriptorProto output_type. + * @member {string} output_type + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - EnumValueOptions.prototype[".gogoproto.enumvalue_customname"] = ""; + MethodDescriptorProto.prototype.output_type = ""; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto client_streaming. + * @member {boolean} client_streaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.client_streaming = false; + + /** + * MethodDescriptorProto server_streaming. + * @member {boolean} server_streaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.server_streaming = false; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions 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 */ - EnumValueOptions.encode = function encode(message, writer) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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"]); + 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 EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.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.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions 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 */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueOptions + * @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.EnumValueOptions} EnumValueOptions + * @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 */ - EnumValueOptions.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.EnumValueOptions(); + 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 1: - message.deprecated = reader.bool(); + message.name = 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())); + case 2: + message.input_type = reader.string(); break; - case 66001: - message[".gogoproto.enumvalue_customname"] = reader.string(); + 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); @@ -45928,144 +53071,204 @@ }; /** - * Decodes an EnumValueOptions 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.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @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 */ - EnumValueOptions.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 EnumValueOptions message. + * Verifies a MethodDescriptorProto message. * @function verify - * @memberof google.protobuf.EnumValueOptions + * @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 */ - EnumValueOptions.verify = function verify(message) { + MethodDescriptorProto.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.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[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - if (!$util.isString(message[".gogoproto.enumvalue_customname"])) - return ".gogoproto.enumvalue_customname: string expected"; + 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 EnumValueOptions 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.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - 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]); - } + 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[".gogoproto.enumvalue_customname"] != null) - message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); + 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 EnumValueOptions 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.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.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 (options.defaults) { - object.deprecated = false; - object[".gogoproto.enumvalue_customname"] = ""; - } - 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); + object.name = ""; + object.input_type = ""; + object.output_type = ""; + object.options = null; + object.client_streaming = false; + object.server_streaming = false; } - if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - object[".gogoproto.enumvalue_customname"] = message[".gogoproto.enumvalue_customname"]; + 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 EnumValueOptions to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - EnumValueOptions.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueOptions; + return MethodDescriptorProto; })(); - protobuf.ServiceOptions = (function() { + protobuf.FileOptions = (function() { /** - * Properties of a ServiceOptions. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option + * @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 ServiceOptions. + * Constructs a new FileOptions. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents a FileOptions. + * @implements IFileOptions * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IFileOptions=} [properties] Properties to set */ - function ServiceOptions(properties) { + 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) @@ -46073,1029 +53276,1312 @@ } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions + * 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 */ - ServiceOptions.prototype.deprecated = false; + FileOptions.prototype.csharp_namespace = ""; /** - * ServiceOptions uninterpreted_option. + * FileOptions uninterpreted_option. * @member {Array.} uninterpreted_option - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.FileOptions * @instance */ - ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * 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 + * FileOptions .gogoproto.goproto_getters_all. + * @member {boolean} .gogoproto.goproto_getters_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.goproto_getters_all"] = 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 + * FileOptions .gogoproto.goproto_enum_prefix_all. + * @member {boolean} .gogoproto.goproto_enum_prefix_all + * @memberof google.protobuf.FileOptions + * @instance */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = 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 + * FileOptions .gogoproto.goproto_stringer_all. + * @member {boolean} .gogoproto.goproto_stringer_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; /** - * 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 + * FileOptions .gogoproto.verbose_equal_all. + * @member {boolean} .gogoproto.verbose_equal_all + * @memberof google.protobuf.FileOptions + * @instance */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileOptions.prototype[".gogoproto.verbose_equal_all"] = 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 + * FileOptions .gogoproto.face_all. + * @member {boolean} .gogoproto.face_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.face_all"] = 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 + * FileOptions .gogoproto.gostring_all. + * @member {boolean} .gogoproto.gostring_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.gostring_all"] = 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 + * FileOptions .gogoproto.populate_all. + * @member {boolean} .gogoproto.populate_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.populate_all"] = false; /** - * Converts this ServiceOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceOptions + * FileOptions .gogoproto.stringer_all. + * @member {boolean} .gogoproto.stringer_all + * @memberof google.protobuf.FileOptions * @instance - * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServiceOptions; - })(); + FileOptions.prototype[".gogoproto.stringer_all"] = false; - protobuf.MethodOptions = (function() { + /** + * FileOptions .gogoproto.onlyone_all. + * @member {boolean} .gogoproto.onlyone_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.onlyone_all"] = 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 + * FileOptions .gogoproto.equal_all. + * @member {boolean} .gogoproto.equal_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.equal_all"] = false; /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * FileOptions .gogoproto.description_all. + * @member {boolean} .gogoproto.description_all + * @memberof google.protobuf.FileOptions + * @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]]; - } + FileOptions.prototype[".gogoproto.description_all"] = false; /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions + * FileOptions .gogoproto.testgen_all. + * @member {boolean} .gogoproto.testgen_all + * @memberof google.protobuf.FileOptions * @instance */ - MethodOptions.prototype.deprecated = false; + FileOptions.prototype[".gogoproto.testgen_all"] = false; /** - * MethodOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MethodOptions + * FileOptions .gogoproto.benchgen_all. + * @member {boolean} .gogoproto.benchgen_all + * @memberof google.protobuf.FileOptions * @instance */ - MethodOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype[".gogoproto.benchgen_all"] = false; /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions + * FileOptions .gogoproto.marshaler_all. + * @member {boolean} .gogoproto.marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - MethodOptions.prototype[".google.api.http"] = null; + FileOptions.prototype[".gogoproto.marshaler_all"] = 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 + * FileOptions .gogoproto.unmarshaler_all. + * @member {boolean} .gogoproto.unmarshaler_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.unmarshaler_all"] = 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 + * FileOptions .gogoproto.stable_marshaler_all. + * @member {boolean} .gogoproto.stable_marshaler_all + * @memberof google.protobuf.FileOptions + * @instance */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FileOptions.prototype[".gogoproto.stable_marshaler_all"] = 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 + * FileOptions .gogoproto.sizer_all. + * @member {boolean} .gogoproto.sizer_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.sizer_all"] = 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 + * FileOptions .gogoproto.goproto_enum_stringer_all. + * @member {boolean} .gogoproto.goproto_enum_stringer_all + * @memberof google.protobuf.FileOptions + * @instance */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = 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 + * FileOptions .gogoproto.enum_stringer_all. + * @member {boolean} .gogoproto.enum_stringer_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.enum_stringer_all"] = 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 + * FileOptions .gogoproto.unsafe_marshaler_all. + * @member {boolean} .gogoproto.unsafe_marshaler_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = 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 + * FileOptions .gogoproto.unsafe_unmarshaler_all. + * @member {boolean} .gogoproto.unsafe_unmarshaler_all + * @memberof google.protobuf.FileOptions + * @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; - }; + FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; /** - * Converts this MethodOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MethodOptions + * FileOptions .gogoproto.goproto_extensions_map_all. + * @member {boolean} .gogoproto.goproto_extensions_map_all + * @memberof google.protobuf.FileOptions * @instance - * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; - return MethodOptions; - })(); + /** + * FileOptions .gogoproto.goproto_unrecognized_all. + * @member {boolean} .gogoproto.goproto_unrecognized_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; - protobuf.UninterpretedOption = (function() { + /** + * FileOptions .gogoproto.gogoproto_import. + * @member {boolean} .gogoproto.gogoproto_import + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.gogoproto_import"] = 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 + * FileOptions .gogoproto.protosizer_all. + * @member {boolean} .gogoproto.protosizer_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.protosizer_all"] = false; + + /** + * FileOptions .gogoproto.compare_all. + * @member {boolean} .gogoproto.compare_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.compare_all"] = false; /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * FileOptions .gogoproto.typedecl_all. + * @member {boolean} .gogoproto.typedecl_all + * @memberof google.protobuf.FileOptions + * @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]]; - } + FileOptions.prototype[".gogoproto.typedecl_all"] = false; /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption + * FileOptions .gogoproto.enumdecl_all. + * @member {boolean} .gogoproto.enumdecl_all + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.name = $util.emptyArray; + FileOptions.prototype[".gogoproto.enumdecl_all"] = false; /** - * UninterpretedOption identifier_value. - * @member {string} identifier_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .gogoproto.goproto_registration. + * @member {boolean} .gogoproto.goproto_registration + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.identifier_value = ""; + FileOptions.prototype[".gogoproto.goproto_registration"] = false; /** - * UninterpretedOption positive_int_value. - * @member {Long} positive_int_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .gogoproto.messagename_all. + * @member {boolean} .gogoproto.messagename_all + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.positive_int_value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + FileOptions.prototype[".gogoproto.messagename_all"] = false; /** - * UninterpretedOption negative_int_value. - * @member {Long} negative_int_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .gogoproto.goproto_sizecache_all. + * @member {boolean} .gogoproto.goproto_sizecache_all + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.negative_int_value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; /** - * UninterpretedOption double_value. - * @member {number} double_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .gogoproto.goproto_unkeyed_all. + * @member {boolean} .gogoproto.goproto_unkeyed_all + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.double_value = 0; + FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; /** - * UninterpretedOption string_value. - * @member {Uint8Array} string_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .cosmos_proto.declare_interface. + * @member {Array.} .cosmos_proto.declare_interface + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.string_value = $util.newBuffer([]); + FileOptions.prototype[".cosmos_proto.declare_interface"] = $util.emptyArray; /** - * UninterpretedOption aggregate_value. - * @member {string} aggregate_value - * @memberof google.protobuf.UninterpretedOption + * FileOptions .cosmos_proto.declare_scalar. + * @member {Array.} .cosmos_proto.declare_scalar + * @memberof google.protobuf.FileOptions * @instance */ - UninterpretedOption.prototype.aggregate_value = ""; + FileOptions.prototype[".cosmos_proto.declare_scalar"] = $util.emptyArray; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption 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 */ - UninterpretedOption.encode = function encode(message, writer) { + FileOptions.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.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[".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 UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.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.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption 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 */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @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.UninterpretedOption} UninterpretedOption + * @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 */ - UninterpretedOption.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.UninterpretedOption(); + 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 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + case 1: + message.java_package = reader.string(); break; - case 3: - message.identifier_value = reader.string(); + case 8: + message.java_outer_classname = reader.string(); break; - case 4: - message.positive_int_value = reader.uint64(); + case 10: + message.java_multiple_files = reader.bool(); break; - case 5: - message.negative_int_value = reader.int64(); + case 20: + message.java_generate_equals_and_hash = reader.bool(); break; - case 6: - message.double_value = reader.double(); + case 27: + message.java_string_check_utf8 = reader.bool(); break; - case 7: - message.string_value = reader.bytes(); + case 9: + message.optimize_for = reader.int32(); break; - case 8: - message.aggregate_value = reader.string(); + 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(); + 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); break; } } - return message; - }; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UninterpretedOption message. - * @function verify - * @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 - */ - UninterpretedOption.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]); + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @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 + */ + 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"; + 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_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 "name." + error; + return ".cosmos_proto.declare_scalar." + 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"; return null; }; /** - * Creates an UninterpretedOption 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.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.FileOptions} FileOptions */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) 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.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.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"]); + 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]); } } - 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 an UninterpretedOption 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.UninterpretedOption + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.FileOptions} message FileOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + FileOptions.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.declare_interface"] = []; + object[".cosmos_proto.declare_scalar"] = []; + } 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.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; } - 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.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.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); } - 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 UninterpretedOption to JSON. + * Converts this FileOptions to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FileOptions * @instance * @returns {Object.} JSON object */ - UninterpretedOption.prototype.toJSON = function toJSON() { + FileOptions.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; + /** + * 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 UninterpretedOption; + return FileOptions; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.MessageOptions = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of a MessageOptions. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @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 */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new MessageOptions. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + 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) @@ -47103,592 +54589,472 @@ } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * MessageOptions message_set_wire_format. + * @member {boolean} message_set_wire_format + * @memberof google.protobuf.MessageOptions * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + MessageOptions.prototype.message_set_wire_format = false; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions no_standard_descriptor_accessor. + * @member {boolean} no_standard_descriptor_accessor + * @memberof google.protobuf.MessageOptions + * @instance */ - SourceCodeInfo.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(); - return writer; - }; + MessageOptions.prototype.no_standard_descriptor_accessor = false; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo 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 */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MessageOptions.prototype.deprecated = false; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @function decode - * @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.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions map_entry. + * @member {boolean} map_entry + * @memberof google.protobuf.MessageOptions + * @instance */ - 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.protobuf.SourceCodeInfo(); - 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())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MessageOptions.prototype.map_entry = false; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * MessageOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MessageOptions + * @instance */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MessageOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Verifies a SourceCodeInfo message. - * @function verify - * @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 + * MessageOptions .gogoproto.goproto_getters. + * @member {boolean} .gogoproto.goproto_getters + * @memberof google.protobuf.MessageOptions + * @instance */ - SourceCodeInfo.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 (error) - return "location." + error; - } - } - return null; - }; + MessageOptions.prototype[".gogoproto.goproto_getters"] = false; /** - * 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 + * MessageOptions .gogoproto.goproto_stringer. + * @member {boolean} .gogoproto.goproto_stringer + * @memberof google.protobuf.MessageOptions + * @instance */ - 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]); - } - } - return message; - }; + MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MessageOptions .gogoproto.verbose_equal. + * @member {boolean} .gogoproto.verbose_equal + * @memberof google.protobuf.MessageOptions + * @instance */ - SourceCodeInfo.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); - } - return object; - }; + MessageOptions.prototype[".gogoproto.verbose_equal"] = false; /** - * Converts this SourceCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * MessageOptions .gogoproto.face. + * @member {boolean} .gogoproto.face + * @memberof google.protobuf.MessageOptions * @instance - * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + MessageOptions.prototype[".gogoproto.face"] = false; - SourceCodeInfo.Location = (function() { + /** + * MessageOptions .gogoproto.gostring. + * @member {boolean} .gogoproto.gostring + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.gostring"] = false; - /** - * 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 - */ + /** + * MessageOptions .gogoproto.populate. + * @member {boolean} .gogoproto.populate + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.populate"] = false; - /** - * 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]]; - } + /** + * MessageOptions .gogoproto.stringer. + * @member {boolean} .gogoproto.stringer + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.stringer"] = false; - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; + /** + * MessageOptions .gogoproto.onlyone. + * @member {boolean} .gogoproto.onlyone + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.onlyone"] = false; - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; + /** + * MessageOptions .gogoproto.equal. + * @member {boolean} .gogoproto.equal + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.equal"] = false; - /** - * Location leading_comments. - * @member {string} leading_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_comments = ""; + /** + * MessageOptions .gogoproto.description. + * @member {boolean} .gogoproto.description + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.description"] = false; - /** - * Location trailing_comments. - * @member {string} trailing_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailing_comments = ""; + /** + * MessageOptions .gogoproto.testgen. + * @member {boolean} .gogoproto.testgen + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.testgen"] = false; - /** - * Location leading_detached_comments. - * @member {Array.} leading_detached_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_detached_comments = $util.emptyArray; + /** + * MessageOptions .gogoproto.benchgen. + * @member {boolean} .gogoproto.benchgen + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.benchgen"] = false; - /** - * 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; - }; + /** + * MessageOptions .gogoproto.marshaler. + * @member {boolean} .gogoproto.marshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.marshaler"] = false; - /** - * 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(); - }; + /** + * MessageOptions .gogoproto.unmarshaler. + * @member {boolean} .gogoproto.unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.unmarshaler"] = false; - /** - * 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; - }; + /** + * MessageOptions .gogoproto.stable_marshaler. + * @member {boolean} .gogoproto.stable_marshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; - /** - * 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()); - }; + /** + * MessageOptions .gogoproto.sizer. + * @member {boolean} .gogoproto.sizer + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.sizer"] = false; - /** - * 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; - }; + /** + * MessageOptions .gogoproto.unsafe_marshaler. + * @member {boolean} .gogoproto.unsafe_marshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; - /** - * 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; - }; + /** + * MessageOptions .gogoproto.unsafe_unmarshaler. + * @member {boolean} .gogoproto.unsafe_unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; - /** - * 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; - }; + /** + * MessageOptions .gogoproto.goproto_extensions_map. + * @member {boolean} .gogoproto.goproto_extensions_map + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = false; - /** - * 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); - }; + /** + * MessageOptions .gogoproto.goproto_unrecognized. + * @member {boolean} .gogoproto.goproto_unrecognized + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; - return Location; - })(); + /** + * MessageOptions .gogoproto.protosizer. + * @member {boolean} .gogoproto.protosizer + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.protosizer"] = false; - return SourceCodeInfo; - })(); + /** + * MessageOptions .gogoproto.compare. + * @member {boolean} .gogoproto.compare + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.compare"] = false; - protobuf.GeneratedCodeInfo = (function() { + /** + * MessageOptions .gogoproto.typedecl. + * @member {boolean} .gogoproto.typedecl + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.typedecl"] = false; /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * MessageOptions .gogoproto.messagename. + * @member {boolean} .gogoproto.messagename + * @memberof google.protobuf.MessageOptions + * @instance */ + MessageOptions.prototype[".gogoproto.messagename"] = false; /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * MessageOptions .gogoproto.goproto_sizecache. + * @member {boolean} .gogoproto.goproto_sizecache + * @memberof google.protobuf.MessageOptions + * @instance */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - 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.goproto_sizecache"] = false; /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo + * MessageOptions .gogoproto.goproto_unkeyed. + * @member {boolean} .gogoproto.goproto_unkeyed + * @memberof google.protobuf.MessageOptions * @instance */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * MessageOptions .cosmos_proto.implements_interface. + * @member {Array.} .cosmos_proto.implements_interface + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".cosmos_proto.implements_interface"] = $util.emptyArray; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo 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 */ - GeneratedCodeInfo.encode = function encode(message, writer) { + MessageOptions.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.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]); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.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.GeneratedCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo 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 */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @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.GeneratedCodeInfo} GeneratedCodeInfo + * @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 */ - GeneratedCodeInfo.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.GeneratedCodeInfo(); + 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: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + message.message_set_wire_format = reader.bool(); + break; + case 2: + message.no_standard_descriptor_accessor = reader.bool(); + 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: + 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; default: reader.skipType(tag & 7); @@ -47699,469 +55065,749 @@ }; /** - * Decodes a GeneratedCodeInfo 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.GeneratedCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @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 */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a MessageOptions message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @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 */ - GeneratedCodeInfo.verify = function verify(message) { + MessageOptions.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.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 "annotation." + error; + return "uninterpreted_option." + 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.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"; + } return null; }; /** - * Creates a GeneratedCodeInfo 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.GeneratedCodeInfo + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.MessageOptions} MessageOptions */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) 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.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[".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]); + } return message; }; /** - * Creates a plain object from a GeneratedCodeInfo 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.GeneratedCodeInfo + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { + MessageOptions.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); + if (options.arrays || options.defaults) { + object.uninterpreted_option = []; + object[".cosmos_proto.implements_interface"] = []; + } + 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; + } + 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[".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]; } return object; }; /** - * Converts this GeneratedCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @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 + * @property {string|null} [".cosmos_proto.scalar"] FieldOptions .cosmos_proto.scalar + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions * @instance - * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GeneratedCodeInfo.Annotation = (function() { + FieldOptions.prototype.ctype = 0; - /** - * 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 - */ + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; - /** - * 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]]; - } + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; - /** - * Annotation source_file. - * @member {string} source_file - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.source_file = ""; + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; + /** + * FieldOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.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; - }; + /** + * FieldOptions .gogoproto.nullable. + * @member {boolean} .gogoproto.nullable + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.nullable"] = 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(); - }; + /** + * FieldOptions .gogoproto.embed. + * @member {boolean} .gogoproto.embed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.embed"] = 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; - }; + /** + * FieldOptions .gogoproto.customtype. + * @member {string} .gogoproto.customtype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.customtype"] = ""; - /** - * 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()); - }; + /** + * FieldOptions .gogoproto.customname. + * @member {string} .gogoproto.customname + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.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; - }; + /** + * FieldOptions .gogoproto.jsontag. + * @member {string} .gogoproto.jsontag + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.jsontag"] = ""; - /** - * 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; - }; + /** + * FieldOptions .gogoproto.moretags. + * @member {string} .gogoproto.moretags + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.moretags"] = ""; - /** - * 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; - }; + /** + * FieldOptions .gogoproto.casttype. + * @member {string} .gogoproto.casttype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.casttype"] = ""; - /** - * 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); - }; + /** + * FieldOptions .gogoproto.castkey. + * @member {string} .gogoproto.castkey + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castkey"] = ""; - return Annotation; - })(); + /** + * FieldOptions .gogoproto.castvalue. + * @member {string} .gogoproto.castvalue + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castvalue"] = ""; - return GeneratedCodeInfo; - })(); + /** + * FieldOptions .gogoproto.stdtime. + * @member {boolean} .gogoproto.stdtime + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdtime"] = false; - protobuf.Timestamp = (function() { + /** + * FieldOptions .gogoproto.stdduration. + * @member {boolean} .gogoproto.stdduration + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdduration"] = false; /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * FieldOptions .gogoproto.wktpointer. + * @member {boolean} .gogoproto.wktpointer + * @memberof google.protobuf.FieldOptions + * @instance */ + FieldOptions.prototype[".gogoproto.wktpointer"] = false; /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * FieldOptions .gogoproto.castrepeated. + * @member {string} .gogoproto.castrepeated + * @memberof google.protobuf.FieldOptions + * @instance */ - 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]]; - } + FieldOptions.prototype[".gogoproto.castrepeated"] = ""; /** - * Timestamp seconds. - * @member {Long} seconds - * @memberof google.protobuf.Timestamp + * FieldOptions .cosmos_proto.accepts_interface. + * @member {string} .cosmos_proto.accepts_interface + * @memberof google.protobuf.FieldOptions * @instance */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * FieldOptions .cosmos_proto.scalar. + * @member {string} .cosmos_proto.scalar + * @memberof google.protobuf.FieldOptions * @instance */ - Timestamp.prototype.nanos = 0; + FieldOptions.prototype[".cosmos_proto.scalar"] = ""; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp 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 */ - Timestamp.encode = function encode(message, writer) { + FieldOptions.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.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"]); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.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.Timestamp + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp 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 */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @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.Timestamp} Timestamp + * @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 */ - Timestamp.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.Timestamp(); + 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: - message.seconds = reader.int64(); + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); break; - case 2: - message.nanos = reader.int32(); + 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; default: reader.skipType(tag & 7); @@ -48172,131 +55818,363 @@ }; /** - * Decodes a Timestamp 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.Timestamp + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @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 */ - Timestamp.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 Timestamp message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.Timestamp + * @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 */ - Timestamp.verify = function verify(message) { + FieldOptions.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.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 "uninterpreted_option." + 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[".cosmos_proto.scalar"] != null && message.hasOwnProperty(".cosmos_proto.scalar")) + if (!$util.isString(message[".cosmos_proto.scalar"])) + return ".cosmos_proto.scalar: string expected"; return null; }; /** - * Creates a Timestamp 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. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.FieldOptions} FieldOptions */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) 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.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"]); return message; }; /** - * Creates a plain object from a Timestamp 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.Timestamp + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + FieldOptions.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.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"] = ""; } - 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.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"]; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Timestamp; + /** + * 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; + })(); + + /** + * 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 FieldOptions; })(); - protobuf.Duration = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of a Duration. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IOneofOptions + * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option */ /** - * Constructs a new Duration. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function Duration(properties) { + 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) @@ -48304,76 +56182,66 @@ } /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * OneofOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.OneofOptions * @instance */ - Duration.prototype.nanos = 0; + OneofOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IDuration} message Duration 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 */ - Duration.encode = function encode(message, writer) { + OneofOptions.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.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 Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.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.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IDuration} message Duration 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 */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @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.Duration} Duration + * @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 */ - Duration.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.Duration(); + 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: - message.seconds = reader.int64(); - 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); @@ -48384,131 +56252,132 @@ }; /** - * Decodes a Duration 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.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @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 */ - Duration.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 Duration message. + * Verifies an OneofOptions message. * @function verify - * @memberof google.protobuf.Duration + * @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 */ - Duration.verify = function verify(message) { + OneofOptions.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.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 Duration 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.Duration + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration - */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) 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.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 Duration 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.Duration + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + OneofOptions.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 (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 Duration to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Duration; + return OneofOptions; })(); - protobuf.Any = (function() { + protobuf.EnumOptions = (function() { /** - * Properties of an Any. + * Properties of an EnumOptions. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @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 */ /** - * Constructs a new Any. + * Constructs a new EnumOptions. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set */ - function Any(properties) { + 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) @@ -48516,76 +56385,157 @@ } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any + * EnumOptions allow_alias. + * @member {boolean} allow_alias + * @memberof google.protobuf.EnumOptions * @instance */ - Any.prototype.type_url = ""; + EnumOptions.prototype.allow_alias = false; /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions * @instance */ - Any.prototype.value = $util.newBuffer([]); + EnumOptions.prototype.deprecated = false; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * EnumOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpreted_option = $util.emptyArray; + + /** + * EnumOptions .gogoproto.goproto_enum_prefix. + * @member {boolean} .gogoproto.goproto_enum_prefix + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; + + /** + * EnumOptions .gogoproto.goproto_enum_stringer. + * @member {boolean} .gogoproto.goproto_enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; + + /** + * EnumOptions .gogoproto.enum_stringer. + * @member {boolean} .gogoproto.enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_stringer"] = false; + + /** + * EnumOptions .gogoproto.enum_customname. + * @member {string} .gogoproto.enum_customname + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_customname"] = ""; + + /** + * EnumOptions .gogoproto.enumdecl. + * @member {boolean} .gogoproto.enumdecl + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enumdecl"] = false; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + EnumOptions.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.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 Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @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.Any} Any + * @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 */ - Any.decode = function decode(reader, length) { + 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.Any(); + 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 1: - message.type_url = reader.string(); - break; case 2: - message.value = reader.bytes(); + 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); @@ -48596,139 +56546,185 @@ }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @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 */ - Any.decodeDelimited = function decodeDelimited(reader) { + EnumOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies an EnumOptions message. * @function verify - * @memberof google.protobuf.Any + * @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 */ - Any.verify = function verify(message) { + EnumOptions.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.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; }; /** - * Creates an Any 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. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumOptions} EnumOptions */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) 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.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; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.EnumOptions} message EnumOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + EnumOptions.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.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.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.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; }; /** - * Converts this Any to JSON. + * Converts this EnumOptions to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumOptions * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + EnumOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Any; + return EnumOptions; })(); - return protobuf; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - api.Http = (function() { + protobuf.EnumValueOptions = (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 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 */ /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions * @constructor - * @param {google.api.IHttp=} [properties] Properties to set + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - function Http(properties) { - this.rules = []; + 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) @@ -48736,79 +56732,92 @@ } /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - Http.prototype.rules = $util.emptyArray; + EnumValueOptions.prototype.deprecated = false; /** - * Http fully_decode_reserved_expansion. - * @member {boolean} fully_decode_reserved_expansion - * @memberof google.api.Http + * EnumValueOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumValueOptions * @instance */ - Http.prototype.fully_decode_reserved_expansion = false; + EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.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.api.Http + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.api.IHttp} message Http 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 */ - Http.encode = function encode(message, writer) { + EnumValueOptions.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.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 Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.api.IHttp} message Http 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 */ - Http.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Http message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.api.Http + * @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.api.Http} Http + * @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 */ - Http.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.api.Http(); + 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: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + message.deprecated = reader.bool(); break; - case 2: - message.fully_decode_reserved_expansion = reader.bool(); + 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); @@ -48819,143 +56828,144 @@ }; /** - * Decodes a Http 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.api.Http + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http + * @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 */ - Http.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Http message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.api.Http + * @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 */ - 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]); + EnumValueOptions.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 "rules." + error; + return "uninterpreted_option." + 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[".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 a Http 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.api.Http + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.api.Http} Http + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) 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.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.fully_decode_reserved_expansion != null) - message.fully_decode_reserved_expansion = Boolean(object.fully_decode_reserved_expansion); + if (object[".gogoproto.enumvalue_customname"] != null) + message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); return message; }; /** - * Creates a plain object from a Http 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.api.Http + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.api.Http} message Http + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Http.toObject = function toObject(message, options) { + EnumValueOptions.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.uninterpreted_option = []; + if (options.defaults) { + object.deprecated = false; + object[".gogoproto.enumvalue_customname"] = ""; } - 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.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 Http to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.api.Http + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - Http.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Http; + return EnumValueOptions; })(); - api.HttpRule = (function() { + protobuf.ServiceOptions = (function() { /** - * 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 + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option */ /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function HttpRule(properties) { - this.additional_bindings = []; + 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) @@ -48963,197 +56973,79 @@ } /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; - - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; - - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; - - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; - - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; - - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; - - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; - - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; - - /** - * HttpRule response_body. - * @member {string} response_body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.response_body = ""; - - /** - * HttpRule additional_bindings. - * @member {Array.} additional_bindings - * @memberof google.api.HttpRule + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions * @instance */ - HttpRule.prototype.additional_bindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ServiceOptions.prototype.deprecated = false; /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule + * ServiceOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.ServiceOptions * @instance */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encode - * @memberof google.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.api.IHttpRule} message HttpRule 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 */ - HttpRule.encode = function encode(message, writer) { + ServiceOptions.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.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 HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.api.IHttpRule} message HttpRule 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 */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode - * @memberof google.api.HttpRule + * @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.api.HttpRule} HttpRule + * @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 */ - HttpRule.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.api.HttpRule(); + 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.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(); + case 33: + message.deprecated = reader.bool(); 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())); + 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); @@ -49164,240 +57056,136 @@ }; /** - * Decodes a HttpRule 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.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule + * @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 */ - HttpRule.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 HttpRule message. + * Verifies a ServiceOptions message. * @function verify - * @memberof google.api.HttpRule + * @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 */ - HttpRule.verify = function verify(message) { + ServiceOptions.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.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 "additional_bindings." + error; + return "uninterpreted_option." + error; } } return null; }; /** - * Creates a HttpRule 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.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) 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.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 HttpRule 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.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.api.HttpRule} message HttpRule + * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpRule.toObject = function toObject(message, options) { + ServiceOptions.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.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.response_body != null && message.hasOwnProperty("response_body")) - object.response_body = message.response_body; return object; }; /** - * Converts this HttpRule to JSON. + * Converts this ServiceOptions to JSON. * @function toJSON - * @memberof google.api.HttpRule + * @memberof google.protobuf.ServiceOptions * @instance * @returns {Object.} JSON object */ - HttpRule.prototype.toJSON = function toJSON() { + ServiceOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HttpRule; + return ServiceOptions; })(); - api.CustomHttpPattern = (function() { + protobuf.MethodOptions = (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 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 */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - function CustomHttpPattern(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) @@ -49405,76 +57193,92 @@ } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - CustomHttpPattern.prototype.kind = ""; + MethodOptions.prototype.deprecated = false; /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * MethodOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MethodOptions * @instance */ - CustomHttpPattern.prototype.path = ""; + MethodOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.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.api.CustomHttpPattern + * @memberof google.protobuf.MethodOptions * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern 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 */ - CustomHttpPattern.encode = function encode(message, writer) { + MethodOptions.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.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 CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.MethodOptions * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern 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 */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @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.api.CustomHttpPattern} CustomHttpPattern + * @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 */ - CustomHttpPattern.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.api.CustomHttpPattern(); + 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.kind = reader.string(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.path = reader.string(); + 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); @@ -49485,4833 +57289,5019 @@ }; /** - * Decodes a CustomHttpPattern 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.api.CustomHttpPattern + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @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 */ - CustomHttpPattern.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 CustomHttpPattern message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.api.CustomHttpPattern + * @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 */ - CustomHttpPattern.verify = function verify(message) { + MethodOptions.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"; + 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 CustomHttpPattern 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.api.CustomHttpPattern + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.MethodOptions} MethodOptions */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) 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); + 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 CustomHttpPattern 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.api.CustomHttpPattern + * @memberof google.protobuf.MethodOptions * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomHttpPattern.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) { - object.kind = ""; - object.path = ""; + object.deprecated = false; + object[".google.api.http"] = null; } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + 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 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.core = (function() { - - /** - * Namespace core. - * @memberof ibc - * @namespace - */ - var core = {}; - - 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 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 - */ - - /** - * Constructs a new IdentifiedClientState. - * @memberof ibc.core.client.v1 - * @classdesc Represents an IdentifiedClientState. - * @implements IIdentifiedClientState - * @constructor - * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set - */ - function IdentifiedClientState(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]]; - } - - /** - * IdentifiedClientState client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.IdentifiedClientState - * @instance - */ - IdentifiedClientState.prototype.client_id = ""; - - /** - * 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.IdentifiedClientState - * @static - * @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 - */ - IdentifiedClientState.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(); - return writer; - }; - - /** - * 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.IdentifiedClientState - * @static - * @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 - */ - IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an IdentifiedClientState message from the specified reader or buffer. - * @function decode - * @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.IdentifiedClientState} IdentifiedClientState - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - 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); - break; - } - } - return message; - }; - - /** - * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.IdentifiedClientState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IdentifiedClientState message. - * @function verify - * @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 - */ - IdentifiedClientState.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; - } - return null; - }; - - /** - * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.IdentifiedClientState - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState - */ - IdentifiedClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) - 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); - } - return message; - }; - - /** - * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.IdentifiedClientState - * @static - * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IdentifiedClientState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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 IdentifiedClientState to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.IdentifiedClientState - * @instance - * @returns {Object.} JSON object - */ - IdentifiedClientState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return IdentifiedClientState; - })(); - - v1.ConsensusStateWithHeight = (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 - */ - - /** - * Constructs a new ConsensusStateWithHeight. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ConsensusStateWithHeight. - * @implements IConsensusStateWithHeight - * @constructor - * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set - */ - function ConsensusStateWithHeight(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]]; - } - - /** - * ConsensusStateWithHeight height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @instance - */ - ConsensusStateWithHeight.prototype.height = null; - - /** - * ConsensusStateWithHeight consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @instance - */ - ConsensusStateWithHeight.prototype.consensus_state = null; - - /** - * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @static - * @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 - */ - ConsensusStateWithHeight.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(); - return writer; - }; + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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.ConsensusStateWithHeight - * @static - * @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 - */ - ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return MethodOptions; + })(); - /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. - * @function decode - * @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.ConsensusStateWithHeight} ConsensusStateWithHeight - * @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) { - 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(); - 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()); - break; - case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + protobuf.UninterpretedOption = (function() { - /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 + */ - /** - * Verifies a ConsensusStateWithHeight message. - * @function verify - * @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 - */ - ConsensusStateWithHeight.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 (error) - return "consensus_state." + error; - } - return null; - }; + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + 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]]; + } - /** - * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight - */ - ConsensusStateWithHeight.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) - 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); - } - return message; - }; + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; - /** - * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @static - * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConsensusStateWithHeight.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); - return object; - }; + /** + * UninterpretedOption identifier_value. + * @member {string} identifier_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifier_value = ""; - /** - * Converts this ConsensusStateWithHeight to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.ConsensusStateWithHeight - * @instance - * @returns {Object.} JSON object - */ - ConsensusStateWithHeight.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; - return ConsensusStateWithHeight; - })(); + /** + * 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; - v1.ClientConsensusStates = (function() { + /** + * UninterpretedOption double_value. + * @member {number} double_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.double_value = 0; - /** - * 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 - */ + /** + * UninterpretedOption string_value. + * @member {Uint8Array} string_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.string_value = $util.newBuffer([]); - /** - * Constructs a new ClientConsensusStates. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientConsensusStates. - * @implements IClientConsensusStates - * @constructor - * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set - */ - 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) - this[keys[i]] = properties[keys[i]]; - } + /** + * UninterpretedOption aggregate_value. + * @member {string} aggregate_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregate_value = ""; - /** - * ClientConsensusStates client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.ClientConsensusStates - * @instance - */ - ClientConsensusStates.prototype.client_id = ""; + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.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); + return writer; + }; - /** - * ClientConsensusStates consensus_states. - * @member {Array.} consensus_states - * @memberof ibc.core.client.v1.ClientConsensusStates - * @instance - */ - ClientConsensusStates.prototype.consensus_states = $util.emptyArray; + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.ClientConsensusStates - * @static - * @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 - */ - 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.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; - }; + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @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.protobuf.UninterpretedOption} UninterpretedOption + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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 2: + 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); + break; + } + } + return message; + }; - /** - * 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.ClientConsensusStates - * @static - * @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 - */ - ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a ClientConsensusStates message from the specified reader or buffer. - * @function decode - * @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.ClientConsensusStates} ClientConsensusStates - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.client_id = reader.string(); - 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())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies an UninterpretedOption message. + * @function verify + * @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 + */ + UninterpretedOption.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 (error) + return "name." + 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"; + return null; + }; - /** - * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientConsensusStates - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + 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]); + } + } + 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; + }; - /** - * Verifies a ClientConsensusStates message. - * @function verify - * @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 - */ - 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.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 plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + 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.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; + }; - /** - * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.ClientConsensusStates - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates - */ - ClientConsensusStates.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) - 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]); - } - } - return message; - }; + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.ClientConsensusStates - * @static - * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ClientConsensusStates.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); - } - return object; - }; + UninterpretedOption.NamePart = (function() { - /** - * Converts this ClientConsensusStates to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.ClientConsensusStates - * @instance - * @returns {Object.} JSON object - */ - ClientConsensusStates.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} name_part NamePart name_part + * @property {boolean} is_extension NamePart is_extension + */ - return ClientConsensusStates; - })(); + /** + * 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]]; + } - v1.ClientUpdateProposal = (function() { + /** + * NamePart name_part. + * @member {string} name_part + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.name_part = ""; - /** - * 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 - */ + /** + * NamePart is_extension. + * @member {boolean} is_extension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.is_extension = false; - /** - * Constructs a new ClientUpdateProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientUpdateProposal. - * @implements IClientUpdateProposal - * @constructor - * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set - */ - function ClientUpdateProposal(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 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; + }; - /** - * ClientUpdateProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.title = ""; + /** + * 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(); + }; - /** - * ClientUpdateProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.description = ""; + /** + * 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; + }; - /** - * ClientUpdateProposal subject_client_id. - * @member {string} subject_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.subject_client_id = ""; + /** + * 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()); + }; - /** - * ClientUpdateProposal substitute_client_id. - * @member {string} substitute_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.substitute_client_id = ""; + /** + * 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; + }; - /** - * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @static - * @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 - */ - ClientUpdateProposal.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); - return writer; - }; + /** + * 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; + }; - /** - * 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.ClientUpdateProposal - * @static - * @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 - */ - ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; + }; - /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer. - * @function decode - * @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.ClientUpdateProposal} ClientUpdateProposal - * @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) { - 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(); - 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.subject_client_id = reader.string(); - break; - case 4: - message.substitute_client_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * 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); + }; - /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return NamePart; + })(); - /** - * Verifies a ClientUpdateProposal message. - * @function verify - * @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 - */ - ClientUpdateProposal.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"; - return null; - }; + return UninterpretedOption; + })(); - /** - * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal - */ - ClientUpdateProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) - 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); - return message; - }; + protobuf.SourceCodeInfo = (function() { - /** - * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @static - * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ClientUpdateProposal.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 = ""; - } - 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; - }; + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ - /** - * Converts this ClientUpdateProposal to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - * @returns {Object.} JSON object - */ - ClientUpdateProposal.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + 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]]; + } - return ClientUpdateProposal; - })(); + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; - v1.UpgradeProposal = (function() { + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.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(); + return writer; + }; - /** - * 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 - */ + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new UpgradeProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents an UpgradeProposal. - * @implements IUpgradeProposal - * @constructor - * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set - */ - function UpgradeProposal(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 SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @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.protobuf.SourceCodeInfo} SourceCodeInfo + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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: + 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); + break; } + } + return message; + }; - /** - * UpgradeProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - */ - UpgradeProposal.prototype.title = ""; + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * UpgradeProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - */ - UpgradeProposal.prototype.description = ""; + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @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 + */ + SourceCodeInfo.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 (error) + return "location." + error; + } + } + return null; + }; - /** - * UpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - */ - UpgradeProposal.prototype.plan = 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]); + } + } + return message; + }; - /** - * 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; + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.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); + } + return object; + }; - /** - * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.UpgradeProposal - * @static - * @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 - */ - UpgradeProposal.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(); - return writer; - }; + /** + * 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); + }; - /** - * 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.UpgradeProposal - * @static - * @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 - */ - UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + SourceCodeInfo.Location = (function() { - /** - * Decodes an UpgradeProposal message from the specified reader or buffer. - * @function decode - * @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.UpgradeProposal} UpgradeProposal - * @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) { - 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(); - 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; - case 4: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * 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 + */ - /** - * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.UpgradeProposal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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(); + }; - /** - * Verifies an UpgradeProposal message. - * @function verify - * @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 - */ - UpgradeProposal.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 (error) - return "upgraded_client_state." + error; + /** + * 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 null; - }; + } + return message; + }; - /** - * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.UpgradeProposal - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal - */ - UpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) - 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); - } - 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()); + }; - /** - * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.UpgradeProposal - * @static - * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpgradeProposal.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; - } - 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); + /** + * 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; + }; - /** - * Converts this UpgradeProposal to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - * @returns {Object.} JSON object - */ - UpgradeProposal.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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 UpgradeProposal; - })(); + /** + * 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); + }; - v1.Height = (function() { + return Location; + })(); - /** - * 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 - */ + return SourceCodeInfo; + })(); - /** - * Constructs a new Height. - * @memberof ibc.core.client.v1 - * @classdesc Represents an Height. - * @implements IHeight - * @constructor - * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set - */ - function Height(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]]; - } + protobuf.GeneratedCodeInfo = (function() { - /** - * Height revision_number. - * @member {Long} revision_number - * @memberof ibc.core.client.v1.Height - * @instance - */ - Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ - /** - * Height revision_height. - * @member {Long} revision_height - * @memberof ibc.core.client.v1.Height - * @instance - */ - Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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 Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.Height - * @static - * @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 - */ - Height.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); - return writer; - }; + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - /** - * 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.Height - * @static - * @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 - */ - Height.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.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(); + return writer; + }; - /** - * Decodes an Height message from the specified reader or buffer. - * @function decode - * @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.Height} Height - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.revision_number = reader.uint64(); - break; - case 2: - message.revision_height = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Height message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.Height - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - Height.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @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.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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: + 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); + break; + } + } + return message; + }; - /** - * Verifies an Height message. - * @function verify - * @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 - */ - Height.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"; - return null; - }; + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an Height message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.Height - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.Height} Height - */ - Height.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.Height) - 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) - 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; - }; + /** + * 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; + }; - /** - * Creates a plain object from an Height message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.Height - * @static - * @param {ibc.core.client.v1.Height} message Height - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Height.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.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.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; - }; + /** + * 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; + }; - /** - * Converts this Height to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.Height - * @instance - * @returns {Object.} JSON object - */ - Height.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; + }; - return Height; - })(); + /** + * 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); + }; - v1.Params = (function() { + GeneratedCodeInfo.Annotation = (function() { - /** - * Properties of a Params. - * @memberof ibc.core.client.v1 - * @interface IParams - * @property {Array.|null} [allowed_clients] Params allowed_clients - */ + /** + * 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 + */ - /** - * Constructs a new Params. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.core.client.v1.IParams=} [properties] Properties to set - */ - 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]]; - } + /** + * 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]]; + } - /** - * Params allowed_clients. - * @member {Array.} allowed_clients - * @memberof ibc.core.client.v1.Params - * @instance - */ - Params.prototype.allowed_clients = $util.emptyArray; + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.Params - * @static - * @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 - */ - Params.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]); - return writer; - }; + /** + * Annotation source_file. + * @member {string} source_file + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.source_file = ""; - /** - * 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.Params - * @static - * @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 - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @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.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.core.client.v1.Params(); - 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()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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; + }; - /** - * Verifies a Params message. - * @function verify - * @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 - */ - Params.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"; - } - return null; - }; + /** + * 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(); + }; - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.Params - * @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]); + /** + * 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 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 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 a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.Params - * @static - * @param {ibc.core.client.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.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]; - } + /** + * 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; + }; - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.core.client.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 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; + }; - return Params; - })(); + /** + * 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); + }; - return v1; + return Annotation; })(); - return client; + return GeneratedCodeInfo; })(); - return core; - })(); - - ibc.applications = (function() { + protobuf.Any = (function() { - /** - * Namespace applications. - * @memberof ibc - * @namespace - */ - var applications = {}; + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ - applications.transfer = (function() { + /** + * 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]]; + } /** - * Namespace transfer. - * @memberof ibc.applications - * @namespace + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance */ - var transfer = {}; + Any.prototype.type_url = ""; - transfer.v1 = (function() { + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); - /** - * Namespace v1. - * @memberof ibc.applications.transfer - * @namespace - */ - var v1 = {}; + /** + * 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; + }; - v1.Query = (function() { + /** + * 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(); + }; - /** - * 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); + /** + * 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; + }; - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * 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 - */ - - /** - * 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - - /** - * 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - - /** - * 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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 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()); + }; - /** - * 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 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; + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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" }); + /** + * 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; + }; - /** - * 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 - */ + /** + * 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); + }; - return Query; - })(); + return Any; + })(); - v1.QueryDenomTraceRequest = (function() { + protobuf.Timestamp = (function() { - /** - * Properties of a QueryDenomTraceRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceRequest - * @property {string|null} [hash] QueryDenomTraceRequest hash - */ + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ - /** - * 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]]; - } + /** + * 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]]; + } - /** - * QueryDenomTraceRequest hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @instance - */ - QueryDenomTraceRequest.prototype.hash = ""; + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * 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; - }; + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; - /** - * 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 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; + }; - /** - * 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; - } - } - return message; - }; + /** + * 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 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 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; + }; - /** - * 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; - }; + /** + * 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()); + }; - /** - * 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) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); - if (object.hash != null) - message.hash = String(object.hash); - return message; - }; + /** + * 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; + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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; + }; - return QueryDenomTraceRequest; - })(); + /** + * 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); + }; - v1.QueryDenomTraceResponse = (function() { + return Timestamp; + })(); - /** - * Properties of a QueryDenomTraceResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceResponse - * @property {ibc.applications.transfer.v1.IDenomTrace|null} [denom_trace] QueryDenomTraceResponse denom_trace - */ + protobuf.Duration = (function() { - /** - * 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]]; - } + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ - /** - * 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; + /** + * 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]]; + } - /** - * 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; - }; + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * 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(); - }; + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; - /** - * 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; - } - } - return message; - }; + /** + * 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; + }; - /** - * 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()); - }; + /** + * 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(); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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) - 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; - }; + /** + * 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()); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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; + }; - return QueryDenomTraceResponse; - })(); + /** + * 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; + }; - v1.QueryDenomTracesRequest = (function() { + /** + * 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); + }; - /** - * Properties of a QueryDenomTracesRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTracesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination - */ + return Duration; + })(); - /** - * 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]]; - } + return protobuf; + })(); - /** - * QueryDenomTracesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @instance - */ - QueryDenomTracesRequest.prototype.pagination = null; + google.api = (function() { - /** - * 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; - }; + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; - /** - * 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(); - }; + api.Http = (function() { - /** - * 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; - } - } - return message; - }; + /** + * 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 + */ - /** - * 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()); - }; + /** + * 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]]; + } - /** - * 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; - }; + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; - /** - * 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) - 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; - }; + /** + * Http fully_decode_reserved_expansion. + * @member {boolean} fully_decode_reserved_expansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fully_decode_reserved_expansion = false; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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(); + }; - return QueryDenomTracesRequest; - })(); + /** + * 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; + }; - v1.QueryDenomTracesResponse = (function() { + /** + * 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()); + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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]]; + /** + * 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; + }; - /** - * QueryDenomTracesResponse denom_traces. - * @member {Array.} denom_traces - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - */ - QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; + /** + * 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; + }; - /** - * QueryDenomTracesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - */ - QueryDenomTracesResponse.prototype.pagination = null; + /** + * 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); + }; - /** - * 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; - }; + return Http; + })(); - /** - * 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(); - }; + api.HttpRule = (function() { - /** - * 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; - } - } - return message; - }; + /** + * 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 + */ - /** - * 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()); - }; + /** + * 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]]; + } - /** - * 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; - } - } - 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; - }; + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; - /** - * 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]); - } - } - 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; - }; + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; - /** - * 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; - }; + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; - /** - * 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); - }; + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; - return QueryDenomTracesResponse; - })(); + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; - v1.QueryParamsRequest = (function() { + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsRequest - */ + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; - /** - * 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]]; - } + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; - /** - * 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; - }; + /** + * HttpRule response_body. + * @member {string} response_body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.response_body = ""; - /** - * 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(); - }; + /** + * HttpRule additional_bindings. + * @member {Array.} additional_bindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additional_bindings = $util.emptyArray; - /** - * 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; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * 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()); - }; + /** + * 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) + }); + + /** + * 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; + }; - /** - * 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; - }; + /** + * 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(); + }; - /** - * 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(); - }; + /** + * 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; + }; - /** - * 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 {}; - }; + /** + * 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()); + }; - /** - * 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); - }; + /** + * 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; + }; - return QueryParamsRequest; - })(); + /** + * 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; + }; - v1.QueryParamsResponse = (function() { + /** + * 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; + }; - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params - */ + /** + * 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); + }; - /** - * 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]]; - } + return HttpRule; + })(); - /** - * QueryParamsResponse params. - * @member {ibc.applications.transfer.v1.IParams|null|undefined} params - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + api.CustomHttpPattern = (function() { - /** - * 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; - }; + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ - /** - * 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(); - }; + /** + * 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]]; + } - /** - * 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; - } - } - return message; - }; + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; - /** - * 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()); - }; + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; - /** - * 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; - }; + /** + * 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; + }; + + /** + * 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(); + }; - /** - * 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) - 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; - }; + /** + * 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; + }; - /** - * 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; - }; + /** + * 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()); + }; - /** - * 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); - }; + /** + * 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; + }; - return QueryParamsResponse; - })(); + /** + * 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; + }; - v1.QueryDenomHashRequest = (function() { + /** + * 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; + }; - /** - * Properties of a QueryDenomHashRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashRequest - * @property {string|null} [trace] QueryDenomHashRequest trace - */ + /** + * 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); + }; - /** - * 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 CustomHttpPattern; + })(); - /** - * QueryDenomHashRequest trace. - * @member {string} trace - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @instance - */ - QueryDenomHashRequest.prototype.trace = ""; + return api; + })(); - /** - * 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; - }; + return google; + })(); - /** - * 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(); - }; + $root.osmosis = (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 osmosis. + * @exports osmosis + * @namespace + */ + var osmosis = {}; - /** - * 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()); - }; + osmosis.tokenfactory = (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 - */ - 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; - }; + /** + * Namespace tokenfactory. + * @memberof osmosis + * @namespace + */ + var tokenfactory = {}; - /** - * 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 - */ - 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; - }; + tokenfactory.v1beta1 = (function() { - /** - * 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 - */ - 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; - }; + /** + * Namespace v1beta1. + * @memberof osmosis.tokenfactory + * @namespace + */ + var v1beta1 = {}; - /** - * Converts this QueryDenomHashRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @instance - * @returns {Object.} JSON object - */ - QueryDenomHashRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v1beta1.Msg = (function() { - return QueryDenomHashRequest; - })(); + /** + * Constructs a new Msg service. + * @memberof osmosis.tokenfactory.v1beta1 + * @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); + } - v1.QueryDenomHashResponse = (function() { + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - /** - * Properties of a QueryDenomHashResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashResponse - * @property {string|null} [hash] QueryDenomHashResponse hash - */ + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#createDenom}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef CreateDenomCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} [response] MsgCreateDenomResponse + */ - /** - * Constructs a new QueryDenomHashResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomHashResponse. - * @implements IQueryDenomHashResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set - */ - function QueryDenomHashResponse(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 CreateDenom. + * @function createDenom + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} request MsgCreateDenom message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.CreateDenomCallback} callback Node-style callback called with the error, if any, and MsgCreateDenomResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.createDenom = function createDenom(request, callback) { + return this.rpcCall(createDenom, $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom, $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse, request, callback); + }, "name", { value: "CreateDenom" }); - /** - * QueryDenomHashResponse hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @instance - */ - QueryDenomHashResponse.prototype.hash = ""; + /** + * Calls CreateDenom. + * @function createDenom + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} request MsgCreateDenom message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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; - }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#mint}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef MintCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgMintResponse} [response] MsgMintResponse + */ - /** - * 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(); - }; + /** + * Calls Mint. + * @function mint + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgMint} request MsgMint message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.MintCallback} callback Node-style callback called with the error, if any, and MsgMintResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.mint = function mint(request, callback) { + return this.rpcCall(mint, $root.osmosis.tokenfactory.v1beta1.MsgMint, $root.osmosis.tokenfactory.v1beta1.MsgMintResponse, request, callback); + }, "name", { value: "Mint" }); - /** - * 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; - }; + /** + * Calls Mint. + * @function mint + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgMint} request MsgMint message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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()); - }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#burn}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef BurnCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgBurnResponse} [response] MsgBurnResponse + */ - /** - * 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; - }; + /** + * Calls Burn. + * @function burn + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} request MsgBurn message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.BurnCallback} callback Node-style callback called with the error, if any, and MsgBurnResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.burn = function burn(request, callback) { + return this.rpcCall(burn, $root.osmosis.tokenfactory.v1beta1.MsgBurn, $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse, request, callback); + }, "name", { value: "Burn" }); - /** - * 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 - */ - 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; - }; + /** + * Calls Burn. + * @function burn + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} request MsgBurn message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * 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 - */ - 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; - }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#changeAdmin}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef ChangeAdminCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} [response] MsgChangeAdminResponse + */ - /** - * Converts this QueryDenomHashResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @instance - * @returns {Object.} JSON object - */ - QueryDenomHashResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls ChangeAdmin. + * @function changeAdmin + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} request MsgChangeAdmin message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.ChangeAdminCallback} callback Node-style callback called with the error, if any, and MsgChangeAdminResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.changeAdmin = function changeAdmin(request, callback) { + return this.rpcCall(changeAdmin, $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin, $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse, request, callback); + }, "name", { value: "ChangeAdmin" }); - return QueryDenomHashResponse; - })(); + /** + * Calls ChangeAdmin. + * @function changeAdmin + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} request MsgChangeAdmin message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v1.QueryEscrowAddressRequest = (function() { + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#setDenomMetadata}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef SetDenomMetadataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse} [response] MsgSetDenomMetadataResponse + */ - /** - * 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 - */ + /** + * Calls SetDenomMetadata. + * @function setDenomMetadata + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata} request MsgSetDenomMetadata message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.SetDenomMetadataCallback} callback Node-style callback called with the error, if any, and MsgSetDenomMetadataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.setDenomMetadata = function setDenomMetadata(request, callback) { + return this.rpcCall(setDenomMetadata, $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata, $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse, request, callback); + }, "name", { value: "SetDenomMetadata" }); - /** - * 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 - */ - 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]]; - } + /** + * Calls SetDenomMetadata. + * @function setDenomMetadata + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata} request MsgSetDenomMetadata message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * QueryEscrowAddressRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @instance - */ - QueryEscrowAddressRequest.prototype.port_id = ""; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#setBeforeSendHook}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef SetBeforeSendHookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse} [response] MsgSetBeforeSendHookResponse + */ - /** - * QueryEscrowAddressRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @instance - */ - QueryEscrowAddressRequest.prototype.channel_id = ""; + /** + * Calls SetBeforeSendHook. + * @function setBeforeSendHook + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook} request MsgSetBeforeSendHook message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.SetBeforeSendHookCallback} callback Node-style callback called with the error, if any, and MsgSetBeforeSendHookResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.setBeforeSendHook = function setBeforeSendHook(request, callback) { + return this.rpcCall(setBeforeSendHook, $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook, $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse, request, callback); + }, "name", { value: "SetBeforeSendHook" }); - /** - * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @static - * @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 - */ - 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_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - return writer; - }; + /** + * Calls SetBeforeSendHook. + * @function setBeforeSendHook + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook} request MsgSetBeforeSendHook message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @static - * @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 - */ - QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#forceTransfer}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef ForceTransferCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgForceTransferResponse} [response] MsgForceTransferResponse + */ - /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. - * @function decode - * @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.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 - */ - 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.applications.transfer.v1.QueryEscrowAddressRequest(); - 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; - }; + /** + * Calls ForceTransfer. + * @function forceTransfer + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransfer} request MsgForceTransfer message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.ForceTransferCallback} callback Node-style callback called with the error, if any, and MsgForceTransferResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.forceTransfer = function forceTransfer(request, callback) { + return this.rpcCall(forceTransfer, $root.osmosis.tokenfactory.v1beta1.MsgForceTransfer, $root.osmosis.tokenfactory.v1beta1.MsgForceTransferResponse, request, callback); + }, "name", { value: "ForceTransfer" }); - /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls ForceTransfer. + * @function forceTransfer + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransfer} request MsgForceTransfer message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Verifies a QueryEscrowAddressRequest message. - * @function verify - * @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 - */ - 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_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - return null; - }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#updateParams}. + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @typedef UpdateParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse} [response] MsgUpdateParamsResponse + */ - /** - * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @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); - return message; - }; + /** + * Calls UpdateParams. + * @function updateParams + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @param {osmosis.tokenfactory.v1beta1.Msg.UpdateParamsCallback} callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateParams = function updateParams(request, callback) { + return this.rpcCall(updateParams, $root.osmosis.tokenfactory.v1beta1.MsgUpdateParams, $root.osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse, request, callback); + }, "name", { value: "UpdateParams" }); - /** - * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryEscrowAddressRequest.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; - }; + /** + * Calls UpdateParams. + * @function updateParams + * @memberof osmosis.tokenfactory.v1beta1.Msg + * @instance + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParams} request MsgUpdateParams message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this QueryEscrowAddressRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest - * @instance - * @returns {Object.} JSON object - */ - QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Msg; + })(); - return QueryEscrowAddressRequest; - })(); + v1beta1.MsgCreateDenom = (function() { - v1.QueryEscrowAddressResponse = (function() { + /** + * Properties of a MsgCreateDenom. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgCreateDenom + * @property {string|null} [sender] MsgCreateDenom sender + * @property {string|null} [subdenom] MsgCreateDenom subdenom + */ - /** - * Properties of a QueryEscrowAddressResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryEscrowAddressResponse - * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address - */ + /** + * Constructs a new MsgCreateDenom. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgCreateDenom. + * @implements IMsgCreateDenom + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom=} [properties] Properties to set + */ + function MsgCreateDenom(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 QueryEscrowAddressResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryEscrowAddressResponse. - * @implements IQueryEscrowAddressResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set - */ - function QueryEscrowAddressResponse(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]]; - } + /** + * MsgCreateDenom sender. + * @member {string} sender + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @instance + */ + MsgCreateDenom.prototype.sender = ""; - /** - * QueryEscrowAddressResponse escrow_address. - * @member {string} escrow_address - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @instance - */ - QueryEscrowAddressResponse.prototype.escrow_address = ""; + /** + * MsgCreateDenom subdenom. + * @member {string} subdenom + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @instance + */ + MsgCreateDenom.prototype.subdenom = ""; - /** - * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @static - * @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 - */ - QueryEscrowAddressResponse.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); - return writer; - }; + /** + * Encodes the specified MsgCreateDenom message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} message MsgCreateDenom message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgCreateDenom.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); + if (message.subdenom != null && Object.hasOwnProperty.call(message, "subdenom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subdenom); + return writer; + }; - /** - * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @static - * @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 - */ - QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MsgCreateDenom message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} message MsgCreateDenom message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgCreateDenom.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. - * @function decode - * @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.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 - */ - 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.applications.transfer.v1.QueryEscrowAddressResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.escrow_address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a MsgCreateDenom message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgCreateDenom.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.subdenom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a QueryEscrowAddressResponse message. - * @function verify - * @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 - */ - QueryEscrowAddressResponse.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"; - return null; - }; + /** + * Decodes a MsgCreateDenom message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgCreateDenom.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse - */ - QueryEscrowAddressResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); - if (object.escrow_address != null) - message.escrow_address = String(object.escrow_address); - return message; - }; + /** + * Verifies a MsgCreateDenom message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgCreateDenom.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + if (!$util.isString(message.subdenom)) + return "subdenom: string expected"; + return null; + }; - /** - * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryEscrowAddressResponse.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; + /** + * Creates a MsgCreateDenom message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + */ + MsgCreateDenom.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom) return object; - }; + var message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom(); + if (object.sender != null) + message.sender = String(object.sender); + if (object.subdenom != null) + message.subdenom = String(object.subdenom); + return message; + }; - /** - * Converts this QueryEscrowAddressResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse - * @instance - * @returns {Object.} JSON object - */ - QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MsgCreateDenom message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenom} message MsgCreateDenom + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgCreateDenom.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sender = ""; + object.subdenom = ""; + } + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + object.subdenom = message.subdenom; + return object; + }; - return QueryEscrowAddressResponse; - })(); + /** + * Converts this MsgCreateDenom to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @instance + * @returns {Object.} JSON object + */ + MsgCreateDenom.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.DenomTrace = (function() { + return MsgCreateDenom; + })(); - /** - * 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 - */ + v1beta1.MsgCreateDenomResponse = (function() { - /** - * Constructs a new DenomTrace. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a DenomTrace. - * @implements IDenomTrace - * @constructor - * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set - */ - function DenomTrace(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 MsgCreateDenomResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgCreateDenomResponse + * @property {string|null} [new_token_denom] MsgCreateDenomResponse new_token_denom + */ - /** - * DenomTrace path. - * @member {string} path - * @memberof ibc.applications.transfer.v1.DenomTrace - * @instance - */ - DenomTrace.prototype.path = ""; + /** + * Constructs a new MsgCreateDenomResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgCreateDenomResponse. + * @implements IMsgCreateDenomResponse + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse=} [properties] Properties to set + */ + function MsgCreateDenomResponse(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]]; + } - /** - * DenomTrace base_denom. - * @member {string} base_denom - * @memberof ibc.applications.transfer.v1.DenomTrace - * @instance - */ - DenomTrace.prototype.base_denom = ""; + /** + * MsgCreateDenomResponse new_token_denom. + * @member {string} new_token_denom + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @instance + */ + MsgCreateDenomResponse.prototype.new_token_denom = ""; - /** - * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.DenomTrace - * @static - * @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 - */ - DenomTrace.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); - return writer; - }; + /** + * Encodes the specified MsgCreateDenomResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse} message MsgCreateDenomResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgCreateDenomResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.new_token_denom != null && Object.hasOwnProperty.call(message, "new_token_denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.new_token_denom); + return writer; + }; - /** - * 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.DenomTrace - * @static - * @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 - */ - DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MsgCreateDenomResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse} message MsgCreateDenomResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgCreateDenomResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DenomTrace message from the specified reader or buffer. - * @function decode - * @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.DenomTrace} DenomTrace - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.base_denom = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a MsgCreateDenomResponse message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgCreateDenomResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.new_token_denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a DenomTrace message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.DenomTrace - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - DenomTrace.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a DenomTrace message. - * @function verify - * @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 - */ - DenomTrace.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"; - return null; - }; + /** + * Decodes a MsgCreateDenomResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgCreateDenomResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.DenomTrace - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace - */ - DenomTrace.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) - 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); - return message; - }; + /** + * Verifies a MsgCreateDenomResponse message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgCreateDenomResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.new_token_denom != null && message.hasOwnProperty("new_token_denom")) + if (!$util.isString(message.new_token_denom)) + return "new_token_denom: string expected"; + return null; + }; - /** - * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.DenomTrace - * @static - * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DenomTrace.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.path = ""; - object.base_denom = ""; - } - 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; + /** + * Creates a MsgCreateDenomResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + */ + MsgCreateDenomResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse) return object; - }; + var message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse(); + if (object.new_token_denom != null) + message.new_token_denom = String(object.new_token_denom); + return message; + }; - /** - * Converts this DenomTrace to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.DenomTrace - * @instance - * @returns {Object.} JSON object - */ - DenomTrace.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MsgCreateDenomResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} message MsgCreateDenomResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgCreateDenomResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.new_token_denom = ""; + if (message.new_token_denom != null && message.hasOwnProperty("new_token_denom")) + object.new_token_denom = message.new_token_denom; + return object; + }; - return DenomTrace; - })(); + /** + * Converts this MsgCreateDenomResponse to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @instance + * @returns {Object.} JSON object + */ + MsgCreateDenomResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.Params = (function() { + return MsgCreateDenomResponse; + })(); - /** - * 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 - */ + v1beta1.MsgMint = (function() { - /** - * Constructs a new Params. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.applications.transfer.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 MsgMint. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgMint + * @property {string|null} [sender] MsgMint sender + * @property {cosmos.base.v1beta1.ICoin|null} [amount] MsgMint amount + * @property {string|null} [mintToAddress] MsgMint mintToAddress + */ - /** - * Params send_enabled. - * @member {boolean} send_enabled - * @memberof ibc.applications.transfer.v1.Params - * @instance - */ - Params.prototype.send_enabled = false; + /** + * Constructs a new MsgMint. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgMint. + * @implements IMsgMint + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgMint=} [properties] Properties to set + */ + function MsgMint(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 receive_enabled. - * @member {boolean} receive_enabled - * @memberof ibc.applications.transfer.v1.Params - * @instance - */ - Params.prototype.receive_enabled = false; + /** + * MsgMint sender. + * @member {string} sender + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @instance + */ + MsgMint.prototype.sender = ""; - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.Params - * @static - * @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 - */ - Params.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); - return writer; - }; + /** + * MsgMint amount. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @instance + */ + MsgMint.prototype.amount = null; - /** - * 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.v1.Params - * @static - * @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 - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MsgMint mintToAddress. + * @member {string} mintToAddress + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @instance + */ + MsgMint.prototype.mintToAddress = ""; - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @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.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.transfer.v1.Params(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.send_enabled = reader.bool(); - break; - case 2: - message.receive_enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified MsgMint message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgMint} message MsgMint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgMint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.mintToAddress != null && Object.hasOwnProperty.call(message, "mintToAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.mintToAddress); + return writer; + }; - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified MsgMint message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgMint} message MsgMint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgMint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Params message. - * @function verify - * @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 - */ - Params.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"; - return null; - }; + /** + * Decodes a MsgMint message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgMint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgMint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); + break; + case 3: + message.mintToAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.Params - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.Params) - 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); - return message; - }; + /** + * Decodes a MsgMint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgMint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.Params - * @static - * @param {ibc.applications.transfer.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.send_enabled = false; - object.receive_enabled = false; - } - 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; + /** + * Verifies a MsgMint message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgMint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.amount); + if (error) + return "amount." + error; + } + if (message.mintToAddress != null && message.hasOwnProperty("mintToAddress")) + if (!$util.isString(message.mintToAddress)) + return "mintToAddress: string expected"; + return null; + }; + + /** + * Creates a MsgMint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + */ + MsgMint.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgMint) return object; - }; + var message = new $root.osmosis.tokenfactory.v1beta1.MsgMint(); + if (object.sender != null) + message.sender = String(object.sender); + if (object.amount != null) { + if (typeof object.amount !== "object") + throw TypeError(".osmosis.tokenfactory.v1beta1.MsgMint.amount: object expected"); + message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); + } + if (object.mintToAddress != null) + message.mintToAddress = String(object.mintToAddress); + return message; + }; - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.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 MsgMint message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgMint} message MsgMint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgMint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sender = ""; + object.amount = null; + object.mintToAddress = ""; + } + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); + if (message.mintToAddress != null && message.hasOwnProperty("mintToAddress")) + object.mintToAddress = message.mintToAddress; + return object; + }; - return Params; - })(); + /** + * Converts this MsgMint to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @instance + * @returns {Object.} JSON object + */ + MsgMint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return v1; + return MsgMint; })(); - return transfer; - })(); + v1beta1.MsgMintResponse = (function() { + + /** + * Properties of a MsgMintResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgMintResponse + */ + + /** + * Constructs a new MsgMintResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgMintResponse. + * @implements IMsgMintResponse + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse=} [properties] Properties to set + */ + function MsgMintResponse(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 MsgMintResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse} message MsgMintResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgMintResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified MsgMintResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse} message MsgMintResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgMintResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgMintResponse message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgMintResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgMintResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgMintResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgMintResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return applications; - })(); + /** + * Verifies a MsgMintResponse message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgMintResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - return ibc; - })(); + /** + * Creates a MsgMintResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + */ + MsgMintResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgMintResponse) + return object; + return new $root.osmosis.tokenfactory.v1beta1.MsgMintResponse(); + }; - $root.cosmos_proto = (function() { + /** + * Creates a plain object from a MsgMintResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgMintResponse} message MsgMintResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgMintResponse.toObject = function toObject() { + return {}; + }; - /** - * Namespace cosmos_proto. - * @exports cosmos_proto - * @namespace - */ - var cosmos_proto = {}; + /** + * Converts this MsgMintResponse to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @instance + * @returns {Object.} JSON object + */ + MsgMintResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - cosmos_proto.InterfaceDescriptor = (function() { + return MsgMintResponse; + })(); - /** - * Properties of an InterfaceDescriptor. - * @memberof cosmos_proto - * @interface IInterfaceDescriptor - * @property {string|null} [name] InterfaceDescriptor name - * @property {string|null} [description] InterfaceDescriptor description - */ + v1beta1.MsgBurn = (function() { - /** - * 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]]; - } + /** + * Properties of a MsgBurn. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgBurn + * @property {string|null} [sender] MsgBurn sender + * @property {cosmos.base.v1beta1.ICoin|null} [amount] MsgBurn amount + * @property {string|null} [burnFromAddress] MsgBurn burnFromAddress + */ - /** - * InterfaceDescriptor name. - * @member {string} name - * @memberof cosmos_proto.InterfaceDescriptor - * @instance - */ - InterfaceDescriptor.prototype.name = ""; + /** + * Constructs a new MsgBurn. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgBurn. + * @implements IMsgBurn + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgBurn=} [properties] Properties to set + */ + function MsgBurn(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 description. - * @member {string} description - * @memberof cosmos_proto.InterfaceDescriptor - * @instance - */ - InterfaceDescriptor.prototype.description = ""; + /** + * MsgBurn sender. + * @member {string} sender + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @instance + */ + MsgBurn.prototype.sender = ""; - /** - * 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; - }; + /** + * MsgBurn amount. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @instance + */ + MsgBurn.prototype.amount = null; - /** - * 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(); - }; + /** + * MsgBurn burnFromAddress. + * @member {string} burnFromAddress + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @instance + */ + MsgBurn.prototype.burnFromAddress = ""; - /** - * 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 2: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified MsgBurn message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} message MsgBurn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgBurn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.burnFromAddress != null && Object.hasOwnProperty.call(message, "burnFromAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.burnFromAddress); + return writer; + }; - /** - * 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()); - }; + /** + * Encodes the specified MsgBurn message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} message MsgBurn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgBurn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - }; + /** + * Decodes a MsgBurn message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgBurn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgBurn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); + break; + case 3: + message.burnFromAddress = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a MsgBurn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgBurn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * Verifies a MsgBurn message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgBurn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.amount); + if (error) + return "amount." + error; + } + if (message.burnFromAddress != null && message.hasOwnProperty("burnFromAddress")) + if (!$util.isString(message.burnFromAddress)) + return "burnFromAddress: string expected"; + return null; + }; - /** - * 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); - }; + /** + * Creates a MsgBurn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + */ + MsgBurn.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgBurn) + return object; + var message = new $root.osmosis.tokenfactory.v1beta1.MsgBurn(); + if (object.sender != null) + message.sender = String(object.sender); + if (object.amount != null) { + if (typeof object.amount !== "object") + throw TypeError(".osmosis.tokenfactory.v1beta1.MsgBurn.amount: object expected"); + message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); + } + if (object.burnFromAddress != null) + message.burnFromAddress = String(object.burnFromAddress); + return message; + }; - return InterfaceDescriptor; - })(); + /** + * Creates a plain object from a MsgBurn message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgBurn} message MsgBurn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgBurn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sender = ""; + object.amount = null; + object.burnFromAddress = ""; + } + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); + if (message.burnFromAddress != null && message.hasOwnProperty("burnFromAddress")) + object.burnFromAddress = message.burnFromAddress; + return object; + }; - cosmos_proto.ScalarDescriptor = (function() { + /** + * Converts this MsgBurn to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @instance + * @returns {Object.} JSON object + */ + MsgBurn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 - * @property {string|null} [legacy_amino_encoding] ScalarDescriptor legacy_amino_encoding - */ + return MsgBurn; + })(); - /** - * 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]]; - } + v1beta1.MsgBurnResponse = (function() { - /** - * ScalarDescriptor name. - * @member {string} name - * @memberof cosmos_proto.ScalarDescriptor - * @instance - */ - ScalarDescriptor.prototype.name = ""; + /** + * Properties of a MsgBurnResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgBurnResponse + */ - /** - * ScalarDescriptor description. - * @member {string} description - * @memberof cosmos_proto.ScalarDescriptor - * @instance - */ - ScalarDescriptor.prototype.description = ""; + /** + * Constructs a new MsgBurnResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgBurnResponse. + * @implements IMsgBurnResponse + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse=} [properties] Properties to set + */ + function MsgBurnResponse(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 field_type. - * @member {Array.} field_type - * @memberof cosmos_proto.ScalarDescriptor - * @instance - */ - ScalarDescriptor.prototype.field_type = $util.emptyArray; + /** + * Encodes the specified MsgBurnResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse} message MsgBurnResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgBurnResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * ScalarDescriptor legacy_amino_encoding. - * @member {string} legacy_amino_encoding - * @memberof cosmos_proto.ScalarDescriptor - * @instance - */ - ScalarDescriptor.prototype.legacy_amino_encoding = ""; + /** + * Encodes the specified MsgBurnResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse} message MsgBurnResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgBurnResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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(); - } - if (message.legacy_amino_encoding != null && Object.hasOwnProperty.call(message, "legacy_amino_encoding")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.legacy_amino_encoding); - return writer; - }; + /** + * Decodes a MsgBurnResponse message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgBurnResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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 a MsgBurnResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgBurnResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - case 4: - message.legacy_amino_encoding = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a MsgBurnResponse message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgBurnResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * 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()); - }; + /** + * Creates a MsgBurnResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + */ + MsgBurnResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse) + return object; + return new $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse(); + }; - /** - * 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: - case 2: - break; - } - } - if (message.legacy_amino_encoding != null && message.hasOwnProperty("legacy_amino_encoding")) - if (!$util.isString(message.legacy_amino_encoding)) - return "legacy_amino_encoding: string expected"; - return null; - }; + /** + * Creates a plain object from a MsgBurnResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgBurnResponse} message MsgBurnResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgBurnResponse.toObject = function toObject() { + return {}; + }; - /** - * 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: - 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; - } - } - if (object.legacy_amino_encoding != null) - message.legacy_amino_encoding = String(object.legacy_amino_encoding); - return message; - }; + /** + * Converts this MsgBurnResponse to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @instance + * @returns {Object.} JSON object + */ + MsgBurnResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 = ""; - object.legacy_amino_encoding = ""; - } - 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]; - } - if (message.legacy_amino_encoding != null && message.hasOwnProperty("legacy_amino_encoding")) - object.legacy_amino_encoding = message.legacy_amino_encoding; - return object; - }; + return MsgBurnResponse; + })(); - /** - * 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); - }; + v1beta1.MsgChangeAdmin = (function() { - return ScalarDescriptor; - })(); + /** + * Properties of a MsgChangeAdmin. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgChangeAdmin + * @property {string|null} [sender] MsgChangeAdmin sender + * @property {string|null} [denom] MsgChangeAdmin denom + * @property {string|null} [new_admin] MsgChangeAdmin new_admin + */ - /** - * 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; - })(); + /** + * Constructs a new MsgChangeAdmin. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgChangeAdmin. + * @implements IMsgChangeAdmin + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin=} [properties] Properties to set + */ + function MsgChangeAdmin(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 cosmos_proto; - })(); + /** + * MsgChangeAdmin sender. + * @member {string} sender + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @instance + */ + MsgChangeAdmin.prototype.sender = ""; - $root.osmosis = (function() { + /** + * MsgChangeAdmin denom. + * @member {string} denom + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @instance + */ + MsgChangeAdmin.prototype.denom = ""; - /** - * Namespace osmosis. - * @exports osmosis - * @namespace - */ - var osmosis = {}; + /** + * MsgChangeAdmin new_admin. + * @member {string} new_admin + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @instance + */ + MsgChangeAdmin.prototype.new_admin = ""; - osmosis.tokenfactory = (function() { + /** + * Encodes the specified MsgChangeAdmin message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} message MsgChangeAdmin message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgChangeAdmin.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.denom); + if (message.new_admin != null && Object.hasOwnProperty.call(message, "new_admin")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.new_admin); + return writer; + }; - /** - * Namespace tokenfactory. - * @memberof osmosis - * @namespace - */ - var tokenfactory = {}; + /** + * Encodes the specified MsgChangeAdmin message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} message MsgChangeAdmin message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgChangeAdmin.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - tokenfactory.v1beta1 = (function() { + /** + * Decodes a MsgChangeAdmin message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgChangeAdmin.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sender = reader.string(); + break; + case 2: + message.denom = reader.string(); + break; + case 3: + message.new_admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Namespace v1beta1. - * @memberof osmosis.tokenfactory - * @namespace - */ - var v1beta1 = {}; + /** + * Decodes a MsgChangeAdmin message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgChangeAdmin.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - v1beta1.Msg = (function() { + /** + * Verifies a MsgChangeAdmin message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgChangeAdmin.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.new_admin != null && message.hasOwnProperty("new_admin")) + if (!$util.isString(message.new_admin)) + return "new_admin: string expected"; + return null; + }; /** - * Constructs a new Msg service. - * @memberof osmosis.tokenfactory.v1beta1 - * @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 + * Creates a MsgChangeAdmin message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + MsgChangeAdmin.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin) + return object; + var message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin(); + if (object.sender != null) + message.sender = String(object.sender); + if (object.denom != null) + message.denom = String(object.denom); + if (object.new_admin != null) + message.new_admin = String(object.new_admin); + return message; + }; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#createDenom}. - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @typedef CreateDenomCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} [response] MsgCreateDenomResponse + * Creates a plain object from a MsgChangeAdmin message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} message MsgChangeAdmin + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + MsgChangeAdmin.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sender = ""; + object.denom = ""; + object.new_admin = ""; + } + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.new_admin != null && message.hasOwnProperty("new_admin")) + object.new_admin = message.new_admin; + return object; + }; /** - * Calls CreateDenom. - * @function createDenom - * @memberof osmosis.tokenfactory.v1beta1.Msg + * Converts this MsgChangeAdmin to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} request MsgCreateDenom message or plain object - * @param {osmosis.tokenfactory.v1beta1.Msg.CreateDenomCallback} callback Node-style callback called with the error, if any, and MsgCreateDenomResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Msg.prototype.createDenom = function createDenom(request, callback) { - return this.rpcCall(createDenom, $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom, $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse, request, callback); - }, "name", { value: "CreateDenom" }); + MsgChangeAdmin.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgChangeAdmin; + })(); + + v1beta1.MsgChangeAdminResponse = (function() { /** - * Calls CreateDenom. - * @function createDenom - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} request MsgCreateDenom message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a MsgChangeAdminResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IMsgChangeAdminResponse */ /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#mint}. - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @typedef MintCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {osmosis.tokenfactory.v1beta1.MsgMintResponse} [response] MsgMintResponse + * Constructs a new MsgChangeAdminResponse. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a MsgChangeAdminResponse. + * @implements IMsgChangeAdminResponse + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse=} [properties] Properties to set */ + function MsgChangeAdminResponse(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 Mint. - * @function mint - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgMint} request MsgMint message or plain object - * @param {osmosis.tokenfactory.v1beta1.Msg.MintCallback} callback Node-style callback called with the error, if any, and MsgMintResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgChangeAdminResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse} message MsgChangeAdminResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Msg.prototype.mint = function mint(request, callback) { - return this.rpcCall(mint, $root.osmosis.tokenfactory.v1beta1.MsgMint, $root.osmosis.tokenfactory.v1beta1.MsgMintResponse, request, callback); - }, "name", { value: "Mint" }); + MsgChangeAdminResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls Mint. - * @function mint - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgMint} request MsgMint message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgChangeAdminResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse} message MsgChangeAdminResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgChangeAdminResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#burn}. - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @typedef BurnCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {osmosis.tokenfactory.v1beta1.MsgBurnResponse} [response] MsgBurnResponse + * Decodes a MsgChangeAdminResponse message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChangeAdminResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls Burn. - * @function burn - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} request MsgBurn message or plain object - * @param {osmosis.tokenfactory.v1beta1.Msg.BurnCallback} callback Node-style callback called with the error, if any, and MsgBurnResponse - * @returns {undefined} - * @variation 1 + * Decodes a MsgChangeAdminResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Msg.prototype.burn = function burn(request, callback) { - return this.rpcCall(burn, $root.osmosis.tokenfactory.v1beta1.MsgBurn, $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse, request, callback); - }, "name", { value: "Burn" }); + MsgChangeAdminResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls Burn. - * @function burn - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} request MsgBurn message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MsgChangeAdminResponse message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MsgChangeAdminResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#changeAdmin}. - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @typedef ChangeAdminCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} [response] MsgChangeAdminResponse + * Creates a MsgChangeAdminResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse */ + MsgChangeAdminResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse) + return object; + return new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse(); + }; /** - * Calls ChangeAdmin. - * @function changeAdmin - * @memberof osmosis.tokenfactory.v1beta1.Msg - * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} request MsgChangeAdmin message or plain object - * @param {osmosis.tokenfactory.v1beta1.Msg.ChangeAdminCallback} callback Node-style callback called with the error, if any, and MsgChangeAdminResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MsgChangeAdminResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @static + * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} message MsgChangeAdminResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Msg.prototype.changeAdmin = function changeAdmin(request, callback) { - return this.rpcCall(changeAdmin, $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin, $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse, request, callback); - }, "name", { value: "ChangeAdmin" }); + MsgChangeAdminResponse.toObject = function toObject() { + return {}; + }; /** - * Calls ChangeAdmin. - * @function changeAdmin - * @memberof osmosis.tokenfactory.v1beta1.Msg + * Converts this MsgChangeAdminResponse to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse * @instance - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} request MsgChangeAdmin message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MsgChangeAdminResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Msg; + return MsgChangeAdminResponse; })(); - v1beta1.MsgCreateDenom = (function() { + v1beta1.MsgSetBeforeSendHook = (function() { /** - * Properties of a MsgCreateDenom. + * Properties of a MsgSetBeforeSendHook. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgCreateDenom - * @property {string|null} [sender] MsgCreateDenom sender - * @property {string|null} [subdenom] MsgCreateDenom subdenom + * @interface IMsgSetBeforeSendHook + * @property {string|null} [sender] MsgSetBeforeSendHook sender + * @property {string|null} [denom] MsgSetBeforeSendHook denom + * @property {string|null} [cosmwasm_address] MsgSetBeforeSendHook cosmwasm_address */ /** - * Constructs a new MsgCreateDenom. + * Constructs a new MsgSetBeforeSendHook. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgCreateDenom. - * @implements IMsgCreateDenom + * @classdesc Represents a MsgSetBeforeSendHook. + * @implements IMsgSetBeforeSendHook * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook=} [properties] Properties to set */ - function MsgCreateDenom(properties) { + function MsgSetBeforeSendHook(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54319,68 +62309,78 @@ } /** - * MsgCreateDenom sender. + * MsgSetBeforeSendHook sender. * @member {string} sender - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @instance */ - MsgCreateDenom.prototype.sender = ""; + MsgSetBeforeSendHook.prototype.sender = ""; /** - * MsgCreateDenom subdenom. - * @member {string} subdenom - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * MsgSetBeforeSendHook denom. + * @member {string} denom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @instance */ - MsgCreateDenom.prototype.subdenom = ""; + MsgSetBeforeSendHook.prototype.denom = ""; /** - * Encodes the specified MsgCreateDenom message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * MsgSetBeforeSendHook cosmwasm_address. + * @member {string} cosmwasm_address + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook + * @instance + */ + MsgSetBeforeSendHook.prototype.cosmwasm_address = ""; + + /** + * Encodes the specified MsgSetBeforeSendHook message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} message MsgCreateDenom message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook} message MsgSetBeforeSendHook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateDenom.encode = function encode(message, writer) { + MsgSetBeforeSendHook.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); - if (message.subdenom != null && Object.hasOwnProperty.call(message, "subdenom")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subdenom); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.denom); + if (message.cosmwasm_address != null && Object.hasOwnProperty.call(message, "cosmwasm_address")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cosmwasm_address); return writer; }; /** - * Encodes the specified MsgCreateDenom message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * Encodes the specified MsgSetBeforeSendHook message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenom} message MsgCreateDenom message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook} message MsgSetBeforeSendHook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateDenom.encodeDelimited = function encodeDelimited(message, writer) { + MsgSetBeforeSendHook.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateDenom message from the specified reader or buffer. + * Decodes a MsgSetBeforeSendHook message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook} MsgSetBeforeSendHook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateDenom.decode = function decode(reader, length) { + MsgSetBeforeSendHook.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -54388,7 +62388,10 @@ message.sender = reader.string(); break; case 2: - message.subdenom = reader.string(); + message.denom = reader.string(); + break; + case 3: + message.cosmwasm_address = reader.string(); break; default: reader.skipType(tag & 7); @@ -54399,116 +62402,123 @@ }; /** - * Decodes a MsgCreateDenom message from the specified reader or buffer, length delimited. + * Decodes a MsgSetBeforeSendHook message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook} MsgSetBeforeSendHook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateDenom.decodeDelimited = function decodeDelimited(reader) { + MsgSetBeforeSendHook.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateDenom message. + * Verifies a MsgSetBeforeSendHook message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateDenom.verify = function verify(message) { + MsgSetBeforeSendHook.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.sender != null && message.hasOwnProperty("sender")) if (!$util.isString(message.sender)) return "sender: string expected"; - if (message.subdenom != null && message.hasOwnProperty("subdenom")) - if (!$util.isString(message.subdenom)) - return "subdenom: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) + if (!$util.isString(message.cosmwasm_address)) + return "cosmwasm_address: string expected"; return null; }; /** - * Creates a MsgCreateDenom message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetBeforeSendHook message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenom} MsgCreateDenom + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook} MsgSetBeforeSendHook */ - MsgCreateDenom.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom) + MsgSetBeforeSendHook.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenom(); + var message = new $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook(); if (object.sender != null) message.sender = String(object.sender); - if (object.subdenom != null) - message.subdenom = String(object.subdenom); + if (object.denom != null) + message.denom = String(object.denom); + if (object.cosmwasm_address != null) + message.cosmwasm_address = String(object.cosmwasm_address); return message; }; /** - * Creates a plain object from a MsgCreateDenom message. Also converts values to other types if specified. + * Creates a plain object from a MsgSetBeforeSendHook message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @static - * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenom} message MsgCreateDenom + * @param {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook} message MsgSetBeforeSendHook * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateDenom.toObject = function toObject(message, options) { + MsgSetBeforeSendHook.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.sender = ""; - object.subdenom = ""; + object.denom = ""; + object.cosmwasm_address = ""; } if (message.sender != null && message.hasOwnProperty("sender")) object.sender = message.sender; - if (message.subdenom != null && message.hasOwnProperty("subdenom")) - object.subdenom = message.subdenom; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) + object.cosmwasm_address = message.cosmwasm_address; return object; }; /** - * Converts this MsgCreateDenom to JSON. + * Converts this MsgSetBeforeSendHook to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenom + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @instance * @returns {Object.} JSON object */ - MsgCreateDenom.prototype.toJSON = function toJSON() { + MsgSetBeforeSendHook.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateDenom; + return MsgSetBeforeSendHook; })(); - v1beta1.MsgCreateDenomResponse = (function() { + v1beta1.MsgSetBeforeSendHookResponse = (function() { /** - * Properties of a MsgCreateDenomResponse. + * Properties of a MsgSetBeforeSendHookResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgCreateDenomResponse - * @property {string|null} [new_token_denom] MsgCreateDenomResponse new_token_denom + * @interface IMsgSetBeforeSendHookResponse */ /** - * Constructs a new MsgCreateDenomResponse. + * Constructs a new MsgSetBeforeSendHookResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgCreateDenomResponse. - * @implements IMsgCreateDenomResponse + * @classdesc Represents a MsgSetBeforeSendHookResponse. + * @implements IMsgSetBeforeSendHookResponse * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse=} [properties] Properties to set */ - function MsgCreateDenomResponse(properties) { + function MsgSetBeforeSendHookResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54516,64 +62526,51 @@ } /** - * MsgCreateDenomResponse new_token_denom. - * @member {string} new_token_denom - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse - * @instance - */ - MsgCreateDenomResponse.prototype.new_token_denom = ""; - - /** - * Encodes the specified MsgCreateDenomResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * Encodes the specified MsgSetBeforeSendHookResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse} message MsgCreateDenomResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse} message MsgSetBeforeSendHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateDenomResponse.encode = function encode(message, writer) { + MsgSetBeforeSendHookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.new_token_denom != null && Object.hasOwnProperty.call(message, "new_token_denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.new_token_denom); return writer; }; /** - * Encodes the specified MsgCreateDenomResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * Encodes the specified MsgSetBeforeSendHookResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse} message MsgCreateDenomResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse} message MsgSetBeforeSendHookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateDenomResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgSetBeforeSendHookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateDenomResponse message from the specified reader or buffer. + * Decodes a MsgSetBeforeSendHookResponse message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse} MsgSetBeforeSendHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateDenomResponse.decode = function decode(reader, length) { + MsgSetBeforeSendHookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.new_token_denom = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -54583,108 +62580,95 @@ }; /** - * Decodes a MsgCreateDenomResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSetBeforeSendHookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse} MsgSetBeforeSendHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateDenomResponse.decodeDelimited = function decodeDelimited(reader) { + MsgSetBeforeSendHookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateDenomResponse message. + * Verifies a MsgSetBeforeSendHookResponse message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateDenomResponse.verify = function verify(message) { + MsgSetBeforeSendHookResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.new_token_denom != null && message.hasOwnProperty("new_token_denom")) - if (!$util.isString(message.new_token_denom)) - return "new_token_denom: string expected"; return null; }; /** - * Creates a MsgCreateDenomResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetBeforeSendHookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} MsgCreateDenomResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse} MsgSetBeforeSendHookResponse */ - MsgCreateDenomResponse.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse) + MsgSetBeforeSendHookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse(); - if (object.new_token_denom != null) - message.new_token_denom = String(object.new_token_denom); - return message; + return new $root.osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse(); }; /** - * Creates a plain object from a MsgCreateDenomResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgSetBeforeSendHookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @static - * @param {osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse} message MsgCreateDenomResponse + * @param {osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse} message MsgSetBeforeSendHookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateDenomResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.new_token_denom = ""; - if (message.new_token_denom != null && message.hasOwnProperty("new_token_denom")) - object.new_token_denom = message.new_token_denom; - return object; + MsgSetBeforeSendHookResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MsgCreateDenomResponse to JSON. + * Converts this MsgSetBeforeSendHookResponse to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse * @instance * @returns {Object.} JSON object */ - MsgCreateDenomResponse.prototype.toJSON = function toJSON() { + MsgSetBeforeSendHookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateDenomResponse; + return MsgSetBeforeSendHookResponse; })(); - v1beta1.MsgMint = (function() { + v1beta1.MsgSetDenomMetadata = (function() { /** - * Properties of a MsgMint. + * Properties of a MsgSetDenomMetadata. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgMint - * @property {string|null} [sender] MsgMint sender - * @property {cosmos.base.v1beta1.ICoin|null} [amount] MsgMint amount + * @interface IMsgSetDenomMetadata + * @property {string|null} [sender] MsgSetDenomMetadata sender + * @property {cosmos.bank.v1beta1.IMetadata|null} [metadata] MsgSetDenomMetadata metadata */ /** - * Constructs a new MsgMint. + * Constructs a new MsgSetDenomMetadata. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgMint. - * @implements IMsgMint + * @classdesc Represents a MsgSetDenomMetadata. + * @implements IMsgSetDenomMetadata * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgMint=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata=} [properties] Properties to set */ - function MsgMint(properties) { + function MsgSetDenomMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54692,68 +62676,68 @@ } /** - * MsgMint sender. + * MsgSetDenomMetadata sender. * @member {string} sender - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @instance */ - MsgMint.prototype.sender = ""; + MsgSetDenomMetadata.prototype.sender = ""; /** - * MsgMint amount. - * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * MsgSetDenomMetadata metadata. + * @member {cosmos.bank.v1beta1.IMetadata|null|undefined} metadata + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @instance */ - MsgMint.prototype.amount = null; + MsgSetDenomMetadata.prototype.metadata = null; /** - * Encodes the specified MsgMint message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * Encodes the specified MsgSetDenomMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgMint} message MsgMint message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata} message MsgSetDenomMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgMint.encode = function encode(message, writer) { + MsgSetDenomMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.cosmos.bank.v1beta1.Metadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgMint message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * Encodes the specified MsgSetDenomMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgMint} message MsgMint message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata} message MsgSetDenomMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgMint.encodeDelimited = function encodeDelimited(message, writer) { + MsgSetDenomMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgMint message from the specified reader or buffer. + * Decodes a MsgSetDenomMetadata message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata} MsgSetDenomMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgMint.decode = function decode(reader, length) { + MsgSetDenomMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgMint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -54761,7 +62745,7 @@ message.sender = reader.string(); break; case 2: - message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); + message.metadata = $root.cosmos.bank.v1beta1.Metadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54772,120 +62756,120 @@ }; /** - * Decodes a MsgMint message from the specified reader or buffer, length delimited. + * Decodes a MsgSetDenomMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata} MsgSetDenomMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgMint.decodeDelimited = function decodeDelimited(reader) { + MsgSetDenomMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgMint message. + * Verifies a MsgSetDenomMetadata message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgMint.verify = function verify(message) { + MsgSetDenomMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.sender != null && message.hasOwnProperty("sender")) if (!$util.isString(message.sender)) return "sender: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.amount); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.cosmos.bank.v1beta1.Metadata.verify(message.metadata); if (error) - return "amount." + error; + return "metadata." + error; } return null; }; /** - * Creates a MsgMint message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetDenomMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgMint} MsgMint + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata} MsgSetDenomMetadata */ - MsgMint.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgMint) + MsgSetDenomMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.MsgMint(); + var message = new $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata(); if (object.sender != null) message.sender = String(object.sender); - if (object.amount != null) { - if (typeof object.amount !== "object") - throw TypeError(".osmosis.tokenfactory.v1beta1.MsgMint.amount: object expected"); - message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata.metadata: object expected"); + message.metadata = $root.cosmos.bank.v1beta1.Metadata.fromObject(object.metadata); } return message; }; /** - * Creates a plain object from a MsgMint message. Also converts values to other types if specified. + * Creates a plain object from a MsgSetDenomMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @static - * @param {osmosis.tokenfactory.v1beta1.MsgMint} message MsgMint + * @param {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata} message MsgSetDenomMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgMint.toObject = function toObject(message, options) { + MsgSetDenomMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.sender = ""; - object.amount = null; + object.metadata = null; } if (message.sender != null && message.hasOwnProperty("sender")) object.sender = message.sender; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.cosmos.bank.v1beta1.Metadata.toObject(message.metadata, options); return object; }; /** - * Converts this MsgMint to JSON. + * Converts this MsgSetDenomMetadata to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgMint + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata * @instance * @returns {Object.} JSON object */ - MsgMint.prototype.toJSON = function toJSON() { + MsgSetDenomMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgMint; + return MsgSetDenomMetadata; })(); - v1beta1.MsgMintResponse = (function() { + v1beta1.MsgSetDenomMetadataResponse = (function() { /** - * Properties of a MsgMintResponse. + * Properties of a MsgSetDenomMetadataResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgMintResponse + * @interface IMsgSetDenomMetadataResponse */ /** - * Constructs a new MsgMintResponse. + * Constructs a new MsgSetDenomMetadataResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgMintResponse. - * @implements IMsgMintResponse + * @classdesc Represents a MsgSetDenomMetadataResponse. + * @implements IMsgSetDenomMetadataResponse * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse=} [properties] Properties to set */ - function MsgMintResponse(properties) { + function MsgSetDenomMetadataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54893,48 +62877,48 @@ } /** - * Encodes the specified MsgMintResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * Encodes the specified MsgSetDenomMetadataResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse} message MsgMintResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse} message MsgSetDenomMetadataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgMintResponse.encode = function encode(message, writer) { + MsgSetDenomMetadataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgMintResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * Encodes the specified MsgSetDenomMetadataResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgMintResponse} message MsgMintResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse} message MsgSetDenomMetadataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgMintResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgSetDenomMetadataResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgMintResponse message from the specified reader or buffer. + * Decodes a MsgSetDenomMetadataResponse message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse} MsgSetDenomMetadataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgMintResponse.decode = function decode(reader, length) { + MsgSetDenomMetadataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgMintResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -54947,95 +62931,97 @@ }; /** - * Decodes a MsgMintResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSetDenomMetadataResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse} MsgSetDenomMetadataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgMintResponse.decodeDelimited = function decodeDelimited(reader) { + MsgSetDenomMetadataResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgMintResponse message. + * Verifies a MsgSetDenomMetadataResponse message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgMintResponse.verify = function verify(message) { + MsgSetDenomMetadataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgMintResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetDenomMetadataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgMintResponse} MsgMintResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse} MsgSetDenomMetadataResponse */ - MsgMintResponse.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgMintResponse) + MsgSetDenomMetadataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse) return object; - return new $root.osmosis.tokenfactory.v1beta1.MsgMintResponse(); + return new $root.osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse(); }; /** - * Creates a plain object from a MsgMintResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgSetDenomMetadataResponse message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @static - * @param {osmosis.tokenfactory.v1beta1.MsgMintResponse} message MsgMintResponse + * @param {osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse} message MsgSetDenomMetadataResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgMintResponse.toObject = function toObject() { + MsgSetDenomMetadataResponse.toObject = function toObject() { return {}; }; /** - * Converts this MsgMintResponse to JSON. + * Converts this MsgSetDenomMetadataResponse to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgMintResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse * @instance * @returns {Object.} JSON object */ - MsgMintResponse.prototype.toJSON = function toJSON() { + MsgSetDenomMetadataResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgMintResponse; + return MsgSetDenomMetadataResponse; })(); - v1beta1.MsgBurn = (function() { + v1beta1.MsgForceTransfer = (function() { /** - * Properties of a MsgBurn. + * Properties of a MsgForceTransfer. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgBurn - * @property {string|null} [sender] MsgBurn sender - * @property {cosmos.base.v1beta1.ICoin|null} [amount] MsgBurn amount + * @interface IMsgForceTransfer + * @property {string|null} [sender] MsgForceTransfer sender + * @property {cosmos.base.v1beta1.ICoin|null} [amount] MsgForceTransfer amount + * @property {string|null} [transferFromAddress] MsgForceTransfer transferFromAddress + * @property {string|null} [transferToAddress] MsgForceTransfer transferToAddress */ /** - * Constructs a new MsgBurn. + * Constructs a new MsgForceTransfer. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgBurn. - * @implements IMsgBurn + * @classdesc Represents a MsgForceTransfer. + * @implements IMsgForceTransfer * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgBurn=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransfer=} [properties] Properties to set */ - function MsgBurn(properties) { + function MsgForceTransfer(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55043,68 +63029,88 @@ } /** - * MsgBurn sender. + * MsgForceTransfer sender. * @member {string} sender - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @instance */ - MsgBurn.prototype.sender = ""; + MsgForceTransfer.prototype.sender = ""; /** - * MsgBurn amount. + * MsgForceTransfer amount. * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @instance */ - MsgBurn.prototype.amount = null; + MsgForceTransfer.prototype.amount = null; /** - * Encodes the specified MsgBurn message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * MsgForceTransfer transferFromAddress. + * @member {string} transferFromAddress + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer + * @instance + */ + MsgForceTransfer.prototype.transferFromAddress = ""; + + /** + * MsgForceTransfer transferToAddress. + * @member {string} transferToAddress + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer + * @instance + */ + MsgForceTransfer.prototype.transferToAddress = ""; + + /** + * Encodes the specified MsgForceTransfer message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransfer.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} message MsgBurn message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransfer} message MsgForceTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgBurn.encode = function encode(message, writer) { + MsgForceTransfer.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transferFromAddress != null && Object.hasOwnProperty.call(message, "transferFromAddress")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transferFromAddress); + if (message.transferToAddress != null && Object.hasOwnProperty.call(message, "transferToAddress")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.transferToAddress); return writer; }; /** - * Encodes the specified MsgBurn message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * Encodes the specified MsgForceTransfer message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransfer.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgBurn} message MsgBurn message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransfer} message MsgForceTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgBurn.encodeDelimited = function encodeDelimited(message, writer) { + MsgForceTransfer.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgBurn message from the specified reader or buffer. + * Decodes a MsgForceTransfer message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransfer} MsgForceTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgBurn.decode = function decode(reader, length) { + MsgForceTransfer.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgBurn(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgForceTransfer(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55114,6 +63120,12 @@ case 2: message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); break; + case 3: + message.transferFromAddress = reader.string(); + break; + case 4: + message.transferToAddress = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -55123,30 +63135,30 @@ }; /** - * Decodes a MsgBurn message from the specified reader or buffer, length delimited. + * Decodes a MsgForceTransfer message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransfer} MsgForceTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgBurn.decodeDelimited = function decodeDelimited(reader) { + MsgForceTransfer.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgBurn message. + * Verifies a MsgForceTransfer message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgBurn.verify = function verify(message) { + MsgForceTransfer.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.sender != null && message.hasOwnProperty("sender")) @@ -55157,86 +63169,102 @@ if (error) return "amount." + error; } + if (message.transferFromAddress != null && message.hasOwnProperty("transferFromAddress")) + if (!$util.isString(message.transferFromAddress)) + return "transferFromAddress: string expected"; + if (message.transferToAddress != null && message.hasOwnProperty("transferToAddress")) + if (!$util.isString(message.transferToAddress)) + return "transferToAddress: string expected"; return null; }; /** - * Creates a MsgBurn message from a plain object. Also converts values to their respective internal types. + * Creates a MsgForceTransfer message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgBurn} MsgBurn + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransfer} MsgForceTransfer */ - MsgBurn.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgBurn) + MsgForceTransfer.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgForceTransfer) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.MsgBurn(); + var message = new $root.osmosis.tokenfactory.v1beta1.MsgForceTransfer(); if (object.sender != null) message.sender = String(object.sender); if (object.amount != null) { if (typeof object.amount !== "object") - throw TypeError(".osmosis.tokenfactory.v1beta1.MsgBurn.amount: object expected"); + throw TypeError(".osmosis.tokenfactory.v1beta1.MsgForceTransfer.amount: object expected"); message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); } + if (object.transferFromAddress != null) + message.transferFromAddress = String(object.transferFromAddress); + if (object.transferToAddress != null) + message.transferToAddress = String(object.transferToAddress); return message; }; /** - * Creates a plain object from a MsgBurn message. Also converts values to other types if specified. + * Creates a plain object from a MsgForceTransfer message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @static - * @param {osmosis.tokenfactory.v1beta1.MsgBurn} message MsgBurn + * @param {osmosis.tokenfactory.v1beta1.MsgForceTransfer} message MsgForceTransfer * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgBurn.toObject = function toObject(message, options) { + MsgForceTransfer.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.sender = ""; object.amount = null; + object.transferFromAddress = ""; + object.transferToAddress = ""; } if (message.sender != null && message.hasOwnProperty("sender")) object.sender = message.sender; if (message.amount != null && message.hasOwnProperty("amount")) object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); + if (message.transferFromAddress != null && message.hasOwnProperty("transferFromAddress")) + object.transferFromAddress = message.transferFromAddress; + if (message.transferToAddress != null && message.hasOwnProperty("transferToAddress")) + object.transferToAddress = message.transferToAddress; return object; }; /** - * Converts this MsgBurn to JSON. + * Converts this MsgForceTransfer to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgBurn + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransfer * @instance * @returns {Object.} JSON object */ - MsgBurn.prototype.toJSON = function toJSON() { + MsgForceTransfer.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgBurn; + return MsgForceTransfer; })(); - v1beta1.MsgBurnResponse = (function() { + v1beta1.MsgForceTransferResponse = (function() { /** - * Properties of a MsgBurnResponse. + * Properties of a MsgForceTransferResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgBurnResponse + * @interface IMsgForceTransferResponse */ /** - * Constructs a new MsgBurnResponse. + * Constructs a new MsgForceTransferResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgBurnResponse. - * @implements IMsgBurnResponse + * @classdesc Represents a MsgForceTransferResponse. + * @implements IMsgForceTransferResponse * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse=} [properties] Properties to set */ - function MsgBurnResponse(properties) { + function MsgForceTransferResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55244,48 +63272,48 @@ } /** - * Encodes the specified MsgBurnResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * Encodes the specified MsgForceTransferResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransferResponse.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse} message MsgBurnResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse} message MsgForceTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgBurnResponse.encode = function encode(message, writer) { + MsgForceTransferResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgBurnResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * Encodes the specified MsgForceTransferResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransferResponse.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgBurnResponse} message MsgBurnResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse} message MsgForceTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgBurnResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgForceTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgBurnResponse message from the specified reader or buffer. + * Decodes a MsgForceTransferResponse message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransferResponse} MsgForceTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgBurnResponse.decode = function decode(reader, length) { + MsgForceTransferResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgForceTransferResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55298,96 +63326,95 @@ }; /** - * Decodes a MsgBurnResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgForceTransferResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransferResponse} MsgForceTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgBurnResponse.decodeDelimited = function decodeDelimited(reader) { + MsgForceTransferResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgBurnResponse message. + * Verifies a MsgForceTransferResponse message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgBurnResponse.verify = function verify(message) { + MsgForceTransferResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgBurnResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgForceTransferResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgBurnResponse} MsgBurnResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgForceTransferResponse} MsgForceTransferResponse */ - MsgBurnResponse.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse) + MsgForceTransferResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgForceTransferResponse) return object; - return new $root.osmosis.tokenfactory.v1beta1.MsgBurnResponse(); + return new $root.osmosis.tokenfactory.v1beta1.MsgForceTransferResponse(); }; /** - * Creates a plain object from a MsgBurnResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgForceTransferResponse message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @static - * @param {osmosis.tokenfactory.v1beta1.MsgBurnResponse} message MsgBurnResponse + * @param {osmosis.tokenfactory.v1beta1.MsgForceTransferResponse} message MsgForceTransferResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgBurnResponse.toObject = function toObject() { + MsgForceTransferResponse.toObject = function toObject() { return {}; }; /** - * Converts this MsgBurnResponse to JSON. + * Converts this MsgForceTransferResponse to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgBurnResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgForceTransferResponse * @instance * @returns {Object.} JSON object */ - MsgBurnResponse.prototype.toJSON = function toJSON() { + MsgForceTransferResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgBurnResponse; + return MsgForceTransferResponse; })(); - v1beta1.MsgChangeAdmin = (function() { + v1beta1.MsgUpdateParams = (function() { /** - * Properties of a MsgChangeAdmin. + * Properties of a MsgUpdateParams. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgChangeAdmin - * @property {string|null} [sender] MsgChangeAdmin sender - * @property {string|null} [denom] MsgChangeAdmin denom - * @property {string|null} [newAdmin] MsgChangeAdmin newAdmin + * @interface IMsgUpdateParams + * @property {string|null} [authority] MsgUpdateParams authority + * @property {osmosis.tokenfactory.v1beta1.IParams|null} [params] MsgUpdateParams params */ /** - * Constructs a new MsgChangeAdmin. + * Constructs a new MsgUpdateParams. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgChangeAdmin. - * @implements IMsgChangeAdmin + * @classdesc Represents a MsgUpdateParams. + * @implements IMsgUpdateParams * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParams=} [properties] Properties to set */ - function MsgChangeAdmin(properties) { + function MsgUpdateParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55395,89 +63422,76 @@ } /** - * MsgChangeAdmin sender. - * @member {string} sender - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin - * @instance - */ - MsgChangeAdmin.prototype.sender = ""; - - /** - * MsgChangeAdmin denom. - * @member {string} denom - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * MsgUpdateParams authority. + * @member {string} authority + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @instance */ - MsgChangeAdmin.prototype.denom = ""; + MsgUpdateParams.prototype.authority = ""; /** - * MsgChangeAdmin newAdmin. - * @member {string} newAdmin - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * MsgUpdateParams params. + * @member {osmosis.tokenfactory.v1beta1.IParams|null|undefined} params + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @instance */ - MsgChangeAdmin.prototype.newAdmin = ""; + MsgUpdateParams.prototype.params = null; /** - * Encodes the specified MsgChangeAdmin message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParams.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} message MsgChangeAdmin message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChangeAdmin.encode = function encode(message, writer) { + MsgUpdateParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.denom); - if (message.newAdmin != null && Object.hasOwnProperty.call(message, "newAdmin")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.newAdmin); + if (message.authority != null && Object.hasOwnProperty.call(message, "authority")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authority); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.osmosis.tokenfactory.v1beta1.Params.encode(message.params, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChangeAdmin message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParams.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdmin} message MsgChangeAdmin message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParams} message MsgUpdateParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChangeAdmin.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChangeAdmin message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChangeAdmin.decode = function decode(reader, length) { + MsgUpdateParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgUpdateParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sender = reader.string(); + message.authority = reader.string(); break; case 2: - message.denom = reader.string(); - break; - case 3: - message.newAdmin = reader.string(); + message.params = $root.osmosis.tokenfactory.v1beta1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -55488,123 +63502,120 @@ }; /** - * Decodes a MsgChangeAdmin message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParams} MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChangeAdmin.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChangeAdmin message. + * Verifies a MsgUpdateParams message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChangeAdmin.verify = function verify(message) { + MsgUpdateParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.newAdmin != null && message.hasOwnProperty("newAdmin")) - if (!$util.isString(message.newAdmin)) - return "newAdmin: string expected"; + if (message.authority != null && message.hasOwnProperty("authority")) + if (!$util.isString(message.authority)) + return "authority: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.osmosis.tokenfactory.v1beta1.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a MsgChangeAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} MsgChangeAdmin + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParams} MsgUpdateParams */ - MsgChangeAdmin.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin) + MsgUpdateParams.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgUpdateParams) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdmin(); - if (object.sender != null) - message.sender = String(object.sender); - if (object.denom != null) - message.denom = String(object.denom); - if (object.newAdmin != null) - message.newAdmin = String(object.newAdmin); + var message = new $root.osmosis.tokenfactory.v1beta1.MsgUpdateParams(); + if (object.authority != null) + message.authority = String(object.authority); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".osmosis.tokenfactory.v1beta1.MsgUpdateParams.params: object expected"); + message.params = $root.osmosis.tokenfactory.v1beta1.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a MsgChangeAdmin message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @static - * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdmin} message MsgChangeAdmin + * @param {osmosis.tokenfactory.v1beta1.MsgUpdateParams} message MsgUpdateParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChangeAdmin.toObject = function toObject(message, options) { + MsgUpdateParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.sender = ""; - object.denom = ""; - object.newAdmin = ""; + object.authority = ""; + object.params = null; } - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.newAdmin != null && message.hasOwnProperty("newAdmin")) - object.newAdmin = message.newAdmin; + if (message.authority != null && message.hasOwnProperty("authority")) + object.authority = message.authority; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.osmosis.tokenfactory.v1beta1.Params.toObject(message.params, options); return object; }; /** - * Converts this MsgChangeAdmin to JSON. + * Converts this MsgUpdateParams to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdmin + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParams * @instance * @returns {Object.} JSON object */ - MsgChangeAdmin.prototype.toJSON = function toJSON() { + MsgUpdateParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChangeAdmin; + return MsgUpdateParams; })(); - v1beta1.MsgChangeAdminResponse = (function() { + v1beta1.MsgUpdateParamsResponse = (function() { /** - * Properties of a MsgChangeAdminResponse. + * Properties of a MsgUpdateParamsResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IMsgChangeAdminResponse + * @interface IMsgUpdateParamsResponse */ /** - * Constructs a new MsgChangeAdminResponse. + * Constructs a new MsgUpdateParamsResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a MsgChangeAdminResponse. - * @implements IMsgChangeAdminResponse + * @classdesc Represents a MsgUpdateParamsResponse. + * @implements IMsgUpdateParamsResponse * @constructor - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse=} [properties] Properties to set */ - function MsgChangeAdminResponse(properties) { + function MsgUpdateParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55612,48 +63623,48 @@ } /** - * Encodes the specified MsgChangeAdminResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse} message MsgChangeAdminResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChangeAdminResponse.encode = function encode(message, writer) { + MsgUpdateParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgChangeAdminResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse} message MsgChangeAdminResponse message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse} message MsgUpdateParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChangeAdminResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChangeAdminResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChangeAdminResponse.decode = function decode(reader, length) { + MsgUpdateParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55666,74 +63677,307 @@ }; /** - * Decodes a MsgChangeAdminResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse} MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChangeAdminResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChangeAdminResponse message. + * Verifies a MsgUpdateParamsResponse message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChangeAdminResponse.verify = function verify(message) { + MsgUpdateParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgChangeAdminResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} MsgChangeAdminResponse + * @returns {osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse} MsgUpdateParamsResponse */ - MsgChangeAdminResponse.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse) + MsgUpdateParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse) return object; - return new $root.osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse(); + return new $root.osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse(); }; /** - * Creates a plain object from a MsgChangeAdminResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @static - * @param {osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse} message MsgChangeAdminResponse + * @param {osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse} message MsgUpdateParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChangeAdminResponse.toObject = function toObject() { + MsgUpdateParamsResponse.toObject = function toObject() { return {}; }; /** - * Converts this MsgChangeAdminResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse + * @memberof osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse * @instance * @returns {Object.} JSON object */ - MsgChangeAdminResponse.prototype.toJSON = function toJSON() { + MsgUpdateParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChangeAdminResponse; + return MsgUpdateParamsResponse; + })(); + + v1beta1.Params = (function() { + + /** + * Properties of a Params. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IParams + * @property {Array.|null} [denom_creation_fee] Params denom_creation_fee + * @property {Long|null} [denom_creation_gas_consume] Params denom_creation_gas_consume + */ + + /** + * Constructs a new Params. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IParams=} [properties] Properties to set + */ + function Params(properties) { + this.denom_creation_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]]; + } + + /** + * Params denom_creation_fee. + * @member {Array.} denom_creation_fee + * @memberof osmosis.tokenfactory.v1beta1.Params + * @instance + */ + Params.prototype.denom_creation_fee = $util.emptyArray; + + /** + * Params denom_creation_gas_consume. + * @member {Long} denom_creation_gas_consume + * @memberof osmosis.tokenfactory.v1beta1.Params + * @instance + */ + Params.prototype.denom_creation_gas_consume = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.Params + * @static + * @param {osmosis.tokenfactory.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.denom_creation_fee != null && message.denom_creation_fee.length) + for (var i = 0; i < message.denom_creation_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.denom_creation_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.denom_creation_gas_consume != null && Object.hasOwnProperty.call(message, "denom_creation_gas_consume")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denom_creation_gas_consume); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.Params + * @static + * @param {osmosis.tokenfactory.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 osmosis.tokenfactory.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.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.osmosis.tokenfactory.v1beta1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.denom_creation_fee && message.denom_creation_fee.length)) + message.denom_creation_fee = []; + message.denom_creation_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 2: + message.denom_creation_gas_consume = 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 osmosis.tokenfactory.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.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 osmosis.tokenfactory.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.denom_creation_fee != null && message.hasOwnProperty("denom_creation_fee")) { + if (!Array.isArray(message.denom_creation_fee)) + return "denom_creation_fee: array expected"; + for (var i = 0; i < message.denom_creation_fee.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.denom_creation_fee[i]); + if (error) + return "denom_creation_fee." + error; + } + } + if (message.denom_creation_gas_consume != null && message.hasOwnProperty("denom_creation_gas_consume")) + if (!$util.isInteger(message.denom_creation_gas_consume) && !(message.denom_creation_gas_consume && $util.isInteger(message.denom_creation_gas_consume.low) && $util.isInteger(message.denom_creation_gas_consume.high))) + return "denom_creation_gas_consume: integer|Long expected"; + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.Params + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.Params) + return object; + var message = new $root.osmosis.tokenfactory.v1beta1.Params(); + if (object.denom_creation_fee) { + if (!Array.isArray(object.denom_creation_fee)) + throw TypeError(".osmosis.tokenfactory.v1beta1.Params.denom_creation_fee: array expected"); + message.denom_creation_fee = []; + for (var i = 0; i < object.denom_creation_fee.length; ++i) { + if (typeof object.denom_creation_fee[i] !== "object") + throw TypeError(".osmosis.tokenfactory.v1beta1.Params.denom_creation_fee: object expected"); + message.denom_creation_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.denom_creation_fee[i]); + } + } + if (object.denom_creation_gas_consume != null) + if ($util.Long) + (message.denom_creation_gas_consume = $util.Long.fromValue(object.denom_creation_gas_consume)).unsigned = true; + else if (typeof object.denom_creation_gas_consume === "string") + message.denom_creation_gas_consume = parseInt(object.denom_creation_gas_consume, 10); + else if (typeof object.denom_creation_gas_consume === "number") + message.denom_creation_gas_consume = object.denom_creation_gas_consume; + else if (typeof object.denom_creation_gas_consume === "object") + message.denom_creation_gas_consume = new $util.LongBits(object.denom_creation_gas_consume.low >>> 0, object.denom_creation_gas_consume.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 osmosis.tokenfactory.v1beta1.Params + * @static + * @param {osmosis.tokenfactory.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.arrays || options.defaults) + object.denom_creation_fee = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.denom_creation_gas_consume = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.denom_creation_gas_consume = options.longs === String ? "0" : 0; + if (message.denom_creation_fee && message.denom_creation_fee.length) { + object.denom_creation_fee = []; + for (var j = 0; j < message.denom_creation_fee.length; ++j) + object.denom_creation_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.denom_creation_fee[j], options); + } + if (message.denom_creation_gas_consume != null && message.hasOwnProperty("denom_creation_gas_consume")) + if (typeof message.denom_creation_gas_consume === "number") + object.denom_creation_gas_consume = options.longs === String ? String(message.denom_creation_gas_consume) : message.denom_creation_gas_consume; + else + object.denom_creation_gas_consume = options.longs === String ? $util.Long.prototype.toString.call(message.denom_creation_gas_consume) : options.longs === Number ? new $util.LongBits(message.denom_creation_gas_consume.low >>> 0, message.denom_creation_gas_consume.high >>> 0).toNumber(true) : message.denom_creation_gas_consume; + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; })(); v1beta1.Query = (function() { @@ -55853,6 +64097,39 @@ * @variation 2 */ + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Query#beforeSendHookAddress}. + * @memberof osmosis.tokenfactory.v1beta1.Query + * @typedef BeforeSendHookAddressCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse} [response] QueryBeforeSendHookAddressResponse + */ + + /** + * Calls BeforeSendHookAddress. + * @function beforeSendHookAddress + * @memberof osmosis.tokenfactory.v1beta1.Query + * @instance + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest} request QueryBeforeSendHookAddressRequest message or plain object + * @param {osmosis.tokenfactory.v1beta1.Query.BeforeSendHookAddressCallback} callback Node-style callback called with the error, if any, and QueryBeforeSendHookAddressResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.beforeSendHookAddress = function beforeSendHookAddress(request, callback) { + return this.rpcCall(beforeSendHookAddress, $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest, $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse, request, callback); + }, "name", { value: "BeforeSendHookAddress" }); + + /** + * Calls BeforeSendHookAddress. + * @function beforeSendHookAddress + * @memberof osmosis.tokenfactory.v1beta1.Query + * @instance + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest} request QueryBeforeSendHookAddressRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Query; })(); @@ -56190,8 +64467,7 @@ * Properties of a QueryDenomAuthorityMetadataRequest. * @memberof osmosis.tokenfactory.v1beta1 * @interface IQueryDenomAuthorityMetadataRequest - * @property {string|null} [creator] QueryDenomAuthorityMetadataRequest creator - * @property {string|null} [subdenom] QueryDenomAuthorityMetadataRequest subdenom + * @property {string|null} [denom] QueryDenomAuthorityMetadataRequest denom */ /** @@ -56210,20 +64486,12 @@ } /** - * QueryDenomAuthorityMetadataRequest creator. - * @member {string} creator - * @memberof osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest - * @instance - */ - QueryDenomAuthorityMetadataRequest.prototype.creator = ""; - - /** - * QueryDenomAuthorityMetadataRequest subdenom. - * @member {string} subdenom + * QueryDenomAuthorityMetadataRequest denom. + * @member {string} denom * @memberof osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest * @instance */ - QueryDenomAuthorityMetadataRequest.prototype.subdenom = ""; + QueryDenomAuthorityMetadataRequest.prototype.denom = ""; /** * Encodes the specified QueryDenomAuthorityMetadataRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest.verify|verify} messages. @@ -56237,10 +64505,8 @@ QueryDenomAuthorityMetadataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.creator != null && Object.hasOwnProperty.call(message, "creator")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.creator); - if (message.subdenom != null && Object.hasOwnProperty.call(message, "subdenom")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subdenom); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); return writer; }; @@ -56276,10 +64542,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.creator = reader.string(); - break; - case 2: - message.subdenom = reader.string(); + message.denom = reader.string(); break; default: reader.skipType(tag & 7); @@ -56316,12 +64579,9 @@ QueryDenomAuthorityMetadataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.creator != null && message.hasOwnProperty("creator")) - if (!$util.isString(message.creator)) - return "creator: string expected"; - if (message.subdenom != null && message.hasOwnProperty("subdenom")) - if (!$util.isString(message.subdenom)) - return "subdenom: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; return null; }; @@ -56337,10 +64597,8 @@ if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest) return object; var message = new $root.osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest(); - if (object.creator != null) - message.creator = String(object.creator); - if (object.subdenom != null) - message.subdenom = String(object.subdenom); + if (object.denom != null) + message.denom = String(object.denom); return message; }; @@ -56357,14 +64615,10 @@ if (!options) options = {}; var object = {}; - if (options.defaults) { - object.creator = ""; - object.subdenom = ""; - } - if (message.creator != null && message.hasOwnProperty("creator")) - object.creator = message.creator; - if (message.subdenom != null && message.hasOwnProperty("subdenom")) - object.subdenom = message.subdenom; + if (options.defaults) + object.denom = ""; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; return object; }; @@ -56928,24 +65182,24 @@ return QueryDenomsFromCreatorResponse; })(); - v1beta1.DenomAuthorityMetadata = (function() { + v1beta1.QueryBeforeSendHookAddressRequest = (function() { /** - * Properties of a DenomAuthorityMetadata. + * Properties of a QueryBeforeSendHookAddressRequest. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IDenomAuthorityMetadata - * @property {string|null} [Admin] DenomAuthorityMetadata Admin + * @interface IQueryBeforeSendHookAddressRequest + * @property {string|null} [denom] QueryBeforeSendHookAddressRequest denom */ /** - * Constructs a new DenomAuthorityMetadata. + * Constructs a new QueryBeforeSendHookAddressRequest. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a DenomAuthorityMetadata. - * @implements IDenomAuthorityMetadata + * @classdesc Represents a QueryBeforeSendHookAddressRequest. + * @implements IQueryBeforeSendHookAddressRequest * @constructor - * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest=} [properties] Properties to set */ - function DenomAuthorityMetadata(properties) { + function QueryBeforeSendHookAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56953,63 +65207,63 @@ } /** - * DenomAuthorityMetadata Admin. - * @member {string} Admin - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * QueryBeforeSendHookAddressRequest denom. + * @member {string} denom + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @instance */ - DenomAuthorityMetadata.prototype.Admin = ""; + QueryBeforeSendHookAddressRequest.prototype.denom = ""; /** - * Encodes the specified DenomAuthorityMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * Encodes the specified QueryBeforeSendHookAddressRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static - * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata} message DenomAuthorityMetadata message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest} message QueryBeforeSendHookAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomAuthorityMetadata.encode = function encode(message, writer) { + QueryBeforeSendHookAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.Admin != null && Object.hasOwnProperty.call(message, "Admin")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.Admin); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); return writer; }; /** - * Encodes the specified DenomAuthorityMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * Encodes the specified QueryBeforeSendHookAddressRequest message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static - * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata} message DenomAuthorityMetadata message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest} message QueryBeforeSendHookAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomAuthorityMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryBeforeSendHookAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DenomAuthorityMetadata message from the specified reader or buffer. + * Decodes a QueryBeforeSendHookAddressRequest message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest} QueryBeforeSendHookAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomAuthorityMetadata.decode = function decode(reader, length) { + QueryBeforeSendHookAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.Admin = reader.string(); + message.denom = reader.string(); break; default: reader.skipType(tag & 7); @@ -57020,106 +65274,107 @@ }; /** - * Decodes a DenomAuthorityMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryBeforeSendHookAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest} QueryBeforeSendHookAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomAuthorityMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryBeforeSendHookAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DenomAuthorityMetadata message. + * Verifies a QueryBeforeSendHookAddressRequest message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DenomAuthorityMetadata.verify = function verify(message) { + QueryBeforeSendHookAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.Admin != null && message.hasOwnProperty("Admin")) - if (!$util.isString(message.Admin)) - return "Admin: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; return null; }; /** - * Creates a DenomAuthorityMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryBeforeSendHookAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest} QueryBeforeSendHookAddressRequest */ - DenomAuthorityMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata) + QueryBeforeSendHookAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest) return object; - var message = new $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata(); - if (object.Admin != null) - message.Admin = String(object.Admin); + var message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest(); + if (object.denom != null) + message.denom = String(object.denom); return message; }; /** - * Creates a plain object from a DenomAuthorityMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryBeforeSendHookAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @static - * @param {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} message DenomAuthorityMetadata + * @param {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest} message QueryBeforeSendHookAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DenomAuthorityMetadata.toObject = function toObject(message, options) { + QueryBeforeSendHookAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.Admin = ""; - if (message.Admin != null && message.hasOwnProperty("Admin")) - object.Admin = message.Admin; + object.denom = ""; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; return object; }; /** - * Converts this DenomAuthorityMetadata to JSON. + * Converts this QueryBeforeSendHookAddressRequest to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @instance * @returns {Object.} JSON object */ - DenomAuthorityMetadata.prototype.toJSON = function toJSON() { + QueryBeforeSendHookAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DenomAuthorityMetadata; + return QueryBeforeSendHookAddressRequest; })(); - v1beta1.Params = (function() { + v1beta1.QueryBeforeSendHookAddressResponse = (function() { /** - * Properties of a Params. + * Properties of a QueryBeforeSendHookAddressResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @interface IParams + * @interface IQueryBeforeSendHookAddressResponse + * @property {string|null} [cosmwasm_address] QueryBeforeSendHookAddressResponse cosmwasm_address */ /** - * Constructs a new Params. + * Constructs a new QueryBeforeSendHookAddressResponse. * @memberof osmosis.tokenfactory.v1beta1 - * @classdesc Represents a Params. - * @implements IParams + * @classdesc Represents a QueryBeforeSendHookAddressResponse. + * @implements IQueryBeforeSendHookAddressResponse * @constructor - * @param {osmosis.tokenfactory.v1beta1.IParams=} [properties] Properties to set + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse=} [properties] Properties to set */ - function Params(properties) { + function QueryBeforeSendHookAddressResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57127,51 +65382,64 @@ } /** - * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. + * QueryBeforeSendHookAddressResponse cosmwasm_address. + * @member {string} cosmwasm_address + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse + * @instance + */ + QueryBeforeSendHookAddressResponse.prototype.cosmwasm_address = ""; + + /** + * Encodes the specified QueryBeforeSendHookAddressResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. * @function encode - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IParams} message Params message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse} message QueryBeforeSendHookAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + QueryBeforeSendHookAddressResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cosmwasm_address != null && Object.hasOwnProperty.call(message, "cosmwasm_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cosmwasm_address); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. + * Encodes the specified QueryBeforeSendHookAddressResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. * @function encodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static - * @param {osmosis.tokenfactory.v1beta1.IParams} message Params message or plain object to encode + * @param {osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse} message QueryBeforeSendHookAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + QueryBeforeSendHookAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryBeforeSendHookAddressResponse message from the specified reader or buffer. * @function decode - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {osmosis.tokenfactory.v1beta1.Params} Params + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse} QueryBeforeSendHookAddressResponse * @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) { + QueryBeforeSendHookAddressResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.cosmwasm_address = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -57181,74 +65449,262 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryBeforeSendHookAddressResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {osmosis.tokenfactory.v1beta1.Params} Params + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse} QueryBeforeSendHookAddressResponse * @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) { + QueryBeforeSendHookAddressResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a QueryBeforeSendHookAddressResponse message. * @function verify - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @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) { + QueryBeforeSendHookAddressResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) + if (!$util.isString(message.cosmwasm_address)) + return "cosmwasm_address: string expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryBeforeSendHookAddressResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static * @param {Object.} object Plain object - * @returns {osmosis.tokenfactory.v1beta1.Params} Params + * @returns {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse} QueryBeforeSendHookAddressResponse */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.osmosis.tokenfactory.v1beta1.Params) + QueryBeforeSendHookAddressResponse.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse) return object; - return new $root.osmosis.tokenfactory.v1beta1.Params(); + var message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse(); + if (object.cosmwasm_address != null) + message.cosmwasm_address = String(object.cosmwasm_address); + return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a QueryBeforeSendHookAddressResponse message. Also converts values to other types if specified. * @function toObject - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @static - * @param {osmosis.tokenfactory.v1beta1.Params} message Params + * @param {osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse} message QueryBeforeSendHookAddressResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject() { - return {}; + QueryBeforeSendHookAddressResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.cosmwasm_address = ""; + if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) + object.cosmwasm_address = message.cosmwasm_address; + return object; }; /** - * Converts this Params to JSON. + * Converts this QueryBeforeSendHookAddressResponse to JSON. * @function toJSON - * @memberof osmosis.tokenfactory.v1beta1.Params + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + QueryBeforeSendHookAddressResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return QueryBeforeSendHookAddressResponse; + })(); + + v1beta1.DenomAuthorityMetadata = (function() { + + /** + * Properties of a DenomAuthorityMetadata. + * @memberof osmosis.tokenfactory.v1beta1 + * @interface IDenomAuthorityMetadata + * @property {string|null} [Admin] DenomAuthorityMetadata Admin + */ + + /** + * Constructs a new DenomAuthorityMetadata. + * @memberof osmosis.tokenfactory.v1beta1 + * @classdesc Represents a DenomAuthorityMetadata. + * @implements IDenomAuthorityMetadata + * @constructor + * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata=} [properties] Properties to set + */ + function DenomAuthorityMetadata(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]]; + } + + /** + * DenomAuthorityMetadata Admin. + * @member {string} Admin + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @instance + */ + DenomAuthorityMetadata.prototype.Admin = ""; + + /** + * Encodes the specified DenomAuthorityMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * @function encode + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata} message DenomAuthorityMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenomAuthorityMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.Admin != null && Object.hasOwnProperty.call(message, "Admin")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.Admin); + return writer; + }; + + /** + * Encodes the specified DenomAuthorityMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata} message DenomAuthorityMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenomAuthorityMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DenomAuthorityMetadata message from the specified reader or buffer. + * @function decode + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenomAuthorityMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.Admin = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DenomAuthorityMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenomAuthorityMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DenomAuthorityMetadata message. + * @function verify + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DenomAuthorityMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.Admin != null && message.hasOwnProperty("Admin")) + if (!$util.isString(message.Admin)) + return "Admin: string expected"; + return null; + }; + + /** + * Creates a DenomAuthorityMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {Object.} object Plain object + * @returns {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} DenomAuthorityMetadata + */ + DenomAuthorityMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata) + return object; + var message = new $root.osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata(); + if (object.Admin != null) + message.Admin = String(object.Admin); + return message; + }; + + /** + * Creates a plain object from a DenomAuthorityMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @static + * @param {osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata} message DenomAuthorityMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DenomAuthorityMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.Admin = ""; + if (message.Admin != null && message.hasOwnProperty("Admin")) + object.Admin = message.Admin; + return object; + }; + + /** + * Converts this DenomAuthorityMetadata to JSON. + * @function toJSON + * @memberof osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata + * @instance + * @returns {Object.} JSON object + */ + DenomAuthorityMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DenomAuthorityMetadata; })(); v1beta1.GenesisState = (function() { diff --git a/src/generated/proto.d.ts b/src/generated/proto.d.ts index 22627c9f..510cebcc 100644 --- a/src/generated/proto.d.ts +++ b/src/generated/proto.d.ts @@ -5,11 +5,11 @@ export namespace neutron { /** Namespace contractmanager. */ namespace contractmanager { - /** 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 @@ -17,1785 +17,1640 @@ export namespace neutron { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * 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: neutron.contractmanager.IQueryParamsRequest, callback: neutron.contractmanager.Query.ParamsCallback): void; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: neutron.contractmanager.IQueryParamsRequest): Promise; - - /** - * Calls AddressFailures. - * @param request QueryFailuresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryFailuresResponse - */ - public addressFailures(request: neutron.contractmanager.IQueryFailuresRequest, callback: neutron.contractmanager.Query.AddressFailuresCallback): void; - - /** - * Calls AddressFailures. - * @param request QueryFailuresRequest message or plain object - * @returns Promise - */ - public addressFailures(request: neutron.contractmanager.IQueryFailuresRequest): Promise; - - /** - * Calls Failures. - * @param request QueryFailuresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryFailuresResponse + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse */ - public failures(request: neutron.contractmanager.IQueryFailuresRequest, callback: neutron.contractmanager.Query.FailuresCallback): void; + public updateParams(request: neutron.contractmanager.IMsgUpdateParams, callback: neutron.contractmanager.Msg.UpdateParamsCallback): void; /** - * Calls Failures. - * @param request QueryFailuresRequest message or plain object + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object * @returns Promise */ - public failures(request: neutron.contractmanager.IQueryFailuresRequest): Promise; + public updateParams(request: neutron.contractmanager.IMsgUpdateParams): Promise; } - namespace Query { + namespace Msg { /** - * Callback as used by {@link neutron.contractmanager.Query#params}. + * Callback as used by {@link neutron.contractmanager.Msg#updateParams}. * @param error Error, if any - * @param [response] QueryParamsResponse + * @param [response] MsgUpdateParamsResponse */ - type ParamsCallback = (error: (Error|null), response?: neutron.contractmanager.QueryParamsResponse) => void; + type UpdateParamsCallback = (error: (Error|null), response?: neutron.contractmanager.MsgUpdateParamsResponse) => void; + } - /** - * Callback as used by {@link neutron.contractmanager.Query#addressFailures}. - * @param error Error, if any - * @param [response] QueryFailuresResponse - */ - type AddressFailuresCallback = (error: (Error|null), response?: neutron.contractmanager.QueryFailuresResponse) => void; + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { - /** - * Callback as used by {@link neutron.contractmanager.Query#failures}. - * @param error Error, if any - * @param [response] QueryFailuresResponse - */ - type FailuresCallback = (error: (Error|null), response?: neutron.contractmanager.QueryFailuresResponse) => void; - } + /** MsgUpdateParams authority */ + authority?: (string|null); - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** MsgUpdateParams params */ + params?: (neutron.contractmanager.IParams|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgUpdateParams. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IQueryParamsRequest); + constructor(properties?: neutron.contractmanager.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.contractmanager.IParams|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.contractmanager.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.contractmanager.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.contractmanager.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.contractmanager.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateParams 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 MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.MsgUpdateParams; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.MsgUpdateParams; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParams message. * @param message 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 MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns MsgUpdateParams */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.MsgUpdateParams; /** - * 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 MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.contractmanager.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { - - /** QueryParamsResponse params */ - params?: (neutron.contractmanager.IParams|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IQueryParamsResponse); - - /** QueryParamsResponse params. */ - public params?: (neutron.contractmanager.IParams|null); + constructor(properties?: neutron.contractmanager.IMsgUpdateParamsResponse); /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.contractmanager.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.contractmanager.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.contractmanager.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse 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 MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.MsgUpdateParamsResponse; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.MsgUpdateParamsResponse; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.MsgUpdateParamsResponse; /** - * 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 MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.contractmanager.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryFailuresRequest. */ - interface IQueryFailuresRequest { - - /** QueryFailuresRequest address */ - address?: (string|null); - - /** QueryFailuresRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** Properties of a Params. */ + interface IParams { } - /** Represents a QueryFailuresRequest. */ - class QueryFailuresRequest implements IQueryFailuresRequest { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryFailuresRequest. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IQueryFailuresRequest); - - /** QueryFailuresRequest address. */ - public address: string; - - /** QueryFailuresRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + constructor(properties?: neutron.contractmanager.IParams); /** - * Encodes the specified QueryFailuresRequest message. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. - * @param message QueryFailuresRequest message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IQueryFailuresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryFailuresRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. - * @param message QueryFailuresRequest message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IQueryFailuresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryFailuresRequest 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 QueryFailuresRequest + * @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): neutron.contractmanager.QueryFailuresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.Params; /** - * Decodes a QueryFailuresRequest 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 QueryFailuresRequest + * @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)): neutron.contractmanager.QueryFailuresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.Params; /** - * Verifies a QueryFailuresRequest 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 QueryFailuresRequest 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 QueryFailuresRequest + * @returns Params */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryFailuresRequest; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.Params; /** - * Creates a plain object from a QueryFailuresRequest message. Also converts values to other types if specified. - * @param message QueryFailuresRequest + * 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: neutron.contractmanager.QueryFailuresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryFailuresRequest to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryFailuresResponse. */ - interface IQueryFailuresResponse { + /** Properties of a Failure. */ + interface IFailure { - /** QueryFailuresResponse failures */ - failures?: (neutron.contractmanager.IFailure[]|null); + /** Failure address */ + address?: (string|null); - /** QueryFailuresResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** Failure id */ + id?: (Long|null); + + /** Failure ack_type */ + ack_type?: (string|null); + + /** Failure packet */ + packet?: (ibc.core.channel.v1.IPacket|null); + + /** Failure ack */ + ack?: (ibc.core.channel.v1.IAcknowledgement|null); } - /** Represents a QueryFailuresResponse. */ - class QueryFailuresResponse implements IQueryFailuresResponse { + /** Represents a Failure. */ + class Failure implements IFailure { /** - * Constructs a new QueryFailuresResponse. + * Constructs a new Failure. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IQueryFailuresResponse); + constructor(properties?: neutron.contractmanager.IFailure); - /** QueryFailuresResponse failures. */ - public failures: neutron.contractmanager.IFailure[]; + /** Failure address. */ + public address: string; - /** QueryFailuresResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** Failure id. */ + public id: Long; + + /** Failure ack_type. */ + public ack_type: string; + + /** Failure packet. */ + public packet?: (ibc.core.channel.v1.IPacket|null); + + /** Failure ack. */ + public ack?: (ibc.core.channel.v1.IAcknowledgement|null); /** - * Encodes the specified QueryFailuresResponse message. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. - * @param message QueryFailuresResponse message or plain object to encode + * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. + * @param message Failure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.contractmanager.IQueryFailuresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryFailuresResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. - * @param message QueryFailuresResponse message or plain object to encode + * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. + * @param message Failure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.contractmanager.IQueryFailuresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryFailuresResponse message from the specified reader or buffer. + * Decodes a Failure message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryFailuresResponse + * @returns Failure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryFailuresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.Failure; /** - * Decodes a QueryFailuresResponse message from the specified reader or buffer, length delimited. + * Decodes a Failure message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryFailuresResponse + * @returns Failure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryFailuresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.Failure; /** - * Verifies a QueryFailuresResponse message. + * Verifies a Failure message. * @param message 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 QueryFailuresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Failure message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryFailuresResponse + * @returns Failure */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryFailuresResponse; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.Failure; /** - * Creates a plain object from a QueryFailuresResponse message. Also converts values to other types if specified. - * @param message QueryFailuresResponse + * Creates a plain object from a Failure message. Also converts values to other types if specified. + * @param message Failure * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.contractmanager.QueryFailuresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.Failure, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryFailuresResponse to JSON. + * Converts this Failure 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 { - /** Represents a Params. */ - class Params implements IParams { + /** + * 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); /** - * Constructs a new Params. - * @param [properties] Properties to set + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse */ - constructor(properties?: neutron.contractmanager.IParams); + public params(request: neutron.contractmanager.IQueryParamsRequest, callback: neutron.contractmanager.Query.ParamsCallback): void; /** - * Encodes the specified Params message. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. - * @param message Params message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise */ - public static encode(message: neutron.contractmanager.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public params(request: neutron.contractmanager.IQueryParamsRequest): Promise; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.contractmanager.Params.verify|verify} messages. - * @param message Params message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddressFailures. + * @param request QueryFailuresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryFailuresResponse */ - public static encodeDelimited(message: neutron.contractmanager.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public addressFailures(request: neutron.contractmanager.IQueryFailuresRequest, callback: neutron.contractmanager.Query.AddressFailuresCallback): void; /** - * 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 + * Calls AddressFailures. + * @param request QueryFailuresRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.Params; + public addressFailures(request: neutron.contractmanager.IQueryFailuresRequest): Promise; /** - * 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 + * Calls Failures. + * @param request QueryFailuresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryFailuresResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.Params; + public failures(request: neutron.contractmanager.IQueryFailuresRequest, callback: neutron.contractmanager.Query.FailuresCallback): void; /** - * Verifies a Params message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls Failures. + * @param request QueryFailuresRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public failures(request: neutron.contractmanager.IQueryFailuresRequest): Promise; + } + + namespace Query { /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Params + * Callback as used by {@link neutron.contractmanager.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.Params; + type ParamsCallback = (error: (Error|null), response?: neutron.contractmanager.QueryParamsResponse) => 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 + * Callback as used by {@link neutron.contractmanager.Query#addressFailures}. + * @param error Error, if any + * @param [response] QueryFailuresResponse */ - public static toObject(message: neutron.contractmanager.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type AddressFailuresCallback = (error: (Error|null), response?: neutron.contractmanager.QueryFailuresResponse) => void; /** - * Converts this Params to JSON. - * @returns JSON object + * Callback as used by {@link neutron.contractmanager.Query#failures}. + * @param error Error, if any + * @param [response] QueryFailuresResponse */ - public toJSON(): { [k: string]: any }; + type FailuresCallback = (error: (Error|null), response?: neutron.contractmanager.QueryFailuresResponse) => void; } - /** Properties of a Failure. */ - interface IFailure { - - /** Failure channel_id */ - channel_id?: (string|null); - - /** Failure address */ - address?: (string|null); - - /** Failure id */ - id?: (Long|null); - - /** Failure ack_id */ - ack_id?: (Long|null); - - /** Failure ack_type */ - ack_type?: (string|null); + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { } - /** Represents a Failure. */ - class Failure implements IFailure { + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { /** - * Constructs a new Failure. + * Constructs a new QueryParamsRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IFailure); - - /** Failure channel_id. */ - public channel_id: string; - - /** Failure address. */ - public address: string; - - /** Failure id. */ - public id: Long; - - /** Failure ack_id. */ - public ack_id: Long; - - /** Failure ack_type. */ - public ack_type: string; + constructor(properties?: neutron.contractmanager.IQueryParamsRequest); /** - * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. - * @param message Failure message or plain object to encode + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.Failure.verify|verify} messages. - * @param message Failure message or plain object to encode + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Failure 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 Failure + * @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): neutron.contractmanager.Failure; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryParamsRequest; /** - * Decodes a Failure 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 Failure + * @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)): neutron.contractmanager.Failure; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryParamsRequest; /** - * Verifies a Failure 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 Failure 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 Failure + * @returns QueryParamsRequest */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.Failure; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryParamsRequest; /** - * Creates a plain object from a Failure message. Also converts values to other types if specified. - * @param message Failure + * 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: neutron.contractmanager.Failure, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Failure to JSON. + * Converts this QueryParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** GenesisState params */ + /** QueryParamsResponse params */ params?: (neutron.contractmanager.IParams|null); - - /** GenesisState failures_list */ - failures_list?: (neutron.contractmanager.IFailure[]|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { /** - * Constructs a new GenesisState. + * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.contractmanager.IGenesisState); + constructor(properties?: neutron.contractmanager.IQueryParamsResponse); - /** GenesisState params. */ + /** QueryParamsResponse params. */ public params?: (neutron.contractmanager.IParams|null); - /** GenesisState failures_list. */ - public failures_list: neutron.contractmanager.IFailure[]; - /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.contractmanager.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.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: neutron.contractmanager.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState 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 GenesisState + * @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): neutron.contractmanager.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryParamsResponse; /** - * Decodes a GenesisState 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 GenesisState + * @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)): neutron.contractmanager.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryParamsResponse; /** - * Verifies a GenesisState 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 GenesisState 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 GenesisState + * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.contractmanager.GenesisState; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryParamsResponse; /** - * 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 QueryParamsResponse message. Also converts values to other types if specified. + * @param message QueryParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.contractmanager.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this QueryParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace cron. */ - namespace cron { + /** Properties of a QueryFailuresRequest. */ + interface IQueryFailuresRequest { - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** QueryFailuresRequest address */ + address?: (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); - } - - /** Properties of a Schedule. */ - interface ISchedule { - - /** Schedule name */ - name?: (string|null); - - /** Schedule period */ - period?: (Long|null); - - /** Schedule msgs */ - msgs?: (neutron.cron.IMsgExecuteContract[]|null); - - /** Schedule last_execute_height */ - last_execute_height?: (Long|null); + /** QueryFailuresRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a Schedule. */ - class Schedule implements ISchedule { + /** Represents a QueryFailuresRequest. */ + class QueryFailuresRequest implements IQueryFailuresRequest { /** - * Constructs a new Schedule. + * Constructs a new QueryFailuresRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.ISchedule); - - /** Schedule name. */ - public name: string; - - /** Schedule period. */ - public period: Long; + constructor(properties?: neutron.contractmanager.IQueryFailuresRequest); - /** Schedule msgs. */ - public msgs: neutron.cron.IMsgExecuteContract[]; + /** QueryFailuresRequest address. */ + public address: string; - /** Schedule last_execute_height. */ - public last_execute_height: Long; + /** QueryFailuresRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified Schedule message. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. - * @param message Schedule message or plain object to encode + * Encodes the specified QueryFailuresRequest message. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. + * @param message QueryFailuresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IQueryFailuresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Schedule message, length delimited. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. - * @param message Schedule message or plain object to encode + * Encodes the specified QueryFailuresRequest message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresRequest.verify|verify} messages. + * @param message QueryFailuresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IQueryFailuresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Schedule message from the specified reader or buffer. + * Decodes a QueryFailuresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Schedule + * @returns QueryFailuresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.Schedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryFailuresRequest; /** - * Decodes a Schedule message from the specified reader or buffer, length delimited. + * Decodes a QueryFailuresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Schedule + * @returns QueryFailuresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.Schedule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryFailuresRequest; /** - * Verifies a Schedule message. + * Verifies a QueryFailuresRequest message. * @param message 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 Schedule message from a plain object. Also converts values to their respective internal types. + * Creates a QueryFailuresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Schedule + * @returns QueryFailuresRequest */ - public static fromObject(object: { [k: string]: any }): neutron.cron.Schedule; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryFailuresRequest; /** - * Creates a plain object from a Schedule message. Also converts values to other types if specified. - * @param message Schedule + * Creates a plain object from a QueryFailuresRequest message. Also converts values to other types if specified. + * @param message QueryFailuresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.Schedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.QueryFailuresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Schedule to JSON. + * Converts this QueryFailuresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgExecuteContract. */ - interface IMsgExecuteContract { + /** Properties of a QueryFailuresResponse. */ + interface IQueryFailuresResponse { - /** MsgExecuteContract contract */ - contract?: (string|null); + /** QueryFailuresResponse failures */ + failures?: (neutron.contractmanager.IFailure[]|null); - /** MsgExecuteContract msg */ - msg?: (string|null); + /** QueryFailuresResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a MsgExecuteContract. */ - class MsgExecuteContract implements IMsgExecuteContract { + /** Represents a QueryFailuresResponse. */ + class QueryFailuresResponse implements IQueryFailuresResponse { /** - * Constructs a new MsgExecuteContract. + * Constructs a new QueryFailuresResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IMsgExecuteContract); + constructor(properties?: neutron.contractmanager.IQueryFailuresResponse); - /** MsgExecuteContract contract. */ - public contract: string; + /** QueryFailuresResponse failures. */ + public failures: neutron.contractmanager.IFailure[]; - /** MsgExecuteContract msg. */ - public msg: string; + /** QueryFailuresResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. - * @param message MsgExecuteContract message or plain object to encode + * Encodes the specified QueryFailuresResponse message. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. + * @param message QueryFailuresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.IMsgExecuteContract, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IQueryFailuresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgExecuteContract message, length delimited. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. - * @param message MsgExecuteContract message or plain object to encode + * Encodes the specified QueryFailuresResponse message, length delimited. Does not implicitly {@link neutron.contractmanager.QueryFailuresResponse.verify|verify} messages. + * @param message QueryFailuresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IMsgExecuteContract, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IQueryFailuresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. + * Decodes a QueryFailuresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgExecuteContract + * @returns QueryFailuresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.MsgExecuteContract; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.QueryFailuresResponse; /** - * Decodes a MsgExecuteContract message from the specified reader or buffer, length delimited. + * Decodes a QueryFailuresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgExecuteContract + * @returns QueryFailuresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.MsgExecuteContract; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.QueryFailuresResponse; /** - * Verifies a MsgExecuteContract message. + * Verifies a QueryFailuresResponse message. * @param message 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 MsgExecuteContract message from a plain object. Also converts values to their respective internal types. + * Creates a QueryFailuresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgExecuteContract + * @returns QueryFailuresResponse */ - public static fromObject(object: { [k: string]: any }): neutron.cron.MsgExecuteContract; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.QueryFailuresResponse; /** - * Creates a plain object from a MsgExecuteContract message. Also converts values to other types if specified. - * @param message MsgExecuteContract + * Creates a plain object from a QueryFailuresResponse message. Also converts values to other types if specified. + * @param message QueryFailuresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.MsgExecuteContract, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.QueryFailuresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgExecuteContract to JSON. + * Converts this QueryFailuresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ScheduleCount. */ - interface IScheduleCount { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** ScheduleCount count */ - count?: (number|null); + /** GenesisState params */ + params?: (neutron.contractmanager.IParams|null); + + /** GenesisState failures_list */ + failures_list?: (neutron.contractmanager.IFailure[]|null); } - /** Represents a ScheduleCount. */ - class ScheduleCount implements IScheduleCount { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new ScheduleCount. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IScheduleCount); + constructor(properties?: neutron.contractmanager.IGenesisState); - /** ScheduleCount count. */ - public count: number; + /** GenesisState params. */ + public params?: (neutron.contractmanager.IParams|null); + + /** GenesisState failures_list. */ + public failures_list: neutron.contractmanager.IFailure[]; /** - * Encodes the specified ScheduleCount message. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. - * @param message ScheduleCount message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.contractmanager.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: neutron.cron.IScheduleCount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.contractmanager.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ScheduleCount message, length delimited. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. - * @param message ScheduleCount message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.contractmanager.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: neutron.cron.IScheduleCount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.contractmanager.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ScheduleCount 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 ScheduleCount + * @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): neutron.cron.ScheduleCount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.GenesisState; /** - * Decodes a ScheduleCount 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 ScheduleCount + * @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)): neutron.cron.ScheduleCount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.GenesisState; /** - * Verifies a ScheduleCount 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 ScheduleCount 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 ScheduleCount + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): neutron.cron.ScheduleCount; + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.GenesisState; /** - * Creates a plain object from a ScheduleCount message. Also converts values to other types if specified. - * @param message ScheduleCount + * 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: neutron.cron.ScheduleCount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.contractmanager.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ScheduleCount to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Namespace v1. */ + namespace v1 { - /** - * 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); + /** Properties of a Failure. */ + interface IFailure { - /** - * 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: neutron.cron.IQueryParamsRequest, callback: neutron.cron.Query.ParamsCallback): void; + /** Failure channel_id */ + channel_id?: (string|null); - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: neutron.cron.IQueryParamsRequest): Promise; + /** Failure address */ + address?: (string|null); - /** - * Calls Schedule. - * @param request QueryGetScheduleRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryGetScheduleResponse - */ - public schedule(request: neutron.cron.IQueryGetScheduleRequest, callback: neutron.cron.Query.ScheduleCallback): void; + /** Failure id */ + id?: (Long|null); - /** - * Calls Schedule. - * @param request QueryGetScheduleRequest message or plain object - * @returns Promise - */ - public schedule(request: neutron.cron.IQueryGetScheduleRequest): Promise; + /** Failure ack_id */ + ack_id?: (Long|null); - /** - * Calls Schedules. - * @param request QuerySchedulesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QuerySchedulesResponse - */ - public schedules(request: neutron.cron.IQuerySchedulesRequest, callback: neutron.cron.Query.SchedulesCallback): void; + /** Failure ack_type */ + ack_type?: (string|null); + } - /** - * Calls Schedules. - * @param request QuerySchedulesRequest message or plain object - * @returns Promise - */ - public schedules(request: neutron.cron.IQuerySchedulesRequest): Promise; + /** Represents a Failure. */ + class Failure implements IFailure { + + /** + * Constructs a new Failure. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.contractmanager.v1.IFailure); + + /** Failure channel_id. */ + public channel_id: string; + + /** Failure address. */ + public address: string; + + /** Failure id. */ + public id: Long; + + /** Failure ack_id. */ + public ack_id: Long; + + /** Failure ack_type. */ + public ack_type: string; + + /** + * Encodes the specified Failure message. Does not implicitly {@link neutron.contractmanager.v1.Failure.verify|verify} messages. + * @param message Failure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.contractmanager.v1.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Failure message, length delimited. Does not implicitly {@link neutron.contractmanager.v1.Failure.verify|verify} messages. + * @param message Failure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.contractmanager.v1.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Failure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Failure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.contractmanager.v1.Failure; + + /** + * Decodes a Failure message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Failure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.contractmanager.v1.Failure; + + /** + * Verifies a Failure message. + * @param message 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 Failure message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Failure + */ + public static fromObject(object: { [k: string]: any }): neutron.contractmanager.v1.Failure; + + /** + * Creates a plain object from a Failure message. Also converts values to other types if specified. + * @param message Failure + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.contractmanager.v1.Failure, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Failure to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } + } - namespace Query { + /** Namespace cron. */ + namespace cron { + + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { /** - * Callback as used by {@link neutron.cron.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse + * 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 */ - type ParamsCallback = (error: (Error|null), response?: neutron.cron.QueryParamsResponse) => void; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Callback as used by {@link neutron.cron.Query#schedule}. - * @param error Error, if any - * @param [response] QueryGetScheduleResponse + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse */ - type ScheduleCallback = (error: (Error|null), response?: neutron.cron.QueryGetScheduleResponse) => void; + public updateParams(request: neutron.cron.IMsgUpdateParams, callback: neutron.cron.Msg.UpdateParamsCallback): void; /** - * Callback as used by {@link neutron.cron.Query#schedules}. + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @returns Promise + */ + public updateParams(request: neutron.cron.IMsgUpdateParams): Promise; + } + + namespace Msg { + + /** + * Callback as used by {@link neutron.cron.Msg#updateParams}. * @param error Error, if any - * @param [response] QuerySchedulesResponse + * @param [response] MsgUpdateParamsResponse */ - type SchedulesCallback = (error: (Error|null), response?: neutron.cron.QuerySchedulesResponse) => void; + type UpdateParamsCallback = (error: (Error|null), response?: neutron.cron.MsgUpdateParamsResponse) => void; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { + + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (neutron.cron.IParams|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgUpdateParams. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQueryParamsRequest); + constructor(properties?: neutron.cron.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.cron.IParams|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.cron.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.cron.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.cron.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateParams 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 MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.MsgUpdateParams; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.MsgUpdateParams; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParams message. * @param message 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 MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns MsgUpdateParams */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): neutron.cron.MsgUpdateParams; /** - * 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 MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { - - /** QueryParamsResponse params */ - params?: (neutron.cron.IParams|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQueryParamsResponse); - - /** QueryParamsResponse params. */ - public params?: (neutron.cron.IParams|null); + constructor(properties?: neutron.cron.IMsgUpdateParamsResponse); /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.cron.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse 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 MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.MsgUpdateParamsResponse; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.MsgUpdateParamsResponse; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): neutron.cron.MsgUpdateParamsResponse; /** - * 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 MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryGetScheduleRequest. */ - interface IQueryGetScheduleRequest { + /** Properties of a Params. */ + interface IParams { - /** QueryGetScheduleRequest name */ - name?: (string|null); + /** Params security_address */ + security_address?: (string|null); + + /** Params limit */ + limit?: (Long|null); } - /** Represents a QueryGetScheduleRequest. */ - class QueryGetScheduleRequest implements IQueryGetScheduleRequest { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryGetScheduleRequest. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQueryGetScheduleRequest); + constructor(properties?: neutron.cron.IParams); - /** QueryGetScheduleRequest name. */ - public name: string; + /** Params security_address. */ + public security_address: string; + + /** Params limit. */ + public limit: Long; /** - * Encodes the specified QueryGetScheduleRequest message. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. - * @param message QueryGetScheduleRequest message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link neutron.cron.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: neutron.cron.IQueryGetScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryGetScheduleRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. - * @param message QueryGetScheduleRequest message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.cron.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: neutron.cron.IQueryGetScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryGetScheduleRequest 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 QueryGetScheduleRequest + * @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): neutron.cron.QueryGetScheduleRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.Params; /** - * Decodes a QueryGetScheduleRequest 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 QueryGetScheduleRequest + * @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)): neutron.cron.QueryGetScheduleRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.Params; /** - * Verifies a QueryGetScheduleRequest 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 QueryGetScheduleRequest 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 QueryGetScheduleRequest + * @returns Params */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QueryGetScheduleRequest; + public static fromObject(object: { [k: string]: any }): neutron.cron.Params; /** - * Creates a plain object from a QueryGetScheduleRequest message. Also converts values to other types if specified. - * @param message QueryGetScheduleRequest + * 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: neutron.cron.QueryGetScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryGetScheduleRequest to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryGetScheduleResponse. */ - interface IQueryGetScheduleResponse { + /** Properties of a Schedule. */ + interface ISchedule { - /** QueryGetScheduleResponse schedule */ - schedule?: (neutron.cron.ISchedule|null); + /** Schedule name */ + name?: (string|null); + + /** Schedule period */ + period?: (Long|null); + + /** Schedule msgs */ + msgs?: (neutron.cron.IMsgExecuteContract[]|null); + + /** Schedule last_execute_height */ + last_execute_height?: (Long|null); } - /** Represents a QueryGetScheduleResponse. */ - class QueryGetScheduleResponse implements IQueryGetScheduleResponse { + /** Represents a Schedule. */ + class Schedule implements ISchedule { /** - * Constructs a new QueryGetScheduleResponse. + * Constructs a new Schedule. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQueryGetScheduleResponse); + constructor(properties?: neutron.cron.ISchedule); - /** QueryGetScheduleResponse schedule. */ - public schedule?: (neutron.cron.ISchedule|null); + /** Schedule name. */ + public name: string; - /** - * Encodes the specified QueryGetScheduleResponse message. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. - * @param message QueryGetScheduleResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: neutron.cron.IQueryGetScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Schedule period. */ + public period: Long; + + /** Schedule msgs. */ + public msgs: neutron.cron.IMsgExecuteContract[]; + + /** Schedule last_execute_height. */ + public last_execute_height: Long; /** - * Encodes the specified QueryGetScheduleResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. - * @param message QueryGetScheduleResponse message or plain object to encode + * Encodes the specified Schedule message. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. + * @param message Schedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IQueryGetScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryGetScheduleResponse message from the specified reader or buffer. + * Encodes the specified Schedule message, length delimited. Does not implicitly {@link neutron.cron.Schedule.verify|verify} messages. + * @param message Schedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.cron.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryGetScheduleResponse + * @returns Schedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryGetScheduleResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.Schedule; /** - * Decodes a QueryGetScheduleResponse message from the specified reader or buffer, length delimited. + * Decodes a Schedule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryGetScheduleResponse + * @returns Schedule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryGetScheduleResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.Schedule; /** - * Verifies a QueryGetScheduleResponse message. + * Verifies a Schedule message. * @param message 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 QueryGetScheduleResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Schedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryGetScheduleResponse + * @returns Schedule */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QueryGetScheduleResponse; + public static fromObject(object: { [k: string]: any }): neutron.cron.Schedule; /** - * Creates a plain object from a QueryGetScheduleResponse message. Also converts values to other types if specified. - * @param message QueryGetScheduleResponse + * Creates a plain object from a Schedule message. Also converts values to other types if specified. + * @param message Schedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.QueryGetScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.Schedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryGetScheduleResponse to JSON. + * Converts this Schedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QuerySchedulesRequest. */ - interface IQuerySchedulesRequest { + /** Properties of a MsgExecuteContract. */ + interface IMsgExecuteContract { - /** QuerySchedulesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgExecuteContract contract */ + contract?: (string|null); + + /** MsgExecuteContract msg */ + msg?: (string|null); } - /** Represents a QuerySchedulesRequest. */ - class QuerySchedulesRequest implements IQuerySchedulesRequest { + /** Represents a MsgExecuteContract. */ + class MsgExecuteContract implements IMsgExecuteContract { /** - * Constructs a new QuerySchedulesRequest. + * Constructs a new MsgExecuteContract. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQuerySchedulesRequest); + constructor(properties?: neutron.cron.IMsgExecuteContract); - /** QuerySchedulesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgExecuteContract contract. */ + public contract: string; + + /** MsgExecuteContract msg. */ + public msg: string; /** - * Encodes the specified QuerySchedulesRequest message. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. - * @param message QuerySchedulesRequest message or plain object to encode + * Encodes the specified MsgExecuteContract message. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. + * @param message MsgExecuteContract message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.IQuerySchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IMsgExecuteContract, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QuerySchedulesRequest message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. - * @param message QuerySchedulesRequest message or plain object to encode + * Encodes the specified MsgExecuteContract message, length delimited. Does not implicitly {@link neutron.cron.MsgExecuteContract.verify|verify} messages. + * @param message MsgExecuteContract message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IQuerySchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IMsgExecuteContract, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QuerySchedulesRequest message from the specified reader or buffer. + * Decodes a MsgExecuteContract message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QuerySchedulesRequest + * @returns MsgExecuteContract * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QuerySchedulesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.MsgExecuteContract; /** - * Decodes a QuerySchedulesRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgExecuteContract message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QuerySchedulesRequest + * @returns MsgExecuteContract * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QuerySchedulesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.MsgExecuteContract; /** - * Verifies a QuerySchedulesRequest message. + * Verifies a MsgExecuteContract message. * @param message 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 QuerySchedulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgExecuteContract message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QuerySchedulesRequest + * @returns MsgExecuteContract */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QuerySchedulesRequest; + public static fromObject(object: { [k: string]: any }): neutron.cron.MsgExecuteContract; /** - * Creates a plain object from a QuerySchedulesRequest message. Also converts values to other types if specified. - * @param message QuerySchedulesRequest + * Creates a plain object from a MsgExecuteContract message. Also converts values to other types if specified. + * @param message MsgExecuteContract * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.QuerySchedulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.MsgExecuteContract, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QuerySchedulesRequest to JSON. + * Converts this MsgExecuteContract to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QuerySchedulesResponse. */ - interface IQuerySchedulesResponse { - - /** QuerySchedulesResponse schedules */ - schedules?: (neutron.cron.ISchedule[]|null); + /** Properties of a ScheduleCount. */ + interface IScheduleCount { - /** QuerySchedulesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** ScheduleCount count */ + count?: (number|null); } - /** Represents a QuerySchedulesResponse. */ - class QuerySchedulesResponse implements IQuerySchedulesResponse { + /** Represents a ScheduleCount. */ + class ScheduleCount implements IScheduleCount { /** - * Constructs a new QuerySchedulesResponse. + * Constructs a new ScheduleCount. * @param [properties] Properties to set */ - constructor(properties?: neutron.cron.IQuerySchedulesResponse); - - /** QuerySchedulesResponse schedules. */ - public schedules: neutron.cron.ISchedule[]; + constructor(properties?: neutron.cron.IScheduleCount); - /** QuerySchedulesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** ScheduleCount count. */ + public count: number; /** - * Encodes the specified QuerySchedulesResponse message. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. - * @param message QuerySchedulesResponse message or plain object to encode + * Encodes the specified ScheduleCount message. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. + * @param message ScheduleCount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.cron.IQuerySchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IScheduleCount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QuerySchedulesResponse message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. - * @param message QuerySchedulesResponse message or plain object to encode + * Encodes the specified ScheduleCount message, length delimited. Does not implicitly {@link neutron.cron.ScheduleCount.verify|verify} messages. + * @param message ScheduleCount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.cron.IQuerySchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IScheduleCount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QuerySchedulesResponse message from the specified reader or buffer. + * Decodes a ScheduleCount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QuerySchedulesResponse + * @returns ScheduleCount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QuerySchedulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.ScheduleCount; /** - * Decodes a QuerySchedulesResponse message from the specified reader or buffer, length delimited. + * Decodes a ScheduleCount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QuerySchedulesResponse + * @returns ScheduleCount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QuerySchedulesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.ScheduleCount; /** - * Verifies a QuerySchedulesResponse message. + * Verifies a ScheduleCount message. * @param message 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 QuerySchedulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ScheduleCount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QuerySchedulesResponse + * @returns ScheduleCount */ - public static fromObject(object: { [k: string]: any }): neutron.cron.QuerySchedulesResponse; + public static fromObject(object: { [k: string]: any }): neutron.cron.ScheduleCount; /** - * Creates a plain object from a QuerySchedulesResponse message. Also converts values to other types if specified. - * @param message QuerySchedulesResponse + * Creates a plain object from a ScheduleCount message. Also converts values to other types if specified. + * @param message ScheduleCount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.cron.QuerySchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.ScheduleCount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QuerySchedulesResponse to JSON. + * Converts this ScheduleCount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { - - /** Params security_address */ - security_address?: (string|null); - - /** Params limit */ - limit?: (Long|null); - } - - /** Represents a Params. */ - class Params implements IParams { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { /** - * Constructs a new Params. - * @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?: neutron.cron.IParams); - - /** Params security_address. */ - public security_address: string; - - /** Params limit. */ - public limit: Long; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified Params message. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. - * @param message Params 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 encode(message: neutron.cron.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public params(request: neutron.cron.IQueryParamsRequest, callback: neutron.cron.Query.ParamsCallback): void; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.cron.Params.verify|verify} messages. - * @param message Params message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: neutron.cron.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public params(request: neutron.cron.IQueryParamsRequest): Promise; /** - * 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 + * Calls Schedule. + * @param request QueryGetScheduleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryGetScheduleResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.Params; + public schedule(request: neutron.cron.IQueryGetScheduleRequest, callback: neutron.cron.Query.ScheduleCallback): void; /** - * 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 + * Calls Schedule. + * @param request QueryGetScheduleRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.Params; + public schedule(request: neutron.cron.IQueryGetScheduleRequest): Promise; /** - * Verifies a Params message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls Schedules. + * @param request QuerySchedulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QuerySchedulesResponse */ - 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. - * @param object Plain object - * @returns Params - */ - public static fromObject(object: { [k: string]: any }): neutron.cron.Params; - - /** - * 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: neutron.cron.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Params to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState scheduleList */ - scheduleList?: (neutron.cron.ISchedule[]|null); - - /** GenesisState params */ - params?: (neutron.cron.IParams|null); - } - - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { - - /** - * Constructs a new GenesisState. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.cron.IGenesisState); - - /** GenesisState scheduleList. */ - public scheduleList: neutron.cron.ISchedule[]; - - /** GenesisState params. */ - public params?: (neutron.cron.IParams|null); - - /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.cron.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: neutron.cron.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.cron.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: neutron.cron.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): neutron.cron.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)): neutron.cron.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 }): neutron.cron.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: neutron.cron.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GenesisState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Namespace feeburner. */ - namespace feeburner { - - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { - - /** - * 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 Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse - */ - public params(request: neutron.feeburner.IQueryParamsRequest, callback: neutron.feeburner.Query.ParamsCallback): void; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: neutron.feeburner.IQueryParamsRequest): Promise; - - /** - * Calls TotalBurnedNeutronsAmount. - * @param request QueryTotalBurnedNeutronsAmountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryTotalBurnedNeutronsAmountResponse - */ - public totalBurnedNeutronsAmount(request: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, callback: neutron.feeburner.Query.TotalBurnedNeutronsAmountCallback): void; + public schedules(request: neutron.cron.IQuerySchedulesRequest, callback: neutron.cron.Query.SchedulesCallback): void; /** - * Calls TotalBurnedNeutronsAmount. - * @param request QueryTotalBurnedNeutronsAmountRequest message or plain object + * Calls Schedules. + * @param request QuerySchedulesRequest message or plain object * @returns Promise */ - public totalBurnedNeutronsAmount(request: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest): Promise; + public schedules(request: neutron.cron.IQuerySchedulesRequest): Promise; } namespace Query { /** - * Callback as used by {@link neutron.feeburner.Query#params}. + * Callback as used by {@link neutron.cron.Query#params}. * @param error Error, if any * @param [response] QueryParamsResponse */ - type ParamsCallback = (error: (Error|null), response?: neutron.feeburner.QueryParamsResponse) => void; + type ParamsCallback = (error: (Error|null), response?: neutron.cron.QueryParamsResponse) => void; /** - * Callback as used by {@link neutron.feeburner.Query#totalBurnedNeutronsAmount}. + * Callback as used by {@link neutron.cron.Query#schedule}. * @param error Error, if any - * @param [response] QueryTotalBurnedNeutronsAmountResponse + * @param [response] QueryGetScheduleResponse */ - type TotalBurnedNeutronsAmountCallback = (error: (Error|null), response?: neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse) => void; + type ScheduleCallback = (error: (Error|null), response?: neutron.cron.QueryGetScheduleResponse) => void; + + /** + * Callback as used by {@link neutron.cron.Query#schedules}. + * @param error Error, if any + * @param [response] QuerySchedulesResponse + */ + type SchedulesCallback = (error: (Error|null), response?: neutron.cron.QuerySchedulesResponse) => void; } /** Properties of a QueryParamsRequest. */ @@ -1809,23 +1664,23 @@ export namespace neutron { * Constructs a new QueryParamsRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IQueryParamsRequest); + constructor(properties?: neutron.cron.IQueryParamsRequest); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsRequest.verify|verify} messages. + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a QueryParamsRequest message from the specified reader or buffer. @@ -1835,7 +1690,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryParamsRequest; /** * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. @@ -1844,7 +1699,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryParamsRequest; /** * Verifies a QueryParamsRequest message. @@ -1858,7 +1713,7 @@ export namespace neutron { * @param object Plain object * @returns QueryParamsRequest */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): neutron.cron.QueryParamsRequest; /** * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. @@ -1866,7 +1721,7 @@ export namespace neutron { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this QueryParamsRequest to JSON. @@ -1879,7 +1734,7 @@ export namespace neutron { interface IQueryParamsResponse { /** QueryParamsResponse params */ - params?: (neutron.feeburner.IParams|null); + params?: (neutron.cron.IParams|null); } /** Represents a QueryParamsResponse. */ @@ -1889,26 +1744,26 @@ export namespace neutron { * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IQueryParamsResponse); + constructor(properties?: neutron.cron.IQueryParamsResponse); /** QueryParamsResponse params. */ - public params?: (neutron.feeburner.IParams|null); + public params?: (neutron.cron.IParams|null); /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryParamsResponse.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a QueryParamsResponse message from the specified reader or buffer. @@ -1918,7 +1773,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryParamsResponse; /** * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. @@ -1927,7 +1782,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryParamsResponse; /** * Verifies a QueryParamsResponse message. @@ -1941,7 +1796,7 @@ export namespace neutron { * @param object Plain object * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): neutron.cron.QueryParamsResponse; /** * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. @@ -1949,7 +1804,7 @@ export namespace neutron { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this QueryParamsResponse to JSON. @@ -1958,333 +1813,339 @@ export namespace neutron { public toJSON(): { [k: string]: any }; } - /** Properties of a QueryTotalBurnedNeutronsAmountRequest. */ - interface IQueryTotalBurnedNeutronsAmountRequest { + /** Properties of a QueryGetScheduleRequest. */ + interface IQueryGetScheduleRequest { + + /** QueryGetScheduleRequest name */ + name?: (string|null); } - /** Represents a QueryTotalBurnedNeutronsAmountRequest. */ - class QueryTotalBurnedNeutronsAmountRequest implements IQueryTotalBurnedNeutronsAmountRequest { + /** Represents a QueryGetScheduleRequest. */ + class QueryGetScheduleRequest implements IQueryGetScheduleRequest { /** - * Constructs a new QueryTotalBurnedNeutronsAmountRequest. + * Constructs a new QueryGetScheduleRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest); + constructor(properties?: neutron.cron.IQueryGetScheduleRequest); + + /** QueryGetScheduleRequest name. */ + public name: string; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. - * @param message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode + * Encodes the specified QueryGetScheduleRequest message. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. + * @param message QueryGetScheduleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQueryGetScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. - * @param message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode + * Encodes the specified QueryGetScheduleRequest message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleRequest.verify|verify} messages. + * @param message QueryGetScheduleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQueryGetScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer. + * Decodes a QueryGetScheduleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryTotalBurnedNeutronsAmountRequest + * @returns QueryGetScheduleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryGetScheduleRequest; /** - * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryGetScheduleRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryTotalBurnedNeutronsAmountRequest + * @returns QueryGetScheduleRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryGetScheduleRequest; /** - * Verifies a QueryTotalBurnedNeutronsAmountRequest message. + * Verifies a QueryGetScheduleRequest message. * @param message 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 QueryTotalBurnedNeutronsAmountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryGetScheduleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryTotalBurnedNeutronsAmountRequest + * @returns QueryGetScheduleRequest */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; + public static fromObject(object: { [k: string]: any }): neutron.cron.QueryGetScheduleRequest; /** - * Creates a plain object from a QueryTotalBurnedNeutronsAmountRequest message. Also converts values to other types if specified. - * @param message QueryTotalBurnedNeutronsAmountRequest + * Creates a plain object from a QueryGetScheduleRequest message. Also converts values to other types if specified. + * @param message QueryGetScheduleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QueryGetScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryTotalBurnedNeutronsAmountRequest to JSON. + * Converts this QueryGetScheduleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryTotalBurnedNeutronsAmountResponse. */ - interface IQueryTotalBurnedNeutronsAmountResponse { + /** Properties of a QueryGetScheduleResponse. */ + interface IQueryGetScheduleResponse { - /** QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount */ - total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); + /** QueryGetScheduleResponse schedule */ + schedule?: (neutron.cron.ISchedule|null); } - /** Represents a QueryTotalBurnedNeutronsAmountResponse. */ - class QueryTotalBurnedNeutronsAmountResponse implements IQueryTotalBurnedNeutronsAmountResponse { + /** Represents a QueryGetScheduleResponse. */ + class QueryGetScheduleResponse implements IQueryGetScheduleResponse { /** - * Constructs a new QueryTotalBurnedNeutronsAmountResponse. + * Constructs a new QueryGetScheduleResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse); + constructor(properties?: neutron.cron.IQueryGetScheduleResponse); - /** QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount. */ - public total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); + /** QueryGetScheduleResponse schedule. */ + public schedule?: (neutron.cron.ISchedule|null); /** - * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. - * @param message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode + * Encodes the specified QueryGetScheduleResponse message. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * @param message QueryGetScheduleResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQueryGetScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. - * @param message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode + * Encodes the specified QueryGetScheduleResponse message, length delimited. Does not implicitly {@link neutron.cron.QueryGetScheduleResponse.verify|verify} messages. + * @param message QueryGetScheduleResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQueryGetScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer. + * Decodes a QueryGetScheduleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryTotalBurnedNeutronsAmountResponse + * @returns QueryGetScheduleResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QueryGetScheduleResponse; /** - * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryGetScheduleResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryTotalBurnedNeutronsAmountResponse + * @returns QueryGetScheduleResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QueryGetScheduleResponse; /** - * Verifies a QueryTotalBurnedNeutronsAmountResponse message. + * Verifies a QueryGetScheduleResponse message. * @param message 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 QueryTotalBurnedNeutronsAmountResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryGetScheduleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryTotalBurnedNeutronsAmountResponse + * @returns QueryGetScheduleResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; + public static fromObject(object: { [k: string]: any }): neutron.cron.QueryGetScheduleResponse; /** - * Creates a plain object from a QueryTotalBurnedNeutronsAmountResponse message. Also converts values to other types if specified. - * @param message QueryTotalBurnedNeutronsAmountResponse + * Creates a plain object from a QueryGetScheduleResponse message. Also converts values to other types if specified. + * @param message QueryGetScheduleResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QueryGetScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryTotalBurnedNeutronsAmountResponse to JSON. + * Converts this QueryGetScheduleResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { - - /** Params neutron_denom */ - neutron_denom?: (string|null); + /** Properties of a QuerySchedulesRequest. */ + interface IQuerySchedulesRequest { - /** Params reserve_address */ - reserve_address?: (string|null); + /** QuerySchedulesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QuerySchedulesRequest. */ + class QuerySchedulesRequest implements IQuerySchedulesRequest { /** - * Constructs a new Params. + * Constructs a new QuerySchedulesRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IParams); - - /** Params neutron_denom. */ - public neutron_denom: string; + constructor(properties?: neutron.cron.IQuerySchedulesRequest); - /** Params reserve_address. */ - public reserve_address: string; + /** QuerySchedulesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified Params message. Does not implicitly {@link neutron.feeburner.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QuerySchedulesRequest message. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. + * @param message QuerySchedulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feeburner.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQuerySchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feeburner.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QuerySchedulesRequest message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesRequest.verify|verify} messages. + * @param message QuerySchedulesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feeburner.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQuerySchedulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QuerySchedulesRequest 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 QuerySchedulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QuerySchedulesRequest; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QuerySchedulesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QuerySchedulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QuerySchedulesRequest; /** - * Verifies a Params message. + * Verifies a QuerySchedulesRequest message. * @param message 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 QuerySchedulesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QuerySchedulesRequest */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.Params; + public static fromObject(object: { [k: string]: any }): neutron.cron.QuerySchedulesRequest; /** - * 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 QuerySchedulesRequest message. Also converts values to other types if specified. + * @param message QuerySchedulesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QuerySchedulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QuerySchedulesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TotalBurnedNeutronsAmount. */ - interface ITotalBurnedNeutronsAmount { + /** Properties of a QuerySchedulesResponse. */ + interface IQuerySchedulesResponse { - /** TotalBurnedNeutronsAmount coin */ - coin?: (cosmos.base.v1beta1.ICoin|null); + /** QuerySchedulesResponse schedules */ + schedules?: (neutron.cron.ISchedule[]|null); + + /** QuerySchedulesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a TotalBurnedNeutronsAmount. */ - class TotalBurnedNeutronsAmount implements ITotalBurnedNeutronsAmount { + /** Represents a QuerySchedulesResponse. */ + class QuerySchedulesResponse implements IQuerySchedulesResponse { /** - * Constructs a new TotalBurnedNeutronsAmount. + * Constructs a new QuerySchedulesResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.ITotalBurnedNeutronsAmount); + constructor(properties?: neutron.cron.IQuerySchedulesResponse); - /** TotalBurnedNeutronsAmount coin. */ - public coin?: (cosmos.base.v1beta1.ICoin|null); + /** QuerySchedulesResponse schedules. */ + public schedules: neutron.cron.ISchedule[]; + + /** QuerySchedulesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified TotalBurnedNeutronsAmount message. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. - * @param message TotalBurnedNeutronsAmount message or plain object to encode + * Encodes the specified QuerySchedulesResponse message. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. + * @param message QuerySchedulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feeburner.ITotalBurnedNeutronsAmount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IQuerySchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TotalBurnedNeutronsAmount message, length delimited. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. - * @param message TotalBurnedNeutronsAmount message or plain object to encode + * Encodes the specified QuerySchedulesResponse message, length delimited. Does not implicitly {@link neutron.cron.QuerySchedulesResponse.verify|verify} messages. + * @param message QuerySchedulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feeburner.ITotalBurnedNeutronsAmount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IQuerySchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer. + * Decodes a QuerySchedulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TotalBurnedNeutronsAmount + * @returns QuerySchedulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.TotalBurnedNeutronsAmount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.QuerySchedulesResponse; /** - * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer, length delimited. + * Decodes a QuerySchedulesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TotalBurnedNeutronsAmount + * @returns QuerySchedulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.TotalBurnedNeutronsAmount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.QuerySchedulesResponse; /** - * Verifies a TotalBurnedNeutronsAmount message. + * Verifies a QuerySchedulesResponse message. * @param message 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 TotalBurnedNeutronsAmount message from a plain object. Also converts values to their respective internal types. + * Creates a QuerySchedulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TotalBurnedNeutronsAmount + * @returns QuerySchedulesResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.TotalBurnedNeutronsAmount; + public static fromObject(object: { [k: string]: any }): neutron.cron.QuerySchedulesResponse; /** - * Creates a plain object from a TotalBurnedNeutronsAmount message. Also converts values to other types if specified. - * @param message TotalBurnedNeutronsAmount + * Creates a plain object from a QuerySchedulesResponse message. Also converts values to other types if specified. + * @param message QuerySchedulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.TotalBurnedNeutronsAmount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.QuerySchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TotalBurnedNeutronsAmount to JSON. + * Converts this QuerySchedulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -2293,11 +2154,11 @@ export namespace neutron { /** Properties of a GenesisState. */ interface IGenesisState { - /** GenesisState params */ - params?: (neutron.feeburner.IParams|null); + /** GenesisState scheduleList */ + scheduleList?: (neutron.cron.ISchedule[]|null); - /** GenesisState total_burned_neutrons_amount */ - total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); + /** GenesisState params */ + params?: (neutron.cron.IParams|null); } /** Represents a GenesisState. */ @@ -2307,29 +2168,29 @@ export namespace neutron { * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: neutron.feeburner.IGenesisState); + constructor(properties?: neutron.cron.IGenesisState); - /** GenesisState params. */ - public params?: (neutron.feeburner.IParams|null); + /** GenesisState scheduleList. */ + public scheduleList: neutron.cron.ISchedule[]; - /** GenesisState total_burned_neutrons_amount. */ - public total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); + /** GenesisState params. */ + public params?: (neutron.cron.IParams|null); /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.cron.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feeburner.GenesisState.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.cron.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: neutron.feeburner.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.cron.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GenesisState message from the specified reader or buffer. @@ -2339,7 +2200,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.cron.GenesisState; /** * Decodes a GenesisState message from the specified reader or buffer, length delimited. @@ -2348,7 +2209,7 @@ export namespace neutron { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.cron.GenesisState; /** * Verifies a GenesisState message. @@ -2362,7 +2223,7 @@ export namespace neutron { * @param object Plain object * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): neutron.feeburner.GenesisState; + public static fromObject(object: { [k: string]: any }): neutron.cron.GenesisState; /** * Creates a plain object from a GenesisState message. Also converts values to other types if specified. @@ -2370,7 +2231,7 @@ export namespace neutron { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feeburner.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.cron.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GenesisState to JSON. @@ -2380,14 +2241,14 @@ export namespace neutron { } } - /** Namespace feerefunder. */ - namespace feerefunder { + /** Namespace feeburner. */ + namespace feeburner { - /** 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 @@ -2395,849 +2256,843 @@ export namespace neutron { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse */ - public params(request: neutron.feerefunder.IQueryParamsRequest, callback: neutron.feerefunder.Query.ParamsCallback): void; + public updateParams(request: neutron.feeburner.IMsgUpdateParams, callback: neutron.feeburner.Msg.UpdateParamsCallback): void; /** - * Calls Params. - * @param request QueryParamsRequest message or plain object + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object * @returns Promise */ - public params(request: neutron.feerefunder.IQueryParamsRequest): Promise; - - /** - * Calls FeeInfo. - * @param request FeeInfoRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FeeInfoResponse - */ - public feeInfo(request: neutron.feerefunder.IFeeInfoRequest, callback: neutron.feerefunder.Query.FeeInfoCallback): void; - - /** - * Calls FeeInfo. - * @param request FeeInfoRequest message or plain object - * @returns Promise - */ - public feeInfo(request: neutron.feerefunder.IFeeInfoRequest): Promise; + public updateParams(request: neutron.feeburner.IMsgUpdateParams): Promise; } - namespace Query { - - /** - * Callback as used by {@link neutron.feerefunder.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse - */ - type ParamsCallback = (error: (Error|null), response?: neutron.feerefunder.QueryParamsResponse) => void; + namespace Msg { /** - * Callback as used by {@link neutron.feerefunder.Query#feeInfo}. + * Callback as used by {@link neutron.feeburner.Msg#updateParams}. * @param error Error, if any - * @param [response] FeeInfoResponse + * @param [response] MsgUpdateParamsResponse */ - type FeeInfoCallback = (error: (Error|null), response?: neutron.feerefunder.FeeInfoResponse) => void; + type UpdateParamsCallback = (error: (Error|null), response?: neutron.feeburner.MsgUpdateParamsResponse) => void; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { + + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (neutron.feeburner.IParams|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgUpdateParams. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IQueryParamsRequest); + constructor(properties?: neutron.feeburner.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.feeburner.IParams|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feerefunder.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.feeburner.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feerefunder.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.feeburner.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feerefunder.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateParams 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 MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.MsgUpdateParams; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.MsgUpdateParams; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgUpdateParams message. * @param message 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 MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns MsgUpdateParams */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.MsgUpdateParams; /** - * 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 MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgUpdateParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { - - /** QueryParamsResponse params */ - params?: (neutron.feerefunder.IParams|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IQueryParamsResponse); - - /** QueryParamsResponse params. */ - public params?: (neutron.feerefunder.IParams|null); + constructor(properties?: neutron.feeburner.IMsgUpdateParamsResponse); /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.feeburner.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feerefunder.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feerefunder.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse 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 MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.MsgUpdateParamsResponse; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.MsgUpdateParamsResponse; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.MsgUpdateParamsResponse; /** - * 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 MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeeInfoRequest. */ - interface IFeeInfoRequest { + /** Properties of a Params. */ + interface IParams { - /** FeeInfoRequest channel_id */ - channel_id?: (string|null); + /** Params neutron_denom */ + neutron_denom?: (string|null); - /** FeeInfoRequest port_id */ - port_id?: (string|null); + /** Params reserve_address */ + reserve_address?: (string|null); - /** FeeInfoRequest sequence */ - sequence?: (Long|null); + /** Params treasury_address */ + treasury_address?: (string|null); } - /** Represents a FeeInfoRequest. */ - class FeeInfoRequest implements IFeeInfoRequest { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new FeeInfoRequest. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IFeeInfoRequest); + constructor(properties?: neutron.feeburner.IParams); - /** FeeInfoRequest channel_id. */ - public channel_id: string; + /** Params neutron_denom. */ + public neutron_denom: string; - /** FeeInfoRequest port_id. */ - public port_id: string; + /** Params reserve_address. */ + public reserve_address: string; - /** FeeInfoRequest sequence. */ - public sequence: Long; + /** Params treasury_address. */ + public treasury_address: string; /** - * Encodes the specified FeeInfoRequest message. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. - * @param message FeeInfoRequest message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeeInfoRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. - * @param message FeeInfoRequest message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeeInfoRequest 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 FeeInfoRequest + * @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): neutron.feerefunder.FeeInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.Params; /** - * Decodes a FeeInfoRequest 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 FeeInfoRequest + * @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)): neutron.feerefunder.FeeInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.Params; /** - * Verifies a FeeInfoRequest 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 FeeInfoRequest 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 FeeInfoRequest + * @returns Params */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfoRequest; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.Params; /** - * Creates a plain object from a FeeInfoRequest message. Also converts values to other types if specified. - * @param message FeeInfoRequest + * 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: neutron.feerefunder.FeeInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeeInfoRequest to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeeInfoResponse. */ - interface IFeeInfoResponse { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** FeeInfoResponse fee_info */ - fee_info?: (neutron.feerefunder.IFeeInfo|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 Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params(request: neutron.feeburner.IQueryParamsRequest, callback: neutron.feeburner.Query.ParamsCallback): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: neutron.feeburner.IQueryParamsRequest): Promise; + + /** + * Calls TotalBurnedNeutronsAmount. + * @param request QueryTotalBurnedNeutronsAmountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryTotalBurnedNeutronsAmountResponse + */ + public totalBurnedNeutronsAmount(request: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, callback: neutron.feeburner.Query.TotalBurnedNeutronsAmountCallback): void; + + /** + * Calls TotalBurnedNeutronsAmount. + * @param request QueryTotalBurnedNeutronsAmountRequest message or plain object + * @returns Promise + */ + public totalBurnedNeutronsAmount(request: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest): Promise; } - /** Represents a FeeInfoResponse. */ - class FeeInfoResponse implements IFeeInfoResponse { + namespace Query { /** - * Constructs a new FeeInfoResponse. - * @param [properties] Properties to set + * Callback as used by {@link neutron.feeburner.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse */ - constructor(properties?: neutron.feerefunder.IFeeInfoResponse); + type ParamsCallback = (error: (Error|null), response?: neutron.feeburner.QueryParamsResponse) => void; - /** FeeInfoResponse fee_info. */ - public fee_info?: (neutron.feerefunder.IFeeInfo|null); + /** + * Callback as used by {@link neutron.feeburner.Query#totalBurnedNeutronsAmount}. + * @param error Error, if any + * @param [response] QueryTotalBurnedNeutronsAmountResponse + */ + type TotalBurnedNeutronsAmountCallback = (error: (Error|null), response?: neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse) => void; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { /** - * Encodes the specified FeeInfoResponse message. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. - * @param message FeeInfoResponse message or plain object to encode + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.feeburner.IQueryParamsRequest); + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeeInfoResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. - * @param message FeeInfoResponse message or plain object to encode + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeeInfoResponse 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 FeeInfoResponse + * @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): neutron.feerefunder.FeeInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryParamsRequest; /** - * Decodes a FeeInfoResponse 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 FeeInfoResponse + * @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)): neutron.feerefunder.FeeInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryParamsRequest; /** - * Verifies a FeeInfoResponse 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 FeeInfoResponse 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 FeeInfoResponse + * @returns QueryParamsRequest */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfoResponse; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryParamsRequest; /** - * Creates a plain object from a FeeInfoResponse message. Also converts values to other types if specified. - * @param message FeeInfoResponse + * 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: neutron.feerefunder.FeeInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeeInfoResponse to JSON. + * Converts this QueryParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** Params min_fee */ - min_fee?: (neutron.feerefunder.IFee|null); + /** QueryParamsResponse params */ + params?: (neutron.feeburner.IParams|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { /** - * Constructs a new Params. + * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IParams); + constructor(properties?: neutron.feeburner.IQueryParamsResponse); - /** Params min_fee. */ - public min_fee?: (neutron.feerefunder.IFee|null); + /** QueryParamsResponse params. */ + public params?: (neutron.feeburner.IParams|null); /** - * Encodes the specified Params message. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feerefunder.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params 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 Params + * @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): neutron.feerefunder.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryParamsResponse; /** - * Decodes a Params 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 Params + * @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)): neutron.feerefunder.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryParamsResponse; /** - * Verifies a Params 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 Params 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 Params + * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.Params; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryParamsResponse; /** - * 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 QueryParamsResponse message. Also converts values to other types if specified. + * @param message QueryParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Fee. */ - interface IFee { - - /** Fee recv_fee */ - recv_fee?: (cosmos.base.v1beta1.ICoin[]|null); - - /** Fee ack_fee */ - ack_fee?: (cosmos.base.v1beta1.ICoin[]|null); - - /** Fee timeout_fee */ - timeout_fee?: (cosmos.base.v1beta1.ICoin[]|null); + /** Properties of a QueryTotalBurnedNeutronsAmountRequest. */ + interface IQueryTotalBurnedNeutronsAmountRequest { } - /** Represents a Fee. */ - class Fee implements IFee { + /** Represents a QueryTotalBurnedNeutronsAmountRequest. */ + class QueryTotalBurnedNeutronsAmountRequest implements IQueryTotalBurnedNeutronsAmountRequest { /** - * Constructs a new Fee. + * Constructs a new QueryTotalBurnedNeutronsAmountRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IFee); - - /** Fee recv_fee. */ - public recv_fee: cosmos.base.v1beta1.ICoin[]; - - /** Fee ack_fee. */ - public ack_fee: cosmos.base.v1beta1.ICoin[]; - - /** Fee timeout_fee. */ - public timeout_fee: cosmos.base.v1beta1.ICoin[]; + constructor(properties?: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest); /** - * Encodes the specified Fee message. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. - * @param message Fee message or plain object to encode + * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. + * @param message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feerefunder.IFee, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Fee message, length delimited. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. - * @param message Fee message or plain object to encode + * Encodes the specified QueryTotalBurnedNeutronsAmountRequest message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest.verify|verify} messages. + * @param message QueryTotalBurnedNeutronsAmountRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feerefunder.IFee, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Fee message from the specified reader or buffer. + * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Fee + * @returns QueryTotalBurnedNeutronsAmountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.Fee; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; /** - * Decodes a Fee message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalBurnedNeutronsAmountRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Fee + * @returns QueryTotalBurnedNeutronsAmountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.Fee; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; /** - * Verifies a Fee message. + * Verifies a QueryTotalBurnedNeutronsAmountRequest message. * @param message 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 Fee message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalBurnedNeutronsAmountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Fee + * @returns QueryTotalBurnedNeutronsAmountRequest */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.Fee; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest; /** - * Creates a plain object from a Fee message. Also converts values to other types if specified. - * @param message Fee + * Creates a plain object from a QueryTotalBurnedNeutronsAmountRequest message. Also converts values to other types if specified. + * @param message QueryTotalBurnedNeutronsAmountRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.Fee, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Fee to JSON. + * Converts this QueryTotalBurnedNeutronsAmountRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketID. */ - interface IPacketID { - - /** PacketID channel_id */ - channel_id?: (string|null); - - /** PacketID port_id */ - port_id?: (string|null); + /** Properties of a QueryTotalBurnedNeutronsAmountResponse. */ + interface IQueryTotalBurnedNeutronsAmountResponse { - /** PacketID sequence */ - sequence?: (Long|null); + /** QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount */ + total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); } - /** Represents a PacketID. */ - class PacketID implements IPacketID { + /** Represents a QueryTotalBurnedNeutronsAmountResponse. */ + class QueryTotalBurnedNeutronsAmountResponse implements IQueryTotalBurnedNeutronsAmountResponse { /** - * Constructs a new PacketID. + * Constructs a new QueryTotalBurnedNeutronsAmountResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IPacketID); - - /** PacketID channel_id. */ - public channel_id: string; - - /** PacketID port_id. */ - public port_id: string; + constructor(properties?: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse); - /** PacketID sequence. */ - public sequence: Long; + /** QueryTotalBurnedNeutronsAmountResponse total_burned_neutrons_amount. */ + public total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); /** - * Encodes the specified PacketID message. Does not implicitly {@link neutron.feerefunder.PacketID.verify|verify} messages. - * @param message PacketID message or plain object to encode + * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. + * @param message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feerefunder.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketID message, length delimited. Does not implicitly {@link neutron.feerefunder.PacketID.verify|verify} messages. - * @param message PacketID message or plain object to encode + * Encodes the specified QueryTotalBurnedNeutronsAmountResponse message, length delimited. Does not implicitly {@link neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse.verify|verify} messages. + * @param message QueryTotalBurnedNeutronsAmountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feerefunder.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IQueryTotalBurnedNeutronsAmountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketID message from the specified reader or buffer. + * Decodes a QueryTotalBurnedNeutronsAmountResponse 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 QueryTotalBurnedNeutronsAmountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.PacketID; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; /** - * Decodes a PacketID message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalBurnedNeutronsAmountResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketID + * @returns QueryTotalBurnedNeutronsAmountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.PacketID; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; /** - * Verifies a PacketID message. + * Verifies a QueryTotalBurnedNeutronsAmountResponse message. * @param message 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 QueryTotalBurnedNeutronsAmountResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketID + * @returns QueryTotalBurnedNeutronsAmountResponse */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.PacketID; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse; /** - * 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 QueryTotalBurnedNeutronsAmountResponse message. Also converts values to other types if specified. + * @param message QueryTotalBurnedNeutronsAmountResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.PacketID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketID to JSON. + * Converts this QueryTotalBurnedNeutronsAmountResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState params */ - params?: (neutron.feerefunder.IParams|null); + /** Properties of a TotalBurnedNeutronsAmount. */ + interface ITotalBurnedNeutronsAmount { - /** GenesisState fee_infos */ - fee_infos?: (neutron.feerefunder.IFeeInfo[]|null); + /** TotalBurnedNeutronsAmount coin */ + coin?: (cosmos.base.v1beta1.ICoin|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a TotalBurnedNeutronsAmount. */ + class TotalBurnedNeutronsAmount implements ITotalBurnedNeutronsAmount { /** - * Constructs a new GenesisState. + * Constructs a new TotalBurnedNeutronsAmount. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IGenesisState); - - /** GenesisState params. */ - public params?: (neutron.feerefunder.IParams|null); + constructor(properties?: neutron.feeburner.ITotalBurnedNeutronsAmount); - /** GenesisState fee_infos. */ - public fee_infos: neutron.feerefunder.IFeeInfo[]; + /** TotalBurnedNeutronsAmount coin. */ + public coin?: (cosmos.base.v1beta1.ICoin|null); /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified TotalBurnedNeutronsAmount message. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. + * @param message TotalBurnedNeutronsAmount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.feerefunder.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.ITotalBurnedNeutronsAmount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feerefunder.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode - * @param [writer] Writer to encode to + * Encodes the specified TotalBurnedNeutronsAmount message, length delimited. Does not implicitly {@link neutron.feeburner.TotalBurnedNeutronsAmount.verify|verify} messages. + * @param message TotalBurnedNeutronsAmount message or plain object to encode + * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.feerefunder.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.ITotalBurnedNeutronsAmount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a TotalBurnedNeutronsAmount 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 TotalBurnedNeutronsAmount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.TotalBurnedNeutronsAmount; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a TotalBurnedNeutronsAmount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns TotalBurnedNeutronsAmount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.TotalBurnedNeutronsAmount; /** - * Verifies a GenesisState message. + * Verifies a TotalBurnedNeutronsAmount message. * @param message 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 TotalBurnedNeutronsAmount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns TotalBurnedNeutronsAmount */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.GenesisState; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.TotalBurnedNeutronsAmount; /** - * 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 TotalBurnedNeutronsAmount message. Also converts values to other types if specified. + * @param message TotalBurnedNeutronsAmount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.feerefunder.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.TotalBurnedNeutronsAmount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this TotalBurnedNeutronsAmount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeeInfo. */ - interface IFeeInfo { - - /** FeeInfo payer */ - payer?: (string|null); + /** Properties of a GenesisState. */ + interface IGenesisState { - /** FeeInfo packet_id */ - packet_id?: (neutron.feerefunder.IPacketID|null); + /** GenesisState params */ + params?: (neutron.feeburner.IParams|null); - /** FeeInfo fee */ - fee?: (neutron.feerefunder.IFee|null); + /** GenesisState total_burned_neutrons_amount */ + total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); } - /** Represents a FeeInfo. */ - class FeeInfo implements IFeeInfo { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new FeeInfo. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: neutron.feerefunder.IFeeInfo); - - /** FeeInfo payer. */ - public payer: string; + constructor(properties?: neutron.feeburner.IGenesisState); - /** FeeInfo packet_id. */ - public packet_id?: (neutron.feerefunder.IPacketID|null); + /** GenesisState params. */ + public params?: (neutron.feeburner.IParams|null); - /** FeeInfo fee. */ - public fee?: (neutron.feerefunder.IFee|null); + /** GenesisState total_burned_neutrons_amount. */ + public total_burned_neutrons_amount?: (neutron.feeburner.ITotalBurnedNeutronsAmount|null); /** - * Encodes the specified FeeInfo message. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. - * @param message FeeInfo message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feeburner.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeeInfo message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. - * @param message FeeInfo message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feeburner.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: neutron.feerefunder.IFeeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feeburner.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeeInfo 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 FeeInfo + * @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): neutron.feerefunder.FeeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feeburner.GenesisState; /** - * Decodes a FeeInfo 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 FeeInfo + * @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)): neutron.feerefunder.FeeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feeburner.GenesisState; /** - * Verifies a FeeInfo 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 FeeInfo 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 FeeInfo + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfo; + public static fromObject(object: { [k: string]: any }): neutron.feeburner.GenesisState; /** - * Creates a plain object from a FeeInfo message. Also converts values to other types if specified. - * @param message FeeInfo + * 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: neutron.feerefunder.FeeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feeburner.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeeInfo to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - /** Namespace interchainqueries. */ - namespace interchainqueries { + /** Namespace feerefunder. */ + namespace feerefunder { /** Represents a Msg */ class Msg extends $protobuf.rpc.Service { @@ -3251,4069 +3106,8444 @@ export namespace neutron { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Calls RegisterInterchainQuery. - * @param request MsgRegisterInterchainQuery message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRegisterInterchainQueryResponse + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse */ - public registerInterchainQuery(request: neutron.interchainqueries.IMsgRegisterInterchainQuery, callback: neutron.interchainqueries.Msg.RegisterInterchainQueryCallback): void; + public updateParams(request: neutron.feerefunder.IMsgUpdateParams, callback: neutron.feerefunder.Msg.UpdateParamsCallback): void; /** - * Calls RegisterInterchainQuery. - * @param request MsgRegisterInterchainQuery message or plain object + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object * @returns Promise */ - public registerInterchainQuery(request: neutron.interchainqueries.IMsgRegisterInterchainQuery): Promise; + public updateParams(request: neutron.feerefunder.IMsgUpdateParams): Promise; + } + + namespace Msg { /** - * Calls SubmitQueryResult. - * @param request MsgSubmitQueryResult message or plain object - * @param callback Node-style callback called with the error, if any, and MsgSubmitQueryResultResponse + * Callback as used by {@link neutron.feerefunder.Msg#updateParams}. + * @param error Error, if any + * @param [response] MsgUpdateParamsResponse */ - public submitQueryResult(request: neutron.interchainqueries.IMsgSubmitQueryResult, callback: neutron.interchainqueries.Msg.SubmitQueryResultCallback): void; + type UpdateParamsCallback = (error: (Error|null), response?: neutron.feerefunder.MsgUpdateParamsResponse) => void; + } + + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { + + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (neutron.feerefunder.IParams|null); + } + + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { /** - * Calls SubmitQueryResult. - * @param request MsgSubmitQueryResult message or plain object - * @returns Promise + * Constructs a new MsgUpdateParams. + * @param [properties] Properties to set */ - public submitQueryResult(request: neutron.interchainqueries.IMsgSubmitQueryResult): Promise; + constructor(properties?: neutron.feerefunder.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.feerefunder.IParams|null); /** - * Calls RemoveInterchainQuery. - * @param request MsgRemoveInterchainQueryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRemoveInterchainQueryResponse + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.feerefunder.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public removeInterchainQuery(request: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, callback: neutron.interchainqueries.Msg.RemoveInterchainQueryCallback): void; + public static encode(message: neutron.feerefunder.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls RemoveInterchainQuery. - * @param request MsgRemoveInterchainQueryRequest message or plain object - * @returns Promise + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.feerefunder.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public removeInterchainQuery(request: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest): Promise; + public static encodeDelimited(message: neutron.feerefunder.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateInterchainQuery. - * @param request MsgUpdateInterchainQueryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MsgUpdateInterchainQueryResponse + * Decodes a MsgUpdateParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateInterchainQuery(request: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, callback: neutron.interchainqueries.Msg.UpdateInterchainQueryCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.MsgUpdateParams; /** - * Calls UpdateInterchainQuery. - * @param request MsgUpdateInterchainQueryRequest message or plain object - * @returns Promise + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateInterchainQuery(request: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest): Promise; - } - - namespace Msg { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.MsgUpdateParams; /** - * Callback as used by {@link neutron.interchainqueries.Msg#registerInterchainQuery}. - * @param error Error, if any - * @param [response] MsgRegisterInterchainQueryResponse + * Verifies a MsgUpdateParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RegisterInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgRegisterInterchainQueryResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link neutron.interchainqueries.Msg#submitQueryResult}. - * @param error Error, if any - * @param [response] MsgSubmitQueryResultResponse + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUpdateParams */ - type SubmitQueryResultCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgSubmitQueryResultResponse) => void; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.MsgUpdateParams; /** - * Callback as used by {@link neutron.interchainqueries.Msg#removeInterchainQuery}. - * @param error Error, if any - * @param [response] MsgRemoveInterchainQueryResponse + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams + * @param [options] Conversion options + * @returns Plain object */ - type RemoveInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgRemoveInterchainQueryResponse) => void; + public static toObject(message: neutron.feerefunder.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link neutron.interchainqueries.Msg#updateInterchainQuery}. - * @param error Error, if any - * @param [response] MsgUpdateInterchainQueryResponse + * Converts this MsgUpdateParams to JSON. + * @returns JSON object */ - type UpdateInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgUpdateInterchainQueryResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a MsgRegisterInterchainQuery. */ - interface IMsgRegisterInterchainQuery { - - /** MsgRegisterInterchainQuery query_type */ - query_type?: (string|null); - - /** MsgRegisterInterchainQuery keys */ - keys?: (neutron.interchainqueries.IKVKey[]|null); - - /** MsgRegisterInterchainQuery transactions_filter */ - transactions_filter?: (string|null); - - /** MsgRegisterInterchainQuery connection_id */ - connection_id?: (string|null); - - /** MsgRegisterInterchainQuery update_period */ - update_period?: (Long|null); - - /** MsgRegisterInterchainQuery sender */ - sender?: (string|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a MsgRegisterInterchainQuery. */ - class MsgRegisterInterchainQuery implements IMsgRegisterInterchainQuery { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new MsgRegisterInterchainQuery. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgRegisterInterchainQuery); - - /** MsgRegisterInterchainQuery query_type. */ - public query_type: string; - - /** MsgRegisterInterchainQuery keys. */ - public keys: neutron.interchainqueries.IKVKey[]; - - /** MsgRegisterInterchainQuery transactions_filter. */ - public transactions_filter: string; - - /** MsgRegisterInterchainQuery connection_id. */ - public connection_id: string; - - /** MsgRegisterInterchainQuery update_period. */ - public update_period: Long; - - /** MsgRegisterInterchainQuery sender. */ - public sender: string; + constructor(properties?: neutron.feerefunder.IMsgUpdateParamsResponse); /** - * Encodes the specified MsgRegisterInterchainQuery message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. - * @param message MsgRegisterInterchainQuery message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.feerefunder.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IMsgRegisterInterchainQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRegisterInterchainQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. - * @param message MsgRegisterInterchainQuery message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgRegisterInterchainQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgRegisterInterchainQuery + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRegisterInterchainQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.MsgUpdateParamsResponse; /** - * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgRegisterInterchainQuery + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRegisterInterchainQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.MsgUpdateParamsResponse; /** - * Verifies a MsgRegisterInterchainQuery message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 MsgRegisterInterchainQuery message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgRegisterInterchainQuery + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRegisterInterchainQuery; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.MsgUpdateParamsResponse; /** - * Creates a plain object from a MsgRegisterInterchainQuery message. Also converts values to other types if specified. - * @param message MsgRegisterInterchainQuery + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.MsgRegisterInterchainQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRegisterInterchainQuery to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgRegisterInterchainQueryResponse. */ - interface IMsgRegisterInterchainQueryResponse { + /** Properties of a Params. */ + interface IParams { - /** MsgRegisterInterchainQueryResponse id */ - id?: (Long|null); + /** Params min_fee */ + min_fee?: (neutron.feerefunder.IFee|null); } - /** Represents a MsgRegisterInterchainQueryResponse. */ - class MsgRegisterInterchainQueryResponse implements IMsgRegisterInterchainQueryResponse { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new MsgRegisterInterchainQueryResponse. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse); + constructor(properties?: neutron.feerefunder.IParams); - /** MsgRegisterInterchainQueryResponse id. */ - public id: Long; + /** Params min_fee. */ + public min_fee?: (neutron.feerefunder.IFee|null); /** - * Encodes the specified MsgRegisterInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. - * @param message MsgRegisterInterchainQueryResponse message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRegisterInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. - * @param message MsgRegisterInterchainQueryResponse message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRegisterInterchainQueryResponse 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 MsgRegisterInterchainQueryResponse + * @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): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.Params; /** - * Decodes a MsgRegisterInterchainQueryResponse 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 MsgRegisterInterchainQueryResponse + * @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)): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.Params; /** - * Verifies a MsgRegisterInterchainQueryResponse 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 MsgRegisterInterchainQueryResponse 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 MsgRegisterInterchainQueryResponse + * @returns Params */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.Params; /** - * Creates a plain object from a MsgRegisterInterchainQueryResponse message. Also converts values to other types if specified. - * @param message MsgRegisterInterchainQueryResponse + * 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: neutron.interchainqueries.MsgRegisterInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRegisterInterchainQueryResponse to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgSubmitQueryResult. */ - interface IMsgSubmitQueryResult { - - /** MsgSubmitQueryResult query_id */ - query_id?: (Long|null); + /** Properties of a Fee. */ + interface IFee { - /** MsgSubmitQueryResult sender */ - sender?: (string|null); + /** Fee recv_fee */ + recv_fee?: (cosmos.base.v1beta1.ICoin[]|null); - /** MsgSubmitQueryResult client_id */ - client_id?: (string|null); + /** Fee ack_fee */ + ack_fee?: (cosmos.base.v1beta1.ICoin[]|null); - /** MsgSubmitQueryResult result */ - result?: (neutron.interchainqueries.IQueryResult|null); + /** Fee timeout_fee */ + timeout_fee?: (cosmos.base.v1beta1.ICoin[]|null); } - /** Represents a MsgSubmitQueryResult. */ - class MsgSubmitQueryResult implements IMsgSubmitQueryResult { + /** Represents a Fee. */ + class Fee implements IFee { /** - * Constructs a new MsgSubmitQueryResult. + * Constructs a new Fee. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgSubmitQueryResult); - - /** MsgSubmitQueryResult query_id. */ - public query_id: Long; + constructor(properties?: neutron.feerefunder.IFee); - /** MsgSubmitQueryResult sender. */ - public sender: string; + /** Fee recv_fee. */ + public recv_fee: cosmos.base.v1beta1.ICoin[]; - /** MsgSubmitQueryResult client_id. */ - public client_id: string; + /** Fee ack_fee. */ + public ack_fee: cosmos.base.v1beta1.ICoin[]; - /** MsgSubmitQueryResult result. */ - public result?: (neutron.interchainqueries.IQueryResult|null); + /** Fee timeout_fee. */ + public timeout_fee: cosmos.base.v1beta1.ICoin[]; /** - * Encodes the specified MsgSubmitQueryResult message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. - * @param message MsgSubmitQueryResult message or plain object to encode + * Encodes the specified Fee message. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * @param message Fee message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IMsgSubmitQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IFee, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgSubmitQueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. - * @param message MsgSubmitQueryResult message or plain object to encode + * Encodes the specified Fee message, length delimited. Does not implicitly {@link neutron.feerefunder.Fee.verify|verify} messages. + * @param message Fee message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgSubmitQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IFee, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgSubmitQueryResult message from the specified reader or buffer. + * Decodes a Fee message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgSubmitQueryResult + * @returns Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgSubmitQueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.Fee; /** - * Decodes a MsgSubmitQueryResult message from the specified reader or buffer, length delimited. + * Decodes a Fee message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgSubmitQueryResult + * @returns Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgSubmitQueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.Fee; /** - * Verifies a MsgSubmitQueryResult message. + * Verifies a Fee message. * @param message 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 MsgSubmitQueryResult 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. * @param object Plain object - * @returns MsgSubmitQueryResult + * @returns Fee */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgSubmitQueryResult; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.Fee; /** - * Creates a plain object from a MsgSubmitQueryResult message. Also converts values to other types if specified. - * @param message MsgSubmitQueryResult + * Creates a plain object from a Fee message. Also converts values to other types if specified. + * @param message Fee * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.MsgSubmitQueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.Fee, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgSubmitQueryResult to JSON. + * Converts this Fee to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult kv_results */ - kv_results?: (neutron.interchainqueries.IStorageValue[]|null); - - /** QueryResult block */ - block?: (neutron.interchainqueries.IBlock|null); + /** Properties of a PacketID. */ + interface IPacketID { - /** QueryResult height */ - height?: (Long|null); + /** PacketID channel_id */ + channel_id?: (string|null); - /** QueryResult revision */ - revision?: (Long|null); + /** PacketID port_id */ + port_id?: (string|null); - /** QueryResult allow_kv_callbacks */ - allow_kv_callbacks?: (boolean|null); + /** PacketID sequence */ + sequence?: (Long|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a PacketID. */ + class PacketID implements IPacketID { /** - * Constructs a new QueryResult. + * Constructs a new PacketID. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryResult); - - /** QueryResult kv_results. */ - public kv_results: neutron.interchainqueries.IStorageValue[]; - - /** QueryResult block. */ - public block?: (neutron.interchainqueries.IBlock|null); + constructor(properties?: neutron.feerefunder.IPacketID); - /** QueryResult height. */ - public height: Long; + /** PacketID channel_id. */ + public channel_id: string; - /** QueryResult revision. */ - public revision: Long; + /** PacketID port_id. */ + public port_id: string; - /** QueryResult allow_kv_callbacks. */ - public allow_kv_callbacks: boolean; + /** PacketID sequence. */ + public sequence: Long; /** - * Encodes the specified QueryResult message. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified PacketID message. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified PacketID message, length delimited. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult 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 QueryResult + * @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): neutron.interchainqueries.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.PacketID; /** - * Decodes a QueryResult 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 QueryResult + * @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)): neutron.interchainqueries.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.PacketID; /** - * Verifies a QueryResult 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 QueryResult 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 QueryResult + * @returns PacketID */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryResult; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.PacketID; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult + * 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: neutron.interchainqueries.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.PacketID, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this PacketID to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StorageValue. */ - interface IStorageValue { - - /** StorageValue storage_prefix */ - storage_prefix?: (string|null); + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** StorageValue key */ - key?: (Uint8Array|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); - /** StorageValue value */ - value?: (Uint8Array|null); + /** + * 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: neutron.feerefunder.IQueryParamsRequest, callback: neutron.feerefunder.Query.ParamsCallback): void; - /** StorageValue Proof */ - Proof?: (tendermint.crypto.IProofOps|null); + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: neutron.feerefunder.IQueryParamsRequest): Promise; + + /** + * Calls FeeInfo. + * @param request FeeInfoRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeeInfoResponse + */ + public feeInfo(request: neutron.feerefunder.IFeeInfoRequest, callback: neutron.feerefunder.Query.FeeInfoCallback): void; + + /** + * Calls FeeInfo. + * @param request FeeInfoRequest message or plain object + * @returns Promise + */ + public feeInfo(request: neutron.feerefunder.IFeeInfoRequest): Promise; } - /** Represents a StorageValue. */ - class StorageValue implements IStorageValue { + namespace Query { /** - * Constructs a new StorageValue. - * @param [properties] Properties to set + * Callback as used by {@link neutron.feerefunder.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse */ - constructor(properties?: neutron.interchainqueries.IStorageValue); + type ParamsCallback = (error: (Error|null), response?: neutron.feerefunder.QueryParamsResponse) => void; - /** StorageValue storage_prefix. */ - public storage_prefix: string; + /** + * Callback as used by {@link neutron.feerefunder.Query#feeInfo}. + * @param error Error, if any + * @param [response] FeeInfoResponse + */ + type FeeInfoCallback = (error: (Error|null), response?: neutron.feerefunder.FeeInfoResponse) => void; + } - /** StorageValue key. */ - public key: Uint8Array; + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } - /** StorageValue value. */ - public value: Uint8Array; + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { - /** StorageValue Proof. */ - public Proof?: (tendermint.crypto.IProofOps|null); + /** + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.feerefunder.IQueryParamsRequest); /** - * Encodes the specified StorageValue message. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. - * @param message StorageValue message or plain object to encode + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IStorageValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StorageValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. - * @param message StorageValue message or plain object to encode + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IStorageValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StorageValue 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 StorageValue + * @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): neutron.interchainqueries.StorageValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.QueryParamsRequest; /** - * Decodes a StorageValue 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 StorageValue + * @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)): neutron.interchainqueries.StorageValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.QueryParamsRequest; /** - * Verifies a StorageValue 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 StorageValue 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 StorageValue + * @returns QueryParamsRequest */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.StorageValue; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.QueryParamsRequest; /** - * Creates a plain object from a StorageValue message. Also converts values to other types if specified. - * @param message StorageValue + * 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: neutron.interchainqueries.StorageValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StorageValue to JSON. + * Converts this QueryParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Block. */ - interface IBlock { - - /** Block next_block_header */ - next_block_header?: (google.protobuf.IAny|null); - - /** Block header */ - header?: (google.protobuf.IAny|null); + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** Block tx */ - tx?: (neutron.interchainqueries.ITxValue|null); + /** QueryParamsResponse params */ + params?: (neutron.feerefunder.IParams|null); } - /** Represents a Block. */ - class Block implements IBlock { + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { /** - * Constructs a new Block. + * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IBlock); - - /** Block next_block_header. */ - public next_block_header?: (google.protobuf.IAny|null); - - /** Block header. */ - public header?: (google.protobuf.IAny|null); + constructor(properties?: neutron.feerefunder.IQueryParamsResponse); - /** Block tx. */ - public tx?: (neutron.interchainqueries.ITxValue|null); + /** QueryParamsResponse params. */ + public params?: (neutron.feerefunder.IParams|null); /** - * Encodes the specified Block message. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. - * @param message Block message or plain object to encode + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Block message, length delimited. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. - * @param message Block message or plain object to encode + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Block 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 Block + * @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): neutron.interchainqueries.Block; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.QueryParamsResponse; /** - * Decodes a Block 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 Block + * @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)): neutron.interchainqueries.Block; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.QueryParamsResponse; /** - * Verifies a Block 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 Block 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 Block + * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Block; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.QueryParamsResponse; /** - * Creates a plain object from a Block message. Also converts values to other types if specified. - * @param message Block + * 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: neutron.interchainqueries.Block, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Block to JSON. + * Converts this QueryParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TxValue. */ - interface ITxValue { - - /** TxValue response */ - response?: (tendermint.abci.IResponseDeliverTx|null); + /** Properties of a FeeInfoRequest. */ + interface IFeeInfoRequest { - /** TxValue delivery_proof */ - delivery_proof?: (tendermint.crypto.IProof|null); + /** FeeInfoRequest channel_id */ + channel_id?: (string|null); - /** TxValue inclusion_proof */ - inclusion_proof?: (tendermint.crypto.IProof|null); + /** FeeInfoRequest port_id */ + port_id?: (string|null); - /** TxValue data */ - data?: (Uint8Array|null); + /** FeeInfoRequest sequence */ + sequence?: (Long|null); } - /** Represents a TxValue. */ - class TxValue implements ITxValue { + /** Represents a FeeInfoRequest. */ + class FeeInfoRequest implements IFeeInfoRequest { /** - * Constructs a new TxValue. + * Constructs a new FeeInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.ITxValue); - - /** TxValue response. */ - public response?: (tendermint.abci.IResponseDeliverTx|null); + constructor(properties?: neutron.feerefunder.IFeeInfoRequest); - /** TxValue delivery_proof. */ - public delivery_proof?: (tendermint.crypto.IProof|null); + /** FeeInfoRequest channel_id. */ + public channel_id: string; - /** TxValue inclusion_proof. */ - public inclusion_proof?: (tendermint.crypto.IProof|null); + /** FeeInfoRequest port_id. */ + public port_id: string; - /** TxValue data. */ - public data: Uint8Array; + /** FeeInfoRequest sequence. */ + public sequence: Long; /** - * Encodes the specified TxValue message. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. - * @param message TxValue message or plain object to encode + * Encodes the specified FeeInfoRequest message. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * @param message FeeInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.ITxValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IFeeInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TxValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. - * @param message TxValue message or plain object to encode + * Encodes the specified FeeInfoRequest message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoRequest.verify|verify} messages. + * @param message FeeInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.ITxValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IFeeInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TxValue message from the specified reader or buffer. + * Decodes a FeeInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TxValue + * @returns FeeInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.TxValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.FeeInfoRequest; /** - * Decodes a TxValue message from the specified reader or buffer, length delimited. + * Decodes a FeeInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TxValue + * @returns FeeInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.TxValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.FeeInfoRequest; /** - * Verifies a TxValue message. + * Verifies a FeeInfoRequest message. * @param message 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 TxValue message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TxValue + * @returns FeeInfoRequest */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.TxValue; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfoRequest; /** - * Creates a plain object from a TxValue message. Also converts values to other types if specified. - * @param message TxValue + * Creates a plain object from a FeeInfoRequest message. Also converts values to other types if specified. + * @param message FeeInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.TxValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.FeeInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TxValue to JSON. + * Converts this FeeInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgSubmitQueryResultResponse. */ - interface IMsgSubmitQueryResultResponse { - } + /** Properties of a FeeInfoResponse. */ + interface IFeeInfoResponse { - /** Represents a MsgSubmitQueryResultResponse. */ - class MsgSubmitQueryResultResponse implements IMsgSubmitQueryResultResponse { + /** FeeInfoResponse fee_info */ + fee_info?: (neutron.feerefunder.IFeeInfo|null); + } + + /** Represents a FeeInfoResponse. */ + class FeeInfoResponse implements IFeeInfoResponse { /** - * Constructs a new MsgSubmitQueryResultResponse. + * Constructs a new FeeInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgSubmitQueryResultResponse); + constructor(properties?: neutron.feerefunder.IFeeInfoResponse); + + /** FeeInfoResponse fee_info. */ + public fee_info?: (neutron.feerefunder.IFeeInfo|null); /** - * Encodes the specified MsgSubmitQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. - * @param message MsgSubmitQueryResultResponse message or plain object to encode + * Encodes the specified FeeInfoResponse message. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. + * @param message FeeInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IMsgSubmitQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IFeeInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgSubmitQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. - * @param message MsgSubmitQueryResultResponse message or plain object to encode + * Encodes the specified FeeInfoResponse message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfoResponse.verify|verify} messages. + * @param message FeeInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgSubmitQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IFeeInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer. + * Decodes a FeeInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgSubmitQueryResultResponse + * @returns FeeInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgSubmitQueryResultResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.FeeInfoResponse; /** - * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer, length delimited. + * Decodes a FeeInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgSubmitQueryResultResponse + * @returns FeeInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgSubmitQueryResultResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.FeeInfoResponse; /** - * Verifies a MsgSubmitQueryResultResponse message. + * Verifies a FeeInfoResponse message. * @param message 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 MsgSubmitQueryResultResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgSubmitQueryResultResponse + * @returns FeeInfoResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgSubmitQueryResultResponse; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfoResponse; /** - * Creates a plain object from a MsgSubmitQueryResultResponse message. Also converts values to other types if specified. - * @param message MsgSubmitQueryResultResponse + * Creates a plain object from a FeeInfoResponse message. Also converts values to other types if specified. + * @param message FeeInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.MsgSubmitQueryResultResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.FeeInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgSubmitQueryResultResponse to JSON. + * Converts this FeeInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgRemoveInterchainQueryRequest. */ - interface IMsgRemoveInterchainQueryRequest { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** MsgRemoveInterchainQueryRequest query_id */ - query_id?: (Long|null); + /** GenesisState params */ + params?: (neutron.feerefunder.IParams|null); - /** MsgRemoveInterchainQueryRequest sender */ - sender?: (string|null); + /** GenesisState fee_infos */ + fee_infos?: (neutron.feerefunder.IFeeInfo[]|null); } - /** Represents a MsgRemoveInterchainQueryRequest. */ - class MsgRemoveInterchainQueryRequest implements IMsgRemoveInterchainQueryRequest { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new MsgRemoveInterchainQueryRequest. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest); + constructor(properties?: neutron.feerefunder.IGenesisState); - /** MsgRemoveInterchainQueryRequest query_id. */ - public query_id: Long; + /** GenesisState params. */ + public params?: (neutron.feerefunder.IParams|null); - /** MsgRemoveInterchainQueryRequest sender. */ - public sender: string; + /** GenesisState fee_infos. */ + public fee_infos: neutron.feerefunder.IFeeInfo[]; /** - * Encodes the specified MsgRemoveInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. - * @param message MsgRemoveInterchainQueryRequest message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRemoveInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. - * @param message MsgRemoveInterchainQueryRequest message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.feerefunder.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: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRemoveInterchainQueryRequest 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 MsgRemoveInterchainQueryRequest + * @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): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.GenesisState; /** - * Decodes a MsgRemoveInterchainQueryRequest 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 MsgRemoveInterchainQueryRequest + * @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)): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.GenesisState; /** - * Verifies a MsgRemoveInterchainQueryRequest 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 MsgRemoveInterchainQueryRequest 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 MsgRemoveInterchainQueryRequest + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.GenesisState; /** - * Creates a plain object from a MsgRemoveInterchainQueryRequest message. Also converts values to other types if specified. - * @param message MsgRemoveInterchainQueryRequest + * 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: neutron.interchainqueries.MsgRemoveInterchainQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRemoveInterchainQueryRequest to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgRemoveInterchainQueryResponse. */ - interface IMsgRemoveInterchainQueryResponse { + /** Properties of a FeeInfo. */ + interface IFeeInfo { + + /** FeeInfo payer */ + payer?: (string|null); + + /** FeeInfo packet_id */ + packet_id?: (neutron.feerefunder.IPacketID|null); + + /** FeeInfo fee */ + fee?: (neutron.feerefunder.IFee|null); } - /** Represents a MsgRemoveInterchainQueryResponse. */ - class MsgRemoveInterchainQueryResponse implements IMsgRemoveInterchainQueryResponse { + /** Represents a FeeInfo. */ + class FeeInfo implements IFeeInfo { /** - * Constructs a new MsgRemoveInterchainQueryResponse. + * Constructs a new FeeInfo. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse); + constructor(properties?: neutron.feerefunder.IFeeInfo); + + /** FeeInfo payer. */ + public payer: string; + + /** FeeInfo packet_id. */ + public packet_id?: (neutron.feerefunder.IPacketID|null); + + /** FeeInfo fee. */ + public fee?: (neutron.feerefunder.IFee|null); /** - * Encodes the specified MsgRemoveInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. - * @param message MsgRemoveInterchainQueryResponse message or plain object to encode + * Encodes the specified FeeInfo message. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. + * @param message FeeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.feerefunder.IFeeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRemoveInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. - * @param message MsgRemoveInterchainQueryResponse message or plain object to encode + * Encodes the specified FeeInfo message, length delimited. Does not implicitly {@link neutron.feerefunder.FeeInfo.verify|verify} messages. + * @param message FeeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.feerefunder.IFeeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer. + * Decodes a FeeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgRemoveInterchainQueryResponse + * @returns FeeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.feerefunder.FeeInfo; /** - * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a FeeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgRemoveInterchainQueryResponse + * @returns FeeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.feerefunder.FeeInfo; /** - * Verifies a MsgRemoveInterchainQueryResponse message. + * Verifies a FeeInfo message. * @param message 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 MsgRemoveInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgRemoveInterchainQueryResponse + * @returns FeeInfo */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; + public static fromObject(object: { [k: string]: any }): neutron.feerefunder.FeeInfo; /** - * Creates a plain object from a MsgRemoveInterchainQueryResponse message. Also converts values to other types if specified. - * @param message MsgRemoveInterchainQueryResponse + * Creates a plain object from a FeeInfo message. Also converts values to other types if specified. + * @param message FeeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.MsgRemoveInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.feerefunder.FeeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRemoveInterchainQueryResponse to JSON. + * Converts this FeeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a MsgUpdateInterchainQueryRequest. */ - interface IMsgUpdateInterchainQueryRequest { - - /** MsgUpdateInterchainQueryRequest query_id */ - query_id?: (Long|null); - - /** MsgUpdateInterchainQueryRequest new_keys */ - new_keys?: (neutron.interchainqueries.IKVKey[]|null); - - /** MsgUpdateInterchainQueryRequest new_update_period */ - new_update_period?: (Long|null); - - /** MsgUpdateInterchainQueryRequest new_transactions_filter */ - new_transactions_filter?: (string|null); - - /** MsgUpdateInterchainQueryRequest sender */ - sender?: (string|null); - } + /** Namespace interchainqueries. */ + namespace interchainqueries { - /** Represents a MsgUpdateInterchainQueryRequest. */ - class MsgUpdateInterchainQueryRequest implements IMsgUpdateInterchainQueryRequest { + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { /** - * Constructs a new MsgUpdateInterchainQueryRequest. - * @param [properties] Properties to set + * 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(properties?: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest); - - /** MsgUpdateInterchainQueryRequest query_id. */ - public query_id: Long; - - /** MsgUpdateInterchainQueryRequest new_keys. */ - public new_keys: neutron.interchainqueries.IKVKey[]; - - /** MsgUpdateInterchainQueryRequest new_update_period. */ - public new_update_period: Long; - - /** MsgUpdateInterchainQueryRequest new_transactions_filter. */ - public new_transactions_filter: string; - - /** MsgUpdateInterchainQueryRequest sender. */ - public sender: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified MsgUpdateInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. - * @param message MsgUpdateInterchainQueryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RegisterInterchainQuery. + * @param request MsgRegisterInterchainQuery message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRegisterInterchainQueryResponse */ - public static encode(message: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public registerInterchainQuery(request: neutron.interchainqueries.IMsgRegisterInterchainQuery, callback: neutron.interchainqueries.Msg.RegisterInterchainQueryCallback): void; /** - * Encodes the specified MsgUpdateInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. - * @param message MsgUpdateInterchainQueryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RegisterInterchainQuery. + * @param request MsgRegisterInterchainQuery message or plain object + * @returns Promise */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgUpdateInterchainQueryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; + public registerInterchainQuery(request: neutron.interchainqueries.IMsgRegisterInterchainQuery): Promise; /** - * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgUpdateInterchainQueryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SubmitQueryResult. + * @param request MsgSubmitQueryResult message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitQueryResultResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; + public submitQueryResult(request: neutron.interchainqueries.IMsgSubmitQueryResult, callback: neutron.interchainqueries.Msg.SubmitQueryResultCallback): void; /** - * Verifies a MsgUpdateInterchainQueryRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls SubmitQueryResult. + * @param request MsgSubmitQueryResult message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public submitQueryResult(request: neutron.interchainqueries.IMsgSubmitQueryResult): Promise; /** - * Creates a MsgUpdateInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgUpdateInterchainQueryRequest + * Calls RemoveInterchainQuery. + * @param request MsgRemoveInterchainQueryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRemoveInterchainQueryResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; + public removeInterchainQuery(request: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, callback: neutron.interchainqueries.Msg.RemoveInterchainQueryCallback): void; /** - * Creates a plain object from a MsgUpdateInterchainQueryRequest message. Also converts values to other types if specified. - * @param message MsgUpdateInterchainQueryRequest - * @param [options] Conversion options - * @returns Plain object + * Calls RemoveInterchainQuery. + * @param request MsgRemoveInterchainQueryRequest message or plain object + * @returns Promise */ - public static toObject(message: neutron.interchainqueries.MsgUpdateInterchainQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public removeInterchainQuery(request: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest): Promise; /** - * Converts this MsgUpdateInterchainQueryRequest to JSON. - * @returns JSON object + * Calls UpdateInterchainQuery. + * @param request MsgUpdateInterchainQueryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateInterchainQueryResponse */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MsgUpdateInterchainQueryResponse. */ - interface IMsgUpdateInterchainQueryResponse { - } - - /** Represents a MsgUpdateInterchainQueryResponse. */ - class MsgUpdateInterchainQueryResponse implements IMsgUpdateInterchainQueryResponse { + public updateInterchainQuery(request: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, callback: neutron.interchainqueries.Msg.UpdateInterchainQueryCallback): void; /** - * Constructs a new MsgUpdateInterchainQueryResponse. - * @param [properties] Properties to set + * Calls UpdateInterchainQuery. + * @param request MsgUpdateInterchainQueryRequest message or plain object + * @returns Promise */ - constructor(properties?: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse); + public updateInterchainQuery(request: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest): Promise; /** - * Encodes the specified MsgUpdateInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. - * @param message MsgUpdateInterchainQueryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse */ - public static encode(message: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public updateParams(request: neutron.interchainqueries.IMsgUpdateParams, callback: neutron.interchainqueries.Msg.UpdateParamsCallback): void; /** - * Encodes the specified MsgUpdateInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. - * @param message MsgUpdateInterchainQueryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @returns Promise */ - public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public updateParams(request: neutron.interchainqueries.IMsgUpdateParams): Promise; + } - /** - * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgUpdateInterchainQueryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; + namespace Msg { /** - * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgUpdateInterchainQueryResponse - * @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 neutron.interchainqueries.Msg#registerInterchainQuery}. + * @param error Error, if any + * @param [response] MsgRegisterInterchainQueryResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; + type RegisterInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgRegisterInterchainQueryResponse) => void; /** - * Verifies a MsgUpdateInterchainQueryResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link neutron.interchainqueries.Msg#submitQueryResult}. + * @param error Error, if any + * @param [response] MsgSubmitQueryResultResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type SubmitQueryResultCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgSubmitQueryResultResponse) => void; /** - * Creates a MsgUpdateInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgUpdateInterchainQueryResponse + * Callback as used by {@link neutron.interchainqueries.Msg#removeInterchainQuery}. + * @param error Error, if any + * @param [response] MsgRemoveInterchainQueryResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; + type RemoveInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgRemoveInterchainQueryResponse) => void; /** - * Creates a plain object from a MsgUpdateInterchainQueryResponse message. Also converts values to other types if specified. - * @param message MsgUpdateInterchainQueryResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link neutron.interchainqueries.Msg#updateInterchainQuery}. + * @param error Error, if any + * @param [response] MsgUpdateInterchainQueryResponse */ - public static toObject(message: neutron.interchainqueries.MsgUpdateInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateInterchainQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgUpdateInterchainQueryResponse) => void; /** - * Converts this MsgUpdateInterchainQueryResponse to JSON. - * @returns JSON object + * Callback as used by {@link neutron.interchainqueries.Msg#updateParams}. + * @param error Error, if any + * @param [response] MsgUpdateParamsResponse */ - public toJSON(): { [k: string]: any }; + type UpdateParamsCallback = (error: (Error|null), response?: neutron.interchainqueries.MsgUpdateParamsResponse) => void; } - /** Properties of a RegisteredQuery. */ - interface IRegisteredQuery { - - /** RegisteredQuery id */ - id?: (Long|null); - - /** RegisteredQuery owner */ - owner?: (string|null); + /** Properties of a MsgRegisterInterchainQuery. */ + interface IMsgRegisterInterchainQuery { - /** RegisteredQuery query_type */ + /** MsgRegisterInterchainQuery query_type */ query_type?: (string|null); - /** RegisteredQuery keys */ + /** MsgRegisterInterchainQuery keys */ keys?: (neutron.interchainqueries.IKVKey[]|null); - /** RegisteredQuery transactions_filter */ + /** MsgRegisterInterchainQuery transactions_filter */ transactions_filter?: (string|null); - /** RegisteredQuery connection_id */ + /** MsgRegisterInterchainQuery connection_id */ connection_id?: (string|null); - /** RegisteredQuery update_period */ + /** MsgRegisterInterchainQuery update_period */ update_period?: (Long|null); - /** RegisteredQuery last_submitted_result_local_height */ - last_submitted_result_local_height?: (Long|null); - - /** RegisteredQuery last_submitted_result_remote_height */ - last_submitted_result_remote_height?: (ibc.core.client.v1.IHeight|null); - - /** RegisteredQuery deposit */ - deposit?: (cosmos.base.v1beta1.ICoin[]|null); - - /** RegisteredQuery submit_timeout */ - submit_timeout?: (Long|null); - - /** RegisteredQuery registered_at_height */ - registered_at_height?: (Long|null); + /** MsgRegisterInterchainQuery sender */ + sender?: (string|null); } - /** Represents a RegisteredQuery. */ - class RegisteredQuery implements IRegisteredQuery { + /** Represents a MsgRegisterInterchainQuery. */ + class MsgRegisterInterchainQuery implements IMsgRegisterInterchainQuery { /** - * Constructs a new RegisteredQuery. + * Constructs a new MsgRegisterInterchainQuery. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IRegisteredQuery); - - /** RegisteredQuery id. */ - public id: Long; - - /** RegisteredQuery owner. */ - public owner: string; + constructor(properties?: neutron.interchainqueries.IMsgRegisterInterchainQuery); - /** RegisteredQuery query_type. */ + /** MsgRegisterInterchainQuery query_type. */ public query_type: string; - /** RegisteredQuery keys. */ + /** MsgRegisterInterchainQuery keys. */ public keys: neutron.interchainqueries.IKVKey[]; - /** RegisteredQuery transactions_filter. */ + /** MsgRegisterInterchainQuery transactions_filter. */ public transactions_filter: string; - /** RegisteredQuery connection_id. */ + /** MsgRegisterInterchainQuery connection_id. */ public connection_id: string; - /** RegisteredQuery update_period. */ + /** MsgRegisterInterchainQuery update_period. */ public update_period: Long; - /** RegisteredQuery last_submitted_result_local_height. */ - public last_submitted_result_local_height: Long; - - /** RegisteredQuery last_submitted_result_remote_height. */ - public last_submitted_result_remote_height?: (ibc.core.client.v1.IHeight|null); - - /** RegisteredQuery deposit. */ - public deposit: cosmos.base.v1beta1.ICoin[]; - - /** RegisteredQuery submit_timeout. */ - public submit_timeout: Long; - - /** RegisteredQuery registered_at_height. */ - public registered_at_height: Long; + /** MsgRegisterInterchainQuery sender. */ + public sender: string; /** - * Encodes the specified RegisteredQuery message. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. - * @param message RegisteredQuery message or plain object to encode + * Encodes the specified MsgRegisterInterchainQuery message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. + * @param message MsgRegisterInterchainQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IRegisteredQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgRegisterInterchainQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RegisteredQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. - * @param message RegisteredQuery message or plain object to encode + * Encodes the specified MsgRegisterInterchainQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQuery.verify|verify} messages. + * @param message MsgRegisterInterchainQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IRegisteredQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgRegisterInterchainQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RegisteredQuery message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RegisteredQuery + * @returns MsgRegisterInterchainQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.RegisteredQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRegisterInterchainQuery; /** - * Decodes a RegisteredQuery message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RegisteredQuery + * @returns MsgRegisterInterchainQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.RegisteredQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRegisterInterchainQuery; /** - * Verifies a RegisteredQuery message. + * Verifies a MsgRegisterInterchainQuery message. * @param message 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 RegisteredQuery message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RegisteredQuery + * @returns MsgRegisterInterchainQuery */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.RegisteredQuery; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRegisterInterchainQuery; /** - * Creates a plain object from a RegisteredQuery message. Also converts values to other types if specified. - * @param message RegisteredQuery + * Creates a plain object from a MsgRegisterInterchainQuery message. Also converts values to other types if specified. + * @param message MsgRegisterInterchainQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.RegisteredQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgRegisterInterchainQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RegisteredQuery to JSON. + * Converts this MsgRegisterInterchainQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a KVKey. */ - interface IKVKey { + /** Properties of a MsgRegisterInterchainQueryResponse. */ + interface IMsgRegisterInterchainQueryResponse { - /** KVKey path */ - path?: (string|null); + /** MsgRegisterInterchainQueryResponse id */ + id?: (Long|null); + } - /** KVKey key */ - key?: (Uint8Array|null); - } - - /** Represents a KVKey. */ - class KVKey implements IKVKey { + /** Represents a MsgRegisterInterchainQueryResponse. */ + class MsgRegisterInterchainQueryResponse implements IMsgRegisterInterchainQueryResponse { /** - * Constructs a new KVKey. + * Constructs a new MsgRegisterInterchainQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IKVKey); - - /** KVKey path. */ - public path: string; + constructor(properties?: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse); - /** KVKey key. */ - public key: Uint8Array; + /** MsgRegisterInterchainQueryResponse id. */ + public id: Long; /** - * Encodes the specified KVKey message. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. - * @param message KVKey message or plain object to encode + * Encodes the specified MsgRegisterInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. + * @param message MsgRegisterInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IKVKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KVKey message, length delimited. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. - * @param message KVKey message or plain object to encode + * Encodes the specified MsgRegisterInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRegisterInterchainQueryResponse.verify|verify} messages. + * @param message MsgRegisterInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IKVKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgRegisterInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KVKey message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KVKey + * @returns MsgRegisterInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.KVKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; /** - * Decodes a KVKey message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KVKey + * @returns MsgRegisterInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.KVKey; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; /** - * Verifies a KVKey message. + * Verifies a MsgRegisterInterchainQueryResponse message. * @param message 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 KVKey message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KVKey + * @returns MsgRegisterInterchainQueryResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.KVKey; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRegisterInterchainQueryResponse; /** - * Creates a plain object from a KVKey message. Also converts values to other types if specified. - * @param message KVKey + * Creates a plain object from a MsgRegisterInterchainQueryResponse message. Also converts values to other types if specified. + * @param message MsgRegisterInterchainQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.KVKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgRegisterInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KVKey to JSON. + * Converts this MsgRegisterInterchainQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { + /** Properties of a MsgSubmitQueryResult. */ + interface IMsgSubmitQueryResult { - /** GenesisState params */ - params?: (neutron.interchainqueries.IParams|null); + /** MsgSubmitQueryResult query_id */ + query_id?: (Long|null); - /** GenesisState registered_queries */ - registered_queries?: (neutron.interchainqueries.IRegisteredQuery[]|null); + /** MsgSubmitQueryResult sender */ + sender?: (string|null); + + /** MsgSubmitQueryResult client_id */ + client_id?: (string|null); + + /** MsgSubmitQueryResult result */ + result?: (neutron.interchainqueries.IQueryResult|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a MsgSubmitQueryResult. */ + class MsgSubmitQueryResult implements IMsgSubmitQueryResult { /** - * Constructs a new GenesisState. + * Constructs a new MsgSubmitQueryResult. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IGenesisState); + constructor(properties?: neutron.interchainqueries.IMsgSubmitQueryResult); - /** GenesisState params. */ - public params?: (neutron.interchainqueries.IParams|null); + /** MsgSubmitQueryResult query_id. */ + public query_id: Long; - /** GenesisState registered_queries. */ - public registered_queries: neutron.interchainqueries.IRegisteredQuery[]; + /** MsgSubmitQueryResult sender. */ + public sender: string; + + /** MsgSubmitQueryResult client_id. */ + public client_id: string; + + /** MsgSubmitQueryResult result. */ + public result?: (neutron.interchainqueries.IQueryResult|null); /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified MsgSubmitQueryResult message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. + * @param message MsgSubmitQueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgSubmitQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchainqueries.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified MsgSubmitQueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResult.verify|verify} messages. + * @param message MsgSubmitQueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgSubmitQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a MsgSubmitQueryResult 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 MsgSubmitQueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgSubmitQueryResult; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitQueryResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns MsgSubmitQueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgSubmitQueryResult; /** - * Verifies a GenesisState message. + * Verifies a MsgSubmitQueryResult message. * @param message 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 MsgSubmitQueryResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns MsgSubmitQueryResult */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.GenesisState; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgSubmitQueryResult; /** - * 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 MsgSubmitQueryResult message. Also converts values to other types if specified. + * @param message MsgSubmitQueryResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgSubmitQueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this MsgSubmitQueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { + /** Properties of a QueryResult. */ + interface IQueryResult { - /** Params query_submit_timeout */ - query_submit_timeout?: (Long|null); + /** QueryResult kv_results */ + kv_results?: (neutron.interchainqueries.IStorageValue[]|null); - /** Params query_deposit */ - query_deposit?: (cosmos.base.v1beta1.ICoin[]|null); + /** QueryResult block */ + block?: (neutron.interchainqueries.IBlock|null); - /** Params tx_query_removal_limit */ - tx_query_removal_limit?: (Long|null); + /** QueryResult height */ + height?: (Long|null); + + /** QueryResult revision */ + revision?: (Long|null); + + /** QueryResult allow_kv_callbacks */ + allow_kv_callbacks?: (boolean|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Constructs a new Params. + * Constructs a new QueryResult. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IParams); + constructor(properties?: neutron.interchainqueries.IQueryResult); - /** Params query_submit_timeout. */ - public query_submit_timeout: Long; + /** QueryResult kv_results. */ + public kv_results: neutron.interchainqueries.IStorageValue[]; - /** Params query_deposit. */ - public query_deposit: cosmos.base.v1beta1.ICoin[]; + /** QueryResult block. */ + public block?: (neutron.interchainqueries.IBlock|null); - /** Params tx_query_removal_limit. */ - public tx_query_removal_limit: Long; + /** QueryResult height. */ + public height: Long; + + /** QueryResult revision. */ + public revision: Long; + + /** QueryResult allow_kv_callbacks. */ + public allow_kv_callbacks: boolean; /** - * Encodes the specified Params message. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryResult message. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchainqueries.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryResult 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 QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryResult; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryResult; /** - * Verifies a Params message. + * Verifies a QueryResult message. * @param message 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 QueryResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QueryResult */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Params; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryResult; /** - * 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 QueryResult message. Also converts values to other types if specified. + * @param message QueryResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of a StorageValue. */ + interface IStorageValue { - /** - * 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); + /** StorageValue storage_prefix */ + storage_prefix?: (string|null); - /** - * 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: neutron.interchainqueries.IQueryParamsRequest, callback: neutron.interchainqueries.Query.ParamsCallback): void; + /** StorageValue key */ + key?: (Uint8Array|null); - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: neutron.interchainqueries.IQueryParamsRequest): Promise; + /** StorageValue value */ + value?: (Uint8Array|null); - /** - * Calls RegisteredQueries. - * @param request QueryRegisteredQueriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueriesResponse - */ - public registeredQueries(request: neutron.interchainqueries.IQueryRegisteredQueriesRequest, callback: neutron.interchainqueries.Query.RegisteredQueriesCallback): void; + /** StorageValue Proof */ + Proof?: (tendermint.crypto.IProofOps|null); + } - /** - * Calls RegisteredQueries. - * @param request QueryRegisteredQueriesRequest message or plain object - * @returns Promise - */ - public registeredQueries(request: neutron.interchainqueries.IQueryRegisteredQueriesRequest): Promise; + /** Represents a StorageValue. */ + class StorageValue implements IStorageValue { /** - * Calls RegisteredQuery. - * @param request QueryRegisteredQueryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueryResponse + * Constructs a new StorageValue. + * @param [properties] Properties to set */ - public registeredQuery(request: neutron.interchainqueries.IQueryRegisteredQueryRequest, callback: neutron.interchainqueries.Query.RegisteredQueryCallback): void; + constructor(properties?: neutron.interchainqueries.IStorageValue); - /** - * Calls RegisteredQuery. - * @param request QueryRegisteredQueryRequest message or plain object - * @returns Promise - */ - public registeredQuery(request: neutron.interchainqueries.IQueryRegisteredQueryRequest): Promise; + /** StorageValue storage_prefix. */ + public storage_prefix: string; - /** - * Calls QueryResult. - * @param request QueryRegisteredQueryResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueryResultResponse - */ - public queryResult(request: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, callback: neutron.interchainqueries.Query.QueryResultCallback): void; + /** StorageValue key. */ + public key: Uint8Array; + + /** StorageValue value. */ + public value: Uint8Array; + + /** StorageValue Proof. */ + public Proof?: (tendermint.crypto.IProofOps|null); /** - * Calls QueryResult. - * @param request QueryRegisteredQueryResultRequest message or plain object - * @returns Promise + * Encodes the specified StorageValue message. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. + * @param message StorageValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public queryResult(request: neutron.interchainqueries.IQueryRegisteredQueryResultRequest): Promise; + public static encode(message: neutron.interchainqueries.IStorageValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls LastRemoteHeight. - * @param request QueryLastRemoteHeight message or plain object - * @param callback Node-style callback called with the error, if any, and QueryLastRemoteHeightResponse + * Encodes the specified StorageValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.StorageValue.verify|verify} messages. + * @param message StorageValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public lastRemoteHeight(request: neutron.interchainqueries.IQueryLastRemoteHeight, callback: neutron.interchainqueries.Query.LastRemoteHeightCallback): void; + public static encodeDelimited(message: neutron.interchainqueries.IStorageValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls LastRemoteHeight. - * @param request QueryLastRemoteHeight message or plain object - * @returns Promise + * Decodes a StorageValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StorageValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public lastRemoteHeight(request: neutron.interchainqueries.IQueryLastRemoteHeight): Promise; - } - - namespace Query { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.StorageValue; /** - * Callback as used by {@link neutron.interchainqueries.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse + * Decodes a StorageValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StorageValue + * @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?: neutron.interchainqueries.QueryParamsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.StorageValue; /** - * Callback as used by {@link neutron.interchainqueries.Query#registeredQueries}. - * @param error Error, if any - * @param [response] QueryRegisteredQueriesResponse + * Verifies a StorageValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RegisteredQueriesCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueriesResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link neutron.interchainqueries.Query#registeredQuery}. - * @param error Error, if any - * @param [response] QueryRegisteredQueryResponse + * Creates a StorageValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StorageValue */ - type RegisteredQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueryResponse) => void; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.StorageValue; /** - * Callback as used by {@link neutron.interchainqueries.Query#queryResult}. - * @param error Error, if any - * @param [response] QueryRegisteredQueryResultResponse + * Creates a plain object from a StorageValue message. Also converts values to other types if specified. + * @param message StorageValue + * @param [options] Conversion options + * @returns Plain object */ - type QueryResultCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueryResultResponse) => void; + public static toObject(message: neutron.interchainqueries.StorageValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link neutron.interchainqueries.Query#lastRemoteHeight}. - * @param error Error, if any - * @param [response] QueryLastRemoteHeightResponse + * Converts this StorageValue to JSON. + * @returns JSON object */ - type LastRemoteHeightCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryLastRemoteHeightResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a Block. */ + interface IBlock { + + /** Block next_block_header */ + next_block_header?: (google.protobuf.IAny|null); + + /** Block header */ + header?: (google.protobuf.IAny|null); + + /** Block tx */ + tx?: (neutron.interchainqueries.ITxValue|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a Block. */ + class Block implements IBlock { /** - * Constructs a new QueryParamsRequest. + * Constructs a new Block. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryParamsRequest); + constructor(properties?: neutron.interchainqueries.IBlock); + + /** Block next_block_header. */ + public next_block_header?: (google.protobuf.IAny|null); + + /** Block header. */ + public header?: (google.protobuf.IAny|null); + + /** Block tx. */ + public tx?: (neutron.interchainqueries.ITxValue|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified Block message. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. + * @param message Block message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified Block message, length delimited. Does not implicitly {@link neutron.interchainqueries.Block.verify|verify} messages. + * @param message Block message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a Block 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 Block * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.Block; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a Block message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns Block * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.Block; /** - * Verifies a QueryParamsRequest message. + * Verifies a Block message. * @param message 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 Block message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns Block */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Block; /** - * 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 Block message. Also converts values to other types if specified. + * @param message Block * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.Block, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this Block to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** Properties of a TxValue. */ + interface ITxValue { - /** QueryParamsResponse params */ - params?: (neutron.interchainqueries.IParams|null); + /** TxValue response */ + response?: (tendermint.abci.IResponseDeliverTx|null); + + /** TxValue delivery_proof */ + delivery_proof?: (tendermint.crypto.IProof|null); + + /** TxValue inclusion_proof */ + inclusion_proof?: (tendermint.crypto.IProof|null); + + /** TxValue data */ + data?: (Uint8Array|null); } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a TxValue. */ + class TxValue implements ITxValue { /** - * Constructs a new QueryParamsResponse. + * Constructs a new TxValue. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryParamsResponse); + constructor(properties?: neutron.interchainqueries.ITxValue); - /** QueryParamsResponse params. */ - public params?: (neutron.interchainqueries.IParams|null); + /** TxValue response. */ + public response?: (tendermint.abci.IResponseDeliverTx|null); + + /** TxValue delivery_proof. */ + public delivery_proof?: (tendermint.crypto.IProof|null); + + /** TxValue inclusion_proof. */ + public inclusion_proof?: (tendermint.crypto.IProof|null); + + /** TxValue data. */ + public data: Uint8Array; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified TxValue message. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. + * @param message TxValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.ITxValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified TxValue message, length delimited. Does not implicitly {@link neutron.interchainqueries.TxValue.verify|verify} messages. + * @param message TxValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.ITxValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a TxValue 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 TxValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.TxValue; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a TxValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns TxValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.TxValue; /** - * Verifies a QueryParamsResponse message. + * Verifies a TxValue message. * @param message 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 TxValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns TxValue */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.TxValue; /** - * 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 TxValue message. Also converts values to other types if specified. + * @param message TxValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.TxValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this TxValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueriesRequest. */ - interface IQueryRegisteredQueriesRequest { - - /** QueryRegisteredQueriesRequest owners */ - owners?: (string[]|null); - - /** QueryRegisteredQueriesRequest connection_id */ - connection_id?: (string|null); - - /** QueryRegisteredQueriesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** Properties of a MsgSubmitQueryResultResponse. */ + interface IMsgSubmitQueryResultResponse { } - /** Represents a QueryRegisteredQueriesRequest. */ - class QueryRegisteredQueriesRequest implements IQueryRegisteredQueriesRequest { + /** Represents a MsgSubmitQueryResultResponse. */ + class MsgSubmitQueryResultResponse implements IMsgSubmitQueryResultResponse { /** - * Constructs a new QueryRegisteredQueriesRequest. + * Constructs a new MsgSubmitQueryResultResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueriesRequest); - - /** QueryRegisteredQueriesRequest owners. */ - public owners: string[]; - - /** QueryRegisteredQueriesRequest connection_id. */ - public connection_id: string; - - /** QueryRegisteredQueriesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + constructor(properties?: neutron.interchainqueries.IMsgSubmitQueryResultResponse); /** - * Encodes the specified QueryRegisteredQueriesRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. - * @param message QueryRegisteredQueriesRequest message or plain object to encode + * Encodes the specified MsgSubmitQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. + * @param message MsgSubmitQueryResultResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgSubmitQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueriesRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. - * @param message QueryRegisteredQueriesRequest message or plain object to encode + * Encodes the specified MsgSubmitQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgSubmitQueryResultResponse.verify|verify} messages. + * @param message MsgSubmitQueryResultResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgSubmitQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer. + * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueriesRequest + * @returns MsgSubmitQueryResultResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgSubmitQueryResultResponse; /** - * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitQueryResultResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueriesRequest + * @returns MsgSubmitQueryResultResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgSubmitQueryResultResponse; /** - * Verifies a QueryRegisteredQueriesRequest message. + * Verifies a MsgSubmitQueryResultResponse message. * @param message 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 QueryRegisteredQueriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitQueryResultResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueriesRequest + * @returns MsgSubmitQueryResultResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueriesRequest; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgSubmitQueryResultResponse; /** - * Creates a plain object from a QueryRegisteredQueriesRequest message. Also converts values to other types if specified. - * @param message QueryRegisteredQueriesRequest + * Creates a plain object from a MsgSubmitQueryResultResponse message. Also converts values to other types if specified. + * @param message MsgSubmitQueryResultResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgSubmitQueryResultResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueriesRequest to JSON. + * Converts this MsgSubmitQueryResultResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueriesResponse. */ - interface IQueryRegisteredQueriesResponse { + /** Properties of a MsgRemoveInterchainQueryRequest. */ + interface IMsgRemoveInterchainQueryRequest { - /** QueryRegisteredQueriesResponse registered_queries */ - registered_queries?: (neutron.interchainqueries.IRegisteredQuery[]|null); + /** MsgRemoveInterchainQueryRequest query_id */ + query_id?: (Long|null); - /** QueryRegisteredQueriesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgRemoveInterchainQueryRequest sender */ + sender?: (string|null); } - /** Represents a QueryRegisteredQueriesResponse. */ - class QueryRegisteredQueriesResponse implements IQueryRegisteredQueriesResponse { + /** Represents a MsgRemoveInterchainQueryRequest. */ + class MsgRemoveInterchainQueryRequest implements IMsgRemoveInterchainQueryRequest { /** - * Constructs a new QueryRegisteredQueriesResponse. + * Constructs a new MsgRemoveInterchainQueryRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueriesResponse); + constructor(properties?: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest); - /** QueryRegisteredQueriesResponse registered_queries. */ - public registered_queries: neutron.interchainqueries.IRegisteredQuery[]; + /** MsgRemoveInterchainQueryRequest query_id. */ + public query_id: Long; - /** QueryRegisteredQueriesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgRemoveInterchainQueryRequest sender. */ + public sender: string; /** - * Encodes the specified QueryRegisteredQueriesResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. - * @param message QueryRegisteredQueriesResponse message or plain object to encode + * Encodes the specified MsgRemoveInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. + * @param message MsgRemoveInterchainQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueriesResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. - * @param message QueryRegisteredQueriesResponse message or plain object to encode + * Encodes the specified MsgRemoveInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryRequest.verify|verify} messages. + * @param message MsgRemoveInterchainQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgRemoveInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer. + * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueriesResponse + * @returns MsgRemoveInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; /** - * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgRemoveInterchainQueryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueriesResponse + * @returns MsgRemoveInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; /** - * Verifies a QueryRegisteredQueriesResponse message. + * Verifies a MsgRemoveInterchainQueryRequest message. * @param message 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 QueryRegisteredQueriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRemoveInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueriesResponse + * @returns MsgRemoveInterchainQueryRequest */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueriesResponse; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRemoveInterchainQueryRequest; /** - * Creates a plain object from a QueryRegisteredQueriesResponse message. Also converts values to other types if specified. - * @param message QueryRegisteredQueriesResponse + * Creates a plain object from a MsgRemoveInterchainQueryRequest message. Also converts values to other types if specified. + * @param message MsgRemoveInterchainQueryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgRemoveInterchainQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueriesResponse to JSON. + * Converts this MsgRemoveInterchainQueryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueryRequest. */ - interface IQueryRegisteredQueryRequest { - - /** QueryRegisteredQueryRequest query_id */ - query_id?: (Long|null); + /** Properties of a MsgRemoveInterchainQueryResponse. */ + interface IMsgRemoveInterchainQueryResponse { } - /** Represents a QueryRegisteredQueryRequest. */ - class QueryRegisteredQueryRequest implements IQueryRegisteredQueryRequest { + /** Represents a MsgRemoveInterchainQueryResponse. */ + class MsgRemoveInterchainQueryResponse implements IMsgRemoveInterchainQueryResponse { /** - * Constructs a new QueryRegisteredQueryRequest. + * Constructs a new MsgRemoveInterchainQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryRequest); - - /** QueryRegisteredQueryRequest query_id. */ - public query_id: Long; + constructor(properties?: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse); /** - * Encodes the specified QueryRegisteredQueryRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. - * @param message QueryRegisteredQueryRequest message or plain object to encode + * Encodes the specified MsgRemoveInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. + * @param message MsgRemoveInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. - * @param message QueryRegisteredQueryRequest message or plain object to encode + * Encodes the specified MsgRemoveInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgRemoveInterchainQueryResponse.verify|verify} messages. + * @param message MsgRemoveInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgRemoveInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer. + * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueryRequest + * @returns MsgRemoveInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; /** - * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgRemoveInterchainQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueryRequest + * @returns MsgRemoveInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; /** - * Verifies a QueryRegisteredQueryRequest message. + * Verifies a MsgRemoveInterchainQueryResponse message. * @param message 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 QueryRegisteredQueryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRemoveInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueryRequest + * @returns MsgRemoveInterchainQueryResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryRequest; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgRemoveInterchainQueryResponse; /** - * Creates a plain object from a QueryRegisteredQueryRequest message. Also converts values to other types if specified. - * @param message QueryRegisteredQueryRequest + * Creates a plain object from a MsgRemoveInterchainQueryResponse message. Also converts values to other types if specified. + * @param message MsgRemoveInterchainQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgRemoveInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueryRequest to JSON. + * Converts this MsgRemoveInterchainQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueryResponse. */ - interface IQueryRegisteredQueryResponse { + /** Properties of a MsgUpdateInterchainQueryRequest. */ + interface IMsgUpdateInterchainQueryRequest { - /** QueryRegisteredQueryResponse registered_query */ - registered_query?: (neutron.interchainqueries.IRegisteredQuery|null); + /** MsgUpdateInterchainQueryRequest query_id */ + query_id?: (Long|null); + + /** MsgUpdateInterchainQueryRequest new_keys */ + new_keys?: (neutron.interchainqueries.IKVKey[]|null); + + /** MsgUpdateInterchainQueryRequest new_update_period */ + new_update_period?: (Long|null); + + /** MsgUpdateInterchainQueryRequest new_transactions_filter */ + new_transactions_filter?: (string|null); + + /** MsgUpdateInterchainQueryRequest sender */ + sender?: (string|null); } - /** Represents a QueryRegisteredQueryResponse. */ - class QueryRegisteredQueryResponse implements IQueryRegisteredQueryResponse { + /** Represents a MsgUpdateInterchainQueryRequest. */ + class MsgUpdateInterchainQueryRequest implements IMsgUpdateInterchainQueryRequest { /** - * Constructs a new QueryRegisteredQueryResponse. + * Constructs a new MsgUpdateInterchainQueryRequest. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResponse); + constructor(properties?: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest); - /** QueryRegisteredQueryResponse registered_query. */ - public registered_query?: (neutron.interchainqueries.IRegisteredQuery|null); + /** MsgUpdateInterchainQueryRequest query_id. */ + public query_id: Long; + + /** MsgUpdateInterchainQueryRequest new_keys. */ + public new_keys: neutron.interchainqueries.IKVKey[]; + + /** MsgUpdateInterchainQueryRequest new_update_period. */ + public new_update_period: Long; + + /** MsgUpdateInterchainQueryRequest new_transactions_filter. */ + public new_transactions_filter: string; + + /** MsgUpdateInterchainQueryRequest sender. */ + public sender: string; /** - * Encodes the specified QueryRegisteredQueryResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. - * @param message QueryRegisteredQueryResponse message or plain object to encode + * Encodes the specified MsgUpdateInterchainQueryRequest message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. + * @param message MsgUpdateInterchainQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. - * @param message QueryRegisteredQueryResponse message or plain object to encode + * Encodes the specified MsgUpdateInterchainQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryRequest.verify|verify} messages. + * @param message MsgUpdateInterchainQueryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateInterchainQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer. + * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueryResponse + * @returns MsgUpdateInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; /** - * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateInterchainQueryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueryResponse + * @returns MsgUpdateInterchainQueryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; /** - * Verifies a QueryRegisteredQueryResponse message. + * Verifies a MsgUpdateInterchainQueryRequest message. * @param message 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 QueryRegisteredQueryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateInterchainQueryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueryResponse + * @returns MsgUpdateInterchainQueryRequest */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResponse; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateInterchainQueryRequest; /** - * Creates a plain object from a QueryRegisteredQueryResponse message. Also converts values to other types if specified. - * @param message QueryRegisteredQueryResponse + * Creates a plain object from a MsgUpdateInterchainQueryRequest message. Also converts values to other types if specified. + * @param message MsgUpdateInterchainQueryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgUpdateInterchainQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueryResponse to JSON. + * Converts this MsgUpdateInterchainQueryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueryResultRequest. */ - interface IQueryRegisteredQueryResultRequest { - - /** QueryRegisteredQueryResultRequest query_id */ - query_id?: (Long|null); + /** Properties of a MsgUpdateInterchainQueryResponse. */ + interface IMsgUpdateInterchainQueryResponse { } - /** Represents a QueryRegisteredQueryResultRequest. */ - class QueryRegisteredQueryResultRequest implements IQueryRegisteredQueryResultRequest { + /** Represents a MsgUpdateInterchainQueryResponse. */ + class MsgUpdateInterchainQueryResponse implements IMsgUpdateInterchainQueryResponse { /** - * Constructs a new QueryRegisteredQueryResultRequest. + * Constructs a new MsgUpdateInterchainQueryResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResultRequest); - - /** QueryRegisteredQueryResultRequest query_id. */ - public query_id: Long; + constructor(properties?: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse); /** - * Encodes the specified QueryRegisteredQueryResultRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. - * @param message QueryRegisteredQueryResultRequest message or plain object to encode + * Encodes the specified MsgUpdateInterchainQueryResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. + * @param message MsgUpdateInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueryResultRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. - * @param message QueryRegisteredQueryResultRequest message or plain object to encode + * Encodes the specified MsgUpdateInterchainQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateInterchainQueryResponse.verify|verify} messages. + * @param message MsgUpdateInterchainQueryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateInterchainQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer. + * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueryResultRequest + * @returns MsgUpdateInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; /** - * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateInterchainQueryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueryResultRequest + * @returns MsgUpdateInterchainQueryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; /** - * Verifies a QueryRegisteredQueryResultRequest message. + * Verifies a MsgUpdateInterchainQueryResponse message. * @param message 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 QueryRegisteredQueryResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateInterchainQueryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueryResultRequest + * @returns MsgUpdateInterchainQueryResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateInterchainQueryResponse; /** - * Creates a plain object from a QueryRegisteredQueryResultRequest message. Also converts values to other types if specified. - * @param message QueryRegisteredQueryResultRequest + * Creates a plain object from a MsgUpdateInterchainQueryResponse message. Also converts values to other types if specified. + * @param message MsgUpdateInterchainQueryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgUpdateInterchainQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueryResultRequest to JSON. + * Converts this MsgUpdateInterchainQueryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryRegisteredQueryResultResponse. */ - interface IQueryRegisteredQueryResultResponse { + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { - /** QueryRegisteredQueryResultResponse result */ - result?: (neutron.interchainqueries.IQueryResult|null); + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (neutron.interchainqueries.IParams|null); } - /** Represents a QueryRegisteredQueryResultResponse. */ - class QueryRegisteredQueryResultResponse implements IQueryRegisteredQueryResultResponse { + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { /** - * Constructs a new QueryRegisteredQueryResultResponse. + * Constructs a new MsgUpdateParams. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResultResponse); + constructor(properties?: neutron.interchainqueries.IMsgUpdateParams); - /** QueryRegisteredQueryResultResponse result. */ - public result?: (neutron.interchainqueries.IQueryResult|null); + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.interchainqueries.IParams|null); /** - * Encodes the specified QueryRegisteredQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. - * @param message QueryRegisteredQueryResultResponse message or plain object to encode + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryRegisteredQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. - * @param message QueryRegisteredQueryResultResponse message or plain object to encode + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer. + * Decodes a MsgUpdateParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryRegisteredQueryResultResponse + * @returns MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateParams; /** - * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryRegisteredQueryResultResponse + * @returns MsgUpdateParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateParams; /** - * Verifies a QueryRegisteredQueryResultResponse message. + * Verifies a MsgUpdateParams message. * @param message 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 QueryRegisteredQueryResultResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryRegisteredQueryResultResponse + * @returns MsgUpdateParams */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateParams; /** - * Creates a plain object from a QueryRegisteredQueryResultResponse message. Also converts values to other types if specified. - * @param message QueryRegisteredQueryResultResponse + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResultResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryRegisteredQueryResultResponse to JSON. + * Converts this MsgUpdateParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Transaction. */ - interface ITransaction { - - /** Transaction id */ - id?: (Long|null); - - /** Transaction height */ - height?: (Long|null); - - /** Transaction data */ - data?: (Uint8Array|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a Transaction. */ - class Transaction implements ITransaction { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new Transaction. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.ITransaction); - - /** Transaction id. */ - public id: Long; - - /** Transaction height. */ - public height: Long; - - /** Transaction data. */ - public data: Uint8Array; + constructor(properties?: neutron.interchainqueries.IMsgUpdateParamsResponse); /** - * Encodes the specified Transaction message. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. - * @param message Transaction message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Transaction message, length delimited. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. - * @param message Transaction message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Transaction message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Transaction + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.Transaction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.MsgUpdateParamsResponse; /** - * Decodes a Transaction message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Transaction + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.Transaction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.MsgUpdateParamsResponse; /** - * Verifies a Transaction message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 Transaction message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Transaction + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Transaction; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.MsgUpdateParamsResponse; /** - * Creates a plain object from a Transaction message. Also converts values to other types if specified. - * @param message Transaction + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Transaction to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryLastRemoteHeight. */ - interface IQueryLastRemoteHeight { + /** Properties of a Params. */ + interface IParams { - /** QueryLastRemoteHeight connection_id */ - connection_id?: (string|null); + /** Params query_submit_timeout */ + query_submit_timeout?: (Long|null); + + /** Params query_deposit */ + query_deposit?: (cosmos.base.v1beta1.ICoin[]|null); + + /** Params tx_query_removal_limit */ + tx_query_removal_limit?: (Long|null); } - /** Represents a QueryLastRemoteHeight. */ - class QueryLastRemoteHeight implements IQueryLastRemoteHeight { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryLastRemoteHeight. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryLastRemoteHeight); + constructor(properties?: neutron.interchainqueries.IParams); - /** QueryLastRemoteHeight connection_id. */ - public connection_id: string; + /** Params query_submit_timeout. */ + public query_submit_timeout: Long; + + /** Params query_deposit. */ + public query_deposit: cosmos.base.v1beta1.ICoin[]; + + /** Params tx_query_removal_limit. */ + public tx_query_removal_limit: Long; /** - * Encodes the specified QueryLastRemoteHeight message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. - * @param message QueryLastRemoteHeight message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryLastRemoteHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryLastRemoteHeight message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. - * @param message QueryLastRemoteHeight message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryLastRemoteHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryLastRemoteHeight 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 QueryLastRemoteHeight + * @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): neutron.interchainqueries.QueryLastRemoteHeight; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.Params; /** - * Decodes a QueryLastRemoteHeight 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 QueryLastRemoteHeight + * @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)): neutron.interchainqueries.QueryLastRemoteHeight; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.Params; /** - * Verifies a QueryLastRemoteHeight 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 QueryLastRemoteHeight 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 QueryLastRemoteHeight + * @returns Params */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryLastRemoteHeight; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Params; /** - * Creates a plain object from a QueryLastRemoteHeight message. Also converts values to other types if specified. - * @param message QueryLastRemoteHeight + * 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: neutron.interchainqueries.QueryLastRemoteHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryLastRemoteHeight to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryLastRemoteHeightResponse. */ - interface IQueryLastRemoteHeightResponse { + /** Properties of a RegisteredQuery. */ + interface IRegisteredQuery { - /** QueryLastRemoteHeightResponse height */ - height?: (Long|null); - } + /** RegisteredQuery id */ + id?: (Long|null); - /** Represents a QueryLastRemoteHeightResponse. */ - class QueryLastRemoteHeightResponse implements IQueryLastRemoteHeightResponse { + /** RegisteredQuery owner */ + owner?: (string|null); + + /** RegisteredQuery query_type */ + query_type?: (string|null); + + /** RegisteredQuery keys */ + keys?: (neutron.interchainqueries.IKVKey[]|null); + + /** RegisteredQuery transactions_filter */ + transactions_filter?: (string|null); + + /** RegisteredQuery connection_id */ + connection_id?: (string|null); + + /** RegisteredQuery update_period */ + update_period?: (Long|null); + + /** RegisteredQuery last_submitted_result_local_height */ + last_submitted_result_local_height?: (Long|null); + + /** RegisteredQuery last_submitted_result_remote_height */ + last_submitted_result_remote_height?: (ibc.core.client.v1.IHeight|null); + + /** RegisteredQuery deposit */ + deposit?: (cosmos.base.v1beta1.ICoin[]|null); + + /** RegisteredQuery submit_timeout */ + submit_timeout?: (Long|null); + + /** RegisteredQuery registered_at_height */ + registered_at_height?: (Long|null); + } + + /** Represents a RegisteredQuery. */ + class RegisteredQuery implements IRegisteredQuery { /** - * Constructs a new QueryLastRemoteHeightResponse. + * Constructs a new RegisteredQuery. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchainqueries.IQueryLastRemoteHeightResponse); + constructor(properties?: neutron.interchainqueries.IRegisteredQuery); - /** QueryLastRemoteHeightResponse height. */ - public height: Long; + /** RegisteredQuery id. */ + public id: Long; + + /** RegisteredQuery owner. */ + public owner: string; + + /** RegisteredQuery query_type. */ + public query_type: string; + + /** RegisteredQuery keys. */ + public keys: neutron.interchainqueries.IKVKey[]; + + /** RegisteredQuery transactions_filter. */ + public transactions_filter: string; + + /** RegisteredQuery connection_id. */ + public connection_id: string; + + /** RegisteredQuery update_period. */ + public update_period: Long; + + /** RegisteredQuery last_submitted_result_local_height. */ + public last_submitted_result_local_height: Long; + + /** RegisteredQuery last_submitted_result_remote_height. */ + public last_submitted_result_remote_height?: (ibc.core.client.v1.IHeight|null); + + /** RegisteredQuery deposit. */ + public deposit: cosmos.base.v1beta1.ICoin[]; + + /** RegisteredQuery submit_timeout. */ + public submit_timeout: Long; + + /** RegisteredQuery registered_at_height. */ + public registered_at_height: Long; /** - * Encodes the specified QueryLastRemoteHeightResponse message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. - * @param message QueryLastRemoteHeightResponse message or plain object to encode + * Encodes the specified RegisteredQuery message. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. + * @param message RegisteredQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchainqueries.IQueryLastRemoteHeightResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IRegisteredQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryLastRemoteHeightResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. - * @param message QueryLastRemoteHeightResponse message or plain object to encode + * Encodes the specified RegisteredQuery message, length delimited. Does not implicitly {@link neutron.interchainqueries.RegisteredQuery.verify|verify} messages. + * @param message RegisteredQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchainqueries.IQueryLastRemoteHeightResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IRegisteredQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer. + * Decodes a RegisteredQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryLastRemoteHeightResponse + * @returns RegisteredQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryLastRemoteHeightResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.RegisteredQuery; /** - * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer, length delimited. + * Decodes a RegisteredQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryLastRemoteHeightResponse + * @returns RegisteredQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryLastRemoteHeightResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.RegisteredQuery; /** - * Verifies a QueryLastRemoteHeightResponse message. + * Verifies a RegisteredQuery message. * @param message 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 QueryLastRemoteHeightResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RegisteredQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryLastRemoteHeightResponse + * @returns RegisteredQuery */ - public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryLastRemoteHeightResponse; + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.RegisteredQuery; /** - * Creates a plain object from a QueryLastRemoteHeightResponse message. Also converts values to other types if specified. - * @param message QueryLastRemoteHeightResponse + * Creates a plain object from a RegisteredQuery message. Also converts values to other types if specified. + * @param message RegisteredQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: neutron.interchainqueries.QueryLastRemoteHeightResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: neutron.interchainqueries.RegisteredQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryLastRemoteHeightResponse to JSON. + * Converts this RegisteredQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace interchaintxs. */ - namespace interchaintxs { + /** Properties of a KVKey. */ + interface IKVKey { - /** Namespace v1. */ - namespace v1 { + /** KVKey path */ + path?: (string|null); - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** KVKey key */ + key?: (Uint8Array|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); + /** Represents a KVKey. */ + class KVKey implements IKVKey { - /** - * Calls RegisterInterchainAccount. - * @param request MsgRegisterInterchainAccount message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRegisterInterchainAccountResponse - */ - public registerInterchainAccount(request: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, callback: neutron.interchaintxs.v1.Msg.RegisterInterchainAccountCallback): void; + /** + * Constructs a new KVKey. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IKVKey); - /** - * Calls RegisterInterchainAccount. - * @param request MsgRegisterInterchainAccount message or plain object - * @returns Promise - */ - public registerInterchainAccount(request: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount): Promise; + /** KVKey path. */ + public path: string; - /** - * Calls SubmitTx. - * @param request MsgSubmitTx message or plain object - * @param callback Node-style callback called with the error, if any, and MsgSubmitTxResponse - */ - public submitTx(request: neutron.interchaintxs.v1.IMsgSubmitTx, callback: neutron.interchaintxs.v1.Msg.SubmitTxCallback): void; + /** KVKey key. */ + public key: Uint8Array; - /** - * Calls SubmitTx. - * @param request MsgSubmitTx message or plain object - * @returns Promise - */ - public submitTx(request: neutron.interchaintxs.v1.IMsgSubmitTx): Promise; - } + /** + * Encodes the specified KVKey message. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. + * @param message KVKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IKVKey, writer?: $protobuf.Writer): $protobuf.Writer; - namespace Msg { + /** + * Encodes the specified KVKey message, length delimited. Does not implicitly {@link neutron.interchainqueries.KVKey.verify|verify} messages. + * @param message KVKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IKVKey, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link neutron.interchaintxs.v1.Msg#registerInterchainAccount}. - * @param error Error, if any - * @param [response] MsgRegisterInterchainAccountResponse - */ - type RegisterInterchainAccountCallback = (error: (Error|null), response?: neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse) => void; + /** + * Decodes a KVKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KVKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.KVKey; - /** - * Callback as used by {@link neutron.interchaintxs.v1.Msg#submitTx}. - * @param error Error, if any - * @param [response] MsgSubmitTxResponse - */ - type SubmitTxCallback = (error: (Error|null), response?: neutron.interchaintxs.v1.MsgSubmitTxResponse) => void; - } + /** + * Decodes a KVKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KVKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.KVKey; - /** Properties of a MsgRegisterInterchainAccount. */ - interface IMsgRegisterInterchainAccount { + /** + * Verifies a KVKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MsgRegisterInterchainAccount from_address */ - from_address?: (string|null); + /** + * Creates a KVKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KVKey + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.KVKey; - /** MsgRegisterInterchainAccount connection_id */ - connection_id?: (string|null); + /** + * Creates a plain object from a KVKey message. Also converts values to other types if specified. + * @param message KVKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.KVKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MsgRegisterInterchainAccount interchain_account_id */ - interchain_account_id?: (string|null); - } + /** + * Converts this KVKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a MsgRegisterInterchainAccount. */ - class MsgRegisterInterchainAccount implements IMsgRegisterInterchainAccount { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** - * Constructs a new MsgRegisterInterchainAccount. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount); + /** GenesisState params */ + params?: (neutron.interchainqueries.IParams|null); - /** MsgRegisterInterchainAccount from_address. */ - public from_address: string; + /** GenesisState registered_queries */ + registered_queries?: (neutron.interchainqueries.IRegisteredQuery[]|null); + } - /** MsgRegisterInterchainAccount connection_id. */ - public connection_id: string; + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { - /** MsgRegisterInterchainAccount interchain_account_id. */ - public interchain_account_id: string; + /** + * Constructs a new GenesisState. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IGenesisState); - /** - * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + /** GenesisState params. */ + public params?: (neutron.interchainqueries.IParams|null); - /** - * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + /** GenesisState registered_queries. */ + public registered_queries: neutron.interchainqueries.IRegisteredQuery[]; - /** - * 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 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): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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)): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * 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): neutron.interchainqueries.GenesisState; - /** - * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgRegisterInterchainAccount - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + /** + * 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)): neutron.interchainqueries.GenesisState; - /** - * 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: neutron.interchaintxs.v1.MsgRegisterInterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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); - /** - * Converts this MsgRegisterInterchainAccount to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 }): neutron.interchainqueries.GenesisState; - /** Properties of a MsgRegisterInterchainAccountResponse. */ - interface IMsgRegisterInterchainAccountResponse { - } + /** + * 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: neutron.interchainqueries.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a MsgRegisterInterchainAccountResponse. */ - class MsgRegisterInterchainAccountResponse implements IMsgRegisterInterchainAccountResponse { + /** + * Converts this GenesisState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new MsgRegisterInterchainAccountResponse. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse); + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** - * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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); - /** - * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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: neutron.interchainqueries.IQueryParamsRequest, callback: neutron.interchainqueries.Query.ParamsCallback): void; - /** - * 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 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): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: neutron.interchainqueries.IQueryParamsRequest): Promise; - /** - * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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)): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + /** + * Calls RegisteredQueries. + * @param request QueryRegisteredQueriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueriesResponse + */ + public registeredQueries(request: neutron.interchainqueries.IQueryRegisteredQueriesRequest, callback: neutron.interchainqueries.Query.RegisteredQueriesCallback): void; - /** - * 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); + /** + * Calls RegisteredQueries. + * @param request QueryRegisteredQueriesRequest message or plain object + * @returns Promise + */ + public registeredQueries(request: neutron.interchainqueries.IQueryRegisteredQueriesRequest): Promise; - /** - * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgRegisterInterchainAccountResponse - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + /** + * Calls RegisteredQuery. + * @param request QueryRegisteredQueryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueryResponse + */ + public registeredQuery(request: neutron.interchainqueries.IQueryRegisteredQueryRequest, callback: neutron.interchainqueries.Query.RegisteredQueryCallback): void; - /** - * 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: neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls RegisteredQuery. + * @param request QueryRegisteredQueryRequest message or plain object + * @returns Promise + */ + public registeredQuery(request: neutron.interchainqueries.IQueryRegisteredQueryRequest): Promise; - /** - * Converts this MsgRegisterInterchainAccountResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Calls QueryResult. + * @param request QueryRegisteredQueryResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryRegisteredQueryResultResponse + */ + public queryResult(request: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, callback: neutron.interchainqueries.Query.QueryResultCallback): void; - /** Properties of a MsgSubmitTx. */ - interface IMsgSubmitTx { + /** + * Calls QueryResult. + * @param request QueryRegisteredQueryResultRequest message or plain object + * @returns Promise + */ + public queryResult(request: neutron.interchainqueries.IQueryRegisteredQueryResultRequest): Promise; - /** MsgSubmitTx from_address */ - from_address?: (string|null); + /** + * Calls LastRemoteHeight. + * @param request QueryLastRemoteHeight message or plain object + * @param callback Node-style callback called with the error, if any, and QueryLastRemoteHeightResponse + */ + public lastRemoteHeight(request: neutron.interchainqueries.IQueryLastRemoteHeight, callback: neutron.interchainqueries.Query.LastRemoteHeightCallback): void; - /** MsgSubmitTx interchain_account_id */ - interchain_account_id?: (string|null); + /** + * Calls LastRemoteHeight. + * @param request QueryLastRemoteHeight message or plain object + * @returns Promise + */ + public lastRemoteHeight(request: neutron.interchainqueries.IQueryLastRemoteHeight): Promise; + } - /** MsgSubmitTx connection_id */ - connection_id?: (string|null); + namespace Query { - /** MsgSubmitTx msgs */ - msgs?: (google.protobuf.IAny[]|null); + /** + * Callback as used by {@link neutron.interchainqueries.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryParamsResponse) => void; - /** MsgSubmitTx memo */ - memo?: (string|null); + /** + * Callback as used by {@link neutron.interchainqueries.Query#registeredQueries}. + * @param error Error, if any + * @param [response] QueryRegisteredQueriesResponse + */ + type RegisteredQueriesCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueriesResponse) => void; - /** MsgSubmitTx timeout */ - timeout?: (Long|null); + /** + * Callback as used by {@link neutron.interchainqueries.Query#registeredQuery}. + * @param error Error, if any + * @param [response] QueryRegisteredQueryResponse + */ + type RegisteredQueryCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueryResponse) => void; - /** MsgSubmitTx fee */ - fee?: (neutron.feerefunder.IFee|null); - } + /** + * Callback as used by {@link neutron.interchainqueries.Query#queryResult}. + * @param error Error, if any + * @param [response] QueryRegisteredQueryResultResponse + */ + type QueryResultCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryRegisteredQueryResultResponse) => void; - /** Represents a MsgSubmitTx. */ - class MsgSubmitTx implements IMsgSubmitTx { + /** + * Callback as used by {@link neutron.interchainqueries.Query#lastRemoteHeight}. + * @param error Error, if any + * @param [response] QueryLastRemoteHeightResponse + */ + type LastRemoteHeightCallback = (error: (Error|null), response?: neutron.interchainqueries.QueryLastRemoteHeightResponse) => void; + } - /** - * Constructs a new MsgSubmitTx. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.v1.IMsgSubmitTx); + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } - /** MsgSubmitTx from_address. */ - public from_address: string; + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { - /** MsgSubmitTx interchain_account_id. */ - public interchain_account_id: string; + /** + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryParamsRequest); - /** MsgSubmitTx connection_id. */ - public connection_id: string; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgSubmitTx msgs. */ - public msgs: google.protobuf.IAny[]; + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgSubmitTx memo. */ - public memo: string; + /** + * 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): neutron.interchainqueries.QueryParamsRequest; - /** MsgSubmitTx timeout. */ - public timeout: Long; + /** + * 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)): neutron.interchainqueries.QueryParamsRequest; - /** MsgSubmitTx fee. */ - public fee?: (neutron.feerefunder.IFee|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); - /** - * Encodes the specified MsgSubmitTx message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. - * @param message MsgSubmitTx message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: neutron.interchaintxs.v1.IMsgSubmitTx, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 }): neutron.interchainqueries.QueryParamsRequest; - /** - * Encodes the specified MsgSubmitTx message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. - * @param message MsgSubmitTx message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgSubmitTx, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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: neutron.interchainqueries.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a MsgSubmitTx message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgSubmitTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgSubmitTx; + /** + * Converts this QueryParamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a MsgSubmitTx message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgSubmitTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgSubmitTx; + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** - * Verifies a MsgSubmitTx message. - * @param message 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 */ + params?: (neutron.interchainqueries.IParams|null); + } - /** - * Creates a MsgSubmitTx message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgSubmitTx - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgSubmitTx; + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { - /** - * Creates a plain object from a MsgSubmitTx message. Also converts values to other types if specified. - * @param message MsgSubmitTx - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: neutron.interchaintxs.v1.MsgSubmitTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new QueryParamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryParamsResponse); - /** - * Converts this MsgSubmitTx to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** QueryParamsResponse params. */ + public params?: (neutron.interchainqueries.IParams|null); - /** Properties of a MsgSubmitTxResponse. */ - interface IMsgSubmitTxResponse { + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgSubmitTxResponse sequence_id */ - sequence_id?: (Long|null); + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.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: neutron.interchainqueries.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgSubmitTxResponse channel */ - channel?: (string|null); - } + /** + * 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): neutron.interchainqueries.QueryParamsResponse; - /** Represents a MsgSubmitTxResponse. */ - class MsgSubmitTxResponse implements IMsgSubmitTxResponse { + /** + * 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)): neutron.interchainqueries.QueryParamsResponse; - /** - * Constructs a new MsgSubmitTxResponse. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.v1.IMsgSubmitTxResponse); + /** + * 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); - /** MsgSubmitTxResponse sequence_id. */ - public sequence_id: Long; + /** + * 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 }): neutron.interchainqueries.QueryParamsResponse; - /** MsgSubmitTxResponse channel. */ - public channel: string; + /** + * 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: neutron.interchainqueries.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified MsgSubmitTxResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. - * @param message MsgSubmitTxResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: neutron.interchaintxs.v1.IMsgSubmitTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this QueryParamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified MsgSubmitTxResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. - * @param message MsgSubmitTxResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgSubmitTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a QueryRegisteredQueriesRequest. */ + interface IQueryRegisteredQueriesRequest { - /** - * Decodes a MsgSubmitTxResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgSubmitTxResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgSubmitTxResponse; + /** QueryRegisteredQueriesRequest owners */ + owners?: (string[]|null); - /** - * Decodes a MsgSubmitTxResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgSubmitTxResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgSubmitTxResponse; + /** QueryRegisteredQueriesRequest connection_id */ + connection_id?: (string|null); - /** - * Verifies a MsgSubmitTxResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** QueryRegisteredQueriesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + } - /** - * Creates a MsgSubmitTxResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgSubmitTxResponse - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgSubmitTxResponse; + /** Represents a QueryRegisteredQueriesRequest. */ + class QueryRegisteredQueriesRequest implements IQueryRegisteredQueriesRequest { - /** - * Creates a plain object from a MsgSubmitTxResponse message. Also converts values to other types if specified. - * @param message MsgSubmitTxResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: neutron.interchaintxs.v1.MsgSubmitTxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new QueryRegisteredQueriesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueriesRequest); - /** - * Converts this MsgSubmitTxResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** QueryRegisteredQueriesRequest owners. */ + public owners: string[]; - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** QueryRegisteredQueriesRequest connection_id. */ + public connection_id: string; + + /** QueryRegisteredQueriesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|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 + * Encodes the specified QueryRegisteredQueriesRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. + * @param message QueryRegisteredQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 QueryRegisteredQueriesRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesRequest.verify|verify} messages. + * @param message QueryRegisteredQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public params(request: neutron.interchaintxs.IQueryParamsRequest, callback: neutron.interchaintxs.Query.ParamsCallback): void; + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise + * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryRegisteredQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public params(request: neutron.interchaintxs.IQueryParamsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueriesRequest; /** - * Calls InterchainAccountAddress. - * @param request QueryInterchainAccountAddressRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryInterchainAccountAddressResponse + * Decodes a QueryRegisteredQueriesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public interchainAccountAddress(request: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, callback: neutron.interchaintxs.Query.InterchainAccountAddressCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueriesRequest; /** - * Calls InterchainAccountAddress. - * @param request QueryInterchainAccountAddressRequest message or plain object - * @returns Promise + * Verifies a QueryRegisteredQueriesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public interchainAccountAddress(request: neutron.interchaintxs.IQueryInterchainAccountAddressRequest): Promise; - } + public static verify(message: { [k: string]: any }): (string|null); - namespace Query { + /** + * Creates a QueryRegisteredQueriesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueriesRequest + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueriesRequest; /** - * Callback as used by {@link neutron.interchaintxs.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse + * Creates a plain object from a QueryRegisteredQueriesRequest message. Also converts values to other types if specified. + * @param message QueryRegisteredQueriesRequest + * @param [options] Conversion options + * @returns Plain object */ - type ParamsCallback = (error: (Error|null), response?: neutron.interchaintxs.QueryParamsResponse) => void; + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link neutron.interchaintxs.Query#interchainAccountAddress}. - * @param error Error, if any - * @param [response] QueryInterchainAccountAddressResponse + * Converts this QueryRegisteredQueriesRequest to JSON. + * @returns JSON object */ - type InterchainAccountAddressCallback = (error: (Error|null), response?: neutron.interchaintxs.QueryInterchainAccountAddressResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a QueryRegisteredQueriesResponse. */ + interface IQueryRegisteredQueriesResponse { + + /** QueryRegisteredQueriesResponse registered_queries */ + registered_queries?: (neutron.interchainqueries.IRegisteredQuery[]|null); + + /** QueryRegisteredQueriesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a QueryRegisteredQueriesResponse. */ + class QueryRegisteredQueriesResponse implements IQueryRegisteredQueriesResponse { /** - * Constructs a new QueryParamsRequest. + * Constructs a new QueryRegisteredQueriesResponse. * @param [properties] Properties to set */ - constructor(properties?: neutron.interchaintxs.IQueryParamsRequest); + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueriesResponse); + + /** QueryRegisteredQueriesResponse registered_queries. */ + public registered_queries: neutron.interchainqueries.IRegisteredQuery[]; + + /** QueryRegisteredQueriesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified QueryRegisteredQueriesResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. + * @param message QueryRegisteredQueriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: neutron.interchaintxs.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified QueryRegisteredQueriesResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueriesResponse.verify|verify} messages. + * @param message QueryRegisteredQueriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: neutron.interchaintxs.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a QueryRegisteredQueriesResponse 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 QueryRegisteredQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueriesResponse; + + /** + * Decodes a QueryRegisteredQueriesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueriesResponse; + + /** + * Verifies a QueryRegisteredQueriesResponse message. + * @param message 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 QueryRegisteredQueriesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueriesResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueriesResponse; + + /** + * Creates a plain object from a QueryRegisteredQueriesResponse message. Also converts values to other types if specified. + * @param message QueryRegisteredQueriesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryRegisteredQueriesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryRegisteredQueryRequest. */ + interface IQueryRegisteredQueryRequest { + + /** QueryRegisteredQueryRequest query_id */ + query_id?: (Long|null); + } + + /** Represents a QueryRegisteredQueryRequest. */ + class QueryRegisteredQueryRequest implements IQueryRegisteredQueryRequest { + + /** + * Constructs a new QueryRegisteredQueryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryRequest); + + /** QueryRegisteredQueryRequest query_id. */ + public query_id: Long; + + /** + * Encodes the specified QueryRegisteredQueryRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * @param message QueryRegisteredQueryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryRegisteredQueryRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryRequest.verify|verify} messages. + * @param message QueryRegisteredQueryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryRegisteredQueryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryRequest; + + /** + * Decodes a QueryRegisteredQueryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryRequest; + + /** + * Verifies a QueryRegisteredQueryRequest message. + * @param message 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 QueryRegisteredQueryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueryRequest + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryRequest; + + /** + * Creates a plain object from a QueryRegisteredQueryRequest message. Also converts values to other types if specified. + * @param message QueryRegisteredQueryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryRegisteredQueryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryRegisteredQueryResponse. */ + interface IQueryRegisteredQueryResponse { + + /** QueryRegisteredQueryResponse registered_query */ + registered_query?: (neutron.interchainqueries.IRegisteredQuery|null); + } + + /** Represents a QueryRegisteredQueryResponse. */ + class QueryRegisteredQueryResponse implements IQueryRegisteredQueryResponse { + + /** + * Constructs a new QueryRegisteredQueryResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResponse); + + /** QueryRegisteredQueryResponse registered_query. */ + public registered_query?: (neutron.interchainqueries.IRegisteredQuery|null); + + /** + * Encodes the specified QueryRegisteredQueryResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * @param message QueryRegisteredQueryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryRegisteredQueryResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResponse.verify|verify} messages. + * @param message QueryRegisteredQueryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryRegisteredQueryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResponse; + + /** + * Decodes a QueryRegisteredQueryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResponse; + + /** + * Verifies a QueryRegisteredQueryResponse message. + * @param message 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 QueryRegisteredQueryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueryResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResponse; + + /** + * Creates a plain object from a QueryRegisteredQueryResponse message. Also converts values to other types if specified. + * @param message QueryRegisteredQueryResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryRegisteredQueryResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryRegisteredQueryResultRequest. */ + interface IQueryRegisteredQueryResultRequest { + + /** QueryRegisteredQueryResultRequest query_id */ + query_id?: (Long|null); + } + + /** Represents a QueryRegisteredQueryResultRequest. */ + class QueryRegisteredQueryResultRequest implements IQueryRegisteredQueryResultRequest { + + /** + * Constructs a new QueryRegisteredQueryResultRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResultRequest); + + /** QueryRegisteredQueryResultRequest query_id. */ + public query_id: Long; + + /** + * Encodes the specified QueryRegisteredQueryResultRequest message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * @param message QueryRegisteredQueryResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryRegisteredQueryResultRequest message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultRequest.verify|verify} messages. + * @param message QueryRegisteredQueryResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryRegisteredQueryResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + + /** + * Decodes a QueryRegisteredQueryResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueryResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + + /** + * Verifies a QueryRegisteredQueryResultRequest message. + * @param message 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 QueryRegisteredQueryResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueryResultRequest + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResultRequest; + + /** + * Creates a plain object from a QueryRegisteredQueryResultRequest message. Also converts values to other types if specified. + * @param message QueryRegisteredQueryResultRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryRegisteredQueryResultRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryRegisteredQueryResultResponse. */ + interface IQueryRegisteredQueryResultResponse { + + /** QueryRegisteredQueryResultResponse result */ + result?: (neutron.interchainqueries.IQueryResult|null); + } + + /** Represents a QueryRegisteredQueryResultResponse. */ + class QueryRegisteredQueryResultResponse implements IQueryRegisteredQueryResultResponse { + + /** + * Constructs a new QueryRegisteredQueryResultResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryRegisteredQueryResultResponse); + + /** QueryRegisteredQueryResultResponse result. */ + public result?: (neutron.interchainqueries.IQueryResult|null); + + /** + * Encodes the specified QueryRegisteredQueryResultResponse message. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * @param message QueryRegisteredQueryResultResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryRegisteredQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryRegisteredQueryResultResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryRegisteredQueryResultResponse.verify|verify} messages. + * @param message QueryRegisteredQueryResultResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryRegisteredQueryResultResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryRegisteredQueryResultResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + + /** + * Decodes a QueryRegisteredQueryResultResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryRegisteredQueryResultResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + + /** + * Verifies a QueryRegisteredQueryResultResponse message. + * @param message 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 QueryRegisteredQueryResultResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryRegisteredQueryResultResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryRegisteredQueryResultResponse; + + /** + * Creates a plain object from a QueryRegisteredQueryResultResponse message. Also converts values to other types if specified. + * @param message QueryRegisteredQueryResultResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryRegisteredQueryResultResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryRegisteredQueryResultResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Transaction. */ + interface ITransaction { + + /** Transaction id */ + id?: (Long|null); + + /** Transaction height */ + height?: (Long|null); + + /** Transaction data */ + data?: (Uint8Array|null); + } + + /** Represents a Transaction. */ + class Transaction implements ITransaction { + + /** + * Constructs a new Transaction. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.ITransaction); + + /** Transaction id. */ + public id: Long; + + /** Transaction height. */ + public height: Long; + + /** Transaction data. */ + public data: Uint8Array; + + /** + * Encodes the specified Transaction message. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * @param message Transaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transaction message, length delimited. Does not implicitly {@link neutron.interchainqueries.Transaction.verify|verify} messages. + * @param message Transaction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transaction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.Transaction; + + /** + * Decodes a Transaction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transaction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.Transaction; + + /** + * Verifies a Transaction message. + * @param message 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 Transaction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transaction + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.Transaction; + + /** + * Creates a plain object from a Transaction message. Also converts values to other types if specified. + * @param message Transaction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transaction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryLastRemoteHeight. */ + interface IQueryLastRemoteHeight { + + /** QueryLastRemoteHeight connection_id */ + connection_id?: (string|null); + } + + /** Represents a QueryLastRemoteHeight. */ + class QueryLastRemoteHeight implements IQueryLastRemoteHeight { + + /** + * Constructs a new QueryLastRemoteHeight. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryLastRemoteHeight); + + /** QueryLastRemoteHeight connection_id. */ + public connection_id: string; + + /** + * Encodes the specified QueryLastRemoteHeight message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. + * @param message QueryLastRemoteHeight message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryLastRemoteHeight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryLastRemoteHeight message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeight.verify|verify} messages. + * @param message QueryLastRemoteHeight message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryLastRemoteHeight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryLastRemoteHeight message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryLastRemoteHeight + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryLastRemoteHeight; + + /** + * Decodes a QueryLastRemoteHeight message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryLastRemoteHeight + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryLastRemoteHeight; + + /** + * Verifies a QueryLastRemoteHeight message. + * @param message 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 QueryLastRemoteHeight message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryLastRemoteHeight + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryLastRemoteHeight; + + /** + * Creates a plain object from a QueryLastRemoteHeight message. Also converts values to other types if specified. + * @param message QueryLastRemoteHeight + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryLastRemoteHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryLastRemoteHeight to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryLastRemoteHeightResponse. */ + interface IQueryLastRemoteHeightResponse { + + /** QueryLastRemoteHeightResponse height */ + height?: (Long|null); + } + + /** Represents a QueryLastRemoteHeightResponse. */ + class QueryLastRemoteHeightResponse implements IQueryLastRemoteHeightResponse { + + /** + * Constructs a new QueryLastRemoteHeightResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchainqueries.IQueryLastRemoteHeightResponse); + + /** QueryLastRemoteHeightResponse height. */ + public height: Long; + + /** + * Encodes the specified QueryLastRemoteHeightResponse message. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. + * @param message QueryLastRemoteHeightResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchainqueries.IQueryLastRemoteHeightResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryLastRemoteHeightResponse message, length delimited. Does not implicitly {@link neutron.interchainqueries.QueryLastRemoteHeightResponse.verify|verify} messages. + * @param message QueryLastRemoteHeightResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchainqueries.IQueryLastRemoteHeightResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryLastRemoteHeightResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchainqueries.QueryLastRemoteHeightResponse; + + /** + * Decodes a QueryLastRemoteHeightResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryLastRemoteHeightResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchainqueries.QueryLastRemoteHeightResponse; + + /** + * Verifies a QueryLastRemoteHeightResponse message. + * @param message 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 QueryLastRemoteHeightResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryLastRemoteHeightResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchainqueries.QueryLastRemoteHeightResponse; + + /** + * Creates a plain object from a QueryLastRemoteHeightResponse message. Also converts values to other types if specified. + * @param message QueryLastRemoteHeightResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchainqueries.QueryLastRemoteHeightResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryLastRemoteHeightResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace interchaintxs. */ + namespace interchaintxs { + + /** 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 RegisterInterchainAccount. + * @param request MsgRegisterInterchainAccount message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRegisterInterchainAccountResponse + */ + public registerInterchainAccount(request: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, callback: neutron.interchaintxs.v1.Msg.RegisterInterchainAccountCallback): void; + + /** + * Calls RegisterInterchainAccount. + * @param request MsgRegisterInterchainAccount message or plain object + * @returns Promise + */ + public registerInterchainAccount(request: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount): Promise; + + /** + * Calls SubmitTx. + * @param request MsgSubmitTx message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitTxResponse + */ + public submitTx(request: neutron.interchaintxs.v1.IMsgSubmitTx, callback: neutron.interchaintxs.v1.Msg.SubmitTxCallback): void; + + /** + * Calls SubmitTx. + * @param request MsgSubmitTx message or plain object + * @returns Promise + */ + public submitTx(request: neutron.interchaintxs.v1.IMsgSubmitTx): Promise; + + /** + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + */ + public updateParams(request: neutron.interchaintxs.v1.IMsgUpdateParams, callback: neutron.interchaintxs.v1.Msg.UpdateParamsCallback): void; + + /** + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @returns Promise + */ + public updateParams(request: neutron.interchaintxs.v1.IMsgUpdateParams): Promise; + } + + namespace Msg { + + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#registerInterchainAccount}. + * @param error Error, if any + * @param [response] MsgRegisterInterchainAccountResponse + */ + type RegisterInterchainAccountCallback = (error: (Error|null), response?: neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse) => void; + + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#submitTx}. + * @param error Error, if any + * @param [response] MsgSubmitTxResponse + */ + type SubmitTxCallback = (error: (Error|null), response?: neutron.interchaintxs.v1.MsgSubmitTxResponse) => void; + + /** + * Callback as used by {@link neutron.interchaintxs.v1.Msg#updateParams}. + * @param error Error, if any + * @param [response] MsgUpdateParamsResponse + */ + type UpdateParamsCallback = (error: (Error|null), response?: neutron.interchaintxs.v1.MsgUpdateParamsResponse) => void; + } + + /** Properties of a MsgRegisterInterchainAccount. */ + interface IMsgRegisterInterchainAccount { + + /** MsgRegisterInterchainAccount from_address */ + from_address?: (string|null); + + /** MsgRegisterInterchainAccount connection_id */ + connection_id?: (string|null); + + /** MsgRegisterInterchainAccount interchain_account_id */ + interchain_account_id?: (string|null); + } + + /** Represents a MsgRegisterInterchainAccount. */ + class MsgRegisterInterchainAccount implements IMsgRegisterInterchainAccount { + + /** + * Constructs a new MsgRegisterInterchainAccount. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount); + + /** MsgRegisterInterchainAccount from_address. */ + public from_address: string; + + /** MsgRegisterInterchainAccount connection_id. */ + public connection_id: string; + + /** MsgRegisterInterchainAccount interchain_account_id. */ + public interchain_account_id: string; + + /** + * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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)): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + + /** + * 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 MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgRegisterInterchainAccount + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgRegisterInterchainAccount; + + /** + * 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: neutron.interchaintxs.v1.MsgRegisterInterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgRegisterInterchainAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgRegisterInterchainAccountResponse. */ + interface IMsgRegisterInterchainAccountResponse { + } + + /** Represents a MsgRegisterInterchainAccountResponse. */ + class MsgRegisterInterchainAccountResponse implements IMsgRegisterInterchainAccountResponse { + + /** + * Constructs a new MsgRegisterInterchainAccountResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse); + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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)): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + + /** + * 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 MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgRegisterInterchainAccountResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse; + + /** + * 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: neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgRegisterInterchainAccountResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgSubmitTx. */ + interface IMsgSubmitTx { + + /** MsgSubmitTx from_address */ + from_address?: (string|null); + + /** MsgSubmitTx interchain_account_id */ + interchain_account_id?: (string|null); + + /** MsgSubmitTx connection_id */ + connection_id?: (string|null); + + /** MsgSubmitTx msgs */ + msgs?: (google.protobuf.IAny[]|null); + + /** MsgSubmitTx memo */ + memo?: (string|null); + + /** MsgSubmitTx timeout */ + timeout?: (Long|null); + + /** MsgSubmitTx fee */ + fee?: (neutron.feerefunder.IFee|null); + } + + /** Represents a MsgSubmitTx. */ + class MsgSubmitTx implements IMsgSubmitTx { + + /** + * Constructs a new MsgSubmitTx. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgSubmitTx); + + /** MsgSubmitTx from_address. */ + public from_address: string; + + /** MsgSubmitTx interchain_account_id. */ + public interchain_account_id: string; + + /** MsgSubmitTx connection_id. */ + public connection_id: string; + + /** MsgSubmitTx msgs. */ + public msgs: google.protobuf.IAny[]; + + /** MsgSubmitTx memo. */ + public memo: string; + + /** MsgSubmitTx timeout. */ + public timeout: Long; + + /** MsgSubmitTx fee. */ + public fee?: (neutron.feerefunder.IFee|null); + + /** + * Encodes the specified MsgSubmitTx message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. + * @param message MsgSubmitTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.v1.IMsgSubmitTx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitTx message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTx.verify|verify} messages. + * @param message MsgSubmitTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgSubmitTx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSubmitTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgSubmitTx; + + /** + * Decodes a MsgSubmitTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgSubmitTx; + + /** + * Verifies a MsgSubmitTx message. + * @param message 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 MsgSubmitTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitTx + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgSubmitTx; + + /** + * Creates a plain object from a MsgSubmitTx message. Also converts values to other types if specified. + * @param message MsgSubmitTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.v1.MsgSubmitTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgSubmitTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgSubmitTxResponse. */ + interface IMsgSubmitTxResponse { + + /** MsgSubmitTxResponse sequence_id */ + sequence_id?: (Long|null); + + /** MsgSubmitTxResponse channel */ + channel?: (string|null); + } + + /** Represents a MsgSubmitTxResponse. */ + class MsgSubmitTxResponse implements IMsgSubmitTxResponse { + + /** + * Constructs a new MsgSubmitTxResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgSubmitTxResponse); + + /** MsgSubmitTxResponse sequence_id. */ + public sequence_id: Long; + + /** MsgSubmitTxResponse channel. */ + public channel: string; + + /** + * Encodes the specified MsgSubmitTxResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. + * @param message MsgSubmitTxResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.v1.IMsgSubmitTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitTxResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgSubmitTxResponse.verify|verify} messages. + * @param message MsgSubmitTxResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgSubmitTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSubmitTxResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgSubmitTxResponse; + + /** + * Decodes a MsgSubmitTxResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgSubmitTxResponse; + + /** + * Verifies a MsgSubmitTxResponse message. + * @param message 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 MsgSubmitTxResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitTxResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgSubmitTxResponse; + + /** + * Creates a plain object from a MsgSubmitTxResponse message. Also converts values to other types if specified. + * @param message MsgSubmitTxResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.v1.MsgSubmitTxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgSubmitTxResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { + + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (neutron.interchaintxs.IParams|null); + } + + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { + + /** + * Constructs a new MsgUpdateParams. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (neutron.interchaintxs.IParams|null); + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.v1.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgUpdateParams; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgUpdateParams; + + /** + * Verifies a MsgUpdateParams message. + * @param message 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 MsgUpdateParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUpdateParams + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgUpdateParams; + + /** + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.v1.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgUpdateParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { + } + + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { + + /** + * Constructs a new MsgUpdateParamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.v1.IMsgUpdateParamsResponse); + + /** + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.v1.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.v1.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.v1.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.v1.MsgUpdateParamsResponse; + + /** + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUpdateParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.v1.MsgUpdateParamsResponse; + + /** + * Verifies a MsgUpdateParamsResponse message. + * @param message 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 MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUpdateParamsResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.v1.MsgUpdateParamsResponse; + + /** + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.v1.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgUpdateParamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Params. */ + interface IParams { + + /** Params msg_submit_tx_max_messages */ + msg_submit_tx_max_messages?: (Long|null); + } + + /** Represents a Params. */ + class Params implements IParams { + + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IParams); + + /** Params msg_submit_tx_max_messages. */ + public msg_submit_tx_max_messages: Long; + + /** + * Encodes the specified Params message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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): neutron.interchaintxs.Params; + + /** + * 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)): neutron.interchaintxs.Params; + + /** + * 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 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 }): neutron.interchaintxs.Params; + + /** + * 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: neutron.interchaintxs.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + + /** + * 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 Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params(request: neutron.interchaintxs.IQueryParamsRequest, callback: neutron.interchaintxs.Query.ParamsCallback): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: neutron.interchaintxs.IQueryParamsRequest): Promise; + + /** + * Calls InterchainAccountAddress. + * @param request QueryInterchainAccountAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryInterchainAccountAddressResponse + */ + public interchainAccountAddress(request: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, callback: neutron.interchaintxs.Query.InterchainAccountAddressCallback): void; + + /** + * Calls InterchainAccountAddress. + * @param request QueryInterchainAccountAddressRequest message or plain object + * @returns Promise + */ + public interchainAccountAddress(request: neutron.interchaintxs.IQueryInterchainAccountAddressRequest): Promise; + } + + namespace Query { + + /** + * Callback as used by {@link neutron.interchaintxs.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: (Error|null), response?: neutron.interchaintxs.QueryParamsResponse) => void; + + /** + * Callback as used by {@link neutron.interchaintxs.Query#interchainAccountAddress}. + * @param error Error, if any + * @param [response] QueryInterchainAccountAddressResponse + */ + type InterchainAccountAddressCallback = (error: (Error|null), response?: neutron.interchaintxs.QueryInterchainAccountAddressResponse) => void; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + + /** + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IQueryParamsRequest); + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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): neutron.interchaintxs.QueryParamsRequest; + + /** + * 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)): neutron.interchaintxs.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 }): neutron.interchaintxs.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: neutron.interchaintxs.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryParamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + + /** QueryParamsResponse params */ + params?: (neutron.interchaintxs.IParams|null); + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + + /** + * Constructs a new QueryParamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: (neutron.interchaintxs.IParams|null); + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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): neutron.interchaintxs.QueryParamsResponse; + + /** + * 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)): neutron.interchaintxs.QueryParamsResponse; + + /** + * 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 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 }): neutron.interchaintxs.QueryParamsResponse; + + /** + * 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: neutron.interchaintxs.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryParamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryInterchainAccountAddressRequest. */ + interface IQueryInterchainAccountAddressRequest { + + /** QueryInterchainAccountAddressRequest owner_address */ + owner_address?: (string|null); + + /** QueryInterchainAccountAddressRequest interchain_account_id */ + interchain_account_id?: (string|null); + + /** QueryInterchainAccountAddressRequest connection_id */ + connection_id?: (string|null); + } + + /** Represents a QueryInterchainAccountAddressRequest. */ + class QueryInterchainAccountAddressRequest implements IQueryInterchainAccountAddressRequest { + + /** + * Constructs a new QueryInterchainAccountAddressRequest. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IQueryInterchainAccountAddressRequest); + + /** QueryInterchainAccountAddressRequest owner_address. */ + public owner_address: string; + + /** QueryInterchainAccountAddressRequest interchain_account_id. */ + public interchain_account_id: string; + + /** QueryInterchainAccountAddressRequest connection_id. */ + public connection_id: string; + + /** + * Encodes the specified QueryInterchainAccountAddressRequest message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. + * @param message QueryInterchainAccountAddressRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryInterchainAccountAddressRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. + * @param message QueryInterchainAccountAddressRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryInterchainAccountAddressRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + + /** + * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryInterchainAccountAddressRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + + /** + * Verifies a QueryInterchainAccountAddressRequest message. + * @param message 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 QueryInterchainAccountAddressRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryInterchainAccountAddressRequest + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + + /** + * Creates a plain object from a QueryInterchainAccountAddressRequest message. Also converts values to other types if specified. + * @param message QueryInterchainAccountAddressRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.QueryInterchainAccountAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryInterchainAccountAddressRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryInterchainAccountAddressResponse. */ + interface IQueryInterchainAccountAddressResponse { + + /** QueryInterchainAccountAddressResponse interchain_account_address */ + interchain_account_address?: (string|null); + } + + /** Represents a QueryInterchainAccountAddressResponse. */ + class QueryInterchainAccountAddressResponse implements IQueryInterchainAccountAddressResponse { + + /** + * Constructs a new QueryInterchainAccountAddressResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IQueryInterchainAccountAddressResponse); + + /** QueryInterchainAccountAddressResponse interchain_account_address. */ + public interchain_account_address: string; + + /** + * Encodes the specified QueryInterchainAccountAddressResponse message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. + * @param message QueryInterchainAccountAddressResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: neutron.interchaintxs.IQueryInterchainAccountAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryInterchainAccountAddressResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. + * @param message QueryInterchainAccountAddressResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: neutron.interchaintxs.IQueryInterchainAccountAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryInterchainAccountAddressResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + + /** + * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryInterchainAccountAddressResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + + /** + * Verifies a QueryInterchainAccountAddressResponse message. + * @param message 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 QueryInterchainAccountAddressResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryInterchainAccountAddressResponse + */ + public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + + /** + * Creates a plain object from a QueryInterchainAccountAddressResponse message. Also converts values to other types if specified. + * @param message QueryInterchainAccountAddressResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: neutron.interchaintxs.QueryInterchainAccountAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryInterchainAccountAddressResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GenesisState. */ + interface IGenesisState { + + /** GenesisState params */ + params?: (neutron.interchaintxs.IParams|null); + } + + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { + + /** + * Constructs a new GenesisState. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.interchaintxs.IGenesisState); + + /** GenesisState params. */ + public params?: (neutron.interchaintxs.IParams|null); + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.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): neutron.interchaintxs.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)): neutron.interchaintxs.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 }): neutron.interchaintxs.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: neutron.interchaintxs.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GenesisState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace transfer. */ + namespace transfer { + + /** 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 Transfer. + * @param request MsgTransfer message or plain object + * @param callback Node-style callback called with the error, if any, and MsgTransferResponse + */ + public transfer(request: neutron.transfer.IMsgTransfer, callback: neutron.transfer.Msg.TransferCallback): void; + + /** + * Calls Transfer. + * @param request MsgTransfer message or plain object + * @returns Promise + */ + public transfer(request: neutron.transfer.IMsgTransfer): Promise; + } + + namespace Msg { + + /** + * Callback as used by {@link neutron.transfer.Msg#transfer}. + * @param error Error, if any + * @param [response] MsgTransferResponse + */ + type TransferCallback = (error: (Error|null), response?: neutron.transfer.MsgTransferResponse) => void; + } + + /** Properties of a MsgTransfer. */ + interface IMsgTransfer { + + /** MsgTransfer source_port */ + source_port?: (string|null); + + /** MsgTransfer source_channel */ + source_channel?: (string|null); + + /** MsgTransfer token */ + token?: (cosmos.base.v1beta1.ICoin|null); + + /** MsgTransfer sender */ + sender?: (string|null); + + /** MsgTransfer receiver */ + receiver?: (string|null); + + /** MsgTransfer timeout_height */ + timeout_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgTransfer timeout_timestamp */ + timeout_timestamp?: (Long|null); + + /** MsgTransfer memo */ + memo?: (string|null); + + /** MsgTransfer fee */ + fee?: (neutron.feerefunder.IFee|null); + } + + /** Represents a MsgTransfer. */ + class MsgTransfer implements IMsgTransfer { + + /** + * Constructs a new MsgTransfer. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.transfer.IMsgTransfer); + + /** MsgTransfer source_port. */ + public source_port: string; + + /** MsgTransfer source_channel. */ + public source_channel: string; + + /** MsgTransfer token. */ + public token?: (cosmos.base.v1beta1.ICoin|null); + + /** MsgTransfer sender. */ + public sender: string; + + /** MsgTransfer receiver. */ + public receiver: string; + + /** MsgTransfer timeout_height. */ + public timeout_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgTransfer timeout_timestamp. */ + public timeout_timestamp: Long; + + /** MsgTransfer memo. */ + public memo: string; + + /** MsgTransfer fee. */ + public fee?: (neutron.feerefunder.IFee|null); + + /** + * Encodes the specified MsgTransfer message. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransfer, 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): neutron.transfer.MsgTransfer; + + /** + * 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)): neutron.transfer.MsgTransfer; + + /** + * 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 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 }): neutron.transfer.MsgTransfer; + + /** + * 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: neutron.transfer.MsgTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgTransfer to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgTransferResponse. */ + interface IMsgTransferResponse { + + /** MsgTransferResponse sequence_id */ + sequence_id?: (Long|null); + + /** MsgTransferResponse channel */ + channel?: (string|null); + } + + /** Represents a MsgTransferResponse. */ + class MsgTransferResponse implements IMsgTransferResponse { + + /** + * Constructs a new MsgTransferResponse. + * @param [properties] Properties to set + */ + constructor(properties?: neutron.transfer.IMsgTransferResponse); + + /** MsgTransferResponse sequence_id. */ + public sequence_id: Long; + + /** MsgTransferResponse channel. */ + public channel: string; + + /** + * Encodes the specified MsgTransferResponse message. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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): neutron.transfer.MsgTransferResponse; + + /** + * 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)): neutron.transfer.MsgTransferResponse; + + /** + * 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 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 }): neutron.transfer.MsgTransferResponse; + + /** + * 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: neutron.transfer.MsgTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgTransferResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + + /** + * 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 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: neutron.transfer.Query.DenomTraceCallback): void; + + /** + * Calls DenomTrace. + * @param request QueryDenomTraceRequest message or plain object + * @returns Promise + */ + public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; + + /** + * 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: neutron.transfer.Query.DenomTracesCallback): void; + + /** + * Calls DenomTraces. + * @param request QueryDenomTracesRequest message or plain object + * @returns Promise + */ + public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): 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.transfer.v1.IQueryParamsRequest, callback: neutron.transfer.Query.ParamsCallback): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; + + /** + * 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: neutron.transfer.Query.DenomHashCallback): void; + + /** + * Calls DenomHash. + * @param request QueryDenomHashRequest message or plain object + * @returns Promise + */ + public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): Promise; + } + + namespace Query { + + /** + * Callback as used by {@link neutron.transfer.Query#denomTrace}. + * @param error Error, if any + * @param [response] QueryDenomTraceResponse + */ + type DenomTraceCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTraceResponse) => void; + + /** + * Callback as used by {@link neutron.transfer.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 neutron.transfer.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 neutron.transfer.Query#denomHash}. + * @param error Error, if any + * @param [response] QueryDenomHashResponse + */ + type DenomHashCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomHashResponse) => void; + } + } +} + +/** Namespace ibc. */ +export namespace ibc { + + /** 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); + } + + /** Represents a Channel. */ + class Channel implements IChannel { + + /** + * Constructs a new Channel. + * @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; + + /** + * 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.IChannel, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Channel; + + /** + * Decodes a Channel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Channel; + + /** + * 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 Channel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Channel + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Channel; + + /** + * 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.Channel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Channel 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); + + /** IdentifiedChannel channel_id */ + channel_id?: (string|null); + } + + /** Represents an IdentifiedChannel. */ + class IdentifiedChannel implements IIdentifiedChannel { + + /** + * Constructs a new IdentifiedChannel. + * @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; + + /** IdentifiedChannel channel_id. */ + public channel_id: string; + + /** + * 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.IIdentifiedChannel, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IIdentifiedChannel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.IdentifiedChannel; + + /** + * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.IdentifiedChannel; + + /** + * 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 an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IdentifiedChannel + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.IdentifiedChannel; + + /** + * 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.IdentifiedChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IdentifiedChannel 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); + + /** Counterparty channel_id */ + channel_id?: (string|null); + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { + + /** + * Constructs a new Counterparty. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.channel.v1.ICounterparty); + + /** Counterparty port_id. */ + public port_id: string; + + /** Counterparty channel_id. */ + public channel_id: 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.core.channel.v1.ICounterparty, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Counterparty; + + /** + * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Counterparty; + + /** + * 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 Counterparty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Counterparty + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Counterparty; + + /** + * 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.Counterparty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Counterparty 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); + + /** Packet timeout_timestamp */ + timeout_timestamp?: (Long|null); + } + + /** Represents a Packet. */ + class Packet implements IPacket { + + /** + * Constructs a new Packet. + * @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); + + /** Packet timeout_timestamp. */ + public timeout_timestamp: Long; + + /** + * 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.IPacket, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IPacket, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Packet; + + /** + * Decodes a Packet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Packet; + + /** + * 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 Packet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Packet + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Packet; + + /** + * 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.Packet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Packet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 PacketState. */ + class PacketState implements IPacketState { + + /** + * Constructs a new PacketState. + * @param [properties] Properties to set + */ + 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 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.IPacketState, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IPacketState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.PacketState; + + /** + * Decodes a PacketState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.PacketState; + + /** + * 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 PacketState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PacketState + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketState; + + /** + * 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.PacketState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PacketState 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); + + /** PacketId sequence */ + sequence?: (Long|null); + } + + /** Represents a PacketId. */ + class PacketId implements IPacketId { + + /** + * Constructs a new PacketId. + * @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; + + /** PacketId sequence. */ + public sequence: Long; + + /** + * 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.IPacketId, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IPacketId, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.PacketId; + + /** + * Decodes a PacketId message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.PacketId; + + /** + * 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 PacketId message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PacketId + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketId; + + /** + * 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.PacketId, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PacketId to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Acknowledgement. */ + interface IAcknowledgement { + + /** Acknowledgement result */ + result?: (Uint8Array|null); + + /** Acknowledgement error */ + error?: (string|null); + } + + /** Represents an Acknowledgement. */ + class Acknowledgement implements IAcknowledgement { + + /** + * Constructs a new Acknowledgement. + * @param [properties] Properties to set + */ + 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 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.IAcknowledgement, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.channel.v1.IAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Acknowledgement; + + /** + * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Acknowledgement; + + /** + * 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 an Acknowledgement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Acknowledgement + */ + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Acknowledgement; + + /** + * 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.Acknowledgement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Acknowledgement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace client. */ + namespace client { + + /** Namespace v1. */ + namespace v1 { + + /** Properties of an IdentifiedClientState. */ + interface IIdentifiedClientState { + + /** IdentifiedClientState client_id */ + client_id?: (string|null); + + /** IdentifiedClientState client_state */ + client_state?: (google.protobuf.IAny|null); + } + + /** Represents an IdentifiedClientState. */ + class IdentifiedClientState implements IIdentifiedClientState { + + /** + * Constructs a new IdentifiedClientState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.client.v1.IIdentifiedClientState); + + /** IdentifiedClientState client_id. */ + public client_id: string; + + /** IdentifiedClientState client_state. */ + public client_state?: (google.protobuf.IAny|null); + + /** + * 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.IIdentifiedClientState, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.IdentifiedClientState; + + /** + * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.IdentifiedClientState; + + /** + * 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 an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IdentifiedClientState + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedClientState; + + /** + * 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.IdentifiedClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IdentifiedClientState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 ConsensusStateWithHeight. */ + class ConsensusStateWithHeight implements IConsensusStateWithHeight { + + /** + * Constructs a new ConsensusStateWithHeight. + * @param [properties] Properties to set + */ + 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 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.IConsensusStateWithHeight, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ConsensusStateWithHeight; + + /** + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ConsensusStateWithHeight; + + /** + * 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 ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConsensusStateWithHeight + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ConsensusStateWithHeight; + + /** + * 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.ConsensusStateWithHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConsensusStateWithHeight to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ClientConsensusStates. */ + interface IClientConsensusStates { + + /** ClientConsensusStates client_id */ + client_id?: (string|null); + + /** ClientConsensusStates consensus_states */ + consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); + } + + /** Represents a ClientConsensusStates. */ + class ClientConsensusStates implements IClientConsensusStates { + + /** + * Constructs a new ClientConsensusStates. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.client.v1.IClientConsensusStates); + + /** ClientConsensusStates client_id. */ + public client_id: string; + + /** ClientConsensusStates consensus_states. */ + public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; + + /** + * 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.IClientConsensusStates, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ClientConsensusStates; + + /** + * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ClientConsensusStates; + + /** + * 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 ClientConsensusStates message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClientConsensusStates + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientConsensusStates; + + /** + * 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.ClientConsensusStates, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClientConsensusStates to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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 ClientUpdateProposal. */ + class ClientUpdateProposal implements IClientUpdateProposal { + + /** + * Constructs a new ClientUpdateProposal. + * @param [properties] Properties to set + */ + 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 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.IClientUpdateProposal, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ClientUpdateProposal; + + /** + * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ClientUpdateProposal; + + /** + * 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 ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClientUpdateProposal + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientUpdateProposal; + + /** + * 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.ClientUpdateProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClientUpdateProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpgradeProposal. */ + interface IUpgradeProposal { + + /** UpgradeProposal title */ + title?: (string|null); + + /** UpgradeProposal description */ + description?: (string|null); + + /** UpgradeProposal plan */ + plan?: (cosmos.upgrade.v1beta1.IPlan|null); + + /** UpgradeProposal upgraded_client_state */ + upgraded_client_state?: (google.protobuf.IAny|null); + } + + /** Represents an UpgradeProposal. */ + class UpgradeProposal implements IUpgradeProposal { + + /** + * Constructs a new UpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.client.v1.IUpgradeProposal); + + /** UpgradeProposal title. */ + public title: string; + + /** UpgradeProposal description. */ + public description: string; + + /** UpgradeProposal plan. */ + public plan?: (cosmos.upgrade.v1beta1.IPlan|null); + + /** UpgradeProposal upgraded_client_state. */ + public upgraded_client_state?: (google.protobuf.IAny|null); + + /** + * 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 static encode(message: ibc.core.client.v1.IUpgradeProposal, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.UpgradeProposal; + + /** + * 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 static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.UpgradeProposal; + + /** + * Verifies an UpgradeProposal message. + * @param message 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. + * @param object Plain object + * @returns UpgradeProposal + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.UpgradeProposal; + + /** + * 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 static toObject(message: ibc.core.client.v1.UpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Height. */ + interface IHeight { + + /** Height revision_number */ + revision_number?: (Long|null); + + /** Height revision_height */ + revision_height?: (Long|null); + } + + /** Represents an Height. */ + class Height implements IHeight { + + /** + * Constructs a new Height. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.client.v1.IHeight); + + /** Height revision_number. */ + public revision_number: Long; + + /** Height revision_height. */ + public revision_height: Long; + + /** + * 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 + */ + public static encode(message: ibc.core.client.v1.IHeight, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Height; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Height; + + /** + * Verifies an Height message. + * @param message 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. + * @param object Plain object + * @returns Height + */ + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Height; + + /** + * 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 + */ + public static toObject(message: ibc.core.client.v1.Height, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Height to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Params. */ + interface IParams { + + /** Params allowed_clients */ + allowed_clients?: (string[]|null); + } + + /** Represents a Params. */ + class Params implements IParams { + + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.client.v1.IParams); + + /** Params allowed_clients. */ + public allowed_clients: string[]; + + /** + * 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.IParams, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.core.client.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.core.client.v1.Params; + + /** + * 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.core.client.v1.Params; + + /** + * 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 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.core.client.v1.Params; + + /** + * 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.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace applications. */ + namespace applications { + + /** Namespace transfer. */ + namespace transfer { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + + /** + * 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 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; + + /** + * Calls DenomTrace. + * @param request QueryDenomTraceRequest message or plain object + * @returns Promise + */ + public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; + + /** + * 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; + + /** + * Calls DenomTraces. + * @param request QueryDenomTracesRequest message or plain object + * @returns Promise + */ + public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): 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.transfer.v1.IQueryParamsRequest, callback: ibc.applications.transfer.v1.Query.ParamsCallback): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; + + /** + * 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 DenomHash. + * @param request QueryDenomHashRequest message or plain object + * @returns Promise + */ + public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): 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; + + /** + * Calls EscrowAddress. + * @param request QueryEscrowAddressRequest message or plain object + * @returns Promise + */ + public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest): Promise; + } + + namespace Query { + + /** + * 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; + + /** + * 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; + } + + /** Properties of a QueryDenomTraceRequest. */ + interface IQueryDenomTraceRequest { + + /** QueryDenomTraceRequest hash */ + hash?: (string|null); + } + + /** Represents a QueryDenomTraceRequest. */ + class QueryDenomTraceRequest implements IQueryDenomTraceRequest { + + /** + * Constructs a new QueryDenomTraceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceRequest); + + /** QueryDenomTraceRequest hash. */ + public hash: string; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 }; + + /** + * Converts this QueryDenomTraceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryDenomTraceResponse. */ + interface IQueryDenomTraceResponse { + + /** QueryDenomTraceResponse denom_trace */ + denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); + } + + /** Represents a QueryDenomTraceResponse. */ + class QueryDenomTraceResponse implements IQueryDenomTraceResponse { + + /** + * Constructs a new QueryDenomTraceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceResponse); + + /** QueryDenomTraceResponse denom_trace. */ + public denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceResponse; + + /** + * 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 QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryDenomTraceResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceResponse; + + /** + * 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 }; + + /** + * Converts this QueryDenomTraceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryDenomTracesRequest. */ + interface IQueryDenomTracesRequest { + + /** QueryDenomTracesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + } + + /** Represents a QueryDenomTracesRequest. */ + class QueryDenomTracesRequest implements IQueryDenomTracesRequest { + + /** + * Constructs a new QueryDenomTracesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesRequest); + + /** QueryDenomTracesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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.QueryDenomTracesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryDenomTracesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryDenomTracesResponse. */ + interface IQueryDenomTracesResponse { + + /** QueryDenomTracesResponse denom_traces */ + denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); + + /** QueryDenomTracesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + } + + /** Represents a QueryDenomTracesResponse. */ + class QueryDenomTracesResponse implements IQueryDenomTracesResponse { + + /** + * Constructs a new QueryDenomTracesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesResponse); + + /** QueryDenomTracesResponse denom_traces. */ + public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; + + /** QueryDenomTracesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + + /** + * 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.v1.IQueryDenomTracesResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.v1.QueryDenomTracesResponse; + + /** + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.v1.QueryDenomTracesResponse; + + /** + * 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 QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryDenomTracesResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesResponse; + + /** + * 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.v1.QueryDenomTracesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryDenomTracesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + + /** + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryParamsRequest); + + /** + * 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.applications.transfer.v1.IQueryParamsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.transfer.v1.QueryParamsRequest; + + /** + * 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.transfer.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.transfer.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.transfer.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryParamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + + /** QueryParamsResponse params */ + params?: (ibc.applications.transfer.v1.IParams|null); + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + + /** + * Constructs a new QueryParamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: (ibc.applications.transfer.v1.IParams|null); + + /** + * 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.applications.transfer.v1.IQueryParamsResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.transfer.v1.QueryParamsResponse; + + /** + * 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.transfer.v1.QueryParamsResponse; + + /** + * 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 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.transfer.v1.QueryParamsResponse; + + /** + * 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.transfer.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryParamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryDenomHashRequest. */ + interface IQueryDenomHashRequest { + + /** QueryDenomHashRequest trace */ + trace?: (string|null); + } + + /** Represents a QueryDenomHashRequest. */ + class QueryDenomHashRequest implements IQueryDenomHashRequest { + + /** + * Constructs a new QueryDenomHashRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashRequest); + + /** QueryDenomHashRequest trace. */ + public trace: string; + + /** + * 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.applications.transfer.v1.IQueryDenomHashRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.applications.transfer.v1.QueryDenomHashRequest; + + /** + * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.applications.transfer.v1.QueryDenomHashRequest; + + /** + * 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 QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryDenomHashRequest + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashRequest; + + /** + * 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.applications.transfer.v1.QueryDenomHashRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryDenomHashRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryDenomHashResponse. */ + interface IQueryDenomHashResponse { - /** - * 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)): neutron.interchaintxs.QueryParamsRequest; + /** QueryDenomHashResponse 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 QueryDenomHashResponse. */ + class QueryDenomHashResponse implements IQueryDenomHashResponse { - /** - * 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 }): neutron.interchaintxs.QueryParamsRequest; + /** + * Constructs a new QueryDenomHashResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashResponse); - /** - * 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: neutron.interchaintxs.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** QueryDenomHashResponse hash. */ + public hash: string; - /** - * Converts this QueryParamsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** + * 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.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** QueryParamsResponse params */ - params?: (neutron.interchaintxs.IParams|null); - } + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashResponse; - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashResponse; - /** - * Constructs a new QueryParamsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.IQueryParamsResponse); + /** + * 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); - /** QueryParamsResponse params. */ - public params?: (neutron.interchaintxs.IParams|null); + /** + * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryDenomHashResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashResponse; - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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.applications.transfer.v1.QueryDenomHashResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this QueryDenomHashResponse 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): neutron.interchaintxs.QueryParamsResponse; + /** Properties of a QueryEscrowAddressRequest. */ + interface IQueryEscrowAddressRequest { - /** - * 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)): neutron.interchaintxs.QueryParamsResponse; + /** QueryEscrowAddressRequest port_id */ + port_id?: (string|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); + /** QueryEscrowAddressRequest channel_id */ + channel_id?: (string|null); + } - /** - * 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 }): neutron.interchaintxs.QueryParamsResponse; + /** Represents a QueryEscrowAddressRequest. */ + class QueryEscrowAddressRequest implements IQueryEscrowAddressRequest { - /** - * 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: neutron.interchaintxs.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new QueryEscrowAddressRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressRequest); - /** - * Converts this QueryParamsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** QueryEscrowAddressRequest port_id. */ + public port_id: string; - /** Properties of a QueryInterchainAccountAddressRequest. */ - interface IQueryInterchainAccountAddressRequest { + /** QueryEscrowAddressRequest channel_id. */ + public channel_id: string; - /** QueryInterchainAccountAddressRequest owner_address */ - owner_address?: (string|null); + /** + * 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.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** QueryInterchainAccountAddressRequest interchain_account_id */ - interchain_account_id?: (string|null); + /** + * 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.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** QueryInterchainAccountAddressRequest connection_id */ - connection_id?: (string|null); - } + /** + * 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 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.applications.transfer.v1.QueryEscrowAddressRequest; - /** Represents a QueryInterchainAccountAddressRequest. */ - class QueryInterchainAccountAddressRequest implements IQueryInterchainAccountAddressRequest { + /** + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.applications.transfer.v1.QueryEscrowAddressRequest; - /** - * Constructs a new QueryInterchainAccountAddressRequest. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.IQueryInterchainAccountAddressRequest); + /** + * 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); - /** QueryInterchainAccountAddressRequest owner_address. */ - public owner_address: string; + /** + * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryEscrowAddressRequest + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressRequest; + + /** + * 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.applications.transfer.v1.QueryEscrowAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** QueryInterchainAccountAddressRequest interchain_account_id. */ - public interchain_account_id: string; + /** + * Converts this QueryEscrowAddressRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** QueryInterchainAccountAddressRequest connection_id. */ - public connection_id: string; + /** Properties of a QueryEscrowAddressResponse. */ + interface IQueryEscrowAddressResponse { - /** - * Encodes the specified QueryInterchainAccountAddressRequest message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. - * @param message QueryInterchainAccountAddressRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** QueryEscrowAddressResponse escrow_address */ + escrow_address?: (string|null); + } - /** - * Encodes the specified QueryInterchainAccountAddressRequest message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressRequest.verify|verify} messages. - * @param message QueryInterchainAccountAddressRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: neutron.interchaintxs.IQueryInterchainAccountAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a QueryEscrowAddressResponse. */ + class QueryEscrowAddressResponse implements IQueryEscrowAddressResponse { - /** - * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryInterchainAccountAddressRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + /** + * Constructs a new QueryEscrowAddressResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressResponse); - /** - * Decodes a QueryInterchainAccountAddressRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryInterchainAccountAddressRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + /** QueryEscrowAddressResponse escrow_address. */ + public escrow_address: string; - /** - * Verifies a QueryInterchainAccountAddressRequest message. - * @param message 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 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.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a QueryInterchainAccountAddressRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryInterchainAccountAddressRequest - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.QueryInterchainAccountAddressRequest; + /** + * 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.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a QueryInterchainAccountAddressRequest message. Also converts values to other types if specified. - * @param message QueryInterchainAccountAddressRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: neutron.interchaintxs.QueryInterchainAccountAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 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.applications.transfer.v1.QueryEscrowAddressResponse; - /** - * Converts this QueryInterchainAccountAddressRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.applications.transfer.v1.QueryEscrowAddressResponse; - /** Properties of a QueryInterchainAccountAddressResponse. */ - interface IQueryInterchainAccountAddressResponse { + /** + * 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); - /** QueryInterchainAccountAddressResponse interchain_account_address */ - interchain_account_address?: (string|null); - } + /** + * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryEscrowAddressResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressResponse; - /** Represents a QueryInterchainAccountAddressResponse. */ - class QueryInterchainAccountAddressResponse implements IQueryInterchainAccountAddressResponse { + /** + * 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.applications.transfer.v1.QueryEscrowAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new QueryInterchainAccountAddressResponse. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.IQueryInterchainAccountAddressResponse); + /** + * Converts this QueryEscrowAddressResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** QueryInterchainAccountAddressResponse interchain_account_address. */ - public interchain_account_address: string; + /** Properties of a DenomTrace. */ + interface IDenomTrace { - /** - * Encodes the specified QueryInterchainAccountAddressResponse message. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. - * @param message QueryInterchainAccountAddressResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: neutron.interchaintxs.IQueryInterchainAccountAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** DenomTrace path */ + path?: (string|null); - /** - * Encodes the specified QueryInterchainAccountAddressResponse message, length delimited. Does not implicitly {@link neutron.interchaintxs.QueryInterchainAccountAddressResponse.verify|verify} messages. - * @param message QueryInterchainAccountAddressResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: neutron.interchaintxs.IQueryInterchainAccountAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** DenomTrace base_denom */ + base_denom?: (string|null); + } - /** - * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryInterchainAccountAddressResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + /** Represents a DenomTrace. */ + class DenomTrace implements IDenomTrace { - /** - * Decodes a QueryInterchainAccountAddressResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryInterchainAccountAddressResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + /** + * Constructs a new DenomTrace. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IDenomTrace); - /** - * Verifies a QueryInterchainAccountAddressResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** DenomTrace path. */ + public path: string; - /** - * Creates a QueryInterchainAccountAddressResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryInterchainAccountAddressResponse - */ - public static fromObject(object: { [k: string]: any }): neutron.interchaintxs.QueryInterchainAccountAddressResponse; + /** DenomTrace base_denom. */ + public base_denom: string; - /** - * Creates a plain object from a QueryInterchainAccountAddressResponse message. Also converts values to other types if specified. - * @param message QueryInterchainAccountAddressResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: neutron.interchaintxs.QueryInterchainAccountAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this QueryInterchainAccountAddressResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a Params. */ - interface IParams { + /** + * 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; - /** Params msg_submit_tx_max_messages */ - msg_submit_tx_max_messages?: (Long|null); - } + /** + * 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; - /** Represents a Params. */ - class Params implements IParams { + /** + * 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); - /** - * Constructs a new Params. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.IParams); + /** + * 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; - /** Params msg_submit_tx_max_messages. */ - public msg_submit_tx_max_messages: Long; + /** + * 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 }; - /** - * Encodes the specified Params message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this DenomTrace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Params. */ + interface IParams { - /** - * 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): neutron.interchaintxs.Params; + /** Params send_enabled */ + send_enabled?: (boolean|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)): neutron.interchaintxs.Params; + /** Params receive_enabled */ + receive_enabled?: (boolean|null); + } - /** - * 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); + /** Represents a Params. */ + class Params implements IParams { - /** - * 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 }): neutron.interchaintxs.Params; + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.transfer.v1.IParams); - /** - * 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: neutron.interchaintxs.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Params send_enabled. */ + public send_enabled: boolean; - /** - * Converts this Params to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Params receive_enabled. */ + public receive_enabled: boolean; - /** Properties of a GenesisState. */ - interface IGenesisState { + /** + * 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; - /** GenesisState params */ - params?: (neutron.interchaintxs.IParams|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; - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** + * 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; - /** - * Constructs a new GenesisState. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.interchaintxs.IGenesisState); + /** + * 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; - /** GenesisState params. */ - public params?: (neutron.interchaintxs.IParams|null); + /** + * 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); - /** - * Encodes the specified GenesisState message. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link neutron.interchaintxs.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: neutron.interchaintxs.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 }; - /** - * 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): neutron.interchaintxs.GenesisState; + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } +} - /** - * 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)): neutron.interchaintxs.GenesisState; +/** Namespace cosmos. */ +export namespace cosmos { - /** - * 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); + /** Namespace upgrade. */ + namespace upgrade { - /** - * 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 }): neutron.interchaintxs.GenesisState; + /** Namespace v1beta1. */ + namespace v1beta1 { - /** - * 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: neutron.interchaintxs.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a Plan. */ + interface IPlan { - /** - * Converts this GenesisState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Plan name */ + name?: (string|null); - /** Namespace transfer. */ - namespace transfer { + /** Plan time */ + time?: (google.protobuf.ITimestamp|null); - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** Plan height */ + height?: (Long|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); + /** Plan info */ + info?: (string|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: neutron.transfer.IMsgTransfer, callback: neutron.transfer.Msg.TransferCallback): void; + /** Plan upgraded_client_state */ + upgraded_client_state?: (google.protobuf.IAny|null); + } - /** - * Calls Transfer. - * @param request MsgTransfer message or plain object - * @returns Promise - */ - public transfer(request: neutron.transfer.IMsgTransfer): Promise; - } + /** Represents a Plan. */ + class Plan implements IPlan { - namespace Msg { + /** + * Constructs a new Plan. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.IPlan); - /** - * Callback as used by {@link neutron.transfer.Msg#transfer}. - * @param error Error, if any - * @param [response] MsgTransferResponse - */ - type TransferCallback = (error: (Error|null), response?: neutron.transfer.MsgTransferResponse) => void; - } + /** Plan name. */ + public name: string; - /** Properties of a MsgTransfer. */ - interface IMsgTransfer { + /** Plan time. */ + public time?: (google.protobuf.ITimestamp|null); - /** MsgTransfer source_port */ - source_port?: (string|null); + /** Plan height. */ + public height: Long; - /** MsgTransfer source_channel */ - source_channel?: (string|null); + /** Plan info. */ + public info: string; - /** MsgTransfer token */ - token?: (cosmos.base.v1beta1.ICoin|null); + /** Plan upgraded_client_state. */ + public upgraded_client_state?: (google.protobuf.IAny|null); - /** MsgTransfer sender */ - sender?: (string|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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgTransfer receiver */ - receiver?: (string|null); + /** + * 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; - /** MsgTransfer timeout_height */ - timeout_height?: (ibc.core.client.v1.IHeight|null); + /** + * 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; - /** MsgTransfer timeout_timestamp */ - timeout_timestamp?: (Long|null); + /** + * 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; - /** MsgTransfer memo */ - memo?: (string|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); - /** MsgTransfer fee */ - fee?: (neutron.feerefunder.IFee|null); - } + /** + * 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; - /** Represents a MsgTransfer. */ - class MsgTransfer implements IMsgTransfer { + /** + * 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 }; - /** - * Constructs a new MsgTransfer. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.transfer.IMsgTransfer); + /** + * Converts this Plan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MsgTransfer source_port. */ - public source_port: string; + /** Properties of a SoftwareUpgradeProposal. */ + interface ISoftwareUpgradeProposal { - /** MsgTransfer source_channel. */ - public source_channel: string; + /** SoftwareUpgradeProposal title */ + title?: (string|null); - /** MsgTransfer token. */ - public token?: (cosmos.base.v1beta1.ICoin|null); + /** SoftwareUpgradeProposal description */ + description?: (string|null); - /** MsgTransfer sender. */ - public sender: string; + /** SoftwareUpgradeProposal plan */ + plan?: (cosmos.upgrade.v1beta1.IPlan|null); + } - /** MsgTransfer receiver. */ - public receiver: string; + /** Represents a SoftwareUpgradeProposal. */ + class SoftwareUpgradeProposal implements ISoftwareUpgradeProposal { - /** MsgTransfer timeout_height. */ - public timeout_height?: (ibc.core.client.v1.IHeight|null); + /** + * Constructs a new SoftwareUpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal); - /** MsgTransfer timeout_timestamp. */ - public timeout_timestamp: Long; + /** SoftwareUpgradeProposal title. */ + public title: string; - /** MsgTransfer memo. */ - public memo: string; + /** SoftwareUpgradeProposal description. */ + public description: string; - /** MsgTransfer fee. */ - public fee?: (neutron.feerefunder.IFee|null); + /** SoftwareUpgradeProposal plan. */ + public plan?: (cosmos.upgrade.v1beta1.IPlan|null); - /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransfer, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal, 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): neutron.transfer.MsgTransfer; + /** + * 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 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)): neutron.transfer.MsgTransfer; + /** + * 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 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); + /** + * 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 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 }): neutron.transfer.MsgTransfer; + /** + * 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 MsgTransfer message. Also converts values to other types if specified. - * @param message MsgTransfer - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: neutron.transfer.MsgTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 MsgTransfer to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this SoftwareUpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a MsgTransferResponse. */ - interface IMsgTransferResponse { + /** Properties of a CancelSoftwareUpgradeProposal. */ + interface ICancelSoftwareUpgradeProposal { - /** MsgTransferResponse sequence_id */ - sequence_id?: (Long|null); + /** CancelSoftwareUpgradeProposal title */ + title?: (string|null); - /** MsgTransferResponse channel */ - channel?: (string|null); - } + /** CancelSoftwareUpgradeProposal description */ + description?: (string|null); + } - /** Represents a MsgTransferResponse. */ - class MsgTransferResponse implements IMsgTransferResponse { + /** Represents a CancelSoftwareUpgradeProposal. */ + class CancelSoftwareUpgradeProposal implements ICancelSoftwareUpgradeProposal { - /** - * Constructs a new MsgTransferResponse. - * @param [properties] Properties to set - */ - constructor(properties?: neutron.transfer.IMsgTransferResponse); + /** + * Constructs a new CancelSoftwareUpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal); - /** MsgTransferResponse sequence_id. */ - public sequence_id: Long; + /** CancelSoftwareUpgradeProposal title. */ + public title: string; - /** MsgTransferResponse channel. */ - public channel: string; + /** CancelSoftwareUpgradeProposal description. */ + public description: string; - /** - * Encodes the specified MsgTransferResponse message. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link neutron.transfer.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: neutron.transfer.IMsgTransferResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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): neutron.transfer.MsgTransferResponse; + /** + * 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 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): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; - /** - * 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)): neutron.transfer.MsgTransferResponse; + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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)): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; - /** - * 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); + /** + * 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 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 }): neutron.transfer.MsgTransferResponse; + /** + * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSoftwareUpgradeProposal + */ + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; - /** - * 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: neutron.transfer.MsgTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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: cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this MsgTransferResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CancelSoftwareUpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of a ModuleVersion. */ + interface IModuleVersion { - /** - * 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); + /** ModuleVersion name */ + name?: (string|null); - /** - * 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: neutron.transfer.Query.DenomTraceCallback): void; + /** ModuleVersion version */ + version?: (Long|null); + } - /** - * Calls DenomTrace. - * @param request QueryDenomTraceRequest message or plain object - * @returns Promise - */ - public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; + /** Represents a ModuleVersion. */ + class ModuleVersion implements IModuleVersion { - /** - * 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: neutron.transfer.Query.DenomTracesCallback): void; + /** + * Constructs a new ModuleVersion. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.IModuleVersion); - /** - * Calls DenomTraces. - * @param request QueryDenomTracesRequest message or plain object - * @returns Promise - */ - public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): Promise; + /** ModuleVersion name. */ + public name: string; - /** - * 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: neutron.transfer.Query.ParamsCallback): void; + /** ModuleVersion version. */ + public version: Long; - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; + /** + * 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: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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: neutron.transfer.Query.DenomHashCallback): void; + /** + * 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: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls DenomHash. - * @param request QueryDenomHashRequest message or plain object - * @returns Promise - */ - public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): Promise; - } + /** + * 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 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): cosmos.upgrade.v1beta1.ModuleVersion; - namespace Query { + /** + * Decodes a ModuleVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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)): cosmos.upgrade.v1beta1.ModuleVersion; - /** - * Callback as used by {@link neutron.transfer.Query#denomTrace}. - * @param error Error, if any - * @param [response] QueryDenomTraceResponse - */ - type DenomTraceCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTraceResponse) => void; + /** + * 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); - /** - * Callback as used by {@link neutron.transfer.Query#denomTraces}. - * @param error Error, if any - * @param [response] QueryDenomTracesResponse - */ - type DenomTracesCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTracesResponse) => void; + /** + * Creates a ModuleVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModuleVersion + */ + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.ModuleVersion; - /** - * Callback as used by {@link neutron.transfer.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse - */ - type ParamsCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryParamsResponse) => void; + /** + * 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: cosmos.upgrade.v1beta1.ModuleVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link neutron.transfer.Query#denomHash}. - * @param error Error, if any - * @param [response] QueryDenomHashResponse - */ - type DenomHashCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomHashResponse) => void; + /** + * Converts this ModuleVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } -} - -/** Namespace cosmos. */ -export namespace cosmos { /** Namespace base. */ namespace base { @@ -7871,14262 +12101,13593 @@ export namespace cosmos { } } - /** Namespace upgrade. */ - namespace upgrade { + /** Namespace bank. */ + namespace bank { /** 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 Params. */ + interface IParams { - /** Plan info */ - info?: (string|null); + /** Params send_enabled */ + send_enabled?: (cosmos.bank.v1beta1.ISendEnabled[]|null); - /** Plan upgraded_client_state */ - upgraded_client_state?: (google.protobuf.IAny|null); + /** Params default_send_enabled */ + default_send_enabled?: (boolean|null); } - /** Represents a Plan. */ - class Plan implements IPlan { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new Plan. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.IPlan); - - /** Plan name. */ - public name: string; - - /** Plan time. */ - public time?: (google.protobuf.ITimestamp|null); + constructor(properties?: cosmos.bank.v1beta1.IParams); - /** Plan height. */ - public height: Long; - - /** Plan info. */ - public info: string; + /** Params send_enabled. */ + public send_enabled: cosmos.bank.v1beta1.ISendEnabled[]; - /** Plan upgraded_client_state. */ - public upgraded_client_state?: (google.protobuf.IAny|null); + /** Params default_send_enabled. */ + public default_send_enabled: boolean; /** - * 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 Params message. Does not implicitly {@link cosmos.bank.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.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.bank.v1beta1.IParams, 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 Params message, length delimited. Does not implicitly {@link cosmos.bank.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.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.bank.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Plan 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 Plan + * @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.Plan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.bank.v1beta1.Params; /** - * Decodes a Plan 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 Plan + * @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.Plan; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.bank.v1beta1.Params; /** - * Verifies a Plan 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 Plan 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 Plan + * @returns Params */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.Plan; + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.Params; /** - * 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 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.Plan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.bank.v1beta1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Plan to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SoftwareUpgradeProposal. */ - interface ISoftwareUpgradeProposal { - - /** SoftwareUpgradeProposal title */ - title?: (string|null); + /** Properties of a SendEnabled. */ + interface ISendEnabled { - /** SoftwareUpgradeProposal description */ - description?: (string|null); + /** SendEnabled denom */ + denom?: (string|null); - /** SoftwareUpgradeProposal plan */ - plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** SendEnabled enabled */ + enabled?: (boolean|null); } - /** Represents a SoftwareUpgradeProposal. */ - class SoftwareUpgradeProposal implements ISoftwareUpgradeProposal { + /** Represents a SendEnabled. */ + class SendEnabled implements ISendEnabled { /** - * Constructs a new SoftwareUpgradeProposal. + * Constructs a new SendEnabled. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal); - - /** SoftwareUpgradeProposal title. */ - public title: string; + constructor(properties?: cosmos.bank.v1beta1.ISendEnabled); - /** SoftwareUpgradeProposal description. */ - public description: string; + /** SendEnabled denom. */ + public denom: string; - /** SoftwareUpgradeProposal plan. */ - public plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** SendEnabled enabled. */ + public enabled: boolean; /** - * 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 SendEnabled message. Does not implicitly {@link cosmos.bank.v1beta1.SendEnabled.verify|verify} messages. + * @param message SendEnabled 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.bank.v1beta1.ISendEnabled, 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 SendEnabled message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.SendEnabled.verify|verify} messages. + * @param message SendEnabled 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.bank.v1beta1.ISendEnabled, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a SendEnabled 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 SendEnabled * @throws {Error} If the payload is 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.bank.v1beta1.SendEnabled; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a SendEnabled message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SoftwareUpgradeProposal + * @returns SendEnabled * @throws {Error} If the 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.bank.v1beta1.SendEnabled; /** - * Verifies a SoftwareUpgradeProposal message. + * Verifies a SendEnabled message. * @param message 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 SendEnabled message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SoftwareUpgradeProposal + * @returns SendEnabled */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.SendEnabled; /** - * 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 SendEnabled message. Also converts values to other types if specified. + * @param message SendEnabled * @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.bank.v1beta1.SendEnabled, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SoftwareUpgradeProposal to JSON. + * Converts this SendEnabled to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelSoftwareUpgradeProposal. */ - interface ICancelSoftwareUpgradeProposal { + /** Properties of an Input. */ + interface IInput { - /** CancelSoftwareUpgradeProposal title */ - title?: (string|null); + /** Input address */ + address?: (string|null); - /** CancelSoftwareUpgradeProposal description */ - description?: (string|null); + /** Input coins */ + coins?: (cosmos.base.v1beta1.ICoin[]|null); } - /** Represents a CancelSoftwareUpgradeProposal. */ - class CancelSoftwareUpgradeProposal implements ICancelSoftwareUpgradeProposal { + /** Represents an Input. */ + class Input implements IInput { /** - * Constructs a new CancelSoftwareUpgradeProposal. + * Constructs a new Input. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal); + constructor(properties?: cosmos.bank.v1beta1.IInput); - /** CancelSoftwareUpgradeProposal title. */ - public title: string; + /** Input address. */ + public address: string; - /** CancelSoftwareUpgradeProposal description. */ - public description: string; + /** Input coins. */ + public coins: cosmos.base.v1beta1.ICoin[]; /** - * 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 Input message. Does not implicitly {@link cosmos.bank.v1beta1.Input.verify|verify} messages. + * @param message Input 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.bank.v1beta1.IInput, 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 Input message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Input.verify|verify} messages. + * @param message Input 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.bank.v1beta1.IInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes an Input 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 Input * @throws {Error} If the payload is 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.bank.v1beta1.Input; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes an Input message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelSoftwareUpgradeProposal + * @returns Input * @throws {Error} If the 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.bank.v1beta1.Input; /** - * Verifies a CancelSoftwareUpgradeProposal message. + * Verifies an Input message. * @param message 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 an Input message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelSoftwareUpgradeProposal + * @returns Input */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.Input; /** - * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. - * @param message CancelSoftwareUpgradeProposal + * Creates a plain object from an Input message. Also converts values to other types if specified. + * @param message Input * @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.bank.v1beta1.Input, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelSoftwareUpgradeProposal to JSON. + * Converts this Input to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModuleVersion. */ - interface IModuleVersion { + /** Properties of an Output. */ + interface IOutput { - /** ModuleVersion name */ - name?: (string|null); + /** Output address */ + address?: (string|null); - /** ModuleVersion version */ - version?: (Long|null); + /** Output coins */ + coins?: (cosmos.base.v1beta1.ICoin[]|null); } - /** Represents a ModuleVersion. */ - class ModuleVersion implements IModuleVersion { + /** Represents an Output. */ + class Output implements IOutput { /** - * Constructs a new ModuleVersion. + * Constructs a new Output. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.IModuleVersion); + constructor(properties?: cosmos.bank.v1beta1.IOutput); - /** ModuleVersion name. */ - public name: string; + /** Output address. */ + public address: string; - /** ModuleVersion version. */ - public version: Long; + /** Output coins. */ + public coins: cosmos.base.v1beta1.ICoin[]; /** - * 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 + * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.v1beta1.Output.verify|verify} messages. + * @param message Output message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.bank.v1beta1.IOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified Output message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Output.verify|verify} messages. + * @param message Output message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.bank.v1beta1.IOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModuleVersion message from the specified reader or buffer. + * Decodes an Output message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModuleVersion + * @returns Output * @throws {Error} If the payload is 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.ModuleVersion; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.bank.v1beta1.Output; /** - * Decodes a ModuleVersion message from the specified reader or buffer, length delimited. + * Decodes an Output message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModuleVersion + * @returns Output * @throws {Error} If the 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.ModuleVersion; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.bank.v1beta1.Output; /** - * Verifies a ModuleVersion message. + * Verifies an Output message. * @param message 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 ModuleVersion message from a plain object. Also converts values to their respective internal types. + * Creates an Output message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModuleVersion + * @returns Output */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.ModuleVersion; + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.Output; /** - * Creates a plain object from a ModuleVersion message. Also converts values to other types if specified. - * @param message ModuleVersion + * Creates a plain object from an Output message. Also converts values to other types if specified. + * @param message Output * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.upgrade.v1beta1.ModuleVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.bank.v1beta1.Output, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModuleVersion to JSON. + * Converts this Output to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - } - } - } -} - -/** Namespace tendermint. */ -export namespace tendermint { - - /** Namespace crypto. */ - namespace crypto { - - /** Properties of a Proof. */ - interface IProof { - - /** Proof total */ - total?: (Long|null); - - /** Proof index */ - index?: (Long|null); - - /** Proof leaf_hash */ - leaf_hash?: (Uint8Array|null); - - /** Proof aunts */ - aunts?: (Uint8Array[]|null); - } - - /** Represents a Proof. */ - class Proof implements IProof { - - /** - * Constructs a new Proof. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IProof); - - /** Proof total. */ - public total: Long; - - /** Proof index. */ - public index: Long; - - /** Proof leaf_hash. */ - public leaf_hash: Uint8Array; - - /** Proof aunts. */ - public aunts: Uint8Array[]; - - /** - * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. - * @param message Proof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Proof message, length delimited. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. - * @param message Proof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Proof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Proof - * @throws {Error} If the payload is 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.crypto.Proof; - - /** - * Decodes a Proof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Proof - * @throws {Error} If the 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.crypto.Proof; - - /** - * Verifies a Proof message. - * @param message 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 Proof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Proof - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.Proof; - - /** - * Creates a plain object from a Proof message. Also converts values to other types if specified. - * @param message Proof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.Proof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Proof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ValueOp. */ - interface IValueOp { - - /** ValueOp key */ - key?: (Uint8Array|null); - - /** ValueOp proof */ - proof?: (tendermint.crypto.IProof|null); - } - - /** Represents a ValueOp. */ - class ValueOp implements IValueOp { - - /** - * Constructs a new ValueOp. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IValueOp); - - /** ValueOp key. */ - public key: Uint8Array; - - /** ValueOp proof. */ - public proof?: (tendermint.crypto.IProof|null); - - /** - * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. - * @param message ValueOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IValueOp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValueOp message, length delimited. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. - * @param message ValueOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IValueOp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValueOp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValueOp - * @throws {Error} If the payload is 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.crypto.ValueOp; - - /** - * Decodes a ValueOp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValueOp - * @throws {Error} If the 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.crypto.ValueOp; - - /** - * Verifies a ValueOp message. - * @param message 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 ValueOp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValueOp - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.ValueOp; - - /** - * Creates a plain object from a ValueOp message. Also converts values to other types if specified. - * @param message ValueOp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.ValueOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValueOp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DominoOp. */ - interface IDominoOp { - - /** DominoOp key */ - key?: (string|null); - - /** DominoOp input */ - input?: (string|null); - - /** DominoOp output */ - output?: (string|null); - } - - /** Represents a DominoOp. */ - class DominoOp implements IDominoOp { - - /** - * Constructs a new DominoOp. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IDominoOp); - - /** DominoOp key. */ - public key: string; - - /** DominoOp input. */ - public input: string; - - /** DominoOp output. */ - public output: string; - - /** - * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. - * @param message DominoOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IDominoOp, writer?: $protobuf.Writer): $protobuf.Writer; + } - /** - * Encodes the specified DominoOp message, length delimited. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. - * @param message DominoOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IDominoOp, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Supply. */ + interface ISupply { - /** - * Decodes a DominoOp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DominoOp - * @throws {Error} If the payload is 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.crypto.DominoOp; + /** Supply total */ + total?: (cosmos.base.v1beta1.ICoin[]|null); + } - /** - * Decodes a DominoOp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DominoOp - * @throws {Error} If the 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.crypto.DominoOp; + /** Represents a Supply. */ + class Supply implements ISupply { - /** - * Verifies a DominoOp message. - * @param message 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 Supply. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.bank.v1beta1.ISupply); - /** - * Creates a DominoOp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DominoOp - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.DominoOp; + /** Supply total. */ + public total: cosmos.base.v1beta1.ICoin[]; - /** - * Creates a plain object from a DominoOp message. Also converts values to other types if specified. - * @param message DominoOp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.DominoOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.v1beta1.Supply.verify|verify} messages. + * @param message Supply message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.bank.v1beta1.ISupply, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this DominoOp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified Supply message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.Supply.verify|verify} messages. + * @param message Supply message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.bank.v1beta1.ISupply, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ProofOp. */ - interface IProofOp { + /** + * Decodes a Supply message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Supply + * @throws {Error} If the payload is 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.bank.v1beta1.Supply; - /** ProofOp type */ - type?: (string|null); + /** + * Decodes a Supply message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Supply + * @throws {Error} If the 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.bank.v1beta1.Supply; - /** ProofOp key */ - key?: (Uint8Array|null); + /** + * Verifies a Supply message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ProofOp data */ - data?: (Uint8Array|null); - } + /** + * Creates a Supply message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Supply + */ + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.Supply; - /** Represents a ProofOp. */ - class ProofOp implements IProofOp { + /** + * Creates a plain object from a Supply message. Also converts values to other types if specified. + * @param message Supply + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.bank.v1beta1.Supply, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ProofOp. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IProofOp); + /** + * Converts this Supply to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ProofOp type. */ - public type: string; + /** Properties of a DenomUnit. */ + interface IDenomUnit { - /** ProofOp key. */ - public key: Uint8Array; + /** DenomUnit denom */ + denom?: (string|null); - /** ProofOp data. */ - public data: Uint8Array; + /** DenomUnit exponent */ + exponent?: (number|null); - /** - * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. - * @param message ProofOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IProofOp, writer?: $protobuf.Writer): $protobuf.Writer; + /** DenomUnit aliases */ + aliases?: (string[]|null); + } - /** - * Encodes the specified ProofOp message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. - * @param message ProofOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IProofOp, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a DenomUnit. */ + class DenomUnit implements IDenomUnit { - /** - * Decodes a ProofOp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProofOp - * @throws {Error} If the payload is 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.crypto.ProofOp; + /** + * Constructs a new DenomUnit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.bank.v1beta1.IDenomUnit); - /** - * Decodes a ProofOp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProofOp - * @throws {Error} If the 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.crypto.ProofOp; + /** DenomUnit denom. */ + public denom: string; - /** - * Verifies a ProofOp message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** DenomUnit exponent. */ + public exponent: number; - /** - * Creates a ProofOp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProofOp - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.ProofOp; + /** DenomUnit aliases. */ + public aliases: string[]; - /** - * Creates a plain object from a ProofOp message. Also converts values to other types if specified. - * @param message ProofOp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.ProofOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified DenomUnit message. Does not implicitly {@link cosmos.bank.v1beta1.DenomUnit.verify|verify} messages. + * @param message DenomUnit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.bank.v1beta1.IDenomUnit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ProofOp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified DenomUnit message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.DenomUnit.verify|verify} messages. + * @param message DenomUnit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.bank.v1beta1.IDenomUnit, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ProofOps. */ - interface IProofOps { + /** + * Decodes a DenomUnit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DenomUnit + * @throws {Error} If the payload is 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.bank.v1beta1.DenomUnit; - /** ProofOps ops */ - ops?: (tendermint.crypto.IProofOp[]|null); - } + /** + * Decodes a DenomUnit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DenomUnit + * @throws {Error} If the 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.bank.v1beta1.DenomUnit; - /** Represents a ProofOps. */ - class ProofOps implements IProofOps { + /** + * Verifies a DenomUnit message. + * @param message 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 ProofOps. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IProofOps); + /** + * Creates a DenomUnit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DenomUnit + */ + public static fromObject(object: { [k: string]: any }): cosmos.bank.v1beta1.DenomUnit; - /** ProofOps ops. */ - public ops: tendermint.crypto.IProofOp[]; + /** + * Creates a plain object from a DenomUnit message. Also converts values to other types if specified. + * @param message DenomUnit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.bank.v1beta1.DenomUnit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. - * @param message ProofOps message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IProofOps, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this DenomUnit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified ProofOps message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. - * @param message ProofOps message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IProofOps, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Metadata. */ + interface IMetadata { - /** - * Decodes a ProofOps message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProofOps - * @throws {Error} If the payload is 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.crypto.ProofOps; + /** Metadata description */ + description?: (string|null); - /** - * Decodes a ProofOps message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProofOps - * @throws {Error} If the 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.crypto.ProofOps; + /** Metadata denom_units */ + denom_units?: (cosmos.bank.v1beta1.IDenomUnit[]|null); - /** - * Verifies a ProofOps message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Metadata base */ + base?: (string|null); - /** - * Creates a ProofOps message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProofOps - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.ProofOps; + /** Metadata display */ + display?: (string|null); - /** - * Creates a plain object from a ProofOps message. Also converts values to other types if specified. - * @param message ProofOps - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.ProofOps, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Metadata name */ + name?: (string|null); - /** - * Converts this ProofOps to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Metadata symbol */ + symbol?: (string|null); + } - /** Properties of a PublicKey. */ - interface IPublicKey { + /** Represents a Metadata. */ + class Metadata implements IMetadata { - /** PublicKey ed25519 */ - ed25519?: (Uint8Array|null); + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.bank.v1beta1.IMetadata); - /** PublicKey secp256k1 */ - secp256k1?: (Uint8Array|null); - } + /** Metadata description. */ + public description: string; - /** Represents a PublicKey. */ - class PublicKey implements IPublicKey { + /** Metadata denom_units. */ + public denom_units: cosmos.bank.v1beta1.IDenomUnit[]; - /** - * Constructs a new PublicKey. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.crypto.IPublicKey); + /** Metadata base. */ + public base: string; - /** PublicKey ed25519. */ - public ed25519?: (Uint8Array|null); + /** Metadata display. */ + public display: string; - /** PublicKey secp256k1. */ - public secp256k1?: (Uint8Array|null); + /** Metadata name. */ + public name: string; - /** PublicKey sum. */ - public sum?: ("ed25519"|"secp256k1"); + /** Metadata symbol. */ + public symbol: string; - /** - * Encodes the specified PublicKey message. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. - * @param message PublicKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.crypto.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.v1beta1.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: cosmos.bank.v1beta1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. - * @param message PublicKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.crypto.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link cosmos.bank.v1beta1.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: cosmos.bank.v1beta1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PublicKey message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublicKey - * @throws {Error} If the payload is 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.crypto.PublicKey; + /** + * 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): cosmos.bank.v1beta1.Metadata; - /** - * Decodes a PublicKey message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PublicKey - * @throws {Error} If the 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.crypto.PublicKey; + /** + * 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)): cosmos.bank.v1beta1.Metadata; - /** - * Verifies a PublicKey message. - * @param message 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 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 PublicKey message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PublicKey - */ - public static fromObject(object: { [k: string]: any }): tendermint.crypto.PublicKey; + /** + * 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 }): cosmos.bank.v1beta1.Metadata; - /** - * Creates a plain object from a PublicKey message. Also converts values to other types if specified. - * @param message PublicKey - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.crypto.PublicKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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: cosmos.bank.v1beta1.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this PublicKey to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } +} - /** Namespace abci. */ - namespace abci { - - /** Properties of a Request. */ - interface IRequest { - - /** Request echo */ - echo?: (tendermint.abci.IRequestEcho|null); +/** Namespace cosmos_proto. */ +export namespace cosmos_proto { - /** Request flush */ - flush?: (tendermint.abci.IRequestFlush|null); + /** Properties of an InterfaceDescriptor. */ + interface IInterfaceDescriptor { - /** Request info */ - info?: (tendermint.abci.IRequestInfo|null); + /** InterfaceDescriptor name */ + name?: (string|null); - /** Request set_option */ - set_option?: (tendermint.abci.IRequestSetOption|null); + /** InterfaceDescriptor description */ + description?: (string|null); + } - /** Request init_chain */ - init_chain?: (tendermint.abci.IRequestInitChain|null); + /** Represents an InterfaceDescriptor. */ + class InterfaceDescriptor implements IInterfaceDescriptor { - /** Request query */ - query?: (tendermint.abci.IRequestQuery|null); + /** + * Constructs a new InterfaceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_proto.IInterfaceDescriptor); - /** Request begin_block */ - begin_block?: (tendermint.abci.IRequestBeginBlock|null); + /** InterfaceDescriptor name. */ + public name: string; - /** Request check_tx */ - check_tx?: (tendermint.abci.IRequestCheckTx|null); + /** InterfaceDescriptor description. */ + public description: string; - /** Request deliver_tx */ - deliver_tx?: (tendermint.abci.IRequestDeliverTx|null); + /** + * 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; - /** Request end_block */ - end_block?: (tendermint.abci.IRequestEndBlock|null); + /** + * 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; - /** Request commit */ - commit?: (tendermint.abci.IRequestCommit|null); + /** + * 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; - /** Request list_snapshots */ - list_snapshots?: (tendermint.abci.IRequestListSnapshots|null); + /** + * 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; - /** Request offer_snapshot */ - offer_snapshot?: (tendermint.abci.IRequestOfferSnapshot|null); + /** + * 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); - /** Request load_snapshot_chunk */ - load_snapshot_chunk?: (tendermint.abci.IRequestLoadSnapshotChunk|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; - /** Request apply_snapshot_chunk */ - apply_snapshot_chunk?: (tendermint.abci.IRequestApplySnapshotChunk|null); - } + /** + * 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 }; - /** Represents a Request. */ - class Request implements IRequest { + /** + * Converts this InterfaceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new Request. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.abci.IRequest); + /** Properties of a ScalarDescriptor. */ + interface IScalarDescriptor { - /** Request echo. */ - public echo?: (tendermint.abci.IRequestEcho|null); + /** ScalarDescriptor name */ + name?: (string|null); - /** Request flush. */ - public flush?: (tendermint.abci.IRequestFlush|null); + /** ScalarDescriptor description */ + description?: (string|null); - /** Request info. */ - public info?: (tendermint.abci.IRequestInfo|null); + /** ScalarDescriptor field_type */ + field_type?: (cosmos_proto.ScalarType[]|null); - /** Request set_option. */ - public set_option?: (tendermint.abci.IRequestSetOption|null); + /** ScalarDescriptor legacy_amino_encoding */ + legacy_amino_encoding?: (string|null); + } - /** Request init_chain. */ - public init_chain?: (tendermint.abci.IRequestInitChain|null); + /** Represents a ScalarDescriptor. */ + class ScalarDescriptor implements IScalarDescriptor { - /** Request query. */ - public query?: (tendermint.abci.IRequestQuery|null); + /** + * Constructs a new ScalarDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_proto.IScalarDescriptor); - /** Request begin_block. */ - public begin_block?: (tendermint.abci.IRequestBeginBlock|null); + /** ScalarDescriptor name. */ + public name: string; - /** Request check_tx. */ - public check_tx?: (tendermint.abci.IRequestCheckTx|null); + /** ScalarDescriptor description. */ + public description: string; - /** Request deliver_tx. */ - public deliver_tx?: (tendermint.abci.IRequestDeliverTx|null); + /** ScalarDescriptor field_type. */ + public field_type: cosmos_proto.ScalarType[]; - /** Request end_block. */ - public end_block?: (tendermint.abci.IRequestEndBlock|null); + /** ScalarDescriptor legacy_amino_encoding. */ + public legacy_amino_encoding: string; - /** Request commit. */ - public commit?: (tendermint.abci.IRequestCommit|null); + /** + * 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; - /** Request list_snapshots. */ - public list_snapshots?: (tendermint.abci.IRequestListSnapshots|null); + /** + * 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; - /** Request offer_snapshot. */ - public offer_snapshot?: (tendermint.abci.IRequestOfferSnapshot|null); + /** + * 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; - /** Request load_snapshot_chunk. */ - public load_snapshot_chunk?: (tendermint.abci.IRequestLoadSnapshotChunk|null); + /** + * 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; - /** Request apply_snapshot_chunk. */ - public apply_snapshot_chunk?: (tendermint.abci.IRequestApplySnapshotChunk|null); + /** + * 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); - /** Request value. */ - public value?: ("echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"); + /** + * 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; - /** - * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. - * @param message Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.abci.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 }; - /** - * Encodes the specified Request message, length delimited. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. - * @param message Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.abci.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ScalarDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a Request message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Request - * @throws {Error} If the payload is 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.abci.Request; + /** ScalarType enum. */ + enum ScalarType { + SCALAR_TYPE_UNSPECIFIED = 0, + SCALAR_TYPE_STRING = 1, + SCALAR_TYPE_BYTES = 2 + } +} - /** - * Decodes a Request message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Request - * @throws {Error} If the 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.abci.Request; +/** Namespace tendermint. */ +export namespace tendermint { - /** - * Verifies a Request message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Namespace crypto. */ + namespace crypto { - /** - * Creates a Request message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Request - */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Request; + /** Properties of a Proof. */ + interface IProof { - /** - * Creates a plain object from a Request message. Also converts values to other types if specified. - * @param message Request - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.abci.Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Proof total */ + total?: (Long|null); - /** - * Converts this Request to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Proof index */ + index?: (Long|null); - /** Properties of a RequestEcho. */ - interface IRequestEcho { + /** Proof leaf_hash */ + leaf_hash?: (Uint8Array|null); - /** RequestEcho message */ - message?: (string|null); + /** Proof aunts */ + aunts?: (Uint8Array[]|null); } - /** Represents a RequestEcho. */ - class RequestEcho implements IRequestEcho { + /** Represents a Proof. */ + class Proof implements IProof { /** - * Constructs a new RequestEcho. + * Constructs a new Proof. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestEcho); + constructor(properties?: tendermint.crypto.IProof); - /** RequestEcho message. */ - public message: string; + /** Proof total. */ + public total: Long; + + /** Proof index. */ + public index: Long; + + /** Proof leaf_hash. */ + public leaf_hash: Uint8Array; + + /** Proof aunts. */ + public aunts: Uint8Array[]; /** - * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. - * @param message RequestEcho message or plain object to encode + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. + * @param message Proof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestEcho, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestEcho message, length delimited. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. - * @param message RequestEcho message or plain object to encode + * Encodes the specified Proof message, length delimited. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. + * @param message Proof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestEcho, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestEcho message from the specified reader or buffer. + * Decodes a Proof message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestEcho + * @returns Proof * @throws {Error} If the payload is 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.abci.RequestEcho; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.Proof; /** - * Decodes a RequestEcho message from the specified reader or buffer, length delimited. + * Decodes a Proof message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestEcho + * @returns Proof * @throws {Error} If the 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.abci.RequestEcho; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.Proof; /** - * Verifies a RequestEcho message. + * Verifies a Proof message. * @param message 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 RequestEcho message from a plain object. Also converts values to their respective internal types. + * Creates a Proof message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestEcho + * @returns Proof */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestEcho; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.Proof; /** - * Creates a plain object from a RequestEcho message. Also converts values to other types if specified. - * @param message RequestEcho + * Creates a plain object from a Proof message. Also converts values to other types if specified. + * @param message Proof * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestEcho, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.Proof, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestEcho to JSON. + * Converts this Proof to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestFlush. */ - interface IRequestFlush { + /** Properties of a ValueOp. */ + interface IValueOp { + + /** ValueOp key */ + key?: (Uint8Array|null); + + /** ValueOp proof */ + proof?: (tendermint.crypto.IProof|null); } - /** Represents a RequestFlush. */ - class RequestFlush implements IRequestFlush { + /** Represents a ValueOp. */ + class ValueOp implements IValueOp { /** - * Constructs a new RequestFlush. + * Constructs a new ValueOp. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestFlush); + constructor(properties?: tendermint.crypto.IValueOp); + + /** ValueOp key. */ + public key: Uint8Array; + + /** ValueOp proof. */ + public proof?: (tendermint.crypto.IProof|null); /** - * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. - * @param message RequestFlush message or plain object to encode + * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. + * @param message ValueOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IValueOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestFlush message, length delimited. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. - * @param message RequestFlush message or plain object to encode + * Encodes the specified ValueOp message, length delimited. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. + * @param message ValueOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IValueOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestFlush message from the specified reader or buffer. + * Decodes a ValueOp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestFlush + * @returns ValueOp * @throws {Error} If the payload is 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.abci.RequestFlush; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.ValueOp; /** - * Decodes a RequestFlush message from the specified reader or buffer, length delimited. + * Decodes a ValueOp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestFlush + * @returns ValueOp * @throws {Error} If the 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.abci.RequestFlush; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.ValueOp; /** - * Verifies a RequestFlush message. + * Verifies a ValueOp message. * @param message 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 RequestFlush message from a plain object. Also converts values to their respective internal types. + * Creates a ValueOp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestFlush + * @returns ValueOp */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestFlush; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.ValueOp; /** - * Creates a plain object from a RequestFlush message. Also converts values to other types if specified. - * @param message RequestFlush + * Creates a plain object from a ValueOp message. Also converts values to other types if specified. + * @param message ValueOp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestFlush, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.ValueOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestFlush to JSON. + * Converts this ValueOp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestInfo. */ - interface IRequestInfo { + /** Properties of a DominoOp. */ + interface IDominoOp { - /** RequestInfo version */ - version?: (string|null); + /** DominoOp key */ + key?: (string|null); - /** RequestInfo block_version */ - block_version?: (Long|null); + /** DominoOp input */ + input?: (string|null); - /** RequestInfo p2p_version */ - p2p_version?: (Long|null); + /** DominoOp output */ + output?: (string|null); } - /** Represents a RequestInfo. */ - class RequestInfo implements IRequestInfo { + /** Represents a DominoOp. */ + class DominoOp implements IDominoOp { /** - * Constructs a new RequestInfo. + * Constructs a new DominoOp. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestInfo); + constructor(properties?: tendermint.crypto.IDominoOp); - /** RequestInfo version. */ - public version: string; + /** DominoOp key. */ + public key: string; - /** RequestInfo block_version. */ - public block_version: Long; + /** DominoOp input. */ + public input: string; - /** RequestInfo p2p_version. */ - public p2p_version: Long; + /** DominoOp output. */ + public output: string; /** - * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. - * @param message RequestInfo message or plain object to encode + * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. + * @param message DominoOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IDominoOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. - * @param message RequestInfo message or plain object to encode + * Encodes the specified DominoOp message, length delimited. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. + * @param message DominoOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IDominoOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestInfo message from the specified reader or buffer. + * Decodes a DominoOp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestInfo + * @returns DominoOp * @throws {Error} If the payload is 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.abci.RequestInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.DominoOp; /** - * Decodes a RequestInfo message from the specified reader or buffer, length delimited. + * Decodes a DominoOp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestInfo + * @returns DominoOp * @throws {Error} If the 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.abci.RequestInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.DominoOp; /** - * Verifies a RequestInfo message. + * Verifies a DominoOp message. * @param message 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 RequestInfo message from a plain object. Also converts values to their respective internal types. + * Creates a DominoOp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestInfo + * @returns DominoOp */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestInfo; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.DominoOp; /** - * Creates a plain object from a RequestInfo message. Also converts values to other types if specified. - * @param message RequestInfo + * Creates a plain object from a DominoOp message. Also converts values to other types if specified. + * @param message DominoOp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.DominoOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestInfo to JSON. + * Converts this DominoOp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestSetOption. */ - interface IRequestSetOption { + /** Properties of a ProofOp. */ + interface IProofOp { - /** RequestSetOption key */ - key?: (string|null); + /** ProofOp type */ + type?: (string|null); - /** RequestSetOption value */ - value?: (string|null); + /** ProofOp key */ + key?: (Uint8Array|null); + + /** ProofOp data */ + data?: (Uint8Array|null); } - /** Represents a RequestSetOption. */ - class RequestSetOption implements IRequestSetOption { + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { /** - * Constructs a new RequestSetOption. + * Constructs a new ProofOp. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestSetOption); + constructor(properties?: tendermint.crypto.IProofOp); - /** RequestSetOption key. */ - public key: string; + /** ProofOp type. */ + public type: string; - /** RequestSetOption value. */ - public value: string; + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; /** - * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. - * @param message RequestSetOption message or plain object to encode + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. + * @param message ProofOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestSetOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IProofOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestSetOption message, length delimited. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. - * @param message RequestSetOption message or plain object to encode + * Encodes the specified ProofOp message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. + * @param message ProofOp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestSetOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IProofOp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestSetOption message from the specified reader or buffer. + * Decodes a ProofOp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestSetOption + * @returns ProofOp * @throws {Error} If the payload is 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.abci.RequestSetOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.ProofOp; /** - * Decodes a RequestSetOption message from the specified reader or buffer, length delimited. + * Decodes a ProofOp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestSetOption + * @returns ProofOp * @throws {Error} If the 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.abci.RequestSetOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.ProofOp; /** - * Verifies a RequestSetOption message. + * Verifies a ProofOp message. * @param message 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 RequestSetOption message from a plain object. Also converts values to their respective internal types. + * Creates a ProofOp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestSetOption + * @returns ProofOp */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestSetOption; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.ProofOp; /** - * Creates a plain object from a RequestSetOption message. Also converts values to other types if specified. - * @param message RequestSetOption + * Creates a plain object from a ProofOp message. Also converts values to other types if specified. + * @param message ProofOp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestSetOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.ProofOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestSetOption to JSON. + * Converts this ProofOp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestInitChain. */ - interface IRequestInitChain { - - /** RequestInitChain time */ - time?: (google.protobuf.ITimestamp|null); - - /** RequestInitChain chain_id */ - chain_id?: (string|null); - - /** RequestInitChain consensus_params */ - consensus_params?: (tendermint.abci.IConsensusParams|null); - - /** RequestInitChain validators */ - validators?: (tendermint.abci.IValidatorUpdate[]|null); - - /** RequestInitChain app_state_bytes */ - app_state_bytes?: (Uint8Array|null); - - /** RequestInitChain initial_height */ - initial_height?: (Long|null); - } - - /** Represents a RequestInitChain. */ - class RequestInitChain implements IRequestInitChain { - - /** - * Constructs a new RequestInitChain. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.abci.IRequestInitChain); - - /** RequestInitChain time. */ - public time?: (google.protobuf.ITimestamp|null); - - /** RequestInitChain chain_id. */ - public chain_id: string; + /** Properties of a ProofOps. */ + interface IProofOps { - /** RequestInitChain consensus_params. */ - public consensus_params?: (tendermint.abci.IConsensusParams|null); + /** ProofOps ops */ + ops?: (tendermint.crypto.IProofOp[]|null); + } - /** RequestInitChain validators. */ - public validators: tendermint.abci.IValidatorUpdate[]; + /** Represents a ProofOps. */ + class ProofOps implements IProofOps { - /** RequestInitChain app_state_bytes. */ - public app_state_bytes: Uint8Array; + /** + * Constructs a new ProofOps. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.crypto.IProofOps); - /** RequestInitChain initial_height. */ - public initial_height: Long; + /** ProofOps ops. */ + public ops: tendermint.crypto.IProofOp[]; /** - * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. - * @param message RequestInitChain message or plain object to encode + * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. + * @param message ProofOps message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestInitChain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IProofOps, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestInitChain message, length delimited. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. - * @param message RequestInitChain message or plain object to encode + * Encodes the specified ProofOps message, length delimited. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. + * @param message ProofOps message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestInitChain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IProofOps, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestInitChain message from the specified reader or buffer. + * Decodes a ProofOps message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestInitChain + * @returns ProofOps * @throws {Error} If the payload is 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.abci.RequestInitChain; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.ProofOps; /** - * Decodes a RequestInitChain message from the specified reader or buffer, length delimited. + * Decodes a ProofOps message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestInitChain + * @returns ProofOps * @throws {Error} If the 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.abci.RequestInitChain; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.ProofOps; /** - * Verifies a RequestInitChain message. + * Verifies a ProofOps message. * @param message 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 RequestInitChain message from a plain object. Also converts values to their respective internal types. + * Creates a ProofOps message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestInitChain + * @returns ProofOps */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestInitChain; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.ProofOps; /** - * Creates a plain object from a RequestInitChain message. Also converts values to other types if specified. - * @param message RequestInitChain + * Creates a plain object from a ProofOps message. Also converts values to other types if specified. + * @param message ProofOps * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestInitChain, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.ProofOps, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestInitChain to JSON. + * Converts this ProofOps to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestQuery. */ - interface IRequestQuery { - - /** RequestQuery data */ - data?: (Uint8Array|null); - - /** RequestQuery path */ - path?: (string|null); + /** Properties of a PublicKey. */ + interface IPublicKey { - /** RequestQuery height */ - height?: (Long|null); + /** PublicKey ed25519 */ + ed25519?: (Uint8Array|null); - /** RequestQuery prove */ - prove?: (boolean|null); + /** PublicKey secp256k1 */ + secp256k1?: (Uint8Array|null); } - /** Represents a RequestQuery. */ - class RequestQuery implements IRequestQuery { + /** Represents a PublicKey. */ + class PublicKey implements IPublicKey { /** - * Constructs a new RequestQuery. + * Constructs a new PublicKey. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestQuery); - - /** RequestQuery data. */ - public data: Uint8Array; + constructor(properties?: tendermint.crypto.IPublicKey); - /** RequestQuery path. */ - public path: string; + /** PublicKey ed25519. */ + public ed25519?: (Uint8Array|null); - /** RequestQuery height. */ - public height: Long; + /** PublicKey secp256k1. */ + public secp256k1?: (Uint8Array|null); - /** RequestQuery prove. */ - public prove: boolean; + /** PublicKey sum. */ + public sum?: ("ed25519"|"secp256k1"); /** - * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. - * @param message RequestQuery message or plain object to encode + * Encodes the specified PublicKey message. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. + * @param message PublicKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.crypto.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestQuery message, length delimited. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. - * @param message RequestQuery message or plain object to encode + * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link tendermint.crypto.PublicKey.verify|verify} messages. + * @param message PublicKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.crypto.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestQuery message from the specified reader or buffer. + * Decodes a PublicKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestQuery + * @returns PublicKey * @throws {Error} If the payload is 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.abci.RequestQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.crypto.PublicKey; /** - * Decodes a RequestQuery message from the specified reader or buffer, length delimited. + * Decodes a PublicKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestQuery + * @returns PublicKey * @throws {Error} If the 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.abci.RequestQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.crypto.PublicKey; /** - * Verifies a RequestQuery message. + * Verifies a PublicKey message. * @param message 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 RequestQuery message from a plain object. Also converts values to their respective internal types. + * Creates a PublicKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestQuery + * @returns PublicKey */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestQuery; + public static fromObject(object: { [k: string]: any }): tendermint.crypto.PublicKey; /** - * Creates a plain object from a RequestQuery message. Also converts values to other types if specified. - * @param message RequestQuery + * Creates a plain object from a PublicKey message. Also converts values to other types if specified. + * @param message PublicKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.crypto.PublicKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestQuery to JSON. + * Converts this PublicKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a RequestBeginBlock. */ - interface IRequestBeginBlock { + /** Namespace abci. */ + namespace abci { - /** RequestBeginBlock hash */ - hash?: (Uint8Array|null); + /** Properties of a Request. */ + interface IRequest { - /** RequestBeginBlock header */ - header?: (tendermint.types.IHeader|null); + /** Request echo */ + echo?: (tendermint.abci.IRequestEcho|null); - /** RequestBeginBlock last_commit_info */ - last_commit_info?: (tendermint.abci.ILastCommitInfo|null); + /** Request flush */ + flush?: (tendermint.abci.IRequestFlush|null); - /** RequestBeginBlock byzantine_validators */ - byzantine_validators?: (tendermint.abci.IEvidence[]|null); - } + /** Request info */ + info?: (tendermint.abci.IRequestInfo|null); - /** Represents a RequestBeginBlock. */ - class RequestBeginBlock implements IRequestBeginBlock { + /** Request set_option */ + set_option?: (tendermint.abci.IRequestSetOption|null); - /** - * Constructs a new RequestBeginBlock. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.abci.IRequestBeginBlock); + /** Request init_chain */ + init_chain?: (tendermint.abci.IRequestInitChain|null); - /** RequestBeginBlock hash. */ - public hash: Uint8Array; + /** Request query */ + query?: (tendermint.abci.IRequestQuery|null); - /** RequestBeginBlock header. */ - public header?: (tendermint.types.IHeader|null); + /** Request begin_block */ + begin_block?: (tendermint.abci.IRequestBeginBlock|null); - /** RequestBeginBlock last_commit_info. */ - public last_commit_info?: (tendermint.abci.ILastCommitInfo|null); + /** Request check_tx */ + check_tx?: (tendermint.abci.IRequestCheckTx|null); - /** RequestBeginBlock byzantine_validators. */ - public byzantine_validators: tendermint.abci.IEvidence[]; + /** Request deliver_tx */ + deliver_tx?: (tendermint.abci.IRequestDeliverTx|null); - /** - * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. - * @param message RequestBeginBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.abci.IRequestBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; + /** Request end_block */ + end_block?: (tendermint.abci.IRequestEndBlock|null); - /** - * Encodes the specified RequestBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. - * @param message RequestBeginBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.abci.IRequestBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; + /** Request commit */ + commit?: (tendermint.abci.IRequestCommit|null); - /** - * Decodes a RequestBeginBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RequestBeginBlock - * @throws {Error} If the payload is 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.abci.RequestBeginBlock; + /** Request list_snapshots */ + list_snapshots?: (tendermint.abci.IRequestListSnapshots|null); + + /** Request offer_snapshot */ + offer_snapshot?: (tendermint.abci.IRequestOfferSnapshot|null); + + /** Request load_snapshot_chunk */ + load_snapshot_chunk?: (tendermint.abci.IRequestLoadSnapshotChunk|null); + + /** Request apply_snapshot_chunk */ + apply_snapshot_chunk?: (tendermint.abci.IRequestApplySnapshotChunk|null); + } + + /** Represents a Request. */ + class Request implements IRequest { /** - * Decodes a RequestBeginBlock message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RequestBeginBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new Request. + * @param [properties] Properties to set */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestBeginBlock; + constructor(properties?: tendermint.abci.IRequest); + + /** Request echo. */ + public echo?: (tendermint.abci.IRequestEcho|null); + + /** Request flush. */ + public flush?: (tendermint.abci.IRequestFlush|null); + + /** Request info. */ + public info?: (tendermint.abci.IRequestInfo|null); + + /** Request set_option. */ + public set_option?: (tendermint.abci.IRequestSetOption|null); - /** - * Verifies a RequestBeginBlock message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Request init_chain. */ + public init_chain?: (tendermint.abci.IRequestInitChain|null); - /** - * Creates a RequestBeginBlock message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RequestBeginBlock - */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestBeginBlock; + /** Request query. */ + public query?: (tendermint.abci.IRequestQuery|null); - /** - * Creates a plain object from a RequestBeginBlock message. Also converts values to other types if specified. - * @param message RequestBeginBlock - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.abci.RequestBeginBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Request begin_block. */ + public begin_block?: (tendermint.abci.IRequestBeginBlock|null); - /** - * Converts this RequestBeginBlock to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Request check_tx. */ + public check_tx?: (tendermint.abci.IRequestCheckTx|null); - /** CheckTxType enum. */ - enum CheckTxType { - NEW = 0, - RECHECK = 1 - } + /** Request deliver_tx. */ + public deliver_tx?: (tendermint.abci.IRequestDeliverTx|null); - /** Properties of a RequestCheckTx. */ - interface IRequestCheckTx { + /** Request end_block. */ + public end_block?: (tendermint.abci.IRequestEndBlock|null); - /** RequestCheckTx tx */ - tx?: (Uint8Array|null); + /** Request commit. */ + public commit?: (tendermint.abci.IRequestCommit|null); - /** RequestCheckTx type */ - type?: (tendermint.abci.CheckTxType|null); - } + /** Request list_snapshots. */ + public list_snapshots?: (tendermint.abci.IRequestListSnapshots|null); - /** Represents a RequestCheckTx. */ - class RequestCheckTx implements IRequestCheckTx { + /** Request offer_snapshot. */ + public offer_snapshot?: (tendermint.abci.IRequestOfferSnapshot|null); - /** - * Constructs a new RequestCheckTx. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.abci.IRequestCheckTx); + /** Request load_snapshot_chunk. */ + public load_snapshot_chunk?: (tendermint.abci.IRequestLoadSnapshotChunk|null); - /** RequestCheckTx tx. */ - public tx: Uint8Array; + /** Request apply_snapshot_chunk. */ + public apply_snapshot_chunk?: (tendermint.abci.IRequestApplySnapshotChunk|null); - /** RequestCheckTx type. */ - public type: tendermint.abci.CheckTxType; + /** Request value. */ + public value?: ("echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"); /** - * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. - * @param message RequestCheckTx message or plain object to encode + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. + * @param message Request message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. - * @param message RequestCheckTx message or plain object to encode + * Encodes the specified Request message, length delimited. Does not implicitly {@link tendermint.abci.Request.verify|verify} messages. + * @param message Request message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestCheckTx message from the specified reader or buffer. + * Decodes a Request message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestCheckTx + * @returns Request * @throws {Error} If the payload is 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.abci.RequestCheckTx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Request; /** - * Decodes a RequestCheckTx message from the specified reader or buffer, length delimited. + * Decodes a Request message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestCheckTx + * @returns Request * @throws {Error} If the 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.abci.RequestCheckTx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Request; /** - * Verifies a RequestCheckTx message. + * Verifies a Request message. * @param message 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 RequestCheckTx message from a plain object. Also converts values to their respective internal types. + * Creates a Request message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestCheckTx + * @returns Request */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestCheckTx; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Request; /** - * Creates a plain object from a RequestCheckTx message. Also converts values to other types if specified. - * @param message RequestCheckTx + * Creates a plain object from a Request message. Also converts values to other types if specified. + * @param message Request * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestCheckTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestCheckTx to JSON. + * Converts this Request to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestDeliverTx. */ - interface IRequestDeliverTx { + /** Properties of a RequestEcho. */ + interface IRequestEcho { - /** RequestDeliverTx tx */ - tx?: (Uint8Array|null); + /** RequestEcho message */ + message?: (string|null); } - /** Represents a RequestDeliverTx. */ - class RequestDeliverTx implements IRequestDeliverTx { + /** Represents a RequestEcho. */ + class RequestEcho implements IRequestEcho { /** - * Constructs a new RequestDeliverTx. + * Constructs a new RequestEcho. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestDeliverTx); + constructor(properties?: tendermint.abci.IRequestEcho); - /** RequestDeliverTx tx. */ - public tx: Uint8Array; + /** RequestEcho message. */ + public message: string; /** - * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. - * @param message RequestDeliverTx message or plain object to encode + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. + * @param message RequestEcho message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestEcho, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. - * @param message RequestDeliverTx message or plain object to encode + * Encodes the specified RequestEcho message, length delimited. Does not implicitly {@link tendermint.abci.RequestEcho.verify|verify} messages. + * @param message RequestEcho message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestEcho, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestDeliverTx message from the specified reader or buffer. + * Decodes a RequestEcho message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestDeliverTx + * @returns RequestEcho * @throws {Error} If the payload is 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.abci.RequestDeliverTx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestEcho; /** - * Decodes a RequestDeliverTx message from the specified reader or buffer, length delimited. + * Decodes a RequestEcho message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestDeliverTx + * @returns RequestEcho * @throws {Error} If the 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.abci.RequestDeliverTx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestEcho; /** - * Verifies a RequestDeliverTx message. + * Verifies a RequestEcho message. * @param message 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 RequestDeliverTx message from a plain object. Also converts values to their respective internal types. + * Creates a RequestEcho message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestDeliverTx + * @returns RequestEcho */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestDeliverTx; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestEcho; /** - * Creates a plain object from a RequestDeliverTx message. Also converts values to other types if specified. - * @param message RequestDeliverTx + * Creates a plain object from a RequestEcho message. Also converts values to other types if specified. + * @param message RequestEcho * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestDeliverTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestEcho, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestDeliverTx to JSON. + * Converts this RequestEcho to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestEndBlock. */ - interface IRequestEndBlock { - - /** RequestEndBlock height */ - height?: (Long|null); + /** Properties of a RequestFlush. */ + interface IRequestFlush { } - /** Represents a RequestEndBlock. */ - class RequestEndBlock implements IRequestEndBlock { + /** Represents a RequestFlush. */ + class RequestFlush implements IRequestFlush { /** - * Constructs a new RequestEndBlock. + * Constructs a new RequestFlush. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestEndBlock); - - /** RequestEndBlock height. */ - public height: Long; + constructor(properties?: tendermint.abci.IRequestFlush); /** - * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. - * @param message RequestEndBlock message or plain object to encode + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. + * @param message RequestFlush message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestFlush, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. - * @param message RequestEndBlock message or plain object to encode + * Encodes the specified RequestFlush message, length delimited. Does not implicitly {@link tendermint.abci.RequestFlush.verify|verify} messages. + * @param message RequestFlush message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestFlush, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestEndBlock message from the specified reader or buffer. + * Decodes a RequestFlush message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestEndBlock + * @returns RequestFlush * @throws {Error} If the payload is 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.abci.RequestEndBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestFlush; /** - * Decodes a RequestEndBlock message from the specified reader or buffer, length delimited. + * Decodes a RequestFlush message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestEndBlock + * @returns RequestFlush * @throws {Error} If the 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.abci.RequestEndBlock; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestFlush; /** - * Verifies a RequestEndBlock message. + * Verifies a RequestFlush message. * @param message 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 RequestEndBlock message from a plain object. Also converts values to their respective internal types. + * Creates a RequestFlush message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestEndBlock + * @returns RequestFlush */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestEndBlock; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestFlush; /** - * Creates a plain object from a RequestEndBlock message. Also converts values to other types if specified. - * @param message RequestEndBlock + * Creates a plain object from a RequestFlush message. Also converts values to other types if specified. + * @param message RequestFlush * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestEndBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestFlush, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestEndBlock to JSON. + * Converts this RequestFlush to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestCommit. */ - interface IRequestCommit { + /** Properties of a RequestInfo. */ + interface IRequestInfo { + + /** RequestInfo version */ + version?: (string|null); + + /** RequestInfo block_version */ + block_version?: (Long|null); + + /** RequestInfo p2p_version */ + p2p_version?: (Long|null); } - /** Represents a RequestCommit. */ - class RequestCommit implements IRequestCommit { + /** Represents a RequestInfo. */ + class RequestInfo implements IRequestInfo { /** - * Constructs a new RequestCommit. + * Constructs a new RequestInfo. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestCommit); + constructor(properties?: tendermint.abci.IRequestInfo); + + /** RequestInfo version. */ + public version: string; + + /** RequestInfo block_version. */ + public block_version: Long; + + /** RequestInfo p2p_version. */ + public p2p_version: Long; /** - * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. - * @param message RequestCommit message or plain object to encode + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. + * @param message RequestInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestCommit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestCommit message, length delimited. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. - * @param message RequestCommit message or plain object to encode + * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link tendermint.abci.RequestInfo.verify|verify} messages. + * @param message RequestInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestCommit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestCommit message from the specified reader or buffer. + * Decodes a RequestInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestCommit + * @returns RequestInfo * @throws {Error} If the payload is 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.abci.RequestCommit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestInfo; /** - * Decodes a RequestCommit message from the specified reader or buffer, length delimited. + * Decodes a RequestInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestCommit + * @returns RequestInfo * @throws {Error} If the 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.abci.RequestCommit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestInfo; /** - * Verifies a RequestCommit message. + * Verifies a RequestInfo message. * @param message 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 RequestCommit message from a plain object. Also converts values to their respective internal types. + * Creates a RequestInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestCommit + * @returns RequestInfo */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestCommit; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestInfo; /** - * Creates a plain object from a RequestCommit message. Also converts values to other types if specified. - * @param message RequestCommit + * Creates a plain object from a RequestInfo message. Also converts values to other types if specified. + * @param message RequestInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestCommit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestCommit to JSON. + * Converts this RequestInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestListSnapshots. */ - interface IRequestListSnapshots { + /** Properties of a RequestSetOption. */ + interface IRequestSetOption { + + /** RequestSetOption key */ + key?: (string|null); + + /** RequestSetOption value */ + value?: (string|null); } - /** Represents a RequestListSnapshots. */ - class RequestListSnapshots implements IRequestListSnapshots { + /** Represents a RequestSetOption. */ + class RequestSetOption implements IRequestSetOption { /** - * Constructs a new RequestListSnapshots. + * Constructs a new RequestSetOption. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestListSnapshots); + constructor(properties?: tendermint.abci.IRequestSetOption); + + /** RequestSetOption key. */ + public key: string; + + /** RequestSetOption value. */ + public value: string; /** - * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. - * @param message RequestListSnapshots message or plain object to encode + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. + * @param message RequestSetOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestSetOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. - * @param message RequestListSnapshots message or plain object to encode + * Encodes the specified RequestSetOption message, length delimited. Does not implicitly {@link tendermint.abci.RequestSetOption.verify|verify} messages. + * @param message RequestSetOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestSetOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestListSnapshots message from the specified reader or buffer. + * Decodes a RequestSetOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestListSnapshots + * @returns RequestSetOption * @throws {Error} If the payload is 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.abci.RequestListSnapshots; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestSetOption; /** - * Decodes a RequestListSnapshots message from the specified reader or buffer, length delimited. + * Decodes a RequestSetOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestListSnapshots + * @returns RequestSetOption * @throws {Error} If the 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.abci.RequestListSnapshots; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestSetOption; /** - * Verifies a RequestListSnapshots message. + * Verifies a RequestSetOption message. * @param message 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 RequestListSnapshots message from a plain object. Also converts values to their respective internal types. + * Creates a RequestSetOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestListSnapshots + * @returns RequestSetOption */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestListSnapshots; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestSetOption; /** - * Creates a plain object from a RequestListSnapshots message. Also converts values to other types if specified. - * @param message RequestListSnapshots + * Creates a plain object from a RequestSetOption message. Also converts values to other types if specified. + * @param message RequestSetOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestListSnapshots, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestSetOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestListSnapshots to JSON. + * Converts this RequestSetOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestOfferSnapshot. */ - interface IRequestOfferSnapshot { + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { - /** RequestOfferSnapshot snapshot */ - snapshot?: (tendermint.abci.ISnapshot|null); + /** RequestInitChain time */ + time?: (google.protobuf.ITimestamp|null); - /** RequestOfferSnapshot app_hash */ - app_hash?: (Uint8Array|null); + /** RequestInitChain chain_id */ + chain_id?: (string|null); + + /** RequestInitChain consensus_params */ + consensus_params?: (tendermint.abci.IConsensusParams|null); + + /** RequestInitChain validators */ + validators?: (tendermint.abci.IValidatorUpdate[]|null); + + /** RequestInitChain app_state_bytes */ + app_state_bytes?: (Uint8Array|null); + + /** RequestInitChain initial_height */ + initial_height?: (Long|null); } - /** Represents a RequestOfferSnapshot. */ - class RequestOfferSnapshot implements IRequestOfferSnapshot { + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { /** - * Constructs a new RequestOfferSnapshot. + * Constructs a new RequestInitChain. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestOfferSnapshot); + constructor(properties?: tendermint.abci.IRequestInitChain); - /** RequestOfferSnapshot snapshot. */ - public snapshot?: (tendermint.abci.ISnapshot|null); + /** RequestInitChain time. */ + public time?: (google.protobuf.ITimestamp|null); - /** RequestOfferSnapshot app_hash. */ - public app_hash: Uint8Array; + /** RequestInitChain chain_id. */ + public chain_id: string; + + /** RequestInitChain consensus_params. */ + public consensus_params?: (tendermint.abci.IConsensusParams|null); + + /** RequestInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** RequestInitChain app_state_bytes. */ + public app_state_bytes: Uint8Array; + + /** RequestInitChain initial_height. */ + public initial_height: Long; /** - * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. - * @param message RequestOfferSnapshot message or plain object to encode + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. + * @param message RequestInitChain message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestInitChain, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. - * @param message RequestOfferSnapshot message or plain object to encode + * Encodes the specified RequestInitChain message, length delimited. Does not implicitly {@link tendermint.abci.RequestInitChain.verify|verify} messages. + * @param message RequestInitChain message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestInitChain, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestOfferSnapshot message from the specified reader or buffer. + * Decodes a RequestInitChain message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestOfferSnapshot + * @returns RequestInitChain * @throws {Error} If the payload is 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.abci.RequestOfferSnapshot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestInitChain; /** - * Decodes a RequestOfferSnapshot message from the specified reader or buffer, length delimited. + * Decodes a RequestInitChain message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestOfferSnapshot + * @returns RequestInitChain * @throws {Error} If the 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.abci.RequestOfferSnapshot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestInitChain; /** - * Verifies a RequestOfferSnapshot message. + * Verifies a RequestInitChain message. * @param message 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 RequestOfferSnapshot message from a plain object. Also converts values to their respective internal types. + * Creates a RequestInitChain message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestOfferSnapshot + * @returns RequestInitChain */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestOfferSnapshot; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestInitChain; /** - * Creates a plain object from a RequestOfferSnapshot message. Also converts values to other types if specified. - * @param message RequestOfferSnapshot + * Creates a plain object from a RequestInitChain message. Also converts values to other types if specified. + * @param message RequestInitChain * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestOfferSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestInitChain, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestOfferSnapshot to JSON. + * Converts this RequestInitChain to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestLoadSnapshotChunk. */ - interface IRequestLoadSnapshotChunk { + /** Properties of a RequestQuery. */ + interface IRequestQuery { - /** RequestLoadSnapshotChunk height */ - height?: (Long|null); + /** RequestQuery data */ + data?: (Uint8Array|null); - /** RequestLoadSnapshotChunk format */ - format?: (number|null); + /** RequestQuery path */ + path?: (string|null); - /** RequestLoadSnapshotChunk chunk */ - chunk?: (number|null); + /** RequestQuery height */ + height?: (Long|null); + + /** RequestQuery prove */ + prove?: (boolean|null); } - /** Represents a RequestLoadSnapshotChunk. */ - class RequestLoadSnapshotChunk implements IRequestLoadSnapshotChunk { + /** Represents a RequestQuery. */ + class RequestQuery implements IRequestQuery { /** - * Constructs a new RequestLoadSnapshotChunk. + * Constructs a new RequestQuery. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestLoadSnapshotChunk); + constructor(properties?: tendermint.abci.IRequestQuery); - /** RequestLoadSnapshotChunk height. */ - public height: Long; + /** RequestQuery data. */ + public data: Uint8Array; - /** RequestLoadSnapshotChunk format. */ - public format: number; + /** RequestQuery path. */ + public path: string; - /** RequestLoadSnapshotChunk chunk. */ - public chunk: number; + /** RequestQuery height. */ + public height: Long; + + /** RequestQuery prove. */ + public prove: boolean; /** - * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. - * @param message RequestLoadSnapshotChunk message or plain object to encode + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. + * @param message RequestQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. - * @param message RequestLoadSnapshotChunk message or plain object to encode + * Encodes the specified RequestQuery message, length delimited. Does not implicitly {@link tendermint.abci.RequestQuery.verify|verify} messages. + * @param message RequestQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. + * Decodes a RequestQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestLoadSnapshotChunk + * @returns RequestQuery * @throws {Error} If the payload is 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.abci.RequestLoadSnapshotChunk; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestQuery; /** - * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a RequestQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestLoadSnapshotChunk + * @returns RequestQuery * @throws {Error} If the 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.abci.RequestLoadSnapshotChunk; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestQuery; /** - * Verifies a RequestLoadSnapshotChunk message. + * Verifies a RequestQuery message. * @param message 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 RequestLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a RequestQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestLoadSnapshotChunk + * @returns RequestQuery */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestLoadSnapshotChunk; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestQuery; /** - * Creates a plain object from a RequestLoadSnapshotChunk message. Also converts values to other types if specified. - * @param message RequestLoadSnapshotChunk + * Creates a plain object from a RequestQuery message. Also converts values to other types if specified. + * @param message RequestQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestLoadSnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestLoadSnapshotChunk to JSON. + * Converts this RequestQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RequestApplySnapshotChunk. */ - interface IRequestApplySnapshotChunk { + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { - /** RequestApplySnapshotChunk index */ - index?: (number|null); + /** RequestBeginBlock hash */ + hash?: (Uint8Array|null); - /** RequestApplySnapshotChunk chunk */ - chunk?: (Uint8Array|null); + /** RequestBeginBlock header */ + header?: (tendermint.types.IHeader|null); - /** RequestApplySnapshotChunk sender */ - sender?: (string|null); + /** RequestBeginBlock last_commit_info */ + last_commit_info?: (tendermint.abci.ILastCommitInfo|null); + + /** RequestBeginBlock byzantine_validators */ + byzantine_validators?: (tendermint.abci.IEvidence[]|null); } - /** Represents a RequestApplySnapshotChunk. */ - class RequestApplySnapshotChunk implements IRequestApplySnapshotChunk { + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { /** - * Constructs a new RequestApplySnapshotChunk. + * Constructs a new RequestBeginBlock. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IRequestApplySnapshotChunk); + constructor(properties?: tendermint.abci.IRequestBeginBlock); - /** RequestApplySnapshotChunk index. */ - public index: number; + /** RequestBeginBlock hash. */ + public hash: Uint8Array; - /** RequestApplySnapshotChunk chunk. */ - public chunk: Uint8Array; + /** RequestBeginBlock header. */ + public header?: (tendermint.types.IHeader|null); - /** RequestApplySnapshotChunk sender. */ - public sender: string; + /** RequestBeginBlock last_commit_info. */ + public last_commit_info?: (tendermint.abci.ILastCommitInfo|null); + + /** RequestBeginBlock byzantine_validators. */ + public byzantine_validators: tendermint.abci.IEvidence[]; /** - * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. - * @param message RequestApplySnapshotChunk message or plain object to encode + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. + * @param message RequestBeginBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IRequestApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RequestApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. - * @param message RequestApplySnapshotChunk message or plain object to encode + * Encodes the specified RequestBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestBeginBlock.verify|verify} messages. + * @param message RequestBeginBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IRequestApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. + * Decodes a RequestBeginBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RequestApplySnapshotChunk + * @returns RequestBeginBlock * @throws {Error} If the payload is 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.abci.RequestApplySnapshotChunk; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestBeginBlock; /** - * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a RequestBeginBlock message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RequestApplySnapshotChunk + * @returns RequestBeginBlock * @throws {Error} If the 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.abci.RequestApplySnapshotChunk; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestBeginBlock; /** - * Verifies a RequestApplySnapshotChunk message. + * Verifies a RequestBeginBlock message. * @param message 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 RequestApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a RequestBeginBlock message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RequestApplySnapshotChunk + * @returns RequestBeginBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestApplySnapshotChunk; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestBeginBlock; /** - * Creates a plain object from a RequestApplySnapshotChunk message. Also converts values to other types if specified. - * @param message RequestApplySnapshotChunk + * Creates a plain object from a RequestBeginBlock message. Also converts values to other types if specified. + * @param message RequestBeginBlock * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.RequestApplySnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestBeginBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RequestApplySnapshotChunk to JSON. + * Converts this RequestBeginBlock to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Response. */ - interface IResponse { - - /** Response exception */ - exception?: (tendermint.abci.IResponseException|null); - - /** Response echo */ - echo?: (tendermint.abci.IResponseEcho|null); - - /** Response flush */ - flush?: (tendermint.abci.IResponseFlush|null); - - /** Response info */ - info?: (tendermint.abci.IResponseInfo|null); - - /** Response set_option */ - set_option?: (tendermint.abci.IResponseSetOption|null); - - /** Response init_chain */ - init_chain?: (tendermint.abci.IResponseInitChain|null); - - /** Response query */ - query?: (tendermint.abci.IResponseQuery|null); - - /** Response begin_block */ - begin_block?: (tendermint.abci.IResponseBeginBlock|null); - - /** Response check_tx */ - check_tx?: (tendermint.abci.IResponseCheckTx|null); - - /** Response deliver_tx */ - deliver_tx?: (tendermint.abci.IResponseDeliverTx|null); - - /** Response end_block */ - end_block?: (tendermint.abci.IResponseEndBlock|null); - - /** Response commit */ - commit?: (tendermint.abci.IResponseCommit|null); - - /** Response list_snapshots */ - list_snapshots?: (tendermint.abci.IResponseListSnapshots|null); + /** CheckTxType enum. */ + enum CheckTxType { + NEW = 0, + RECHECK = 1 + } - /** Response offer_snapshot */ - offer_snapshot?: (tendermint.abci.IResponseOfferSnapshot|null); + /** Properties of a RequestCheckTx. */ + interface IRequestCheckTx { - /** Response load_snapshot_chunk */ - load_snapshot_chunk?: (tendermint.abci.IResponseLoadSnapshotChunk|null); + /** RequestCheckTx tx */ + tx?: (Uint8Array|null); - /** Response apply_snapshot_chunk */ - apply_snapshot_chunk?: (tendermint.abci.IResponseApplySnapshotChunk|null); + /** RequestCheckTx type */ + type?: (tendermint.abci.CheckTxType|null); } - /** Represents a Response. */ - class Response implements IResponse { + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { /** - * Constructs a new Response. + * Constructs a new RequestCheckTx. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponse); - - /** Response exception. */ - public exception?: (tendermint.abci.IResponseException|null); - - /** Response echo. */ - public echo?: (tendermint.abci.IResponseEcho|null); - - /** Response flush. */ - public flush?: (tendermint.abci.IResponseFlush|null); + constructor(properties?: tendermint.abci.IRequestCheckTx); - /** Response info. */ - public info?: (tendermint.abci.IResponseInfo|null); + /** RequestCheckTx tx. */ + public tx: Uint8Array; - /** Response set_option. */ - public set_option?: (tendermint.abci.IResponseSetOption|null); + /** RequestCheckTx type. */ + public type: tendermint.abci.CheckTxType; - /** Response init_chain. */ - public init_chain?: (tendermint.abci.IResponseInitChain|null); + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. + * @param message RequestCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tendermint.abci.IRequestCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; - /** Response query. */ - public query?: (tendermint.abci.IResponseQuery|null); + /** + * Encodes the specified RequestCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestCheckTx.verify|verify} messages. + * @param message RequestCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tendermint.abci.IRequestCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; - /** Response begin_block. */ - public begin_block?: (tendermint.abci.IResponseBeginBlock|null); + /** + * Decodes a RequestCheckTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestCheckTx + * @throws {Error} If the payload is 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.abci.RequestCheckTx; - /** Response check_tx. */ - public check_tx?: (tendermint.abci.IResponseCheckTx|null); + /** + * Decodes a RequestCheckTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestCheckTx + * @throws {Error} If the 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.abci.RequestCheckTx; - /** Response deliver_tx. */ - public deliver_tx?: (tendermint.abci.IResponseDeliverTx|null); + /** + * Verifies a RequestCheckTx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Response end_block. */ - public end_block?: (tendermint.abci.IResponseEndBlock|null); + /** + * Creates a RequestCheckTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestCheckTx + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestCheckTx; - /** Response commit. */ - public commit?: (tendermint.abci.IResponseCommit|null); + /** + * Creates a plain object from a RequestCheckTx message. Also converts values to other types if specified. + * @param message RequestCheckTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tendermint.abci.RequestCheckTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Response list_snapshots. */ - public list_snapshots?: (tendermint.abci.IResponseListSnapshots|null); + /** + * Converts this RequestCheckTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Response offer_snapshot. */ - public offer_snapshot?: (tendermint.abci.IResponseOfferSnapshot|null); + /** Properties of a RequestDeliverTx. */ + interface IRequestDeliverTx { - /** Response load_snapshot_chunk. */ - public load_snapshot_chunk?: (tendermint.abci.IResponseLoadSnapshotChunk|null); + /** RequestDeliverTx tx */ + tx?: (Uint8Array|null); + } - /** Response apply_snapshot_chunk. */ - public apply_snapshot_chunk?: (tendermint.abci.IResponseApplySnapshotChunk|null); + /** Represents a RequestDeliverTx. */ + class RequestDeliverTx implements IRequestDeliverTx { - /** Response value. */ - public value?: ("exception"|"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"); + /** + * Constructs a new RequestDeliverTx. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.IRequestDeliverTx); + + /** RequestDeliverTx tx. */ + public tx: Uint8Array; /** - * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. - * @param message Response message or plain object to encode + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. + * @param message RequestDeliverTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Response message, length delimited. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. - * @param message Response message or plain object to encode + * Encodes the specified RequestDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.RequestDeliverTx.verify|verify} messages. + * @param message RequestDeliverTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Response message from the specified reader or buffer. + * Decodes a RequestDeliverTx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Response + * @returns RequestDeliverTx * @throws {Error} If the payload is 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.abci.Response; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestDeliverTx; /** - * Decodes a Response message from the specified reader or buffer, length delimited. + * Decodes a RequestDeliverTx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Response + * @returns RequestDeliverTx * @throws {Error} If the 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.abci.Response; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestDeliverTx; /** - * Verifies a Response message. + * Verifies a RequestDeliverTx message. * @param message 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 Response message from a plain object. Also converts values to their respective internal types. + * Creates a RequestDeliverTx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Response + * @returns RequestDeliverTx */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Response; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestDeliverTx; /** - * Creates a plain object from a Response message. Also converts values to other types if specified. - * @param message Response + * Creates a plain object from a RequestDeliverTx message. Also converts values to other types if specified. + * @param message RequestDeliverTx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestDeliverTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Response to JSON. + * Converts this RequestDeliverTx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseException. */ - interface IResponseException { + /** Properties of a RequestEndBlock. */ + interface IRequestEndBlock { - /** ResponseException error */ - error?: (string|null); + /** RequestEndBlock height */ + height?: (Long|null); } - /** Represents a ResponseException. */ - class ResponseException implements IResponseException { + /** Represents a RequestEndBlock. */ + class RequestEndBlock implements IRequestEndBlock { /** - * Constructs a new ResponseException. + * Constructs a new RequestEndBlock. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseException); + constructor(properties?: tendermint.abci.IRequestEndBlock); - /** ResponseException error. */ - public error: string; + /** RequestEndBlock height. */ + public height: Long; /** - * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. - * @param message ResponseException message or plain object to encode + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. + * @param message RequestEndBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseException, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseException message, length delimited. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. - * @param message ResponseException message or plain object to encode + * Encodes the specified RequestEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.RequestEndBlock.verify|verify} messages. + * @param message RequestEndBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseException, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseException message from the specified reader or buffer. + * Decodes a RequestEndBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseException + * @returns RequestEndBlock * @throws {Error} If the payload is 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.abci.ResponseException; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestEndBlock; /** - * Decodes a ResponseException message from the specified reader or buffer, length delimited. + * Decodes a RequestEndBlock message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseException + * @returns RequestEndBlock * @throws {Error} If the 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.abci.ResponseException; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestEndBlock; /** - * Verifies a ResponseException message. + * Verifies a RequestEndBlock message. * @param message 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 ResponseException message from a plain object. Also converts values to their respective internal types. + * Creates a RequestEndBlock message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseException + * @returns RequestEndBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseException; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestEndBlock; /** - * Creates a plain object from a ResponseException message. Also converts values to other types if specified. - * @param message ResponseException + * Creates a plain object from a RequestEndBlock message. Also converts values to other types if specified. + * @param message RequestEndBlock * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseException, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestEndBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseException to JSON. + * Converts this RequestEndBlock to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseEcho. */ - interface IResponseEcho { - - /** ResponseEcho message */ - message?: (string|null); + /** Properties of a RequestCommit. */ + interface IRequestCommit { } - /** Represents a ResponseEcho. */ - class ResponseEcho implements IResponseEcho { + /** Represents a RequestCommit. */ + class RequestCommit implements IRequestCommit { /** - * Constructs a new ResponseEcho. + * Constructs a new RequestCommit. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseEcho); - - /** ResponseEcho message. */ - public message: string; + constructor(properties?: tendermint.abci.IRequestCommit); /** - * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. - * @param message ResponseEcho message or plain object to encode + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. + * @param message RequestCommit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseEcho, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestCommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseEcho message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. - * @param message ResponseEcho message or plain object to encode + * Encodes the specified RequestCommit message, length delimited. Does not implicitly {@link tendermint.abci.RequestCommit.verify|verify} messages. + * @param message RequestCommit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseEcho, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestCommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseEcho message from the specified reader or buffer. + * Decodes a RequestCommit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseEcho + * @returns RequestCommit * @throws {Error} If the payload is 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.abci.ResponseEcho; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestCommit; /** - * Decodes a ResponseEcho message from the specified reader or buffer, length delimited. + * Decodes a RequestCommit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseEcho + * @returns RequestCommit * @throws {Error} If the 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.abci.ResponseEcho; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestCommit; /** - * Verifies a ResponseEcho message. + * Verifies a RequestCommit message. * @param message 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 ResponseEcho message from a plain object. Also converts values to their respective internal types. + * Creates a RequestCommit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseEcho + * @returns RequestCommit */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseEcho; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestCommit; /** - * Creates a plain object from a ResponseEcho message. Also converts values to other types if specified. - * @param message ResponseEcho + * Creates a plain object from a RequestCommit message. Also converts values to other types if specified. + * @param message RequestCommit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseEcho, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestCommit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseEcho to JSON. + * Converts this RequestCommit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseFlush. */ - interface IResponseFlush { + /** Properties of a RequestListSnapshots. */ + interface IRequestListSnapshots { } - /** Represents a ResponseFlush. */ - class ResponseFlush implements IResponseFlush { + /** Represents a RequestListSnapshots. */ + class RequestListSnapshots implements IRequestListSnapshots { /** - * Constructs a new ResponseFlush. + * Constructs a new RequestListSnapshots. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseFlush); + constructor(properties?: tendermint.abci.IRequestListSnapshots); /** - * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. - * @param message ResponseFlush message or plain object to encode + * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * @param message RequestListSnapshots message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseFlush message, length delimited. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. - * @param message ResponseFlush message or plain object to encode + * Encodes the specified RequestListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * @param message RequestListSnapshots message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseFlush, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseFlush message from the specified reader or buffer. + * Decodes a RequestListSnapshots message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseFlush + * @returns RequestListSnapshots * @throws {Error} If the payload is 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.abci.ResponseFlush; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestListSnapshots; /** - * Decodes a ResponseFlush message from the specified reader or buffer, length delimited. + * Decodes a RequestListSnapshots message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseFlush + * @returns RequestListSnapshots * @throws {Error} If the 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.abci.ResponseFlush; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestListSnapshots; /** - * Verifies a ResponseFlush message. + * Verifies a RequestListSnapshots message. * @param message 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 ResponseFlush message from a plain object. Also converts values to their respective internal types. + * Creates a RequestListSnapshots message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseFlush + * @returns RequestListSnapshots */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseFlush; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestListSnapshots; /** - * Creates a plain object from a ResponseFlush message. Also converts values to other types if specified. - * @param message ResponseFlush + * Creates a plain object from a RequestListSnapshots message. Also converts values to other types if specified. + * @param message RequestListSnapshots * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseFlush, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestListSnapshots, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseFlush to JSON. + * Converts this RequestListSnapshots to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseInfo. */ - interface IResponseInfo { - - /** ResponseInfo data */ - data?: (string|null); - - /** ResponseInfo version */ - version?: (string|null); - - /** ResponseInfo app_version */ - app_version?: (Long|null); + /** Properties of a RequestOfferSnapshot. */ + interface IRequestOfferSnapshot { - /** ResponseInfo last_block_height */ - last_block_height?: (Long|null); + /** RequestOfferSnapshot snapshot */ + snapshot?: (tendermint.abci.ISnapshot|null); - /** ResponseInfo last_block_app_hash */ - last_block_app_hash?: (Uint8Array|null); + /** RequestOfferSnapshot app_hash */ + app_hash?: (Uint8Array|null); } - /** Represents a ResponseInfo. */ - class ResponseInfo implements IResponseInfo { + /** Represents a RequestOfferSnapshot. */ + class RequestOfferSnapshot implements IRequestOfferSnapshot { /** - * Constructs a new ResponseInfo. + * Constructs a new RequestOfferSnapshot. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseInfo); - - /** ResponseInfo data. */ - public data: string; - - /** ResponseInfo version. */ - public version: string; - - /** ResponseInfo app_version. */ - public app_version: Long; + constructor(properties?: tendermint.abci.IRequestOfferSnapshot); - /** ResponseInfo last_block_height. */ - public last_block_height: Long; + /** RequestOfferSnapshot snapshot. */ + public snapshot?: (tendermint.abci.ISnapshot|null); - /** ResponseInfo last_block_app_hash. */ - public last_block_app_hash: Uint8Array; + /** RequestOfferSnapshot app_hash. */ + public app_hash: Uint8Array; /** - * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. - * @param message ResponseInfo message or plain object to encode + * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * @param message RequestOfferSnapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseInfo message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. - * @param message ResponseInfo message or plain object to encode + * Encodes the specified RequestOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * @param message RequestOfferSnapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseInfo message from the specified reader or buffer. + * Decodes a RequestOfferSnapshot message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseInfo + * @returns RequestOfferSnapshot * @throws {Error} If the payload is 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.abci.ResponseInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestOfferSnapshot; /** - * Decodes a ResponseInfo message from the specified reader or buffer, length delimited. + * Decodes a RequestOfferSnapshot message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseInfo + * @returns RequestOfferSnapshot * @throws {Error} If the 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.abci.ResponseInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestOfferSnapshot; /** - * Verifies a ResponseInfo message. + * Verifies a RequestOfferSnapshot message. * @param message 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 ResponseInfo message from a plain object. Also converts values to their respective internal types. + * Creates a RequestOfferSnapshot message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseInfo + * @returns RequestOfferSnapshot */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseInfo; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestOfferSnapshot; /** - * Creates a plain object from a ResponseInfo message. Also converts values to other types if specified. - * @param message ResponseInfo + * Creates a plain object from a RequestOfferSnapshot message. Also converts values to other types if specified. + * @param message RequestOfferSnapshot * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestOfferSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseInfo to JSON. + * Converts this RequestOfferSnapshot to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseSetOption. */ - interface IResponseSetOption { + /** Properties of a RequestLoadSnapshotChunk. */ + interface IRequestLoadSnapshotChunk { - /** ResponseSetOption code */ - code?: (number|null); + /** RequestLoadSnapshotChunk height */ + height?: (Long|null); - /** ResponseSetOption log */ - log?: (string|null); + /** RequestLoadSnapshotChunk format */ + format?: (number|null); - /** ResponseSetOption info */ - info?: (string|null); + /** RequestLoadSnapshotChunk chunk */ + chunk?: (number|null); } - /** Represents a ResponseSetOption. */ - class ResponseSetOption implements IResponseSetOption { + /** Represents a RequestLoadSnapshotChunk. */ + class RequestLoadSnapshotChunk implements IRequestLoadSnapshotChunk { /** - * Constructs a new ResponseSetOption. + * Constructs a new RequestLoadSnapshotChunk. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseSetOption); + constructor(properties?: tendermint.abci.IRequestLoadSnapshotChunk); - /** ResponseSetOption code. */ - public code: number; + /** RequestLoadSnapshotChunk height. */ + public height: Long; - /** ResponseSetOption log. */ - public log: string; + /** RequestLoadSnapshotChunk format. */ + public format: number; - /** ResponseSetOption info. */ - public info: string; + /** RequestLoadSnapshotChunk chunk. */ + public chunk: number; /** - * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. - * @param message ResponseSetOption message or plain object to encode + * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * @param message RequestLoadSnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseSetOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseSetOption message, length delimited. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. - * @param message ResponseSetOption message or plain object to encode + * Encodes the specified RequestLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * @param message RequestLoadSnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseSetOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseSetOption message from the specified reader or buffer. + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseSetOption + * @returns RequestLoadSnapshotChunk * @throws {Error} If the payload is 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.abci.ResponseSetOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestLoadSnapshotChunk; /** - * Decodes a ResponseSetOption message from the specified reader or buffer, length delimited. + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseSetOption + * @returns RequestLoadSnapshotChunk * @throws {Error} If the 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.abci.ResponseSetOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestLoadSnapshotChunk; /** - * Verifies a ResponseSetOption message. + * Verifies a RequestLoadSnapshotChunk message. * @param message 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 ResponseSetOption message from a plain object. Also converts values to their respective internal types. + * Creates a RequestLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseSetOption + * @returns RequestLoadSnapshotChunk */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseSetOption; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestLoadSnapshotChunk; /** - * Creates a plain object from a ResponseSetOption message. Also converts values to other types if specified. - * @param message ResponseSetOption + * Creates a plain object from a RequestLoadSnapshotChunk message. Also converts values to other types if specified. + * @param message RequestLoadSnapshotChunk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseSetOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestLoadSnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseSetOption to JSON. + * Converts this RequestLoadSnapshotChunk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseInitChain. */ - interface IResponseInitChain { + /** Properties of a RequestApplySnapshotChunk. */ + interface IRequestApplySnapshotChunk { - /** ResponseInitChain consensus_params */ - consensus_params?: (tendermint.abci.IConsensusParams|null); + /** RequestApplySnapshotChunk index */ + index?: (number|null); - /** ResponseInitChain validators */ - validators?: (tendermint.abci.IValidatorUpdate[]|null); + /** RequestApplySnapshotChunk chunk */ + chunk?: (Uint8Array|null); - /** ResponseInitChain app_hash */ - app_hash?: (Uint8Array|null); + /** RequestApplySnapshotChunk sender */ + sender?: (string|null); } - /** Represents a ResponseInitChain. */ - class ResponseInitChain implements IResponseInitChain { + /** Represents a RequestApplySnapshotChunk. */ + class RequestApplySnapshotChunk implements IRequestApplySnapshotChunk { /** - * Constructs a new ResponseInitChain. + * Constructs a new RequestApplySnapshotChunk. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseInitChain); + constructor(properties?: tendermint.abci.IRequestApplySnapshotChunk); - /** ResponseInitChain consensus_params. */ - public consensus_params?: (tendermint.abci.IConsensusParams|null); + /** RequestApplySnapshotChunk index. */ + public index: number; - /** ResponseInitChain validators. */ - public validators: tendermint.abci.IValidatorUpdate[]; + /** RequestApplySnapshotChunk chunk. */ + public chunk: Uint8Array; - /** ResponseInitChain app_hash. */ - public app_hash: Uint8Array; + /** RequestApplySnapshotChunk sender. */ + public sender: string; /** - * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. - * @param message ResponseInitChain message or plain object to encode + * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * @param message RequestApplySnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseInitChain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IRequestApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseInitChain message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. - * @param message ResponseInitChain message or plain object to encode + * Encodes the specified RequestApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * @param message RequestApplySnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseInitChain, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IRequestApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseInitChain message from the specified reader or buffer. + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseInitChain + * @returns RequestApplySnapshotChunk * @throws {Error} If the payload is 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.abci.ResponseInitChain; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.RequestApplySnapshotChunk; /** - * Decodes a ResponseInitChain message from the specified reader or buffer, length delimited. + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseInitChain + * @returns RequestApplySnapshotChunk * @throws {Error} If the 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.abci.ResponseInitChain; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.RequestApplySnapshotChunk; /** - * Verifies a ResponseInitChain message. + * Verifies a RequestApplySnapshotChunk message. * @param message 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 ResponseInitChain message from a plain object. Also converts values to their respective internal types. + * Creates a RequestApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseInitChain + * @returns RequestApplySnapshotChunk */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseInitChain; + public static fromObject(object: { [k: string]: any }): tendermint.abci.RequestApplySnapshotChunk; /** - * Creates a plain object from a ResponseInitChain message. Also converts values to other types if specified. - * @param message ResponseInitChain + * Creates a plain object from a RequestApplySnapshotChunk message. Also converts values to other types if specified. + * @param message RequestApplySnapshotChunk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseInitChain, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.RequestApplySnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseInitChain to JSON. + * Converts this RequestApplySnapshotChunk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseQuery. */ - interface IResponseQuery { + /** Properties of a Response. */ + interface IResponse { - /** ResponseQuery code */ - code?: (number|null); + /** Response exception */ + exception?: (tendermint.abci.IResponseException|null); - /** ResponseQuery log */ - log?: (string|null); + /** Response echo */ + echo?: (tendermint.abci.IResponseEcho|null); + + /** Response flush */ + flush?: (tendermint.abci.IResponseFlush|null); + + /** Response info */ + info?: (tendermint.abci.IResponseInfo|null); + + /** Response set_option */ + set_option?: (tendermint.abci.IResponseSetOption|null); + + /** Response init_chain */ + init_chain?: (tendermint.abci.IResponseInitChain|null); + + /** Response query */ + query?: (tendermint.abci.IResponseQuery|null); + + /** Response begin_block */ + begin_block?: (tendermint.abci.IResponseBeginBlock|null); + + /** Response check_tx */ + check_tx?: (tendermint.abci.IResponseCheckTx|null); - /** ResponseQuery info */ - info?: (string|null); + /** Response deliver_tx */ + deliver_tx?: (tendermint.abci.IResponseDeliverTx|null); - /** ResponseQuery index */ - index?: (Long|null); + /** Response end_block */ + end_block?: (tendermint.abci.IResponseEndBlock|null); - /** ResponseQuery key */ - key?: (Uint8Array|null); + /** Response commit */ + commit?: (tendermint.abci.IResponseCommit|null); - /** ResponseQuery value */ - value?: (Uint8Array|null); + /** Response list_snapshots */ + list_snapshots?: (tendermint.abci.IResponseListSnapshots|null); - /** ResponseQuery proof_ops */ - proof_ops?: (tendermint.crypto.IProofOps|null); + /** Response offer_snapshot */ + offer_snapshot?: (tendermint.abci.IResponseOfferSnapshot|null); - /** ResponseQuery height */ - height?: (Long|null); + /** Response load_snapshot_chunk */ + load_snapshot_chunk?: (tendermint.abci.IResponseLoadSnapshotChunk|null); - /** ResponseQuery codespace */ - codespace?: (string|null); + /** Response apply_snapshot_chunk */ + apply_snapshot_chunk?: (tendermint.abci.IResponseApplySnapshotChunk|null); } - /** Represents a ResponseQuery. */ - class ResponseQuery implements IResponseQuery { + /** Represents a Response. */ + class Response implements IResponse { /** - * Constructs a new ResponseQuery. + * Constructs a new Response. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseQuery); + constructor(properties?: tendermint.abci.IResponse); - /** ResponseQuery code. */ - public code: number; + /** Response exception. */ + public exception?: (tendermint.abci.IResponseException|null); - /** ResponseQuery log. */ - public log: string; + /** Response echo. */ + public echo?: (tendermint.abci.IResponseEcho|null); - /** ResponseQuery info. */ - public info: string; + /** Response flush. */ + public flush?: (tendermint.abci.IResponseFlush|null); - /** ResponseQuery index. */ - public index: Long; + /** Response info. */ + public info?: (tendermint.abci.IResponseInfo|null); - /** ResponseQuery key. */ - public key: Uint8Array; + /** Response set_option. */ + public set_option?: (tendermint.abci.IResponseSetOption|null); - /** ResponseQuery value. */ - public value: Uint8Array; + /** Response init_chain. */ + public init_chain?: (tendermint.abci.IResponseInitChain|null); - /** ResponseQuery proof_ops. */ - public proof_ops?: (tendermint.crypto.IProofOps|null); + /** Response query. */ + public query?: (tendermint.abci.IResponseQuery|null); - /** ResponseQuery height. */ - public height: Long; + /** Response begin_block. */ + public begin_block?: (tendermint.abci.IResponseBeginBlock|null); - /** ResponseQuery codespace. */ - public codespace: string; + /** Response check_tx. */ + public check_tx?: (tendermint.abci.IResponseCheckTx|null); + + /** Response deliver_tx. */ + public deliver_tx?: (tendermint.abci.IResponseDeliverTx|null); + + /** Response end_block. */ + public end_block?: (tendermint.abci.IResponseEndBlock|null); + + /** Response commit. */ + public commit?: (tendermint.abci.IResponseCommit|null); + + /** Response list_snapshots. */ + public list_snapshots?: (tendermint.abci.IResponseListSnapshots|null); + + /** Response offer_snapshot. */ + public offer_snapshot?: (tendermint.abci.IResponseOfferSnapshot|null); + + /** Response load_snapshot_chunk. */ + public load_snapshot_chunk?: (tendermint.abci.IResponseLoadSnapshotChunk|null); + + /** Response apply_snapshot_chunk. */ + public apply_snapshot_chunk?: (tendermint.abci.IResponseApplySnapshotChunk|null); + + /** Response value. */ + public value?: ("exception"|"echo"|"flush"|"info"|"set_option"|"init_chain"|"query"|"begin_block"|"check_tx"|"deliver_tx"|"end_block"|"commit"|"list_snapshots"|"offer_snapshot"|"load_snapshot_chunk"|"apply_snapshot_chunk"); /** - * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. - * @param message ResponseQuery message or plain object to encode + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. + * @param message Response message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseQuery message, length delimited. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. - * @param message ResponseQuery message or plain object to encode + * Encodes the specified Response message, length delimited. Does not implicitly {@link tendermint.abci.Response.verify|verify} messages. + * @param message Response message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseQuery message from the specified reader or buffer. + * Decodes a Response message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseQuery + * @returns Response * @throws {Error} If the payload is 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.abci.ResponseQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Response; /** - * Decodes a ResponseQuery message from the specified reader or buffer, length delimited. + * Decodes a Response message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseQuery + * @returns Response * @throws {Error} If the 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.abci.ResponseQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Response; /** - * Verifies a ResponseQuery message. + * Verifies a Response message. * @param message 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 ResponseQuery message from a plain object. Also converts values to their respective internal types. + * Creates a Response message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseQuery + * @returns Response */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseQuery; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Response; /** - * Creates a plain object from a ResponseQuery message. Also converts values to other types if specified. - * @param message ResponseQuery + * Creates a plain object from a Response message. Also converts values to other types if specified. + * @param message Response * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseQuery to JSON. + * Converts this Response to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseBeginBlock. */ - interface IResponseBeginBlock { + /** Properties of a ResponseException. */ + interface IResponseException { - /** ResponseBeginBlock events */ - events?: (tendermint.abci.IEvent[]|null); + /** ResponseException error */ + error?: (string|null); } - /** Represents a ResponseBeginBlock. */ - class ResponseBeginBlock implements IResponseBeginBlock { + /** Represents a ResponseException. */ + class ResponseException implements IResponseException { /** - * Constructs a new ResponseBeginBlock. + * Constructs a new ResponseException. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseBeginBlock); + constructor(properties?: tendermint.abci.IResponseException); - /** ResponseBeginBlock events. */ - public events: tendermint.abci.IEvent[]; + /** ResponseException error. */ + public error: string; /** - * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. - * @param message ResponseBeginBlock message or plain object to encode + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. + * @param message ResponseException message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseException, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. - * @param message ResponseBeginBlock message or plain object to encode + * Encodes the specified ResponseException message, length delimited. Does not implicitly {@link tendermint.abci.ResponseException.verify|verify} messages. + * @param message ResponseException message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseException, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer. + * Decodes a ResponseException message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseBeginBlock + * @returns ResponseException * @throws {Error} If the payload is 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.abci.ResponseBeginBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseException; /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer, length delimited. + * Decodes a ResponseException message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseBeginBlock + * @returns ResponseException * @throws {Error} If the 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.abci.ResponseBeginBlock; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseException; /** - * Verifies a ResponseBeginBlock message. + * Verifies a ResponseException message. * @param message 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 ResponseBeginBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseException message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseBeginBlock + * @returns ResponseException */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseBeginBlock; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseException; /** - * Creates a plain object from a ResponseBeginBlock message. Also converts values to other types if specified. - * @param message ResponseBeginBlock + * Creates a plain object from a ResponseException message. Also converts values to other types if specified. + * @param message ResponseException * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseBeginBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseException, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseBeginBlock to JSON. + * Converts this ResponseException to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseCheckTx. */ - interface IResponseCheckTx { - - /** ResponseCheckTx code */ - code?: (number|null); - - /** ResponseCheckTx data */ - data?: (Uint8Array|null); - - /** ResponseCheckTx log */ - log?: (string|null); - - /** ResponseCheckTx info */ - info?: (string|null); - - /** ResponseCheckTx gas_wanted */ - gas_wanted?: (Long|null); - - /** ResponseCheckTx gas_used */ - gas_used?: (Long|null); - - /** ResponseCheckTx events */ - events?: (tendermint.abci.IEvent[]|null); + /** Properties of a ResponseEcho. */ + interface IResponseEcho { - /** ResponseCheckTx codespace */ - codespace?: (string|null); + /** ResponseEcho message */ + message?: (string|null); } - /** Represents a ResponseCheckTx. */ - class ResponseCheckTx implements IResponseCheckTx { - - /** - * Constructs a new ResponseCheckTx. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.abci.IResponseCheckTx); - - /** ResponseCheckTx code. */ - public code: number; - - /** ResponseCheckTx data. */ - public data: Uint8Array; - - /** ResponseCheckTx log. */ - public log: string; - - /** ResponseCheckTx info. */ - public info: string; - - /** ResponseCheckTx gas_wanted. */ - public gas_wanted: Long; - - /** ResponseCheckTx gas_used. */ - public gas_used: Long; - - /** ResponseCheckTx events. */ - public events: tendermint.abci.IEvent[]; + /** Represents a ResponseEcho. */ + class ResponseEcho implements IResponseEcho { - /** ResponseCheckTx codespace. */ - public codespace: string; + /** + * Constructs a new ResponseEcho. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.IResponseEcho); + + /** ResponseEcho message. */ + public message: string; /** - * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. - * @param message ResponseCheckTx message or plain object to encode + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. + * @param message ResponseEcho message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseEcho, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. - * @param message ResponseCheckTx message or plain object to encode + * Encodes the specified ResponseEcho message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEcho.verify|verify} messages. + * @param message ResponseEcho message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseEcho, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseCheckTx message from the specified reader or buffer. + * Decodes a ResponseEcho message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseCheckTx + * @returns ResponseEcho * @throws {Error} If the payload is 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.abci.ResponseCheckTx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseEcho; /** - * Decodes a ResponseCheckTx message from the specified reader or buffer, length delimited. + * Decodes a ResponseEcho message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseCheckTx + * @returns ResponseEcho * @throws {Error} If the 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.abci.ResponseCheckTx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseEcho; /** - * Verifies a ResponseCheckTx message. + * Verifies a ResponseEcho message. * @param message 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 ResponseCheckTx message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseEcho message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseCheckTx + * @returns ResponseEcho */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseCheckTx; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseEcho; /** - * Creates a plain object from a ResponseCheckTx message. Also converts values to other types if specified. - * @param message ResponseCheckTx + * Creates a plain object from a ResponseEcho message. Also converts values to other types if specified. + * @param message ResponseEcho * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseCheckTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseEcho, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseCheckTx to JSON. + * Converts this ResponseEcho to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseDeliverTx. */ - interface IResponseDeliverTx { - - /** ResponseDeliverTx code */ - code?: (number|null); - - /** ResponseDeliverTx data */ - data?: (Uint8Array|null); - - /** ResponseDeliverTx log */ - log?: (string|null); - - /** ResponseDeliverTx info */ - info?: (string|null); - - /** ResponseDeliverTx gas_wanted */ - gas_wanted?: (Long|null); - - /** ResponseDeliverTx gas_used */ - gas_used?: (Long|null); - - /** ResponseDeliverTx events */ - events?: (tendermint.abci.IEvent[]|null); - - /** ResponseDeliverTx codespace */ - codespace?: (string|null); + /** Properties of a ResponseFlush. */ + interface IResponseFlush { } - /** Represents a ResponseDeliverTx. */ - class ResponseDeliverTx implements IResponseDeliverTx { + /** Represents a ResponseFlush. */ + class ResponseFlush implements IResponseFlush { /** - * Constructs a new ResponseDeliverTx. + * Constructs a new ResponseFlush. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseDeliverTx); - - /** ResponseDeliverTx code. */ - public code: number; - - /** ResponseDeliverTx data. */ - public data: Uint8Array; - - /** ResponseDeliverTx log. */ - public log: string; - - /** ResponseDeliverTx info. */ - public info: string; - - /** ResponseDeliverTx gas_wanted. */ - public gas_wanted: Long; - - /** ResponseDeliverTx gas_used. */ - public gas_used: Long; - - /** ResponseDeliverTx events. */ - public events: tendermint.abci.IEvent[]; - - /** ResponseDeliverTx codespace. */ - public codespace: string; + constructor(properties?: tendermint.abci.IResponseFlush); /** - * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. - * @param message ResponseDeliverTx message or plain object to encode + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. + * @param message ResponseFlush message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseFlush, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. - * @param message ResponseDeliverTx message or plain object to encode + * Encodes the specified ResponseFlush message, length delimited. Does not implicitly {@link tendermint.abci.ResponseFlush.verify|verify} messages. + * @param message ResponseFlush message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseFlush, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer. + * Decodes a ResponseFlush message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseDeliverTx + * @returns ResponseFlush * @throws {Error} If the payload is 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.abci.ResponseDeliverTx; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseFlush; /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer, length delimited. + * Decodes a ResponseFlush message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseDeliverTx + * @returns ResponseFlush * @throws {Error} If the 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.abci.ResponseDeliverTx; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseFlush; /** - * Verifies a ResponseDeliverTx message. + * Verifies a ResponseFlush message. * @param message 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 ResponseDeliverTx message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseFlush message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseDeliverTx + * @returns ResponseFlush */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseDeliverTx; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseFlush; /** - * Creates a plain object from a ResponseDeliverTx message. Also converts values to other types if specified. - * @param message ResponseDeliverTx + * Creates a plain object from a ResponseFlush message. Also converts values to other types if specified. + * @param message ResponseFlush * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseDeliverTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseFlush, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseDeliverTx to JSON. + * Converts this ResponseFlush to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseEndBlock. */ - interface IResponseEndBlock { + /** Properties of a ResponseInfo. */ + interface IResponseInfo { - /** ResponseEndBlock validator_updates */ - validator_updates?: (tendermint.abci.IValidatorUpdate[]|null); + /** ResponseInfo data */ + data?: (string|null); - /** ResponseEndBlock consensus_param_updates */ - consensus_param_updates?: (tendermint.abci.IConsensusParams|null); + /** ResponseInfo version */ + version?: (string|null); - /** ResponseEndBlock events */ - events?: (tendermint.abci.IEvent[]|null); + /** ResponseInfo app_version */ + app_version?: (Long|null); + + /** ResponseInfo last_block_height */ + last_block_height?: (Long|null); + + /** ResponseInfo last_block_app_hash */ + last_block_app_hash?: (Uint8Array|null); } - /** Represents a ResponseEndBlock. */ - class ResponseEndBlock implements IResponseEndBlock { + /** Represents a ResponseInfo. */ + class ResponseInfo implements IResponseInfo { /** - * Constructs a new ResponseEndBlock. + * Constructs a new ResponseInfo. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseEndBlock); + constructor(properties?: tendermint.abci.IResponseInfo); - /** ResponseEndBlock validator_updates. */ - public validator_updates: tendermint.abci.IValidatorUpdate[]; + /** ResponseInfo data. */ + public data: string; - /** ResponseEndBlock consensus_param_updates. */ - public consensus_param_updates?: (tendermint.abci.IConsensusParams|null); + /** ResponseInfo version. */ + public version: string; - /** ResponseEndBlock events. */ - public events: tendermint.abci.IEvent[]; + /** ResponseInfo app_version. */ + public app_version: Long; + + /** ResponseInfo last_block_height. */ + public last_block_height: Long; + + /** ResponseInfo last_block_app_hash. */ + public last_block_app_hash: Uint8Array; /** - * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. - * @param message ResponseEndBlock message or plain object to encode + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. + * @param message ResponseInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. - * @param message ResponseEndBlock message or plain object to encode + * Encodes the specified ResponseInfo message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInfo.verify|verify} messages. + * @param message ResponseInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseEndBlock message from the specified reader or buffer. + * Decodes a ResponseInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseEndBlock + * @returns ResponseInfo * @throws {Error} If the payload is 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.abci.ResponseEndBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseInfo; /** - * Decodes a ResponseEndBlock message from the specified reader or buffer, length delimited. + * Decodes a ResponseInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseEndBlock + * @returns ResponseInfo * @throws {Error} If the 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.abci.ResponseEndBlock; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseInfo; /** - * Verifies a ResponseEndBlock message. + * Verifies a ResponseInfo message. * @param message 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 ResponseEndBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseEndBlock + * @returns ResponseInfo */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseEndBlock; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseInfo; /** - * Creates a plain object from a ResponseEndBlock message. Also converts values to other types if specified. - * @param message ResponseEndBlock + * Creates a plain object from a ResponseInfo message. Also converts values to other types if specified. + * @param message ResponseInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseEndBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseEndBlock to JSON. + * Converts this ResponseInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseCommit. */ - interface IResponseCommit { + /** Properties of a ResponseSetOption. */ + interface IResponseSetOption { - /** ResponseCommit data */ - data?: (Uint8Array|null); + /** ResponseSetOption code */ + code?: (number|null); - /** ResponseCommit retain_height */ - retain_height?: (Long|null); - } + /** ResponseSetOption log */ + log?: (string|null); - /** Represents a ResponseCommit. */ - class ResponseCommit implements IResponseCommit { + /** ResponseSetOption info */ + info?: (string|null); + } + + /** Represents a ResponseSetOption. */ + class ResponseSetOption implements IResponseSetOption { /** - * Constructs a new ResponseCommit. + * Constructs a new ResponseSetOption. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseCommit); + constructor(properties?: tendermint.abci.IResponseSetOption); - /** ResponseCommit data. */ - public data: Uint8Array; + /** ResponseSetOption code. */ + public code: number; - /** ResponseCommit retain_height. */ - public retain_height: Long; + /** ResponseSetOption log. */ + public log: string; + + /** ResponseSetOption info. */ + public info: string; /** - * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. - * @param message ResponseCommit message or plain object to encode + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. + * @param message ResponseSetOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseCommit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseSetOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseCommit message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. - * @param message ResponseCommit message or plain object to encode + * Encodes the specified ResponseSetOption message, length delimited. Does not implicitly {@link tendermint.abci.ResponseSetOption.verify|verify} messages. + * @param message ResponseSetOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseCommit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseSetOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseCommit message from the specified reader or buffer. + * Decodes a ResponseSetOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseCommit + * @returns ResponseSetOption * @throws {Error} If the payload is 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.abci.ResponseCommit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseSetOption; /** - * Decodes a ResponseCommit message from the specified reader or buffer, length delimited. + * Decodes a ResponseSetOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseCommit + * @returns ResponseSetOption * @throws {Error} If the 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.abci.ResponseCommit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseSetOption; /** - * Verifies a ResponseCommit message. + * Verifies a ResponseSetOption message. * @param message 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 ResponseCommit message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseSetOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseCommit + * @returns ResponseSetOption */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseCommit; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseSetOption; /** - * Creates a plain object from a ResponseCommit message. Also converts values to other types if specified. - * @param message ResponseCommit + * Creates a plain object from a ResponseSetOption message. Also converts values to other types if specified. + * @param message ResponseSetOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseCommit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseSetOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseCommit to JSON. + * Converts this ResponseSetOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseListSnapshots. */ - interface IResponseListSnapshots { + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { - /** ResponseListSnapshots snapshots */ - snapshots?: (tendermint.abci.ISnapshot[]|null); + /** ResponseInitChain consensus_params */ + consensus_params?: (tendermint.abci.IConsensusParams|null); + + /** ResponseInitChain validators */ + validators?: (tendermint.abci.IValidatorUpdate[]|null); + + /** ResponseInitChain app_hash */ + app_hash?: (Uint8Array|null); } - /** Represents a ResponseListSnapshots. */ - class ResponseListSnapshots implements IResponseListSnapshots { + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { /** - * Constructs a new ResponseListSnapshots. + * Constructs a new ResponseInitChain. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseListSnapshots); + constructor(properties?: tendermint.abci.IResponseInitChain); - /** ResponseListSnapshots snapshots. */ - public snapshots: tendermint.abci.ISnapshot[]; + /** ResponseInitChain consensus_params. */ + public consensus_params?: (tendermint.abci.IConsensusParams|null); + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** ResponseInitChain app_hash. */ + public app_hash: Uint8Array; /** - * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. - * @param message ResponseListSnapshots message or plain object to encode + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. + * @param message ResponseInitChain message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseInitChain, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. - * @param message ResponseListSnapshots message or plain object to encode + * Encodes the specified ResponseInitChain message, length delimited. Does not implicitly {@link tendermint.abci.ResponseInitChain.verify|verify} messages. + * @param message ResponseInitChain message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseInitChain, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseListSnapshots message from the specified reader or buffer. + * Decodes a ResponseInitChain message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseListSnapshots + * @returns ResponseInitChain * @throws {Error} If the payload is 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.abci.ResponseListSnapshots; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseInitChain; /** - * Decodes a ResponseListSnapshots message from the specified reader or buffer, length delimited. + * Decodes a ResponseInitChain message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseListSnapshots + * @returns ResponseInitChain * @throws {Error} If the 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.abci.ResponseListSnapshots; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseInitChain; /** - * Verifies a ResponseListSnapshots message. + * Verifies a ResponseInitChain message. * @param message 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 ResponseListSnapshots message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseInitChain message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseListSnapshots + * @returns ResponseInitChain */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseListSnapshots; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseInitChain; /** - * Creates a plain object from a ResponseListSnapshots message. Also converts values to other types if specified. - * @param message ResponseListSnapshots + * Creates a plain object from a ResponseInitChain message. Also converts values to other types if specified. + * @param message ResponseInitChain * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseListSnapshots, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseInitChain, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseListSnapshots to JSON. + * Converts this ResponseInitChain to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseOfferSnapshot. */ - interface IResponseOfferSnapshot { + /** Properties of a ResponseQuery. */ + interface IResponseQuery { - /** ResponseOfferSnapshot result */ - result?: (tendermint.abci.ResponseOfferSnapshot.Result|null); + /** ResponseQuery code */ + code?: (number|null); + + /** ResponseQuery log */ + log?: (string|null); + + /** ResponseQuery info */ + info?: (string|null); + + /** ResponseQuery index */ + index?: (Long|null); + + /** ResponseQuery key */ + key?: (Uint8Array|null); + + /** ResponseQuery value */ + value?: (Uint8Array|null); + + /** ResponseQuery proof_ops */ + proof_ops?: (tendermint.crypto.IProofOps|null); + + /** ResponseQuery height */ + height?: (Long|null); + + /** ResponseQuery codespace */ + codespace?: (string|null); } - /** Represents a ResponseOfferSnapshot. */ - class ResponseOfferSnapshot implements IResponseOfferSnapshot { + /** Represents a ResponseQuery. */ + class ResponseQuery implements IResponseQuery { /** - * Constructs a new ResponseOfferSnapshot. + * Constructs a new ResponseQuery. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseOfferSnapshot); + constructor(properties?: tendermint.abci.IResponseQuery); - /** ResponseOfferSnapshot result. */ - public result: tendermint.abci.ResponseOfferSnapshot.Result; + /** ResponseQuery code. */ + public code: number; + + /** ResponseQuery log. */ + public log: string; + + /** ResponseQuery info. */ + public info: string; + + /** ResponseQuery index. */ + public index: Long; + + /** ResponseQuery key. */ + public key: Uint8Array; + + /** ResponseQuery value. */ + public value: Uint8Array; + + /** ResponseQuery proof_ops. */ + public proof_ops?: (tendermint.crypto.IProofOps|null); + + /** ResponseQuery height. */ + public height: Long; + + /** ResponseQuery codespace. */ + public codespace: string; /** - * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. - * @param message ResponseOfferSnapshot message or plain object to encode + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. + * @param message ResponseQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. - * @param message ResponseOfferSnapshot message or plain object to encode + * Encodes the specified ResponseQuery message, length delimited. Does not implicitly {@link tendermint.abci.ResponseQuery.verify|verify} messages. + * @param message ResponseQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. + * Decodes a ResponseQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseOfferSnapshot + * @returns ResponseQuery * @throws {Error} If the payload is 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.abci.ResponseOfferSnapshot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseQuery; /** - * Decodes a ResponseOfferSnapshot message from the specified reader or buffer, length delimited. + * Decodes a ResponseQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseOfferSnapshot + * @returns ResponseQuery * @throws {Error} If the 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.abci.ResponseOfferSnapshot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseQuery; /** - * Verifies a ResponseOfferSnapshot message. + * Verifies a ResponseQuery message. * @param message 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 ResponseOfferSnapshot message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseOfferSnapshot + * @returns ResponseQuery */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseOfferSnapshot; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseQuery; /** - * Creates a plain object from a ResponseOfferSnapshot message. Also converts values to other types if specified. - * @param message ResponseOfferSnapshot + * Creates a plain object from a ResponseQuery message. Also converts values to other types if specified. + * @param message ResponseQuery * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.abci.ResponseOfferSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResponseOfferSnapshot to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ResponseOfferSnapshot { - - /** Result enum. */ - enum Result { - UNKNOWN = 0, - ACCEPT = 1, - ABORT = 2, - REJECT = 3, - REJECT_FORMAT = 4, - REJECT_SENDER = 5 - } + * @returns Plain object + */ + public static toObject(message: tendermint.abci.ResponseQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResponseQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseLoadSnapshotChunk. */ - interface IResponseLoadSnapshotChunk { + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { - /** ResponseLoadSnapshotChunk chunk */ - chunk?: (Uint8Array|null); + /** ResponseBeginBlock events */ + events?: (tendermint.abci.IEvent[]|null); } - /** Represents a ResponseLoadSnapshotChunk. */ - class ResponseLoadSnapshotChunk implements IResponseLoadSnapshotChunk { + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { /** - * Constructs a new ResponseLoadSnapshotChunk. + * Constructs a new ResponseBeginBlock. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseLoadSnapshotChunk); + constructor(properties?: tendermint.abci.IResponseBeginBlock); - /** ResponseLoadSnapshotChunk chunk. */ - public chunk: Uint8Array; + /** ResponseBeginBlock events. */ + public events: tendermint.abci.IEvent[]; /** - * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. - * @param message ResponseLoadSnapshotChunk message or plain object to encode + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. + * @param message ResponseBeginBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. - * @param message ResponseLoadSnapshotChunk message or plain object to encode + * Encodes the specified ResponseBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseBeginBlock.verify|verify} messages. + * @param message ResponseBeginBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseBeginBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. + * Decodes a ResponseBeginBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseLoadSnapshotChunk + * @returns ResponseBeginBlock * @throws {Error} If the payload is 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.abci.ResponseLoadSnapshotChunk; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseBeginBlock; /** - * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a ResponseBeginBlock message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseLoadSnapshotChunk + * @returns ResponseBeginBlock * @throws {Error} If the 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.abci.ResponseLoadSnapshotChunk; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseBeginBlock; /** - * Verifies a ResponseLoadSnapshotChunk message. + * Verifies a ResponseBeginBlock message. * @param message 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 ResponseLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseBeginBlock message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseLoadSnapshotChunk + * @returns ResponseBeginBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseLoadSnapshotChunk; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseBeginBlock; /** - * Creates a plain object from a ResponseLoadSnapshotChunk message. Also converts values to other types if specified. - * @param message ResponseLoadSnapshotChunk + * Creates a plain object from a ResponseBeginBlock message. Also converts values to other types if specified. + * @param message ResponseBeginBlock * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseLoadSnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseBeginBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseLoadSnapshotChunk to JSON. + * Converts this ResponseBeginBlock to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResponseApplySnapshotChunk. */ - interface IResponseApplySnapshotChunk { + /** Properties of a ResponseCheckTx. */ + interface IResponseCheckTx { - /** ResponseApplySnapshotChunk result */ - result?: (tendermint.abci.ResponseApplySnapshotChunk.Result|null); + /** ResponseCheckTx code */ + code?: (number|null); - /** ResponseApplySnapshotChunk refetch_chunks */ - refetch_chunks?: (number[]|null); + /** ResponseCheckTx data */ + data?: (Uint8Array|null); - /** ResponseApplySnapshotChunk reject_senders */ - reject_senders?: (string[]|null); + /** ResponseCheckTx log */ + log?: (string|null); + + /** ResponseCheckTx info */ + info?: (string|null); + + /** ResponseCheckTx gas_wanted */ + gas_wanted?: (Long|null); + + /** ResponseCheckTx gas_used */ + gas_used?: (Long|null); + + /** ResponseCheckTx events */ + events?: (tendermint.abci.IEvent[]|null); + + /** ResponseCheckTx codespace */ + codespace?: (string|null); } - /** Represents a ResponseApplySnapshotChunk. */ - class ResponseApplySnapshotChunk implements IResponseApplySnapshotChunk { + /** Represents a ResponseCheckTx. */ + class ResponseCheckTx implements IResponseCheckTx { /** - * Constructs a new ResponseApplySnapshotChunk. + * Constructs a new ResponseCheckTx. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IResponseApplySnapshotChunk); + constructor(properties?: tendermint.abci.IResponseCheckTx); - /** ResponseApplySnapshotChunk result. */ - public result: tendermint.abci.ResponseApplySnapshotChunk.Result; + /** ResponseCheckTx code. */ + public code: number; - /** ResponseApplySnapshotChunk refetch_chunks. */ - public refetch_chunks: number[]; + /** ResponseCheckTx data. */ + public data: Uint8Array; - /** ResponseApplySnapshotChunk reject_senders. */ - public reject_senders: string[]; + /** ResponseCheckTx log. */ + public log: string; + + /** ResponseCheckTx info. */ + public info: string; + + /** ResponseCheckTx gas_wanted. */ + public gas_wanted: Long; + + /** ResponseCheckTx gas_used. */ + public gas_used: Long; + + /** ResponseCheckTx events. */ + public events: tendermint.abci.IEvent[]; + + /** ResponseCheckTx codespace. */ + public codespace: string; /** - * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. - * @param message ResponseApplySnapshotChunk message or plain object to encode + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. + * @param message ResponseCheckTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IResponseApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. - * @param message ResponseApplySnapshotChunk message or plain object to encode + * Encodes the specified ResponseCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCheckTx.verify|verify} messages. + * @param message ResponseCheckTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IResponseApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseCheckTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. + * Decodes a ResponseCheckTx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseApplySnapshotChunk + * @returns ResponseCheckTx * @throws {Error} If the payload is 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.abci.ResponseApplySnapshotChunk; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseCheckTx; /** - * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer, length delimited. + * Decodes a ResponseCheckTx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseApplySnapshotChunk + * @returns ResponseCheckTx * @throws {Error} If the 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.abci.ResponseApplySnapshotChunk; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseCheckTx; /** - * Verifies a ResponseApplySnapshotChunk message. + * Verifies a ResponseCheckTx message. * @param message 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 ResponseApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseCheckTx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseApplySnapshotChunk + * @returns ResponseCheckTx */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseApplySnapshotChunk; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseCheckTx; /** - * Creates a plain object from a ResponseApplySnapshotChunk message. Also converts values to other types if specified. - * @param message ResponseApplySnapshotChunk + * Creates a plain object from a ResponseCheckTx message. Also converts values to other types if specified. + * @param message ResponseCheckTx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ResponseApplySnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseCheckTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseApplySnapshotChunk to JSON. + * Converts this ResponseCheckTx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ResponseApplySnapshotChunk { + /** Properties of a ResponseDeliverTx. */ + interface IResponseDeliverTx { - /** Result enum. */ - enum Result { - UNKNOWN = 0, - ACCEPT = 1, - ABORT = 2, - RETRY = 3, - RETRY_SNAPSHOT = 4, - REJECT_SNAPSHOT = 5 - } - } + /** ResponseDeliverTx code */ + code?: (number|null); - /** Properties of a ConsensusParams. */ - interface IConsensusParams { + /** ResponseDeliverTx data */ + data?: (Uint8Array|null); - /** ConsensusParams block */ - block?: (tendermint.abci.IBlockParams|null); + /** ResponseDeliverTx log */ + log?: (string|null); - /** ConsensusParams evidence */ - evidence?: (tendermint.types.IEvidenceParams|null); + /** ResponseDeliverTx info */ + info?: (string|null); - /** ConsensusParams validator */ - validator?: (tendermint.types.IValidatorParams|null); + /** ResponseDeliverTx gas_wanted */ + gas_wanted?: (Long|null); - /** ConsensusParams version */ - version?: (tendermint.types.IVersionParams|null); + /** ResponseDeliverTx gas_used */ + gas_used?: (Long|null); + + /** ResponseDeliverTx events */ + events?: (tendermint.abci.IEvent[]|null); + + /** ResponseDeliverTx codespace */ + codespace?: (string|null); } - /** Represents a ConsensusParams. */ - class ConsensusParams implements IConsensusParams { + /** Represents a ResponseDeliverTx. */ + class ResponseDeliverTx implements IResponseDeliverTx { /** - * Constructs a new ConsensusParams. + * Constructs a new ResponseDeliverTx. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IConsensusParams); + constructor(properties?: tendermint.abci.IResponseDeliverTx); - /** ConsensusParams block. */ - public block?: (tendermint.abci.IBlockParams|null); + /** ResponseDeliverTx code. */ + public code: number; - /** ConsensusParams evidence. */ - public evidence?: (tendermint.types.IEvidenceParams|null); + /** ResponseDeliverTx data. */ + public data: Uint8Array; - /** ConsensusParams validator. */ - public validator?: (tendermint.types.IValidatorParams|null); + /** ResponseDeliverTx log. */ + public log: string; - /** ConsensusParams version. */ - public version?: (tendermint.types.IVersionParams|null); + /** ResponseDeliverTx info. */ + public info: string; + + /** ResponseDeliverTx gas_wanted. */ + public gas_wanted: Long; + + /** ResponseDeliverTx gas_used. */ + public gas_used: Long; + + /** ResponseDeliverTx events. */ + public events: tendermint.abci.IEvent[]; + + /** ResponseDeliverTx codespace. */ + public codespace: string; /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. - * @param message ConsensusParams message or plain object to encode + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. + * @param message ResponseDeliverTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. - * @param message ConsensusParams message or plain object to encode + * Encodes the specified ResponseDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.ResponseDeliverTx.verify|verify} messages. + * @param message ResponseDeliverTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseDeliverTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConsensusParams message from the specified reader or buffer. + * Decodes a ResponseDeliverTx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConsensusParams + * @returns ResponseDeliverTx * @throws {Error} If the payload is 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.abci.ConsensusParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseDeliverTx; /** - * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. + * Decodes a ResponseDeliverTx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConsensusParams + * @returns ResponseDeliverTx * @throws {Error} If the 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.abci.ConsensusParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseDeliverTx; /** - * Verifies a ConsensusParams message. + * Verifies a ResponseDeliverTx message. * @param message 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 ConsensusParams message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseDeliverTx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConsensusParams + * @returns ResponseDeliverTx */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ConsensusParams; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseDeliverTx; /** - * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. - * @param message ConsensusParams + * Creates a plain object from a ResponseDeliverTx message. Also converts values to other types if specified. + * @param message ResponseDeliverTx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ConsensusParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseDeliverTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConsensusParams to JSON. + * Converts this ResponseDeliverTx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BlockParams. */ - interface IBlockParams { + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { - /** BlockParams max_bytes */ - max_bytes?: (Long|null); + /** ResponseEndBlock validator_updates */ + validator_updates?: (tendermint.abci.IValidatorUpdate[]|null); - /** BlockParams max_gas */ - max_gas?: (Long|null); + /** ResponseEndBlock consensus_param_updates */ + consensus_param_updates?: (tendermint.abci.IConsensusParams|null); + + /** ResponseEndBlock events */ + events?: (tendermint.abci.IEvent[]|null); } - /** Represents a BlockParams. */ - class BlockParams implements IBlockParams { + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { /** - * Constructs a new BlockParams. + * Constructs a new ResponseEndBlock. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IBlockParams); + constructor(properties?: tendermint.abci.IResponseEndBlock); - /** BlockParams max_bytes. */ - public max_bytes: Long; + /** ResponseEndBlock validator_updates. */ + public validator_updates: tendermint.abci.IValidatorUpdate[]; - /** BlockParams max_gas. */ - public max_gas: Long; + /** ResponseEndBlock consensus_param_updates. */ + public consensus_param_updates?: (tendermint.abci.IConsensusParams|null); + + /** ResponseEndBlock events. */ + public events: tendermint.abci.IEvent[]; /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. - * @param message BlockParams message or plain object to encode + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. + * @param message ResponseEndBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. - * @param message BlockParams message or plain object to encode + * Encodes the specified ResponseEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.ResponseEndBlock.verify|verify} messages. + * @param message ResponseEndBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseEndBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlockParams message from the specified reader or buffer. + * Decodes a ResponseEndBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlockParams + * @returns ResponseEndBlock * @throws {Error} If the payload is 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.abci.BlockParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseEndBlock; /** - * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * Decodes a ResponseEndBlock message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlockParams + * @returns ResponseEndBlock * @throws {Error} If the 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.abci.BlockParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseEndBlock; /** - * Verifies a BlockParams message. + * Verifies a ResponseEndBlock message. * @param message 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 BlockParams message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseEndBlock message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlockParams + * @returns ResponseEndBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.BlockParams; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseEndBlock; /** - * Creates a plain object from a BlockParams message. Also converts values to other types if specified. - * @param message BlockParams + * Creates a plain object from a ResponseEndBlock message. Also converts values to other types if specified. + * @param message ResponseEndBlock * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.BlockParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseEndBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BlockParams to JSON. + * Converts this ResponseEndBlock to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LastCommitInfo. */ - interface ILastCommitInfo { + /** Properties of a ResponseCommit. */ + interface IResponseCommit { - /** LastCommitInfo round */ - round?: (number|null); + /** ResponseCommit data */ + data?: (Uint8Array|null); - /** LastCommitInfo votes */ - votes?: (tendermint.abci.IVoteInfo[]|null); + /** ResponseCommit retain_height */ + retain_height?: (Long|null); } - /** Represents a LastCommitInfo. */ - class LastCommitInfo implements ILastCommitInfo { + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { /** - * Constructs a new LastCommitInfo. + * Constructs a new ResponseCommit. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.ILastCommitInfo); + constructor(properties?: tendermint.abci.IResponseCommit); - /** LastCommitInfo round. */ - public round: number; + /** ResponseCommit data. */ + public data: Uint8Array; - /** LastCommitInfo votes. */ - public votes: tendermint.abci.IVoteInfo[]; + /** ResponseCommit retain_height. */ + public retain_height: Long; /** - * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. - * @param message LastCommitInfo message or plain object to encode + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. + * @param message ResponseCommit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.ILastCommitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseCommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LastCommitInfo message, length delimited. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. - * @param message LastCommitInfo message or plain object to encode + * Encodes the specified ResponseCommit message, length delimited. Does not implicitly {@link tendermint.abci.ResponseCommit.verify|verify} messages. + * @param message ResponseCommit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.ILastCommitInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseCommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LastCommitInfo message from the specified reader or buffer. + * Decodes a ResponseCommit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LastCommitInfo + * @returns ResponseCommit * @throws {Error} If the payload is 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.abci.LastCommitInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseCommit; /** - * Decodes a LastCommitInfo message from the specified reader or buffer, length delimited. + * Decodes a ResponseCommit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LastCommitInfo + * @returns ResponseCommit * @throws {Error} If the 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.abci.LastCommitInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseCommit; /** - * Verifies a LastCommitInfo message. + * Verifies a ResponseCommit message. * @param message 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 LastCommitInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseCommit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LastCommitInfo + * @returns ResponseCommit */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.LastCommitInfo; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseCommit; /** - * Creates a plain object from a LastCommitInfo message. Also converts values to other types if specified. - * @param message LastCommitInfo + * Creates a plain object from a ResponseCommit message. Also converts values to other types if specified. + * @param message ResponseCommit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.LastCommitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseCommit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LastCommitInfo to JSON. + * Converts this ResponseCommit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Event. */ - interface IEvent { - - /** Event type */ - type?: (string|null); + /** Properties of a ResponseListSnapshots. */ + interface IResponseListSnapshots { - /** Event attributes */ - attributes?: (tendermint.abci.IEventAttribute[]|null); + /** ResponseListSnapshots snapshots */ + snapshots?: (tendermint.abci.ISnapshot[]|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a ResponseListSnapshots. */ + class ResponseListSnapshots implements IResponseListSnapshots { /** - * Constructs a new Event. + * Constructs a new ResponseListSnapshots. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IEvent); - - /** Event type. */ - public type: string; + constructor(properties?: tendermint.abci.IResponseListSnapshots); - /** Event attributes. */ - public attributes: tendermint.abci.IEventAttribute[]; + /** ResponseListSnapshots snapshots. */ + public snapshots: tendermint.abci.ISnapshot[]; /** - * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * @param message ResponseListSnapshots message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified ResponseListSnapshots message, length delimited. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * @param message ResponseListSnapshots message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseListSnapshots, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a ResponseListSnapshots message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns ResponseListSnapshots * @throws {Error} If the payload is 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.abci.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseListSnapshots; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a ResponseListSnapshots message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns ResponseListSnapshots * @throws {Error} If the 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.abci.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseListSnapshots; /** - * Verifies an Event message. + * Verifies a ResponseListSnapshots message. * @param message 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 Event message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseListSnapshots message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns ResponseListSnapshots */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Event; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseListSnapshots; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a ResponseListSnapshots message. Also converts values to other types if specified. + * @param message ResponseListSnapshots * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseListSnapshots, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this ResponseListSnapshots to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EventAttribute. */ - interface IEventAttribute { - - /** EventAttribute key */ - key?: (Uint8Array|null); - - /** EventAttribute value */ - value?: (Uint8Array|null); + /** Properties of a ResponseOfferSnapshot. */ + interface IResponseOfferSnapshot { - /** EventAttribute index */ - index?: (boolean|null); + /** ResponseOfferSnapshot result */ + result?: (tendermint.abci.ResponseOfferSnapshot.Result|null); } - /** Represents an EventAttribute. */ - class EventAttribute implements IEventAttribute { + /** Represents a ResponseOfferSnapshot. */ + class ResponseOfferSnapshot implements IResponseOfferSnapshot { /** - * Constructs a new EventAttribute. + * Constructs a new ResponseOfferSnapshot. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IEventAttribute); - - /** EventAttribute key. */ - public key: Uint8Array; - - /** EventAttribute value. */ - public value: Uint8Array; + constructor(properties?: tendermint.abci.IResponseOfferSnapshot); - /** EventAttribute index. */ - public index: boolean; + /** ResponseOfferSnapshot result. */ + public result: tendermint.abci.ResponseOfferSnapshot.Result; /** - * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. - * @param message EventAttribute message or plain object to encode + * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * @param message ResponseOfferSnapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IEventAttribute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventAttribute message, length delimited. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. - * @param message EventAttribute message or plain object to encode + * Encodes the specified ResponseOfferSnapshot message, length delimited. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * @param message ResponseOfferSnapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IEventAttribute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseOfferSnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventAttribute message from the specified reader or buffer. + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventAttribute + * @returns ResponseOfferSnapshot * @throws {Error} If the payload is 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.abci.EventAttribute; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseOfferSnapshot; /** - * Decodes an EventAttribute message from the specified reader or buffer, length delimited. + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventAttribute + * @returns ResponseOfferSnapshot * @throws {Error} If the 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.abci.EventAttribute; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseOfferSnapshot; /** - * Verifies an EventAttribute message. + * Verifies a ResponseOfferSnapshot message. * @param message 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 EventAttribute message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseOfferSnapshot message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventAttribute + * @returns ResponseOfferSnapshot */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.EventAttribute; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseOfferSnapshot; /** - * Creates a plain object from an EventAttribute message. Also converts values to other types if specified. - * @param message EventAttribute + * Creates a plain object from a ResponseOfferSnapshot message. Also converts values to other types if specified. + * @param message ResponseOfferSnapshot * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.EventAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseOfferSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventAttribute to JSON. + * Converts this ResponseOfferSnapshot to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TxResult. */ - interface ITxResult { - - /** TxResult height */ - height?: (Long|null); + namespace ResponseOfferSnapshot { - /** TxResult index */ - index?: (number|null); + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + REJECT = 3, + REJECT_FORMAT = 4, + REJECT_SENDER = 5 + } + } - /** TxResult tx */ - tx?: (Uint8Array|null); + /** Properties of a ResponseLoadSnapshotChunk. */ + interface IResponseLoadSnapshotChunk { - /** TxResult result */ - result?: (tendermint.abci.IResponseDeliverTx|null); + /** ResponseLoadSnapshotChunk chunk */ + chunk?: (Uint8Array|null); } - /** Represents a TxResult. */ - class TxResult implements ITxResult { + /** Represents a ResponseLoadSnapshotChunk. */ + class ResponseLoadSnapshotChunk implements IResponseLoadSnapshotChunk { /** - * Constructs a new TxResult. + * Constructs a new ResponseLoadSnapshotChunk. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.ITxResult); - - /** TxResult height. */ - public height: Long; - - /** TxResult index. */ - public index: number; - - /** TxResult tx. */ - public tx: Uint8Array; + constructor(properties?: tendermint.abci.IResponseLoadSnapshotChunk); - /** TxResult result. */ - public result?: (tendermint.abci.IResponseDeliverTx|null); + /** ResponseLoadSnapshotChunk chunk. */ + public chunk: Uint8Array; /** - * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. - * @param message TxResult message or plain object to encode + * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * @param message ResponseLoadSnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.ITxResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TxResult message, length delimited. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. - * @param message TxResult message or plain object to encode + * Encodes the specified ResponseLoadSnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * @param message ResponseLoadSnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.ITxResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseLoadSnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TxResult message from the specified reader or buffer. + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TxResult + * @returns ResponseLoadSnapshotChunk * @throws {Error} If the payload is 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.abci.TxResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseLoadSnapshotChunk; /** - * Decodes a TxResult message from the specified reader or buffer, length delimited. + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TxResult + * @returns ResponseLoadSnapshotChunk * @throws {Error} If the 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.abci.TxResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseLoadSnapshotChunk; /** - * Verifies a TxResult message. + * Verifies a ResponseLoadSnapshotChunk message. * @param message 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 TxResult message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseLoadSnapshotChunk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TxResult + * @returns ResponseLoadSnapshotChunk */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.TxResult; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseLoadSnapshotChunk; /** - * Creates a plain object from a TxResult message. Also converts values to other types if specified. - * @param message TxResult + * Creates a plain object from a ResponseLoadSnapshotChunk message. Also converts values to other types if specified. + * @param message ResponseLoadSnapshotChunk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.TxResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseLoadSnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TxResult to JSON. + * Converts this ResponseLoadSnapshotChunk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Validator. */ - interface IValidator { + /** Properties of a ResponseApplySnapshotChunk. */ + interface IResponseApplySnapshotChunk { - /** Validator address */ - address?: (Uint8Array|null); + /** ResponseApplySnapshotChunk result */ + result?: (tendermint.abci.ResponseApplySnapshotChunk.Result|null); - /** Validator power */ - power?: (Long|null); + /** ResponseApplySnapshotChunk refetch_chunks */ + refetch_chunks?: (number[]|null); + + /** ResponseApplySnapshotChunk reject_senders */ + reject_senders?: (string[]|null); } - /** Represents a Validator. */ - class Validator implements IValidator { + /** Represents a ResponseApplySnapshotChunk. */ + class ResponseApplySnapshotChunk implements IResponseApplySnapshotChunk { /** - * Constructs a new Validator. + * Constructs a new ResponseApplySnapshotChunk. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IValidator); + constructor(properties?: tendermint.abci.IResponseApplySnapshotChunk); - /** Validator address. */ - public address: Uint8Array; + /** ResponseApplySnapshotChunk result. */ + public result: tendermint.abci.ResponseApplySnapshotChunk.Result; - /** Validator power. */ - public power: Long; + /** ResponseApplySnapshotChunk refetch_chunks. */ + public refetch_chunks: number[]; + + /** ResponseApplySnapshotChunk reject_senders. */ + public reject_senders: string[]; /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. - * @param message Validator message or plain object to encode + * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * @param message ResponseApplySnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IResponseApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. - * @param message Validator message or plain object to encode + * Encodes the specified ResponseApplySnapshotChunk message, length delimited. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * @param message ResponseApplySnapshotChunk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IResponseApplySnapshotChunk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Validator message from the specified reader or buffer. + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Validator + * @returns ResponseApplySnapshotChunk * @throws {Error} If the payload is 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.abci.Validator; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ResponseApplySnapshotChunk; /** - * Decodes a Validator message from the specified reader or buffer, length delimited. + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Validator + * @returns ResponseApplySnapshotChunk * @throws {Error} If the 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.abci.Validator; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ResponseApplySnapshotChunk; /** - * Verifies a Validator message. + * Verifies a ResponseApplySnapshotChunk message. * @param message 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 Validator message from a plain object. Also converts values to their respective internal types. + * Creates a ResponseApplySnapshotChunk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Validator + * @returns ResponseApplySnapshotChunk */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Validator; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ResponseApplySnapshotChunk; /** - * Creates a plain object from a Validator message. Also converts values to other types if specified. - * @param message Validator + * Creates a plain object from a ResponseApplySnapshotChunk message. Also converts values to other types if specified. + * @param message ResponseApplySnapshotChunk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.Validator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ResponseApplySnapshotChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Validator to JSON. + * Converts this ResponseApplySnapshotChunk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ValidatorUpdate. */ - interface IValidatorUpdate { + namespace ResponseApplySnapshotChunk { - /** ValidatorUpdate pub_key */ - pub_key?: (tendermint.crypto.IPublicKey|null); + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + RETRY = 3, + RETRY_SNAPSHOT = 4, + REJECT_SNAPSHOT = 5 + } + } - /** ValidatorUpdate power */ - power?: (Long|null); + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + + /** ConsensusParams block */ + block?: (tendermint.abci.IBlockParams|null); + + /** ConsensusParams evidence */ + evidence?: (tendermint.types.IEvidenceParams|null); + + /** ConsensusParams validator */ + validator?: (tendermint.types.IValidatorParams|null); + + /** ConsensusParams version */ + version?: (tendermint.types.IVersionParams|null); } - /** Represents a ValidatorUpdate. */ - class ValidatorUpdate implements IValidatorUpdate { + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { /** - * Constructs a new ValidatorUpdate. + * Constructs a new ConsensusParams. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IValidatorUpdate); + constructor(properties?: tendermint.abci.IConsensusParams); - /** ValidatorUpdate pub_key. */ - public pub_key?: (tendermint.crypto.IPublicKey|null); + /** ConsensusParams block. */ + public block?: (tendermint.abci.IBlockParams|null); - /** ValidatorUpdate power. */ - public power: Long; + /** ConsensusParams evidence. */ + public evidence?: (tendermint.types.IEvidenceParams|null); + + /** ConsensusParams validator. */ + public validator?: (tendermint.types.IValidatorParams|null); + + /** ConsensusParams version. */ + public version?: (tendermint.types.IVersionParams|null); /** - * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. - * @param message ValidatorUpdate message or plain object to encode + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IValidatorUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidatorUpdate message, length delimited. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. - * @param message ValidatorUpdate message or plain object to encode + * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.abci.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IValidatorUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidatorUpdate message from the specified reader or buffer. + * Decodes a ConsensusParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidatorUpdate + * @returns ConsensusParams * @throws {Error} If the payload is 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.abci.ValidatorUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ConsensusParams; /** - * Decodes a ValidatorUpdate message from the specified reader or buffer, length delimited. + * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidatorUpdate + * @returns ConsensusParams * @throws {Error} If the 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.abci.ValidatorUpdate; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ConsensusParams; /** - * Verifies a ValidatorUpdate message. + * Verifies a ConsensusParams message. * @param message 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 ValidatorUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidatorUpdate + * @returns ConsensusParams */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.ValidatorUpdate; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ConsensusParams; /** - * Creates a plain object from a ValidatorUpdate message. Also converts values to other types if specified. - * @param message ValidatorUpdate + * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * @param message ConsensusParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.ValidatorUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ConsensusParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidatorUpdate to JSON. + * Converts this ConsensusParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VoteInfo. */ - interface IVoteInfo { + /** Properties of a BlockParams. */ + interface IBlockParams { - /** VoteInfo validator */ - validator?: (tendermint.abci.IValidator|null); + /** BlockParams max_bytes */ + max_bytes?: (Long|null); - /** VoteInfo signed_last_block */ - signed_last_block?: (boolean|null); + /** BlockParams max_gas */ + max_gas?: (Long|null); } - /** Represents a VoteInfo. */ - class VoteInfo implements IVoteInfo { + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { /** - * Constructs a new VoteInfo. + * Constructs a new BlockParams. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IVoteInfo); + constructor(properties?: tendermint.abci.IBlockParams); - /** VoteInfo validator. */ - public validator?: (tendermint.abci.IValidator|null); + /** BlockParams max_bytes. */ + public max_bytes: Long; - /** VoteInfo signed_last_block. */ - public signed_last_block: boolean; + /** BlockParams max_gas. */ + public max_gas: Long; /** - * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. - * @param message VoteInfo message or plain object to encode + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * @param message BlockParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IVoteInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VoteInfo message, length delimited. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. - * @param message VoteInfo message or plain object to encode + * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.abci.BlockParams.verify|verify} messages. + * @param message BlockParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IVoteInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VoteInfo message from the specified reader or buffer. + * Decodes a BlockParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VoteInfo + * @returns BlockParams * @throws {Error} If the payload is 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.abci.VoteInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.BlockParams; /** - * Decodes a VoteInfo message from the specified reader or buffer, length delimited. + * Decodes a BlockParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VoteInfo + * @returns BlockParams * @throws {Error} If the 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.abci.VoteInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.BlockParams; /** - * Verifies a VoteInfo message. + * Verifies a BlockParams message. * @param message 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 VoteInfo message from a plain object. Also converts values to their respective internal types. + * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VoteInfo + * @returns BlockParams */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.VoteInfo; + public static fromObject(object: { [k: string]: any }): tendermint.abci.BlockParams; /** - * Creates a plain object from a VoteInfo message. Also converts values to other types if specified. - * @param message VoteInfo + * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * @param message BlockParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.VoteInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.BlockParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VoteInfo to JSON. + * Converts this BlockParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** EvidenceType enum. */ - enum EvidenceType { - UNKNOWN = 0, - DUPLICATE_VOTE = 1, - LIGHT_CLIENT_ATTACK = 2 - } - - /** Properties of an Evidence. */ - interface IEvidence { - - /** Evidence type */ - type?: (tendermint.abci.EvidenceType|null); - - /** Evidence validator */ - validator?: (tendermint.abci.IValidator|null); - - /** Evidence height */ - height?: (Long|null); + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { - /** Evidence time */ - time?: (google.protobuf.ITimestamp|null); + /** LastCommitInfo round */ + round?: (number|null); - /** Evidence total_voting_power */ - total_voting_power?: (Long|null); + /** LastCommitInfo votes */ + votes?: (tendermint.abci.IVoteInfo[]|null); } - /** Represents an Evidence. */ - class Evidence implements IEvidence { + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { /** - * Constructs a new Evidence. + * Constructs a new LastCommitInfo. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.IEvidence); - - /** Evidence type. */ - public type: tendermint.abci.EvidenceType; - - /** Evidence validator. */ - public validator?: (tendermint.abci.IValidator|null); - - /** Evidence height. */ - public height: Long; + constructor(properties?: tendermint.abci.ILastCommitInfo); - /** Evidence time. */ - public time?: (google.protobuf.ITimestamp|null); + /** LastCommitInfo round. */ + public round: number; - /** Evidence total_voting_power. */ - public total_voting_power: Long; + /** LastCommitInfo votes. */ + public votes: tendermint.abci.IVoteInfo[]; /** - * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. - * @param message Evidence message or plain object to encode + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * @param message LastCommitInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.IEvidence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.ILastCommitInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Evidence message, length delimited. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. - * @param message Evidence message or plain object to encode + * Encodes the specified LastCommitInfo message, length delimited. Does not implicitly {@link tendermint.abci.LastCommitInfo.verify|verify} messages. + * @param message LastCommitInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.IEvidence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.ILastCommitInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Evidence message from the specified reader or buffer. + * Decodes a LastCommitInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Evidence + * @returns LastCommitInfo * @throws {Error} If the payload is 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.abci.Evidence; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.LastCommitInfo; /** - * Decodes an Evidence message from the specified reader or buffer, length delimited. + * Decodes a LastCommitInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Evidence + * @returns LastCommitInfo * @throws {Error} If the 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.abci.Evidence; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.LastCommitInfo; /** - * Verifies an Evidence message. + * Verifies a LastCommitInfo message. * @param message 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 Evidence message from a plain object. Also converts values to their respective internal types. + * Creates a LastCommitInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Evidence + * @returns LastCommitInfo */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Evidence; + public static fromObject(object: { [k: string]: any }): tendermint.abci.LastCommitInfo; /** - * Creates a plain object from an Evidence message. Also converts values to other types if specified. - * @param message Evidence + * Creates a plain object from a LastCommitInfo message. Also converts values to other types if specified. + * @param message LastCommitInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.Evidence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.LastCommitInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Evidence to JSON. + * Converts this LastCommitInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Snapshot. */ - interface ISnapshot { - - /** Snapshot height */ - height?: (Long|null); - - /** Snapshot format */ - format?: (number|null); - - /** Snapshot chunks */ - chunks?: (number|null); + /** Properties of an Event. */ + interface IEvent { - /** Snapshot hash */ - hash?: (Uint8Array|null); + /** Event type */ + type?: (string|null); - /** Snapshot metadata */ - metadata?: (Uint8Array|null); + /** Event attributes */ + attributes?: (tendermint.abci.IEventAttribute[]|null); } - /** Represents a Snapshot. */ - class Snapshot implements ISnapshot { + /** Represents an Event. */ + class Event implements IEvent { /** - * Constructs a new Snapshot. + * Constructs a new Event. * @param [properties] Properties to set */ - constructor(properties?: tendermint.abci.ISnapshot); - - /** Snapshot height. */ - public height: Long; - - /** Snapshot format. */ - public format: number; - - /** Snapshot chunks. */ - public chunks: number; + constructor(properties?: tendermint.abci.IEvent); - /** Snapshot hash. */ - public hash: Uint8Array; + /** Event type. */ + public type: string; - /** Snapshot metadata. */ - public metadata: Uint8Array; + /** Event attributes. */ + public attributes: tendermint.abci.IEventAttribute[]; /** - * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.abci.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. - * @param message Snapshot message or plain object to encode + * Encodes the specified Event message, length delimited. Does not implicitly {@link tendermint.abci.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.abci.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Snapshot message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Snapshot + * @returns Event * @throws {Error} If the payload is 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.abci.Snapshot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Event; /** - * Decodes a Snapshot message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Snapshot + * @returns Event * @throws {Error} If the 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.abci.Snapshot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Event; /** - * Verifies a Snapshot message. + * Verifies an Event message. * @param message 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 Snapshot message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Snapshot + * @returns Event */ - public static fromObject(object: { [k: string]: any }): tendermint.abci.Snapshot; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Event; /** - * Creates a plain object from a Snapshot message. Also converts values to other types if specified. - * @param message Snapshot + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.abci.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Snapshot to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a ABCIApplication */ - class ABCIApplication extends $protobuf.rpc.Service { + /** Properties of an EventAttribute. */ + interface IEventAttribute { - /** - * Constructs a new ABCIApplication 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); + /** EventAttribute key */ + key?: (Uint8Array|null); - /** - * Calls Echo. - * @param request RequestEcho message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEcho - */ - public echo(request: tendermint.abci.IRequestEcho, callback: tendermint.abci.ABCIApplication.EchoCallback): void; + /** EventAttribute value */ + value?: (Uint8Array|null); - /** - * Calls Echo. - * @param request RequestEcho message or plain object - * @returns Promise - */ - public echo(request: tendermint.abci.IRequestEcho): Promise; + /** EventAttribute index */ + index?: (boolean|null); + } - /** - * Calls Flush. - * @param request RequestFlush message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseFlush - */ - public flush(request: tendermint.abci.IRequestFlush, callback: tendermint.abci.ABCIApplication.FlushCallback): void; + /** Represents an EventAttribute. */ + class EventAttribute implements IEventAttribute { /** - * Calls Flush. - * @param request RequestFlush message or plain object - * @returns Promise + * Constructs a new EventAttribute. + * @param [properties] Properties to set */ - public flush(request: tendermint.abci.IRequestFlush): Promise; + constructor(properties?: tendermint.abci.IEventAttribute); - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInfo - */ - public info(request: tendermint.abci.IRequestInfo, callback: tendermint.abci.ABCIApplication.InfoCallback): void; + /** EventAttribute key. */ + public key: Uint8Array; - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @returns Promise - */ - public info(request: tendermint.abci.IRequestInfo): Promise; + /** EventAttribute value. */ + public value: Uint8Array; - /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseSetOption - */ - public setOption(request: tendermint.abci.IRequestSetOption, callback: tendermint.abci.ABCIApplication.SetOptionCallback): void; + /** EventAttribute index. */ + public index: boolean; /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @returns Promise + * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * @param message EventAttribute message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public setOption(request: tendermint.abci.IRequestSetOption): Promise; + public static encode(message: tendermint.abci.IEventAttribute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx + * Encodes the specified EventAttribute message, length delimited. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * @param message EventAttribute message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deliverTx(request: tendermint.abci.IRequestDeliverTx, callback: tendermint.abci.ABCIApplication.DeliverTxCallback): void; + public static encodeDelimited(message: tendermint.abci.IEventAttribute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @returns Promise + * Decodes an EventAttribute message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventAttribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deliverTx(request: tendermint.abci.IRequestDeliverTx): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.EventAttribute; /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCheckTx + * Decodes an EventAttribute message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EventAttribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public checkTx(request: tendermint.abci.IRequestCheckTx, callback: tendermint.abci.ABCIApplication.CheckTxCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.EventAttribute; /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @returns Promise + * Verifies an EventAttribute message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public checkTx(request: tendermint.abci.IRequestCheckTx): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls Query. - * @param request RequestQuery message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseQuery + * Creates an EventAttribute message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EventAttribute */ - public query(request: tendermint.abci.IRequestQuery, callback: tendermint.abci.ABCIApplication.QueryCallback): void; + public static fromObject(object: { [k: string]: any }): tendermint.abci.EventAttribute; /** - * Calls Query. - * @param request RequestQuery message or plain object - * @returns Promise + * Creates a plain object from an EventAttribute message. Also converts values to other types if specified. + * @param message EventAttribute + * @param [options] Conversion options + * @returns Plain object */ - public query(request: tendermint.abci.IRequestQuery): Promise; + public static toObject(message: tendermint.abci.EventAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCommit + * Converts this EventAttribute to JSON. + * @returns JSON object */ - public commit(request: tendermint.abci.IRequestCommit, callback: tendermint.abci.ABCIApplication.CommitCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @returns Promise - */ - public commit(request: tendermint.abci.IRequestCommit): Promise; + /** Properties of a TxResult. */ + interface ITxResult { - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInitChain - */ - public initChain(request: tendermint.abci.IRequestInitChain, callback: tendermint.abci.ABCIApplication.InitChainCallback): void; + /** TxResult height */ + height?: (Long|null); - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @returns Promise - */ - public initChain(request: tendermint.abci.IRequestInitChain): Promise; + /** TxResult index */ + index?: (number|null); - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock - */ - public beginBlock(request: tendermint.abci.IRequestBeginBlock, callback: tendermint.abci.ABCIApplication.BeginBlockCallback): void; + /** TxResult tx */ + tx?: (Uint8Array|null); - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @returns Promise - */ - public beginBlock(request: tendermint.abci.IRequestBeginBlock): Promise; + /** TxResult result */ + result?: (tendermint.abci.IResponseDeliverTx|null); + } - /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEndBlock - */ - public endBlock(request: tendermint.abci.IRequestEndBlock, callback: tendermint.abci.ABCIApplication.EndBlockCallback): void; + /** Represents a TxResult. */ + class TxResult implements ITxResult { /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @returns Promise + * Constructs a new TxResult. + * @param [properties] Properties to set */ - public endBlock(request: tendermint.abci.IRequestEndBlock): Promise; + constructor(properties?: tendermint.abci.ITxResult); + + /** TxResult height. */ + public height: Long; + + /** TxResult index. */ + public index: number; + + /** TxResult tx. */ + public tx: Uint8Array; + + /** TxResult result. */ + public result?: (tendermint.abci.IResponseDeliverTx|null); /** - * Calls ListSnapshots. - * @param request RequestListSnapshots message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseListSnapshots + * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * @param message TxResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSnapshots(request: tendermint.abci.IRequestListSnapshots, callback: tendermint.abci.ABCIApplication.ListSnapshotsCallback): void; + public static encode(message: tendermint.abci.ITxResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListSnapshots. - * @param request RequestListSnapshots message or plain object - * @returns Promise + * Encodes the specified TxResult message, length delimited. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * @param message TxResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSnapshots(request: tendermint.abci.IRequestListSnapshots): Promise; + public static encodeDelimited(message: tendermint.abci.ITxResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls OfferSnapshot. - * @param request RequestOfferSnapshot message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseOfferSnapshot + * Decodes a TxResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public offerSnapshot(request: tendermint.abci.IRequestOfferSnapshot, callback: tendermint.abci.ABCIApplication.OfferSnapshotCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.TxResult; /** - * Calls OfferSnapshot. - * @param request RequestOfferSnapshot message or plain object - * @returns Promise + * Decodes a TxResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public offerSnapshot(request: tendermint.abci.IRequestOfferSnapshot): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.TxResult; /** - * Calls LoadSnapshotChunk. - * @param request RequestLoadSnapshotChunk message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk + * Verifies a TxResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public loadSnapshotChunk(request: tendermint.abci.IRequestLoadSnapshotChunk, callback: tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls LoadSnapshotChunk. - * @param request RequestLoadSnapshotChunk message or plain object - * @returns Promise + * Creates a TxResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TxResult */ - public loadSnapshotChunk(request: tendermint.abci.IRequestLoadSnapshotChunk): Promise; + public static fromObject(object: { [k: string]: any }): tendermint.abci.TxResult; /** - * Calls ApplySnapshotChunk. - * @param request RequestApplySnapshotChunk message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk + * Creates a plain object from a TxResult message. Also converts values to other types if specified. + * @param message TxResult + * @param [options] Conversion options + * @returns Plain object */ - public applySnapshotChunk(request: tendermint.abci.IRequestApplySnapshotChunk, callback: tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback): void; + public static toObject(message: tendermint.abci.TxResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ApplySnapshotChunk. - * @param request RequestApplySnapshotChunk message or plain object - * @returns Promise + * Converts this TxResult to JSON. + * @returns JSON object */ - public applySnapshotChunk(request: tendermint.abci.IRequestApplySnapshotChunk): Promise; + public toJSON(): { [k: string]: any }; } - namespace ABCIApplication { - - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. - * @param error Error, if any - * @param [response] ResponseEcho - */ - type EchoCallback = (error: (Error|null), response?: tendermint.abci.ResponseEcho) => void; + /** Properties of a Validator. */ + interface IValidator { - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. - * @param error Error, if any - * @param [response] ResponseFlush - */ - type FlushCallback = (error: (Error|null), response?: tendermint.abci.ResponseFlush) => void; + /** Validator address */ + address?: (Uint8Array|null); - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#info}. - * @param error Error, if any - * @param [response] ResponseInfo - */ - type InfoCallback = (error: (Error|null), response?: tendermint.abci.ResponseInfo) => void; + /** Validator power */ + power?: (Long|null); + } - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. - * @param error Error, if any - * @param [response] ResponseSetOption - */ - type SetOptionCallback = (error: (Error|null), response?: tendermint.abci.ResponseSetOption) => void; + /** Represents a Validator. */ + class Validator implements IValidator { /** - * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. - * @param error Error, if any - * @param [response] ResponseDeliverTx + * Constructs a new Validator. + * @param [properties] Properties to set */ - type DeliverTxCallback = (error: (Error|null), response?: tendermint.abci.ResponseDeliverTx) => void; + constructor(properties?: tendermint.abci.IValidator); - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. - * @param error Error, if any - * @param [response] ResponseCheckTx - */ - type CheckTxCallback = (error: (Error|null), response?: tendermint.abci.ResponseCheckTx) => void; + /** Validator address. */ + public address: Uint8Array; - /** - * Callback as used by {@link tendermint.abci.ABCIApplication#query}. - * @param error Error, if any - * @param [response] ResponseQuery - */ - type QueryCallback = (error: (Error|null), response?: tendermint.abci.ResponseQuery) => void; + /** Validator power. */ + public power: Long; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. - * @param error Error, if any - * @param [response] ResponseCommit + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CommitCallback = (error: (Error|null), response?: tendermint.abci.ResponseCommit) => void; + public static encode(message: tendermint.abci.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#initChain}. - * @param error Error, if any - * @param [response] ResponseInitChain + * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.abci.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type InitChainCallback = (error: (Error|null), response?: tendermint.abci.ResponseInitChain) => void; + public static encodeDelimited(message: tendermint.abci.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#beginBlock}. - * @param error Error, if any - * @param [response] ResponseBeginBlock + * Decodes a Validator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BeginBlockCallback = (error: (Error|null), response?: tendermint.abci.ResponseBeginBlock) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Validator; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. - * @param error Error, if any - * @param [response] ResponseEndBlock + * Decodes a Validator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type EndBlockCallback = (error: (Error|null), response?: tendermint.abci.ResponseEndBlock) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Validator; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. - * @param error Error, if any - * @param [response] ResponseListSnapshots + * Verifies a Validator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListSnapshotsCallback = (error: (Error|null), response?: tendermint.abci.ResponseListSnapshots) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. - * @param error Error, if any - * @param [response] ResponseOfferSnapshot + * Creates a Validator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Validator */ - type OfferSnapshotCallback = (error: (Error|null), response?: tendermint.abci.ResponseOfferSnapshot) => void; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Validator; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. - * @param error Error, if any - * @param [response] ResponseLoadSnapshotChunk + * Creates a plain object from a Validator message. Also converts values to other types if specified. + * @param message Validator + * @param [options] Conversion options + * @returns Plain object */ - type LoadSnapshotChunkCallback = (error: (Error|null), response?: tendermint.abci.ResponseLoadSnapshotChunk) => void; + public static toObject(message: tendermint.abci.Validator, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. - * @param error Error, if any - * @param [response] ResponseApplySnapshotChunk + * Converts this Validator to JSON. + * @returns JSON object */ - type ApplySnapshotChunkCallback = (error: (Error|null), response?: tendermint.abci.ResponseApplySnapshotChunk) => void; - } - } - - /** Namespace types. */ - namespace types { - - /** BlockIDFlag enum. */ - enum BlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 0, - BLOCK_ID_FLAG_ABSENT = 1, - BLOCK_ID_FLAG_COMMIT = 2, - BLOCK_ID_FLAG_NIL = 3 - } - - /** SignedMsgType enum. */ - enum SignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 0, - SIGNED_MSG_TYPE_PREVOTE = 1, - SIGNED_MSG_TYPE_PRECOMMIT = 2, - SIGNED_MSG_TYPE_PROPOSAL = 32 + public toJSON(): { [k: string]: any }; } - /** Properties of a PartSetHeader. */ - interface IPartSetHeader { + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { - /** PartSetHeader total */ - total?: (number|null); + /** ValidatorUpdate pub_key */ + pub_key?: (tendermint.crypto.IPublicKey|null); - /** PartSetHeader hash */ - hash?: (Uint8Array|null); + /** ValidatorUpdate power */ + power?: (Long|null); } - /** Represents a PartSetHeader. */ - class PartSetHeader implements IPartSetHeader { + /** Represents a ValidatorUpdate. */ + class ValidatorUpdate implements IValidatorUpdate { /** - * Constructs a new PartSetHeader. + * Constructs a new ValidatorUpdate. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IPartSetHeader); + constructor(properties?: tendermint.abci.IValidatorUpdate); - /** PartSetHeader total. */ - public total: number; + /** ValidatorUpdate pub_key. */ + public pub_key?: (tendermint.crypto.IPublicKey|null); - /** PartSetHeader hash. */ - public hash: Uint8Array; + /** ValidatorUpdate power. */ + public power: Long; /** - * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. - * @param message PartSetHeader message or plain object to encode + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. + * @param message ValidatorUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IPartSetHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IValidatorUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PartSetHeader message, length delimited. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. - * @param message PartSetHeader message or plain object to encode + * Encodes the specified ValidatorUpdate message, length delimited. Does not implicitly {@link tendermint.abci.ValidatorUpdate.verify|verify} messages. + * @param message ValidatorUpdate message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IPartSetHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IValidatorUpdate, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PartSetHeader message from the specified reader or buffer. + * Decodes a ValidatorUpdate message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PartSetHeader + * @returns ValidatorUpdate * @throws {Error} If the payload is 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.types.PartSetHeader; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.ValidatorUpdate; /** - * Decodes a PartSetHeader message from the specified reader or buffer, length delimited. + * Decodes a ValidatorUpdate message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PartSetHeader + * @returns ValidatorUpdate * @throws {Error} If the 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.types.PartSetHeader; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.ValidatorUpdate; /** - * Verifies a PartSetHeader message. + * Verifies a ValidatorUpdate message. * @param message 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 PartSetHeader message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorUpdate message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PartSetHeader + * @returns ValidatorUpdate */ - public static fromObject(object: { [k: string]: any }): tendermint.types.PartSetHeader; + public static fromObject(object: { [k: string]: any }): tendermint.abci.ValidatorUpdate; /** - * Creates a plain object from a PartSetHeader message. Also converts values to other types if specified. - * @param message PartSetHeader + * Creates a plain object from a ValidatorUpdate message. Also converts values to other types if specified. + * @param message ValidatorUpdate * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.PartSetHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.ValidatorUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PartSetHeader to JSON. + * Converts this ValidatorUpdate to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Part. */ - interface IPart { - - /** Part index */ - index?: (number|null); + /** Properties of a VoteInfo. */ + interface IVoteInfo { - /** Part bytes */ - bytes?: (Uint8Array|null); + /** VoteInfo validator */ + validator?: (tendermint.abci.IValidator|null); - /** Part proof */ - proof?: (tendermint.crypto.IProof|null); + /** VoteInfo signed_last_block */ + signed_last_block?: (boolean|null); } - /** Represents a Part. */ - class Part implements IPart { + /** Represents a VoteInfo. */ + class VoteInfo implements IVoteInfo { /** - * Constructs a new Part. + * Constructs a new VoteInfo. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IPart); - - /** Part index. */ - public index: number; + constructor(properties?: tendermint.abci.IVoteInfo); - /** Part bytes. */ - public bytes: Uint8Array; + /** VoteInfo validator. */ + public validator?: (tendermint.abci.IValidator|null); - /** Part proof. */ - public proof?: (tendermint.crypto.IProof|null); + /** VoteInfo signed_last_block. */ + public signed_last_block: boolean; /** - * Encodes the specified Part message. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. - * @param message Part message or plain object to encode + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. + * @param message VoteInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IVoteInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. - * @param message Part message or plain object to encode + * Encodes the specified VoteInfo message, length delimited. Does not implicitly {@link tendermint.abci.VoteInfo.verify|verify} messages. + * @param message VoteInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IVoteInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Part message from the specified reader or buffer. + * Decodes a VoteInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Part + * @returns VoteInfo * @throws {Error} If the payload is 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.types.Part; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.VoteInfo; /** - * Decodes a Part message from the specified reader or buffer, length delimited. + * Decodes a VoteInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Part + * @returns VoteInfo * @throws {Error} If the 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.types.Part; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.VoteInfo; /** - * Verifies a Part message. + * Verifies a VoteInfo message. * @param message 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 Part message from a plain object. Also converts values to their respective internal types. + * Creates a VoteInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Part + * @returns VoteInfo */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Part; + public static fromObject(object: { [k: string]: any }): tendermint.abci.VoteInfo; /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @param message Part + * Creates a plain object from a VoteInfo message. Also converts values to other types if specified. + * @param message VoteInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.VoteInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Part to JSON. + * Converts this VoteInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BlockID. */ - interface IBlockID { + /** EvidenceType enum. */ + enum EvidenceType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2 + } - /** BlockID hash */ - hash?: (Uint8Array|null); + /** Properties of an Evidence. */ + interface IEvidence { - /** BlockID part_set_header */ - part_set_header?: (tendermint.types.IPartSetHeader|null); + /** Evidence type */ + type?: (tendermint.abci.EvidenceType|null); + + /** Evidence validator */ + validator?: (tendermint.abci.IValidator|null); + + /** Evidence height */ + height?: (Long|null); + + /** Evidence time */ + time?: (google.protobuf.ITimestamp|null); + + /** Evidence total_voting_power */ + total_voting_power?: (Long|null); } - /** Represents a BlockID. */ - class BlockID implements IBlockID { + /** Represents an Evidence. */ + class Evidence implements IEvidence { /** - * Constructs a new BlockID. + * Constructs a new Evidence. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IBlockID); + constructor(properties?: tendermint.abci.IEvidence); - /** BlockID hash. */ - public hash: Uint8Array; + /** Evidence type. */ + public type: tendermint.abci.EvidenceType; - /** BlockID part_set_header. */ - public part_set_header?: (tendermint.types.IPartSetHeader|null); + /** Evidence validator. */ + public validator?: (tendermint.abci.IValidator|null); + + /** Evidence height. */ + public height: Long; + + /** Evidence time. */ + public time?: (google.protobuf.ITimestamp|null); + + /** Evidence total_voting_power. */ + public total_voting_power: Long; /** - * Encodes the specified BlockID message. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. - * @param message BlockID message or plain object to encode + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. + * @param message Evidence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IBlockID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.IEvidence, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlockID message, length delimited. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. - * @param message BlockID message or plain object to encode + * Encodes the specified Evidence message, length delimited. Does not implicitly {@link tendermint.abci.Evidence.verify|verify} messages. + * @param message Evidence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IBlockID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.IEvidence, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlockID message from the specified reader or buffer. + * Decodes an Evidence message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlockID + * @returns Evidence * @throws {Error} If the payload is 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.types.BlockID; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Evidence; /** - * Decodes a BlockID message from the specified reader or buffer, length delimited. + * Decodes an Evidence message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlockID + * @returns Evidence * @throws {Error} If the 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.types.BlockID; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Evidence; /** - * Verifies a BlockID message. + * Verifies an Evidence message. * @param message 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 BlockID message from a plain object. Also converts values to their respective internal types. + * Creates an Evidence message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlockID - */ - public static fromObject(object: { [k: string]: any }): tendermint.types.BlockID; - - /** - * Creates a plain object from a BlockID message. Also converts values to other types if specified. - * @param message BlockID - * @param [options] Conversion options - * @returns Plain object + * @returns Evidence */ - public static toObject(message: tendermint.types.BlockID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Evidence; /** - * Converts this BlockID to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Header. */ - interface IHeader { - - /** Header version */ - version?: (tendermint.version.IConsensus|null); - - /** Header chain_id */ - chain_id?: (string|null); - - /** Header height */ - height?: (Long|null); - - /** Header time */ - time?: (google.protobuf.ITimestamp|null); - - /** Header last_block_id */ - last_block_id?: (tendermint.types.IBlockID|null); - - /** Header last_commit_hash */ - last_commit_hash?: (Uint8Array|null); - - /** Header data_hash */ - data_hash?: (Uint8Array|null); - - /** Header validators_hash */ - validators_hash?: (Uint8Array|null); - - /** Header next_validators_hash */ - next_validators_hash?: (Uint8Array|null); - - /** Header consensus_hash */ - consensus_hash?: (Uint8Array|null); - - /** Header app_hash */ - app_hash?: (Uint8Array|null); - - /** Header last_results_hash */ - last_results_hash?: (Uint8Array|null); - - /** Header evidence_hash */ - evidence_hash?: (Uint8Array|null); - - /** Header proposer_address */ - proposer_address?: (Uint8Array|null); - } - - /** Represents a Header. */ - class Header implements IHeader { + * Creates a plain object from an Evidence message. Also converts values to other types if specified. + * @param message Evidence + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tendermint.abci.Evidence, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Constructs a new Header. - * @param [properties] Properties to set + * Converts this Evidence to JSON. + * @returns JSON object */ - constructor(properties?: tendermint.types.IHeader); - - /** Header version. */ - public version?: (tendermint.version.IConsensus|null); + public toJSON(): { [k: string]: any }; + } - /** Header chain_id. */ - public chain_id: string; + /** Properties of a Snapshot. */ + interface ISnapshot { - /** Header height. */ - public height: Long; + /** Snapshot height */ + height?: (Long|null); - /** Header time. */ - public time?: (google.protobuf.ITimestamp|null); + /** Snapshot format */ + format?: (number|null); - /** Header last_block_id. */ - public last_block_id?: (tendermint.types.IBlockID|null); + /** Snapshot chunks */ + chunks?: (number|null); - /** Header last_commit_hash. */ - public last_commit_hash: Uint8Array; + /** Snapshot hash */ + hash?: (Uint8Array|null); - /** Header data_hash. */ - public data_hash: Uint8Array; + /** Snapshot metadata */ + metadata?: (Uint8Array|null); + } - /** Header validators_hash. */ - public validators_hash: Uint8Array; + /** Represents a Snapshot. */ + class Snapshot implements ISnapshot { - /** Header next_validators_hash. */ - public next_validators_hash: Uint8Array; + /** + * Constructs a new Snapshot. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.ISnapshot); - /** Header consensus_hash. */ - public consensus_hash: Uint8Array; + /** Snapshot height. */ + public height: Long; - /** Header app_hash. */ - public app_hash: Uint8Array; + /** Snapshot format. */ + public format: number; - /** Header last_results_hash. */ - public last_results_hash: Uint8Array; + /** Snapshot chunks. */ + public chunks: number; - /** Header evidence_hash. */ - public evidence_hash: Uint8Array; + /** Snapshot hash. */ + public hash: Uint8Array; - /** Header proposer_address. */ - public proposer_address: Uint8Array; + /** Snapshot metadata. */ + public metadata: Uint8Array; /** - * Encodes the specified Header message. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.abci.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link tendermint.types.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified Snapshot message, length delimited. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * @param message Snapshot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.abci.ISnapshot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a Snapshot 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 Snapshot * @throws {Error} If the payload is 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.types.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.abci.Snapshot; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a Snapshot message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns Snapshot * @throws {Error} If the 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.types.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.abci.Snapshot; /** - * Verifies a Header message. + * Verifies a Snapshot message. * @param message 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 Snapshot message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns Snapshot */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Header; + public static fromObject(object: { [k: string]: any }): tendermint.abci.Snapshot; /** - * 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 Snapshot message. Also converts values to other types if specified. + * @param message Snapshot * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.abci.Snapshot, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this Snapshot to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Data. */ - interface IData { + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { - /** Data txs */ - txs?: (Uint8Array[]|null); - } + /** + * Constructs a new ABCIApplication 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 Data. */ - class Data implements IData { + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo(request: tendermint.abci.IRequestEcho, callback: tendermint.abci.ABCIApplication.EchoCallback): void; /** - * Constructs a new Data. - * @param [properties] Properties to set + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise */ - constructor(properties?: tendermint.types.IData); + public echo(request: tendermint.abci.IRequestEcho): Promise; - /** Data txs. */ - public txs: Uint8Array[]; + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush(request: tendermint.abci.IRequestFlush, callback: tendermint.abci.ABCIApplication.FlushCallback): void; /** - * Encodes the specified Data message. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise */ - public static encode(message: tendermint.types.IData, writer?: $protobuf.Writer): $protobuf.Writer; + public flush(request: tendermint.abci.IRequestFlush): Promise; /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Info. + * @param request RequestInfo message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInfo */ - public static encodeDelimited(message: tendermint.types.IData, writer?: $protobuf.Writer): $protobuf.Writer; + public info(request: tendermint.abci.IRequestInfo, callback: tendermint.abci.ABCIApplication.InfoCallback): void; /** - * Decodes a Data message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Data; + public info(request: tendermint.abci.IRequestInfo): Promise; /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseSetOption */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Data; + public setOption(request: tendermint.abci.IRequestSetOption, callback: tendermint.abci.ABCIApplication.SetOptionCallback): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption(request: tendermint.abci.IRequestSetOption): Promise; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx + */ + public deliverTx(request: tendermint.abci.IRequestDeliverTx, callback: tendermint.abci.ABCIApplication.DeliverTxCallback): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx(request: tendermint.abci.IRequestDeliverTx): Promise; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCheckTx + */ + public checkTx(request: tendermint.abci.IRequestCheckTx, callback: tendermint.abci.ABCIApplication.CheckTxCallback): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx(request: tendermint.abci.IRequestCheckTx): Promise; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseQuery + */ + public query(request: tendermint.abci.IRequestQuery, callback: tendermint.abci.ABCIApplication.QueryCallback): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query(request: tendermint.abci.IRequestQuery): Promise; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCommit + */ + public commit(request: tendermint.abci.IRequestCommit, callback: tendermint.abci.ABCIApplication.CommitCallback): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit(request: tendermint.abci.IRequestCommit): Promise; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInitChain + */ + public initChain(request: tendermint.abci.IRequestInitChain, callback: tendermint.abci.ABCIApplication.InitChainCallback): void; /** - * Verifies a Data message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public initChain(request: tendermint.abci.IRequestInitChain): Promise; /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Data + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Data; + public beginBlock(request: tendermint.abci.IRequestBeginBlock, callback: tendermint.abci.ABCIApplication.BeginBlockCallback): void; /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data - * @param [options] Conversion options - * @returns Plain object + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise */ - public static toObject(message: tendermint.types.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public beginBlock(request: tendermint.abci.IRequestBeginBlock): Promise; /** - * Converts this Data to JSON. - * @returns JSON object + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEndBlock */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Vote. */ - interface IVote { - - /** Vote type */ - type?: (tendermint.types.SignedMsgType|null); - - /** Vote height */ - height?: (Long|null); - - /** Vote round */ - round?: (number|null); - - /** Vote block_id */ - block_id?: (tendermint.types.IBlockID|null); - - /** Vote timestamp */ - timestamp?: (google.protobuf.ITimestamp|null); - - /** Vote validator_address */ - validator_address?: (Uint8Array|null); - - /** Vote validator_index */ - validator_index?: (number|null); - - /** Vote signature */ - signature?: (Uint8Array|null); - } - - /** Represents a Vote. */ - class Vote implements IVote { + public endBlock(request: tendermint.abci.IRequestEndBlock, callback: tendermint.abci.ABCIApplication.EndBlockCallback): void; /** - * Constructs a new Vote. - * @param [properties] Properties to set + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise */ - constructor(properties?: tendermint.types.IVote); - - /** Vote type. */ - public type: tendermint.types.SignedMsgType; - - /** Vote height. */ - public height: Long; - - /** Vote round. */ - public round: number; - - /** Vote block_id. */ - public block_id?: (tendermint.types.IBlockID|null); - - /** Vote timestamp. */ - public timestamp?: (google.protobuf.ITimestamp|null); - - /** Vote validator_address. */ - public validator_address: Uint8Array; - - /** Vote validator_index. */ - public validator_index: number; - - /** Vote signature. */ - public signature: Uint8Array; + public endBlock(request: tendermint.abci.IRequestEndBlock): Promise; /** - * Encodes the specified Vote message. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. - * @param message Vote message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseListSnapshots */ - public static encode(message: tendermint.types.IVote, writer?: $protobuf.Writer): $protobuf.Writer; + public listSnapshots(request: tendermint.abci.IRequestListSnapshots, callback: tendermint.abci.ABCIApplication.ListSnapshotsCallback): void; /** - * Encodes the specified Vote message, length delimited. Does not implicitly {@link tendermint.types.Vote.verify|verify} messages. - * @param message Vote message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @returns Promise */ - public static encodeDelimited(message: tendermint.types.IVote, writer?: $protobuf.Writer): $protobuf.Writer; + public listSnapshots(request: tendermint.abci.IRequestListSnapshots): Promise; /** - * 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 + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseOfferSnapshot */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Vote; + public offerSnapshot(request: tendermint.abci.IRequestOfferSnapshot, callback: tendermint.abci.ABCIApplication.OfferSnapshotCallback): void; /** - * 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 + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Vote; + public offerSnapshot(request: tendermint.abci.IRequestOfferSnapshot): Promise; /** - * Verifies a Vote message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk */ - public static verify(message: { [k: string]: any }): (string|null); + public loadSnapshotChunk(request: tendermint.abci.IRequestLoadSnapshotChunk, callback: tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback): void; /** - * Creates a Vote message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Vote + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Vote; + public loadSnapshotChunk(request: tendermint.abci.IRequestLoadSnapshotChunk): Promise; /** - * 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 + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk */ - public static toObject(message: tendermint.types.Vote, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public applySnapshotChunk(request: tendermint.abci.IRequestApplySnapshotChunk, callback: tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback): void; /** - * Converts this Vote to JSON. - * @returns JSON object + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public applySnapshotChunk(request: tendermint.abci.IRequestApplySnapshotChunk): Promise; } - /** Properties of a Commit. */ - interface ICommit { - - /** Commit height */ - height?: (Long|null); - - /** Commit round */ - round?: (number|null); - - /** Commit block_id */ - block_id?: (tendermint.types.IBlockID|null); - - /** Commit signatures */ - signatures?: (tendermint.types.ICommitSig[]|null); - } + namespace ABCIApplication { - /** Represents a Commit. */ - class Commit implements ICommit { + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: (Error|null), response?: tendermint.abci.ResponseEcho) => void; /** - * Constructs a new Commit. - * @param [properties] Properties to set + * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush */ - constructor(properties?: tendermint.types.ICommit); + type FlushCallback = (error: (Error|null), response?: tendermint.abci.ResponseFlush) => void; - /** Commit height. */ - public height: Long; + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: (Error|null), response?: tendermint.abci.ResponseInfo) => void; - /** Commit round. */ - public round: number; + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = (error: (Error|null), response?: tendermint.abci.ResponseSetOption) => void; - /** Commit block_id. */ - public block_id?: (tendermint.types.IBlockID|null); + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = (error: (Error|null), response?: tendermint.abci.ResponseDeliverTx) => void; - /** Commit signatures. */ - public signatures: tendermint.types.ICommitSig[]; + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = (error: (Error|null), response?: tendermint.abci.ResponseCheckTx) => void; /** - * Encodes the specified Commit message. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. - * @param message Commit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link tendermint.abci.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery */ - public static encode(message: tendermint.types.ICommit, writer?: $protobuf.Writer): $protobuf.Writer; + type QueryCallback = (error: (Error|null), response?: tendermint.abci.ResponseQuery) => void; /** - * Encodes the specified Commit message, length delimited. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. - * @param message Commit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit */ - public static encodeDelimited(message: tendermint.types.ICommit, writer?: $protobuf.Writer): $protobuf.Writer; + type CommitCallback = (error: (Error|null), response?: tendermint.abci.ResponseCommit) => void; /** - * Decodes a Commit message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Commit - * @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 tendermint.abci.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Commit; + type InitChainCallback = (error: (Error|null), response?: tendermint.abci.ResponseInitChain) => void; /** - * Decodes a Commit message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Commit - * @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 tendermint.abci.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Commit; + type BeginBlockCallback = (error: (Error|null), response?: tendermint.abci.ResponseBeginBlock) => void; /** - * Verifies a Commit message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock */ - public static verify(message: { [k: string]: any }): (string|null); + type EndBlockCallback = (error: (Error|null), response?: tendermint.abci.ResponseEndBlock) => void; /** - * Creates a Commit message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Commit + * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. + * @param error Error, if any + * @param [response] ResponseListSnapshots */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Commit; + type ListSnapshotsCallback = (error: (Error|null), response?: tendermint.abci.ResponseListSnapshots) => void; /** - * Creates a plain object from a Commit message. Also converts values to other types if specified. - * @param message Commit - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. + * @param error Error, if any + * @param [response] ResponseOfferSnapshot */ - public static toObject(message: tendermint.types.Commit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type OfferSnapshotCallback = (error: (Error|null), response?: tendermint.abci.ResponseOfferSnapshot) => void; /** - * Converts this Commit to JSON. - * @returns JSON object + * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseLoadSnapshotChunk */ - public toJSON(): { [k: string]: any }; + type LoadSnapshotChunkCallback = (error: (Error|null), response?: tendermint.abci.ResponseLoadSnapshotChunk) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseApplySnapshotChunk + */ + type ApplySnapshotChunkCallback = (error: (Error|null), response?: tendermint.abci.ResponseApplySnapshotChunk) => void; } + } - /** Properties of a CommitSig. */ - interface ICommitSig { + /** Namespace types. */ + namespace types { - /** CommitSig block_id_flag */ - block_id_flag?: (tendermint.types.BlockIDFlag|null); + /** BlockIDFlag enum. */ + enum BlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = 0, + BLOCK_ID_FLAG_ABSENT = 1, + BLOCK_ID_FLAG_COMMIT = 2, + BLOCK_ID_FLAG_NIL = 3 + } - /** CommitSig validator_address */ - validator_address?: (Uint8Array|null); + /** SignedMsgType enum. */ + enum SignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = 0, + SIGNED_MSG_TYPE_PREVOTE = 1, + SIGNED_MSG_TYPE_PRECOMMIT = 2, + SIGNED_MSG_TYPE_PROPOSAL = 32 + } - /** CommitSig timestamp */ - timestamp?: (google.protobuf.ITimestamp|null); + /** Properties of a PartSetHeader. */ + interface IPartSetHeader { - /** CommitSig signature */ - signature?: (Uint8Array|null); + /** PartSetHeader total */ + total?: (number|null); + + /** PartSetHeader hash */ + hash?: (Uint8Array|null); } - /** Represents a CommitSig. */ - class CommitSig implements ICommitSig { + /** Represents a PartSetHeader. */ + class PartSetHeader implements IPartSetHeader { /** - * Constructs a new CommitSig. + * Constructs a new PartSetHeader. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.ICommitSig); - - /** CommitSig block_id_flag. */ - public block_id_flag: tendermint.types.BlockIDFlag; - - /** CommitSig validator_address. */ - public validator_address: Uint8Array; + constructor(properties?: tendermint.types.IPartSetHeader); - /** CommitSig timestamp. */ - public timestamp?: (google.protobuf.ITimestamp|null); + /** PartSetHeader total. */ + public total: number; - /** CommitSig signature. */ - public signature: Uint8Array; + /** PartSetHeader hash. */ + public hash: Uint8Array; /** - * Encodes the specified CommitSig message. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. - * @param message CommitSig message or plain object to encode + * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. + * @param message PartSetHeader message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.ICommitSig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IPartSetHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CommitSig message, length delimited. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. - * @param message CommitSig message or plain object to encode + * Encodes the specified PartSetHeader message, length delimited. Does not implicitly {@link tendermint.types.PartSetHeader.verify|verify} messages. + * @param message PartSetHeader message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.ICommitSig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IPartSetHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CommitSig message from the specified reader or buffer. + * Decodes a PartSetHeader message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CommitSig + * @returns PartSetHeader * @throws {Error} If the payload is 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.types.CommitSig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.PartSetHeader; /** - * Decodes a CommitSig message from the specified reader or buffer, length delimited. + * Decodes a PartSetHeader message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CommitSig + * @returns PartSetHeader * @throws {Error} If the 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.types.CommitSig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.PartSetHeader; /** - * Verifies a CommitSig message. + * Verifies a PartSetHeader message. * @param message 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 CommitSig message from a plain object. Also converts values to their respective internal types. + * Creates a PartSetHeader message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CommitSig + * @returns PartSetHeader */ - public static fromObject(object: { [k: string]: any }): tendermint.types.CommitSig; + public static fromObject(object: { [k: string]: any }): tendermint.types.PartSetHeader; /** - * Creates a plain object from a CommitSig message. Also converts values to other types if specified. - * @param message CommitSig + * Creates a plain object from a PartSetHeader message. Also converts values to other types if specified. + * @param message PartSetHeader * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.CommitSig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.PartSetHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CommitSig to JSON. + * Converts this PartSetHeader to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Proposal. */ - interface IProposal { - - /** Proposal type */ - type?: (tendermint.types.SignedMsgType|null); - - /** Proposal height */ - height?: (Long|null); - - /** Proposal round */ - round?: (number|null); - - /** Proposal pol_round */ - pol_round?: (number|null); + /** Properties of a Part. */ + interface IPart { - /** Proposal block_id */ - block_id?: (tendermint.types.IBlockID|null); + /** Part index */ + index?: (number|null); - /** Proposal timestamp */ - timestamp?: (google.protobuf.ITimestamp|null); + /** Part bytes */ + bytes?: (Uint8Array|null); - /** Proposal signature */ - signature?: (Uint8Array|null); + /** Part proof */ + proof?: (tendermint.crypto.IProof|null); } - /** Represents a Proposal. */ - class Proposal implements IProposal { + /** Represents a Part. */ + class Part implements IPart { /** - * Constructs a new Proposal. + * Constructs a new Part. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IProposal); - - /** Proposal type. */ - public type: tendermint.types.SignedMsgType; - - /** Proposal height. */ - public height: Long; - - /** Proposal round. */ - public round: number; - - /** Proposal pol_round. */ - public pol_round: number; + constructor(properties?: tendermint.types.IPart); - /** Proposal block_id. */ - public block_id?: (tendermint.types.IBlockID|null); + /** Part index. */ + public index: number; - /** Proposal timestamp. */ - public timestamp?: (google.protobuf.ITimestamp|null); + /** Part bytes. */ + public bytes: Uint8Array; - /** Proposal signature. */ - public signature: Uint8Array; + /** Part proof. */ + public proof?: (tendermint.crypto.IProof|null); /** - * Encodes the specified Proposal message. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. - * @param message Proposal message or plain object to encode + * Encodes the specified Part message. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. + * @param message Part message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IPart, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Proposal message, length delimited. Does not implicitly {@link tendermint.types.Proposal.verify|verify} messages. - * @param message Proposal message or plain object to encode + * Encodes the specified Part message, length delimited. Does not implicitly {@link tendermint.types.Part.verify|verify} messages. + * @param message Part message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IPart, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Proposal message from the specified reader or buffer. + * Decodes a Part message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Proposal + * @returns Part * @throws {Error} If the payload is 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.types.Proposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Part; /** - * Decodes a Proposal message from the specified reader or buffer, length delimited. + * Decodes a Part message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Proposal + * @returns Part * @throws {Error} If the 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.types.Proposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Part; /** - * Verifies a Proposal message. + * Verifies a Part message. * @param message 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 Proposal message from a plain object. Also converts values to their respective internal types. + * Creates a Part message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Proposal + * @returns Part */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Proposal; + public static fromObject(object: { [k: string]: any }): tendermint.types.Part; /** - * Creates a plain object from a Proposal message. Also converts values to other types if specified. - * @param message Proposal + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @param message Part * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.Proposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Proposal to JSON. + * Converts this Part to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SignedHeader. */ - interface ISignedHeader { + /** Properties of a BlockID. */ + interface IBlockID { - /** SignedHeader header */ - header?: (tendermint.types.IHeader|null); + /** BlockID hash */ + hash?: (Uint8Array|null); - /** SignedHeader commit */ - commit?: (tendermint.types.ICommit|null); + /** BlockID part_set_header */ + part_set_header?: (tendermint.types.IPartSetHeader|null); } - /** Represents a SignedHeader. */ - class SignedHeader implements ISignedHeader { + /** Represents a BlockID. */ + class BlockID implements IBlockID { /** - * Constructs a new SignedHeader. + * Constructs a new BlockID. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.ISignedHeader); + constructor(properties?: tendermint.types.IBlockID); - /** SignedHeader header. */ - public header?: (tendermint.types.IHeader|null); + /** BlockID hash. */ + public hash: Uint8Array; - /** SignedHeader commit. */ - public commit?: (tendermint.types.ICommit|null); + /** BlockID part_set_header. */ + public part_set_header?: (tendermint.types.IPartSetHeader|null); /** - * Encodes the specified SignedHeader message. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. - * @param message SignedHeader message or plain object to encode + * Encodes the specified BlockID message. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. + * @param message BlockID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.ISignedHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IBlockID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SignedHeader message, length delimited. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. - * @param message SignedHeader message or plain object to encode + * Encodes the specified BlockID message, length delimited. Does not implicitly {@link tendermint.types.BlockID.verify|verify} messages. + * @param message BlockID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.ISignedHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IBlockID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignedHeader message from the specified reader or buffer. + * Decodes a BlockID message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SignedHeader + * @returns BlockID * @throws {Error} If the payload is 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.types.SignedHeader; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.BlockID; /** - * Decodes a SignedHeader message from the specified reader or buffer, length delimited. + * Decodes a BlockID message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SignedHeader + * @returns BlockID * @throws {Error} If the 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.types.SignedHeader; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.BlockID; /** - * Verifies a SignedHeader message. + * Verifies a BlockID message. * @param message 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 SignedHeader message from a plain object. Also converts values to their respective internal types. + * Creates a BlockID message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SignedHeader + * @returns BlockID */ - public static fromObject(object: { [k: string]: any }): tendermint.types.SignedHeader; + public static fromObject(object: { [k: string]: any }): tendermint.types.BlockID; /** - * Creates a plain object from a SignedHeader message. Also converts values to other types if specified. - * @param message SignedHeader + * Creates a plain object from a BlockID message. Also converts values to other types if specified. + * @param message BlockID * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.SignedHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.BlockID, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SignedHeader to JSON. + * Converts this BlockID to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LightBlock. */ - interface ILightBlock { + /** Properties of a Header. */ + interface IHeader { - /** LightBlock signed_header */ - signed_header?: (tendermint.types.ISignedHeader|null); + /** Header version */ + version?: (tendermint.version.IConsensus|null); - /** LightBlock validator_set */ - validator_set?: (tendermint.types.IValidatorSet|null); + /** Header chain_id */ + chain_id?: (string|null); + + /** Header height */ + height?: (Long|null); + + /** Header time */ + time?: (google.protobuf.ITimestamp|null); + + /** Header last_block_id */ + last_block_id?: (tendermint.types.IBlockID|null); + + /** Header last_commit_hash */ + last_commit_hash?: (Uint8Array|null); + + /** Header data_hash */ + data_hash?: (Uint8Array|null); + + /** Header validators_hash */ + validators_hash?: (Uint8Array|null); + + /** Header next_validators_hash */ + next_validators_hash?: (Uint8Array|null); + + /** Header consensus_hash */ + consensus_hash?: (Uint8Array|null); + + /** Header app_hash */ + app_hash?: (Uint8Array|null); + + /** Header last_results_hash */ + last_results_hash?: (Uint8Array|null); + + /** Header evidence_hash */ + evidence_hash?: (Uint8Array|null); + + /** Header proposer_address */ + proposer_address?: (Uint8Array|null); } - /** Represents a LightBlock. */ - class LightBlock implements ILightBlock { + /** Represents a Header. */ + class Header implements IHeader { /** - * Constructs a new LightBlock. + * Constructs a new Header. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.ILightBlock); + constructor(properties?: tendermint.types.IHeader); - /** LightBlock signed_header. */ - public signed_header?: (tendermint.types.ISignedHeader|null); + /** Header version. */ + public version?: (tendermint.version.IConsensus|null); - /** LightBlock validator_set. */ - public validator_set?: (tendermint.types.IValidatorSet|null); + /** Header chain_id. */ + public chain_id: string; + + /** Header height. */ + public height: Long; + + /** Header time. */ + public time?: (google.protobuf.ITimestamp|null); + + /** Header last_block_id. */ + public last_block_id?: (tendermint.types.IBlockID|null); + + /** Header last_commit_hash. */ + public last_commit_hash: Uint8Array; + + /** Header data_hash. */ + public data_hash: Uint8Array; + + /** Header validators_hash. */ + public validators_hash: Uint8Array; + + /** Header next_validators_hash. */ + public next_validators_hash: Uint8Array; + + /** Header consensus_hash. */ + public consensus_hash: Uint8Array; + + /** Header app_hash. */ + public app_hash: Uint8Array; + + /** Header last_results_hash. */ + public last_results_hash: Uint8Array; + + /** Header evidence_hash. */ + public evidence_hash: Uint8Array; + + /** Header proposer_address. */ + public proposer_address: Uint8Array; /** - * Encodes the specified LightBlock message. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. - * @param message LightBlock message or plain object to encode + * Encodes the specified Header message. Does not implicitly {@link tendermint.types.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: tendermint.types.ILightBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LightBlock message, length delimited. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. - * @param message LightBlock message or plain object to encode + * Encodes the specified Header message, length delimited. Does not implicitly {@link tendermint.types.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: tendermint.types.ILightBlock, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LightBlock 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 LightBlock + * @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): tendermint.types.LightBlock; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Header; /** - * Decodes a LightBlock 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 LightBlock + * @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)): tendermint.types.LightBlock; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Header; /** - * Verifies a LightBlock 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 LightBlock 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 LightBlock + * @returns Header */ - public static fromObject(object: { [k: string]: any }): tendermint.types.LightBlock; + public static fromObject(object: { [k: string]: any }): tendermint.types.Header; /** - * Creates a plain object from a LightBlock message. Also converts values to other types if specified. - * @param message LightBlock + * 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: tendermint.types.LightBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LightBlock to JSON. + * Converts this Header to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BlockMeta. */ - interface IBlockMeta { - - /** BlockMeta block_id */ - block_id?: (tendermint.types.IBlockID|null); - - /** BlockMeta block_size */ - block_size?: (Long|null); - - /** BlockMeta header */ - header?: (tendermint.types.IHeader|null); + /** Properties of a Data. */ + interface IData { - /** BlockMeta num_txs */ - num_txs?: (Long|null); + /** Data txs */ + txs?: (Uint8Array[]|null); } - /** Represents a BlockMeta. */ - class BlockMeta implements IBlockMeta { + /** Represents a Data. */ + class Data implements IData { /** - * Constructs a new BlockMeta. + * Constructs a new Data. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IBlockMeta); - - /** BlockMeta block_id. */ - public block_id?: (tendermint.types.IBlockID|null); - - /** BlockMeta block_size. */ - public block_size: Long; - - /** BlockMeta header. */ - public header?: (tendermint.types.IHeader|null); + constructor(properties?: tendermint.types.IData); - /** BlockMeta num_txs. */ - public num_txs: Long; + /** Data txs. */ + public txs: Uint8Array[]; /** - * Encodes the specified BlockMeta message. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. - * @param message BlockMeta message or plain object to encode + * Encodes the specified Data message. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. + * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IBlockMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlockMeta message, length delimited. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. - * @param message BlockMeta message or plain object to encode + * Encodes the specified Data message, length delimited. Does not implicitly {@link tendermint.types.Data.verify|verify} messages. + * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IBlockMeta, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlockMeta message from the specified reader or buffer. + * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlockMeta + * @returns Data * @throws {Error} If the payload is 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.types.BlockMeta; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Data; /** - * Decodes a BlockMeta message from the specified reader or buffer, length delimited. + * Decodes a Data message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlockMeta + * @returns Data * @throws {Error} If the 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.types.BlockMeta; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Data; /** - * Verifies a BlockMeta message. + * Verifies a Data message. * @param message 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 BlockMeta message from a plain object. Also converts values to their respective internal types. + * Creates a Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlockMeta + * @returns Data */ - public static fromObject(object: { [k: string]: any }): tendermint.types.BlockMeta; + public static fromObject(object: { [k: string]: any }): tendermint.types.Data; /** - * Creates a plain object from a BlockMeta message. Also converts values to other types if specified. - * @param message BlockMeta + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.BlockMeta, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BlockMeta to JSON. + * Converts this Data to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TxProof. */ - interface ITxProof { + /** Properties of a Vote. */ + interface IVote { - /** TxProof root_hash */ - root_hash?: (Uint8Array|null); + /** Vote type */ + type?: (tendermint.types.SignedMsgType|null); - /** TxProof data */ - data?: (Uint8Array|null); + /** Vote height */ + height?: (Long|null); - /** TxProof proof */ - proof?: (tendermint.crypto.IProof|null); + /** Vote round */ + round?: (number|null); + + /** Vote block_id */ + block_id?: (tendermint.types.IBlockID|null); + + /** Vote timestamp */ + timestamp?: (google.protobuf.ITimestamp|null); + + /** Vote validator_address */ + validator_address?: (Uint8Array|null); + + /** Vote validator_index */ + validator_index?: (number|null); + + /** Vote signature */ + signature?: (Uint8Array|null); } - /** Represents a TxProof. */ - class TxProof implements ITxProof { + /** Represents a Vote. */ + class Vote implements IVote { /** - * Constructs a new TxProof. + * Constructs a new Vote. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.ITxProof); + constructor(properties?: tendermint.types.IVote); - /** TxProof root_hash. */ - public root_hash: Uint8Array; + /** Vote type. */ + public type: tendermint.types.SignedMsgType; - /** TxProof data. */ - public data: Uint8Array; + /** Vote height. */ + public height: Long; - /** TxProof proof. */ - public proof?: (tendermint.crypto.IProof|null); + /** Vote round. */ + public round: number; + + /** Vote block_id. */ + public block_id?: (tendermint.types.IBlockID|null); + + /** Vote timestamp. */ + public timestamp?: (google.protobuf.ITimestamp|null); + + /** Vote validator_address. */ + public validator_address: Uint8Array; + + /** Vote validator_index. */ + public validator_index: number; + + /** Vote signature. */ + public signature: Uint8Array; /** - * Encodes the specified TxProof message. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. - * @param message TxProof message or plain object to encode + * Encodes the specified Vote message. Does not implicitly {@link tendermint.types.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: tendermint.types.ITxProof, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IVote, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TxProof message, length delimited. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. - * @param message TxProof message or plain object to encode + * Encodes the specified Vote message, length delimited. Does not implicitly {@link tendermint.types.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: tendermint.types.ITxProof, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IVote, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TxProof message from the specified reader or buffer. + * 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 TxProof + * @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): tendermint.types.TxProof; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Vote; /** - * Decodes a TxProof message from the specified reader or buffer, length delimited. + * Decodes a Vote message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TxProof + * @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)): tendermint.types.TxProof; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Vote; /** - * Verifies a TxProof message. + * 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); /** - * Creates a TxProof message from a plain object. Also converts values to their respective internal types. + * Creates a Vote message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TxProof + * @returns Vote */ - public static fromObject(object: { [k: string]: any }): tendermint.types.TxProof; + public static fromObject(object: { [k: string]: any }): tendermint.types.Vote; /** - * Creates a plain object from a TxProof message. Also converts values to other types if specified. - * @param message TxProof + * 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: tendermint.types.TxProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Vote, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TxProof to JSON. + * Converts this Vote to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ValidatorSet. */ - interface IValidatorSet { + /** Properties of a Commit. */ + interface ICommit { - /** ValidatorSet validators */ - validators?: (tendermint.types.IValidator[]|null); + /** Commit height */ + height?: (Long|null); - /** ValidatorSet proposer */ - proposer?: (tendermint.types.IValidator|null); + /** Commit round */ + round?: (number|null); - /** ValidatorSet total_voting_power */ - total_voting_power?: (Long|null); + /** Commit block_id */ + block_id?: (tendermint.types.IBlockID|null); + + /** Commit signatures */ + signatures?: (tendermint.types.ICommitSig[]|null); } - /** Represents a ValidatorSet. */ - class ValidatorSet implements IValidatorSet { + /** Represents a Commit. */ + class Commit implements ICommit { /** - * Constructs a new ValidatorSet. + * Constructs a new Commit. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IValidatorSet); + constructor(properties?: tendermint.types.ICommit); - /** ValidatorSet validators. */ - public validators: tendermint.types.IValidator[]; + /** Commit height. */ + public height: Long; - /** ValidatorSet proposer. */ - public proposer?: (tendermint.types.IValidator|null); + /** Commit round. */ + public round: number; - /** ValidatorSet total_voting_power. */ - public total_voting_power: Long; + /** Commit block_id. */ + public block_id?: (tendermint.types.IBlockID|null); + + /** Commit signatures. */ + public signatures: tendermint.types.ICommitSig[]; /** - * Encodes the specified ValidatorSet message. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. - * @param message ValidatorSet message or plain object to encode + * Encodes the specified Commit message. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. + * @param message Commit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IValidatorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ICommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidatorSet message, length delimited. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. - * @param message ValidatorSet message or plain object to encode + * Encodes the specified Commit message, length delimited. Does not implicitly {@link tendermint.types.Commit.verify|verify} messages. + * @param message Commit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IValidatorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ICommit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidatorSet message from the specified reader or buffer. + * Decodes a Commit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidatorSet + * @returns Commit * @throws {Error} If the payload is 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.types.ValidatorSet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Commit; /** - * Decodes a ValidatorSet message from the specified reader or buffer, length delimited. + * Decodes a Commit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidatorSet + * @returns Commit * @throws {Error} If the 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.types.ValidatorSet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Commit; /** - * Verifies a ValidatorSet message. + * Verifies a Commit message. * @param message 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 ValidatorSet message from a plain object. Also converts values to their respective internal types. + * Creates a Commit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidatorSet + * @returns Commit */ - public static fromObject(object: { [k: string]: any }): tendermint.types.ValidatorSet; + public static fromObject(object: { [k: string]: any }): tendermint.types.Commit; /** - * Creates a plain object from a ValidatorSet message. Also converts values to other types if specified. - * @param message ValidatorSet + * Creates a plain object from a Commit message. Also converts values to other types if specified. + * @param message Commit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.ValidatorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Commit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidatorSet to JSON. + * Converts this Commit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Validator. */ - interface IValidator { + /** Properties of a CommitSig. */ + interface ICommitSig { - /** Validator address */ - address?: (Uint8Array|null); + /** CommitSig block_id_flag */ + block_id_flag?: (tendermint.types.BlockIDFlag|null); - /** Validator pub_key */ - pub_key?: (tendermint.crypto.IPublicKey|null); + /** CommitSig validator_address */ + validator_address?: (Uint8Array|null); - /** Validator voting_power */ - voting_power?: (Long|null); + /** CommitSig timestamp */ + timestamp?: (google.protobuf.ITimestamp|null); - /** Validator proposer_priority */ - proposer_priority?: (Long|null); + /** CommitSig signature */ + signature?: (Uint8Array|null); } - /** Represents a Validator. */ - class Validator implements IValidator { + /** Represents a CommitSig. */ + class CommitSig implements ICommitSig { /** - * Constructs a new Validator. + * Constructs a new CommitSig. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IValidator); + constructor(properties?: tendermint.types.ICommitSig); - /** Validator address. */ - public address: Uint8Array; + /** CommitSig block_id_flag. */ + public block_id_flag: tendermint.types.BlockIDFlag; - /** Validator pub_key. */ - public pub_key?: (tendermint.crypto.IPublicKey|null); + /** CommitSig validator_address. */ + public validator_address: Uint8Array; - /** Validator voting_power. */ - public voting_power: Long; + /** CommitSig timestamp. */ + public timestamp?: (google.protobuf.ITimestamp|null); - /** Validator proposer_priority. */ - public proposer_priority: Long; + /** CommitSig signature. */ + public signature: Uint8Array; /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. - * @param message Validator message or plain object to encode + * Encodes the specified CommitSig message. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. + * @param message CommitSig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ICommitSig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. - * @param message Validator message or plain object to encode + * Encodes the specified CommitSig message, length delimited. Does not implicitly {@link tendermint.types.CommitSig.verify|verify} messages. + * @param message CommitSig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ICommitSig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Validator message from the specified reader or buffer. + * Decodes a CommitSig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Validator + * @returns CommitSig * @throws {Error} If the payload is 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.types.Validator; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.CommitSig; /** - * Decodes a Validator message from the specified reader or buffer, length delimited. + * Decodes a CommitSig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Validator + * @returns CommitSig * @throws {Error} If the 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.types.Validator; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.CommitSig; /** - * Verifies a Validator message. + * Verifies a CommitSig message. * @param message 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 Validator message from a plain object. Also converts values to their respective internal types. + * Creates a CommitSig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Validator + * @returns CommitSig */ - public static fromObject(object: { [k: string]: any }): tendermint.types.Validator; + public static fromObject(object: { [k: string]: any }): tendermint.types.CommitSig; /** - * Creates a plain object from a Validator message. Also converts values to other types if specified. - * @param message Validator + * Creates a plain object from a CommitSig message. Also converts values to other types if specified. + * @param message CommitSig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.Validator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.CommitSig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Validator to JSON. + * Converts this CommitSig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SimpleValidator. */ - interface ISimpleValidator { + /** Properties of a Proposal. */ + interface IProposal { - /** SimpleValidator pub_key */ - pub_key?: (tendermint.crypto.IPublicKey|null); + /** Proposal type */ + type?: (tendermint.types.SignedMsgType|null); - /** SimpleValidator voting_power */ - voting_power?: (Long|null); + /** Proposal height */ + height?: (Long|null); + + /** Proposal round */ + round?: (number|null); + + /** Proposal pol_round */ + pol_round?: (number|null); + + /** Proposal block_id */ + block_id?: (tendermint.types.IBlockID|null); + + /** Proposal timestamp */ + timestamp?: (google.protobuf.ITimestamp|null); + + /** Proposal signature */ + signature?: (Uint8Array|null); } - /** Represents a SimpleValidator. */ - class SimpleValidator implements ISimpleValidator { + /** Represents a Proposal. */ + class Proposal implements IProposal { /** - * Constructs a new SimpleValidator. + * Constructs a new Proposal. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.ISimpleValidator); + constructor(properties?: tendermint.types.IProposal); - /** SimpleValidator pub_key. */ - public pub_key?: (tendermint.crypto.IPublicKey|null); + /** Proposal type. */ + public type: tendermint.types.SignedMsgType; - /** SimpleValidator voting_power. */ - public voting_power: Long; + /** Proposal height. */ + public height: Long; + + /** Proposal round. */ + public round: number; + + /** Proposal pol_round. */ + public pol_round: number; + + /** Proposal block_id. */ + public block_id?: (tendermint.types.IBlockID|null); + + /** Proposal timestamp. */ + public timestamp?: (google.protobuf.ITimestamp|null); + + /** Proposal signature. */ + public signature: Uint8Array; /** - * Encodes the specified SimpleValidator message. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. - * @param message SimpleValidator message or plain object to encode + * Encodes the specified Proposal message. Does not implicitly {@link tendermint.types.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: tendermint.types.ISimpleValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SimpleValidator message, length delimited. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. - * @param message SimpleValidator message or plain object to encode + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link tendermint.types.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: tendermint.types.ISimpleValidator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SimpleValidator 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 SimpleValidator + * @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): tendermint.types.SimpleValidator; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Proposal; /** - * Decodes a SimpleValidator 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 SimpleValidator + * @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)): tendermint.types.SimpleValidator; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Proposal; /** - * Verifies a SimpleValidator 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 a SimpleValidator 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 SimpleValidator + * @returns Proposal */ - public static fromObject(object: { [k: string]: any }): tendermint.types.SimpleValidator; + public static fromObject(object: { [k: string]: any }): tendermint.types.Proposal; /** - * Creates a plain object from a SimpleValidator message. Also converts values to other types if specified. - * @param message SimpleValidator + * 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: tendermint.types.SimpleValidator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Proposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SimpleValidator to JSON. + * Converts this Proposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConsensusParams. */ - interface IConsensusParams { - - /** ConsensusParams block */ - block?: (tendermint.types.IBlockParams|null); - - /** ConsensusParams evidence */ - evidence?: (tendermint.types.IEvidenceParams|null); + /** Properties of a SignedHeader. */ + interface ISignedHeader { - /** ConsensusParams validator */ - validator?: (tendermint.types.IValidatorParams|null); + /** SignedHeader header */ + header?: (tendermint.types.IHeader|null); - /** ConsensusParams version */ - version?: (tendermint.types.IVersionParams|null); + /** SignedHeader commit */ + commit?: (tendermint.types.ICommit|null); } - /** Represents a ConsensusParams. */ - class ConsensusParams implements IConsensusParams { + /** Represents a SignedHeader. */ + class SignedHeader implements ISignedHeader { /** - * Constructs a new ConsensusParams. + * Constructs a new SignedHeader. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IConsensusParams); - - /** ConsensusParams block. */ - public block?: (tendermint.types.IBlockParams|null); - - /** ConsensusParams evidence. */ - public evidence?: (tendermint.types.IEvidenceParams|null); + constructor(properties?: tendermint.types.ISignedHeader); - /** ConsensusParams validator. */ - public validator?: (tendermint.types.IValidatorParams|null); + /** SignedHeader header. */ + public header?: (tendermint.types.IHeader|null); - /** ConsensusParams version. */ - public version?: (tendermint.types.IVersionParams|null); + /** SignedHeader commit. */ + public commit?: (tendermint.types.ICommit|null); /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. - * @param message ConsensusParams message or plain object to encode + * Encodes the specified SignedHeader message. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. + * @param message SignedHeader message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ISignedHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. - * @param message ConsensusParams message or plain object to encode + * Encodes the specified SignedHeader message, length delimited. Does not implicitly {@link tendermint.types.SignedHeader.verify|verify} messages. + * @param message SignedHeader message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ISignedHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConsensusParams message from the specified reader or buffer. + * Decodes a SignedHeader message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConsensusParams + * @returns SignedHeader * @throws {Error} If the payload is 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.types.ConsensusParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.SignedHeader; /** - * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. + * Decodes a SignedHeader message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConsensusParams + * @returns SignedHeader * @throws {Error} If the 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.types.ConsensusParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.SignedHeader; /** - * Verifies a ConsensusParams message. + * Verifies a SignedHeader message. * @param message 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 ConsensusParams message from a plain object. Also converts values to their respective internal types. + * Creates a SignedHeader message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConsensusParams + * @returns SignedHeader */ - public static fromObject(object: { [k: string]: any }): tendermint.types.ConsensusParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.SignedHeader; /** - * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. - * @param message ConsensusParams + * Creates a plain object from a SignedHeader message. Also converts values to other types if specified. + * @param message SignedHeader * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.ConsensusParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.SignedHeader, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConsensusParams to JSON. + * Converts this SignedHeader to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BlockParams. */ - interface IBlockParams { - - /** BlockParams max_bytes */ - max_bytes?: (Long|null); + /** Properties of a LightBlock. */ + interface ILightBlock { - /** BlockParams max_gas */ - max_gas?: (Long|null); + /** LightBlock signed_header */ + signed_header?: (tendermint.types.ISignedHeader|null); - /** BlockParams time_iota_ms */ - time_iota_ms?: (Long|null); + /** LightBlock validator_set */ + validator_set?: (tendermint.types.IValidatorSet|null); } - /** Represents a BlockParams. */ - class BlockParams implements IBlockParams { + /** Represents a LightBlock. */ + class LightBlock implements ILightBlock { /** - * Constructs a new BlockParams. + * Constructs a new LightBlock. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IBlockParams); - - /** BlockParams max_bytes. */ - public max_bytes: Long; + constructor(properties?: tendermint.types.ILightBlock); - /** BlockParams max_gas. */ - public max_gas: Long; + /** LightBlock signed_header. */ + public signed_header?: (tendermint.types.ISignedHeader|null); - /** BlockParams time_iota_ms. */ - public time_iota_ms: Long; + /** LightBlock validator_set. */ + public validator_set?: (tendermint.types.IValidatorSet|null); /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. - * @param message BlockParams message or plain object to encode + * Encodes the specified LightBlock message. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. + * @param message LightBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ILightBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. - * @param message BlockParams message or plain object to encode + * Encodes the specified LightBlock message, length delimited. Does not implicitly {@link tendermint.types.LightBlock.verify|verify} messages. + * @param message LightBlock message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ILightBlock, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlockParams message from the specified reader or buffer. + * Decodes a LightBlock message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlockParams + * @returns LightBlock * @throws {Error} If the payload is 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.types.BlockParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.LightBlock; /** - * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * Decodes a LightBlock message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlockParams + * @returns LightBlock * @throws {Error} If the 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.types.BlockParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.LightBlock; /** - * Verifies a BlockParams message. + * Verifies a LightBlock message. * @param message 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 BlockParams message from a plain object. Also converts values to their respective internal types. + * Creates a LightBlock message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlockParams + * @returns LightBlock */ - public static fromObject(object: { [k: string]: any }): tendermint.types.BlockParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.LightBlock; /** - * Creates a plain object from a BlockParams message. Also converts values to other types if specified. - * @param message BlockParams + * Creates a plain object from a LightBlock message. Also converts values to other types if specified. + * @param message LightBlock * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.BlockParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.LightBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BlockParams to JSON. + * Converts this LightBlock to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EvidenceParams. */ - interface IEvidenceParams { + /** Properties of a BlockMeta. */ + interface IBlockMeta { - /** EvidenceParams max_age_num_blocks */ - max_age_num_blocks?: (Long|null); + /** BlockMeta block_id */ + block_id?: (tendermint.types.IBlockID|null); - /** EvidenceParams max_age_duration */ - max_age_duration?: (google.protobuf.IDuration|null); + /** BlockMeta block_size */ + block_size?: (Long|null); - /** EvidenceParams max_bytes */ - max_bytes?: (Long|null); + /** BlockMeta header */ + header?: (tendermint.types.IHeader|null); + + /** BlockMeta num_txs */ + num_txs?: (Long|null); } - /** Represents an EvidenceParams. */ - class EvidenceParams implements IEvidenceParams { + /** Represents a BlockMeta. */ + class BlockMeta implements IBlockMeta { /** - * Constructs a new EvidenceParams. + * Constructs a new BlockMeta. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IEvidenceParams); + constructor(properties?: tendermint.types.IBlockMeta); - /** EvidenceParams max_age_num_blocks. */ - public max_age_num_blocks: Long; + /** BlockMeta block_id. */ + public block_id?: (tendermint.types.IBlockID|null); - /** EvidenceParams max_age_duration. */ - public max_age_duration?: (google.protobuf.IDuration|null); + /** BlockMeta block_size. */ + public block_size: Long; - /** EvidenceParams max_bytes. */ - public max_bytes: Long; + /** BlockMeta header. */ + public header?: (tendermint.types.IHeader|null); + + /** BlockMeta num_txs. */ + public num_txs: Long; /** - * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. - * @param message EvidenceParams message or plain object to encode + * Encodes the specified BlockMeta message. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. + * @param message BlockMeta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IEvidenceParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IBlockMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EvidenceParams message, length delimited. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. - * @param message EvidenceParams message or plain object to encode + * Encodes the specified BlockMeta message, length delimited. Does not implicitly {@link tendermint.types.BlockMeta.verify|verify} messages. + * @param message BlockMeta message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IEvidenceParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IBlockMeta, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EvidenceParams message from the specified reader or buffer. + * Decodes a BlockMeta message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EvidenceParams + * @returns BlockMeta * @throws {Error} If the payload is 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.types.EvidenceParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.BlockMeta; /** - * Decodes an EvidenceParams message from the specified reader or buffer, length delimited. + * Decodes a BlockMeta message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EvidenceParams + * @returns BlockMeta * @throws {Error} If the 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.types.EvidenceParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.BlockMeta; /** - * Verifies an EvidenceParams message. + * Verifies a BlockMeta message. * @param message 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 EvidenceParams message from a plain object. Also converts values to their respective internal types. + * Creates a BlockMeta message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EvidenceParams + * @returns BlockMeta */ - public static fromObject(object: { [k: string]: any }): tendermint.types.EvidenceParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.BlockMeta; /** - * Creates a plain object from an EvidenceParams message. Also converts values to other types if specified. - * @param message EvidenceParams + * Creates a plain object from a BlockMeta message. Also converts values to other types if specified. + * @param message BlockMeta * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.EvidenceParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.BlockMeta, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EvidenceParams to JSON. + * Converts this BlockMeta to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ValidatorParams. */ - interface IValidatorParams { + /** Properties of a TxProof. */ + interface ITxProof { - /** ValidatorParams pub_key_types */ - pub_key_types?: (string[]|null); + /** TxProof root_hash */ + root_hash?: (Uint8Array|null); + + /** TxProof data */ + data?: (Uint8Array|null); + + /** TxProof proof */ + proof?: (tendermint.crypto.IProof|null); } - /** Represents a ValidatorParams. */ - class ValidatorParams implements IValidatorParams { + /** Represents a TxProof. */ + class TxProof implements ITxProof { /** - * Constructs a new ValidatorParams. + * Constructs a new TxProof. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IValidatorParams); + constructor(properties?: tendermint.types.ITxProof); - /** ValidatorParams pub_key_types. */ - public pub_key_types: string[]; + /** TxProof root_hash. */ + public root_hash: Uint8Array; + + /** TxProof data. */ + public data: Uint8Array; + + /** TxProof proof. */ + public proof?: (tendermint.crypto.IProof|null); /** - * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. - * @param message ValidatorParams message or plain object to encode + * Encodes the specified TxProof message. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. + * @param message TxProof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IValidatorParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ITxProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidatorParams message, length delimited. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. - * @param message ValidatorParams message or plain object to encode + * Encodes the specified TxProof message, length delimited. Does not implicitly {@link tendermint.types.TxProof.verify|verify} messages. + * @param message TxProof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IValidatorParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ITxProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidatorParams message from the specified reader or buffer. + * Decodes a TxProof message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidatorParams + * @returns TxProof * @throws {Error} If the payload is 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.types.ValidatorParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.TxProof; /** - * Decodes a ValidatorParams message from the specified reader or buffer, length delimited. + * Decodes a TxProof message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidatorParams + * @returns TxProof * @throws {Error} If the 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.types.ValidatorParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.TxProof; /** - * Verifies a ValidatorParams message. + * Verifies a TxProof message. * @param message 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 ValidatorParams message from a plain object. Also converts values to their respective internal types. + * Creates a TxProof message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidatorParams + * @returns TxProof */ - public static fromObject(object: { [k: string]: any }): tendermint.types.ValidatorParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.TxProof; /** - * Creates a plain object from a ValidatorParams message. Also converts values to other types if specified. - * @param message ValidatorParams + * Creates a plain object from a TxProof message. Also converts values to other types if specified. + * @param message TxProof * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.ValidatorParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.TxProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidatorParams to JSON. + * Converts this TxProof to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VersionParams. */ - interface IVersionParams { + /** Properties of a ValidatorSet. */ + interface IValidatorSet { - /** VersionParams app_version */ - app_version?: (Long|null); + /** ValidatorSet validators */ + validators?: (tendermint.types.IValidator[]|null); + + /** ValidatorSet proposer */ + proposer?: (tendermint.types.IValidator|null); + + /** ValidatorSet total_voting_power */ + total_voting_power?: (Long|null); } - /** Represents a VersionParams. */ - class VersionParams implements IVersionParams { + /** Represents a ValidatorSet. */ + class ValidatorSet implements IValidatorSet { /** - * Constructs a new VersionParams. + * Constructs a new ValidatorSet. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IVersionParams); + constructor(properties?: tendermint.types.IValidatorSet); - /** VersionParams app_version. */ - public app_version: Long; + /** ValidatorSet validators. */ + public validators: tendermint.types.IValidator[]; + + /** ValidatorSet proposer. */ + public proposer?: (tendermint.types.IValidator|null); + + /** ValidatorSet total_voting_power. */ + public total_voting_power: Long; /** - * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. - * @param message VersionParams message or plain object to encode + * Encodes the specified ValidatorSet message. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. + * @param message ValidatorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IVersionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IValidatorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionParams message, length delimited. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. - * @param message VersionParams message or plain object to encode + * Encodes the specified ValidatorSet message, length delimited. Does not implicitly {@link tendermint.types.ValidatorSet.verify|verify} messages. + * @param message ValidatorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IVersionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IValidatorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionParams message from the specified reader or buffer. + * Decodes a ValidatorSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionParams + * @returns ValidatorSet * @throws {Error} If the payload is 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.types.VersionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.ValidatorSet; /** - * Decodes a VersionParams message from the specified reader or buffer, length delimited. + * Decodes a ValidatorSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionParams + * @returns ValidatorSet * @throws {Error} If the 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.types.VersionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.ValidatorSet; /** - * Verifies a VersionParams message. + * Verifies a ValidatorSet message. * @param message 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 VersionParams message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionParams + * @returns ValidatorSet */ - public static fromObject(object: { [k: string]: any }): tendermint.types.VersionParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.ValidatorSet; /** - * Creates a plain object from a VersionParams message. Also converts values to other types if specified. - * @param message VersionParams + * Creates a plain object from a ValidatorSet message. Also converts values to other types if specified. + * @param message ValidatorSet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.VersionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.ValidatorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionParams to JSON. + * Converts this ValidatorSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a HashedParams. */ - interface IHashedParams { + /** Properties of a Validator. */ + interface IValidator { - /** HashedParams block_max_bytes */ - block_max_bytes?: (Long|null); + /** Validator address */ + address?: (Uint8Array|null); - /** HashedParams block_max_gas */ - block_max_gas?: (Long|null); + /** Validator pub_key */ + pub_key?: (tendermint.crypto.IPublicKey|null); + + /** Validator voting_power */ + voting_power?: (Long|null); + + /** Validator proposer_priority */ + proposer_priority?: (Long|null); } - /** Represents a HashedParams. */ - class HashedParams implements IHashedParams { + /** Represents a Validator. */ + class Validator implements IValidator { /** - * Constructs a new HashedParams. + * Constructs a new Validator. * @param [properties] Properties to set */ - constructor(properties?: tendermint.types.IHashedParams); + constructor(properties?: tendermint.types.IValidator); - /** HashedParams block_max_bytes. */ - public block_max_bytes: Long; + /** Validator address. */ + public address: Uint8Array; - /** HashedParams block_max_gas. */ - public block_max_gas: Long; + /** Validator pub_key. */ + public pub_key?: (tendermint.crypto.IPublicKey|null); + + /** Validator voting_power. */ + public voting_power: Long; + + /** Validator proposer_priority. */ + public proposer_priority: Long; /** - * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. - * @param message HashedParams message or plain object to encode + * Encodes the specified Validator message. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.types.IHashedParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HashedParams message, length delimited. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. - * @param message HashedParams message or plain object to encode + * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.types.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.types.IHashedParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HashedParams message from the specified reader or buffer. + * Decodes a Validator message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HashedParams + * @returns Validator * @throws {Error} If the payload is 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.types.HashedParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.Validator; /** - * Decodes a HashedParams message from the specified reader or buffer, length delimited. + * Decodes a Validator message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HashedParams + * @returns Validator * @throws {Error} If the 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.types.HashedParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.Validator; /** - * Verifies a HashedParams message. + * Verifies a Validator message. * @param message 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 HashedParams message from a plain object. Also converts values to their respective internal types. + * Creates a Validator message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HashedParams + * @returns Validator */ - public static fromObject(object: { [k: string]: any }): tendermint.types.HashedParams; + public static fromObject(object: { [k: string]: any }): tendermint.types.Validator; /** - * Creates a plain object from a HashedParams message. Also converts values to other types if specified. - * @param message HashedParams + * Creates a plain object from a Validator message. Also converts values to other types if specified. + * @param message Validator * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.types.HashedParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.Validator, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HashedParams to JSON. + * Converts this Validator to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Namespace version. */ - namespace version { - /** Properties of an App. */ - interface IApp { + /** Properties of a SimpleValidator. */ + interface ISimpleValidator { - /** App protocol */ - protocol?: (Long|null); + /** SimpleValidator pub_key */ + pub_key?: (tendermint.crypto.IPublicKey|null); - /** App software */ - software?: (string|null); + /** SimpleValidator voting_power */ + voting_power?: (Long|null); } - /** Represents an App. */ - class App implements IApp { + /** Represents a SimpleValidator. */ + class SimpleValidator implements ISimpleValidator { /** - * Constructs a new App. + * Constructs a new SimpleValidator. * @param [properties] Properties to set */ - constructor(properties?: tendermint.version.IApp); + constructor(properties?: tendermint.types.ISimpleValidator); - /** App protocol. */ - public protocol: Long; + /** SimpleValidator pub_key. */ + public pub_key?: (tendermint.crypto.IPublicKey|null); - /** App software. */ - public software: string; + /** SimpleValidator voting_power. */ + public voting_power: Long; /** - * Encodes the specified App message. Does not implicitly {@link tendermint.version.App.verify|verify} messages. - * @param message App message or plain object to encode + * Encodes the specified SimpleValidator message. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. + * @param message SimpleValidator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.version.IApp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.ISimpleValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified App message, length delimited. Does not implicitly {@link tendermint.version.App.verify|verify} messages. - * @param message App message or plain object to encode + * Encodes the specified SimpleValidator message, length delimited. Does not implicitly {@link tendermint.types.SimpleValidator.verify|verify} messages. + * @param message SimpleValidator message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.version.IApp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.ISimpleValidator, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an App message from the specified reader or buffer. + * Decodes a SimpleValidator message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns App + * @returns SimpleValidator * @throws {Error} If the payload is 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.version.App; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.SimpleValidator; /** - * Decodes an App message from the specified reader or buffer, length delimited. + * Decodes a SimpleValidator message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns App + * @returns SimpleValidator * @throws {Error} If the 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.version.App; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.SimpleValidator; /** - * Verifies an App message. + * Verifies a SimpleValidator message. * @param message 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 App message from a plain object. Also converts values to their respective internal types. + * Creates a SimpleValidator message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns App + * @returns SimpleValidator */ - public static fromObject(object: { [k: string]: any }): tendermint.version.App; + public static fromObject(object: { [k: string]: any }): tendermint.types.SimpleValidator; /** - * Creates a plain object from an App message. Also converts values to other types if specified. - * @param message App + * Creates a plain object from a SimpleValidator message. Also converts values to other types if specified. + * @param message SimpleValidator * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.version.App, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.SimpleValidator, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this App to JSON. + * Converts this SimpleValidator to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Consensus. */ - interface IConsensus { + /** Properties of a ConsensusParams. */ + interface IConsensusParams { - /** Consensus block */ - block?: (Long|null); + /** ConsensusParams block */ + block?: (tendermint.types.IBlockParams|null); - /** Consensus app */ - app?: (Long|null); + /** ConsensusParams evidence */ + evidence?: (tendermint.types.IEvidenceParams|null); + + /** ConsensusParams validator */ + validator?: (tendermint.types.IValidatorParams|null); + + /** ConsensusParams version */ + version?: (tendermint.types.IVersionParams|null); } - /** Represents a Consensus. */ - class Consensus implements IConsensus { + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { /** - * Constructs a new Consensus. + * Constructs a new ConsensusParams. * @param [properties] Properties to set */ - constructor(properties?: tendermint.version.IConsensus); + constructor(properties?: tendermint.types.IConsensusParams); - /** Consensus block. */ - public block: Long; + /** ConsensusParams block. */ + public block?: (tendermint.types.IBlockParams|null); - /** Consensus app. */ - public app: Long; + /** ConsensusParams evidence. */ + public evidence?: (tendermint.types.IEvidenceParams|null); + + /** ConsensusParams validator. */ + public validator?: (tendermint.types.IValidatorParams|null); + + /** ConsensusParams version. */ + public version?: (tendermint.types.IVersionParams|null); /** - * Encodes the specified Consensus message. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. - * @param message Consensus message or plain object to encode + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: tendermint.version.IConsensus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: tendermint.types.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Consensus message, length delimited. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. - * @param message Consensus message or plain object to encode + * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.types.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: tendermint.version.IConsensus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: tendermint.types.IConsensusParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Consensus message from the specified reader or buffer. + * Decodes a ConsensusParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Consensus + * @returns ConsensusParams * @throws {Error} If the payload is 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.version.Consensus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.ConsensusParams; /** - * Decodes a Consensus message from the specified reader or buffer, length delimited. + * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Consensus + * @returns ConsensusParams * @throws {Error} If the 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.version.Consensus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.ConsensusParams; /** - * Verifies a Consensus message. + * Verifies a ConsensusParams message. * @param message 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 Consensus message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Consensus + * @returns ConsensusParams */ - public static fromObject(object: { [k: string]: any }): tendermint.version.Consensus; + public static fromObject(object: { [k: string]: any }): tendermint.types.ConsensusParams; /** - * Creates a plain object from a Consensus message. Also converts values to other types if specified. - * @param message Consensus + * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * @param message ConsensusParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: tendermint.version.Consensus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.ConsensusParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Consensus to JSON. + * Converts this ConsensusParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } -} -/** Namespace google. */ -export namespace google { + /** Properties of a BlockParams. */ + interface IBlockParams { - /** Namespace protobuf. */ - namespace protobuf { + /** BlockParams max_bytes */ + max_bytes?: (Long|null); - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** BlockParams max_gas */ + max_gas?: (Long|null); - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); + /** BlockParams time_iota_ms */ + time_iota_ms?: (Long|null); } - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { /** - * Constructs a new FileDescriptorSet. + * Constructs a new BlockParams. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + constructor(properties?: tendermint.types.IBlockParams); - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** BlockParams max_bytes. */ + public max_bytes: Long; + + /** BlockParams max_gas. */ + public max_gas: Long; + + /** BlockParams time_iota_ms. */ + public time_iota_ms: Long; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * @param message BlockParams 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; + public static encode(message: tendermint.types.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.types.BlockParams.verify|verify} messages. + * @param message BlockParams 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; + public static encodeDelimited(message: tendermint.types.IBlockParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a BlockParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorSet + * @returns BlockParams * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.BlockParams; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a BlockParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet + * @returns BlockParams * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.BlockParams; /** - * Verifies a FileDescriptorSet message. + * Verifies a BlockParams message. * @param message 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorSet + * @returns BlockParams */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + public static fromObject(object: { [k: string]: any }): tendermint.types.BlockParams; /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet + * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * @param message BlockParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.BlockParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorSet to JSON. + * Converts this BlockParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto public_dependency */ - public_dependency?: (number[]|null); - - /** FileDescriptorProto weak_dependency */ - weak_dependency?: (number[]|null); - - /** FileDescriptorProto message_type */ - message_type?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enum_type */ - enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); - - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); + /** EvidenceParams max_age_num_blocks */ + max_age_num_blocks?: (Long|null); - /** FileDescriptorProto source_code_info */ - source_code_info?: (google.protobuf.ISourceCodeInfo|null); + /** EvidenceParams max_age_duration */ + max_age_duration?: (google.protobuf.IDuration|null); - /** FileDescriptorProto syntax */ - syntax?: (string|null); + /** EvidenceParams max_bytes */ + max_bytes?: (Long|null); } - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { /** - * Constructs a new FileDescriptorProto. + * Constructs a new EvidenceParams. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** 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[]; + constructor(properties?: tendermint.types.IEvidenceParams); - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); + /** EvidenceParams max_age_num_blocks. */ + public max_age_num_blocks: Long; - /** FileDescriptorProto source_code_info. */ - public source_code_info?: (google.protobuf.ISourceCodeInfo|null); + /** EvidenceParams max_age_duration. */ + public max_age_duration?: (google.protobuf.IDuration|null); - /** FileDescriptorProto syntax. */ - public syntax: string; + /** EvidenceParams max_bytes. */ + public max_bytes: Long; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. + * @param message EvidenceParams 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; + public static encode(message: tendermint.types.IEvidenceParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified EvidenceParams message, length delimited. Does not implicitly {@link tendermint.types.EvidenceParams.verify|verify} messages. + * @param message EvidenceParams 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; + public static encodeDelimited(message: tendermint.types.IEvidenceParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes an EvidenceParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorProto + * @returns EvidenceParams * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.EvidenceParams; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EvidenceParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto + * @returns EvidenceParams * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.EvidenceParams; /** - * Verifies a FileDescriptorProto message. + * Verifies an EvidenceParams message. * @param message 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EvidenceParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorProto + * @returns EvidenceParams */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.types.EvidenceParams; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto + * Creates a plain object from an EvidenceParams message. Also converts values to other types if specified. + * @param message EvidenceParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.EvidenceParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this EvidenceParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - - /** DescriptorProto name */ - name?: (string|null); - - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|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); + /** Properties of a ValidatorParams. */ + interface IValidatorParams { - /** DescriptorProto reserved_name */ - reserved_name?: (string[]|null); + /** ValidatorParams pub_key_types */ + pub_key_types?: (string[]|null); } - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** Represents a ValidatorParams. */ + class ValidatorParams implements IValidatorParams { /** - * Constructs a new DescriptorProto. + * Constructs a new ValidatorParams. * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** 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[]; + */ + constructor(properties?: tendermint.types.IValidatorParams); - /** DescriptorProto reserved_name. */ - public reserved_name: string[]; + /** ValidatorParams pub_key_types. */ + public pub_key_types: string[]; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. + * @param message ValidatorParams 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; + public static encode(message: tendermint.types.IValidatorParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified ValidatorParams message, length delimited. Does not implicitly {@link tendermint.types.ValidatorParams.verify|verify} messages. + * @param message ValidatorParams 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; + public static encodeDelimited(message: tendermint.types.IValidatorParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes a ValidatorParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DescriptorProto + * @returns ValidatorParams * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.ValidatorParams; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ValidatorParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DescriptorProto + * @returns ValidatorParams * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.ValidatorParams; /** - * Verifies a DescriptorProto message. + * Verifies a ValidatorParams message. * @param message 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ValidatorParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DescriptorProto + * @returns ValidatorParams */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.types.ValidatorParams; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto + * Creates a plain object from a ValidatorParams message. Also converts values to other types if specified. + * @param message ValidatorParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.ValidatorParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DescriptorProto to JSON. + * Converts this ValidatorParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DescriptorProto { - - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - - /** 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 }; - } - } - - /** 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); + /** Properties of a VersionParams. */ + interface IVersionParams { - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** VersionParams app_version */ + app_version?: (Long|null); } - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** Represents a VersionParams. */ + class VersionParams implements IVersionParams { /** - * Constructs a new FieldDescriptorProto. + * Constructs a new VersionParams. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** 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; + constructor(properties?: tendermint.types.IVersionParams); - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** VersionParams app_version. */ + public app_version: Long; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * @param message VersionParams 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; + public static encode(message: tendermint.types.IVersionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified VersionParams message, length delimited. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * @param message VersionParams 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; + public static encodeDelimited(message: tendermint.types.IVersionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes a VersionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto + * @returns VersionParams * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.VersionParams; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a VersionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto + * @returns VersionParams * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.VersionParams; /** - * Verifies a FieldDescriptorProto message. + * Verifies a VersionParams message. * @param message 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a VersionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldDescriptorProto + * @returns VersionParams */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.types.VersionParams; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto + * Creates a plain object from a VersionParams message. Also converts values to other types if specified. + * @param message VersionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.VersionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldDescriptorProto to JSON. + * Converts this VersionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldDescriptorProto { - - /** 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 - } - - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } - } - - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { + /** Properties of a HashedParams. */ + interface IHashedParams { - /** OneofDescriptorProto name */ - name?: (string|null); + /** HashedParams block_max_bytes */ + block_max_bytes?: (Long|null); - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); + /** HashedParams block_max_gas */ + block_max_gas?: (Long|null); } - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** Represents a HashedParams. */ + class HashedParams implements IHashedParams { /** - * Constructs a new OneofDescriptorProto. + * Constructs a new HashedParams. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); + constructor(properties?: tendermint.types.IHashedParams); - /** OneofDescriptorProto name. */ - public name: string; + /** HashedParams block_max_bytes. */ + public block_max_bytes: Long; - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** HashedParams block_max_gas. */ + public block_max_gas: Long; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * @param message HashedParams 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; + public static encode(message: tendermint.types.IHashedParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified HashedParams message, length delimited. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * @param message HashedParams 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; + public static encodeDelimited(message: tendermint.types.IHashedParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a HashedParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto + * @returns HashedParams * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.types.HashedParams; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a HashedParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto + * @returns HashedParams * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.types.HashedParams; /** - * Verifies an OneofDescriptorProto message. + * Verifies a HashedParams message. * @param message 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a HashedParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofDescriptorProto + * @returns HashedParams */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.types.HashedParams; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto + * Creates a plain object from a HashedParams message. Also converts values to other types if specified. + * @param message HashedParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.types.HashedParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this HashedParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { + /** Namespace version. */ + namespace version { - /** EnumDescriptorProto name */ - name?: (string|null); + /** Properties of an App. */ + interface IApp { - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** App protocol */ + protocol?: (Long|null); - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** App software */ + software?: (string|null); } - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** Represents an App. */ + class App implements IApp { /** - * Constructs a new EnumDescriptorProto. + * Constructs a new App. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; + constructor(properties?: tendermint.version.IApp); - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + /** App protocol. */ + public protocol: Long; - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** App software. */ + public software: string; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * Encodes the specified App message. Does not implicitly {@link tendermint.version.App.verify|verify} messages. + * @param message App 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; + public static encode(message: tendermint.version.IApp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified App message, length delimited. Does not implicitly {@link tendermint.version.App.verify|verify} messages. + * @param message App 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; + public static encodeDelimited(message: tendermint.version.IApp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes an App message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto + * @returns App * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.version.App; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an App message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto + * @returns App * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.version.App; /** - * Verifies an EnumDescriptorProto message. + * Verifies an App message. * @param message 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an App message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumDescriptorProto + * @returns App */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.version.App; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto + * Creates a plain object from an App message. Also converts values to other types if specified. + * @param message App * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.version.App, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this App to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** Properties of a Consensus. */ + interface IConsensus { - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** Consensus block */ + block?: (Long|null); - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); + /** Consensus app */ + app?: (Long|null); } - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** Represents a Consensus. */ + class Consensus implements IConsensus { /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new Consensus. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; + constructor(properties?: tendermint.version.IConsensus); - /** EnumValueDescriptorProto number. */ - public number: number; + /** Consensus block. */ + public block: Long; - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** Consensus app. */ + public app: Long; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * Encodes the specified Consensus message. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. + * @param message Consensus 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; + public static encode(message: tendermint.version.IConsensus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified Consensus message, length delimited. Does not implicitly {@link tendermint.version.Consensus.verify|verify} messages. + * @param message Consensus 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; + public static encodeDelimited(message: tendermint.version.IConsensus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes a Consensus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto + * @returns Consensus * @throws {Error} If the payload is 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.version.Consensus; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a Consensus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto + * @returns Consensus * @throws {Error} If the 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.version.Consensus; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies a Consensus message. * @param message 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a Consensus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueDescriptorProto + * @returns Consensus */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + public static fromObject(object: { [k: string]: any }): tendermint.version.Consensus; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto + * Creates a plain object from a Consensus message. Also converts values to other types if specified. + * @param message Consensus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: tendermint.version.Consensus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this Consensus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } +} - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { +/** Namespace google. */ +export namespace google { - /** ServiceDescriptorProto name */ - name?: (string|null); + /** Namespace protobuf. */ + namespace protobuf { - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); } - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new FileDescriptorSet. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; - - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + constructor(properties?: google.protobuf.IFileDescriptorSet); - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto 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.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceDescriptorProto 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 ServiceDescriptorProto + * @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.ServiceDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; /** - * Decodes a ServiceDescriptorProto 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 ServiceDescriptorProto + * @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.ServiceDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; /** - * Verifies a ServiceDescriptorProto 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 a ServiceDescriptorProto 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 ServiceDescriptorProto + * @returns FileDescriptorSet */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto + * 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.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this FileDescriptorSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** MethodDescriptorProto name */ + /** FileDescriptorProto name */ name?: (string|null); - /** MethodDescriptorProto input_type */ - input_type?: (string|null); + /** FileDescriptorProto package */ + "package"?: (string|null); - /** MethodDescriptorProto output_type */ - output_type?: (string|null); + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** FileDescriptorProto public_dependency */ + public_dependency?: (number[]|null); - /** MethodDescriptorProto client_streaming */ - client_streaming?: (boolean|null); + /** FileDescriptorProto weak_dependency */ + weak_dependency?: (number[]|null); - /** MethodDescriptorProto server_streaming */ - server_streaming?: (boolean|null); + /** FileDescriptorProto message_type */ + message_type?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enum_type */ + enum_type?: (google.protobuf.IEnumDescriptorProto[]|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 a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { /** - * Constructs a new MethodDescriptorProto. + * Constructs a new FileDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** MethodDescriptorProto name. */ + /** FileDescriptorProto name. */ public name: string; - /** MethodDescriptorProto input_type. */ - public input_type: string; + /** FileDescriptorProto package. */ + public package: string; - /** MethodDescriptorProto output_type. */ - public output_type: string; + /** FileDescriptorProto dependency. */ + public dependency: string[]; - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + /** FileDescriptorProto public_dependency. */ + public public_dependency: number[]; - /** MethodDescriptorProto client_streaming. */ - public client_streaming: boolean; + /** FileDescriptorProto weak_dependency. */ + public weak_dependency: number[]; - /** MethodDescriptorProto server_streaming. */ - public server_streaming: boolean; + /** 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 MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto 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.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 + /** + * 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.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodDescriptorProto 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 MethodDescriptorProto + * @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.MethodDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; /** - * Decodes a MethodDescriptorProto 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 MethodDescriptorProto + * @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.MethodDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; /** - * Verifies a MethodDescriptorProto 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 a MethodDescriptorProto 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 MethodDescriptorProto + * @returns FileDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto + * 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.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this FileDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FileOptions. */ - interface IFileOptions { - - /** FileOptions java_package */ - java_package?: (string|null); - - /** FileOptions java_outer_classname */ - java_outer_classname?: (string|null); - - /** FileOptions java_multiple_files */ - java_multiple_files?: (boolean|null); - - /** FileOptions java_generate_equals_and_hash */ - java_generate_equals_and_hash?: (boolean|null); - - /** FileOptions java_string_check_utf8 */ - java_string_check_utf8?: (boolean|null); - - /** FileOptions optimize_for */ - optimize_for?: (google.protobuf.FileOptions.OptimizeMode|null); - - /** FileOptions go_package */ - go_package?: (string|null); - - /** FileOptions cc_generic_services */ - cc_generic_services?: (boolean|null); - - /** FileOptions java_generic_services */ - java_generic_services?: (boolean|null); - - /** FileOptions py_generic_services */ - py_generic_services?: (boolean|null); - - /** FileOptions deprecated */ - deprecated?: (boolean|null); - - /** FileOptions cc_enable_arenas */ - cc_enable_arenas?: (boolean|null); - - /** FileOptions objc_class_prefix */ - objc_class_prefix?: (string|null); - - /** FileOptions csharp_namespace */ - csharp_namespace?: (string|null); - - /** FileOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - - /** FileOptions .gogoproto.goproto_getters_all */ - ".gogoproto.goproto_getters_all"?: (boolean|null); - - /** FileOptions .gogoproto.goproto_enum_prefix_all */ - ".gogoproto.goproto_enum_prefix_all"?: (boolean|null); - - /** FileOptions .gogoproto.goproto_stringer_all */ - ".gogoproto.goproto_stringer_all"?: (boolean|null); - - /** FileOptions .gogoproto.verbose_equal_all */ - ".gogoproto.verbose_equal_all"?: (boolean|null); - - /** FileOptions .gogoproto.face_all */ - ".gogoproto.face_all"?: (boolean|null); - - /** FileOptions .gogoproto.gostring_all */ - ".gogoproto.gostring_all"?: (boolean|null); - - /** FileOptions .gogoproto.populate_all */ - ".gogoproto.populate_all"?: (boolean|null); - - /** FileOptions .gogoproto.stringer_all */ - ".gogoproto.stringer_all"?: (boolean|null); - - /** FileOptions .gogoproto.onlyone_all */ - ".gogoproto.onlyone_all"?: (boolean|null); - - /** FileOptions .gogoproto.equal_all */ - ".gogoproto.equal_all"?: (boolean|null); - - /** FileOptions .gogoproto.description_all */ - ".gogoproto.description_all"?: (boolean|null); - - /** FileOptions .gogoproto.testgen_all */ - ".gogoproto.testgen_all"?: (boolean|null); - - /** FileOptions .gogoproto.benchgen_all */ - ".gogoproto.benchgen_all"?: (boolean|null); - - /** FileOptions .gogoproto.marshaler_all */ - ".gogoproto.marshaler_all"?: (boolean|null); - - /** FileOptions .gogoproto.unmarshaler_all */ - ".gogoproto.unmarshaler_all"?: (boolean|null); - - /** FileOptions .gogoproto.stable_marshaler_all */ - ".gogoproto.stable_marshaler_all"?: (boolean|null); - - /** FileOptions .gogoproto.sizer_all */ - ".gogoproto.sizer_all"?: (boolean|null); - - /** FileOptions .gogoproto.goproto_enum_stringer_all */ - ".gogoproto.goproto_enum_stringer_all"?: (boolean|null); - - /** FileOptions .gogoproto.enum_stringer_all */ - ".gogoproto.enum_stringer_all"?: (boolean|null); - - /** FileOptions .gogoproto.unsafe_marshaler_all */ - ".gogoproto.unsafe_marshaler_all"?: (boolean|null); - - /** FileOptions .gogoproto.unsafe_unmarshaler_all */ - ".gogoproto.unsafe_unmarshaler_all"?: (boolean|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); + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** FileOptions .gogoproto.protosizer_all */ - ".gogoproto.protosizer_all"?: (boolean|null); + /** DescriptorProto name */ + name?: (string|null); - /** FileOptions .gogoproto.compare_all */ - ".gogoproto.compare_all"?: (boolean|null); + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** FileOptions .gogoproto.typedecl_all */ - ".gogoproto.typedecl_all"?: (boolean|null); + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** FileOptions .gogoproto.enumdecl_all */ - ".gogoproto.enumdecl_all"?: (boolean|null); + /** DescriptorProto nested_type */ + nested_type?: (google.protobuf.IDescriptorProto[]|null); - /** FileOptions .gogoproto.goproto_registration */ - ".gogoproto.goproto_registration"?: (boolean|null); + /** DescriptorProto enum_type */ + enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); - /** FileOptions .gogoproto.messagename_all */ - ".gogoproto.messagename_all"?: (boolean|null); + /** DescriptorProto extension_range */ + extension_range?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - /** FileOptions .gogoproto.goproto_sizecache_all */ - ".gogoproto.goproto_sizecache_all"?: (boolean|null); + /** DescriptorProto oneof_decl */ + oneof_decl?: (google.protobuf.IOneofDescriptorProto[]|null); - /** FileOptions .gogoproto.goproto_unkeyed_all */ - ".gogoproto.goproto_unkeyed_all"?: (boolean|null); + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); - /** FileOptions .cosmos_proto.declare_interface */ - ".cosmos_proto.declare_interface"?: (cosmos_proto.IInterfaceDescriptor[]|null); + /** DescriptorProto reserved_range */ + reserved_range?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - /** FileOptions .cosmos_proto.declare_scalar */ - ".cosmos_proto.declare_scalar"?: (cosmos_proto.IScalarDescriptor[]|null); + /** DescriptorProto reserved_name */ + reserved_name?: (string[]|null); } - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { /** - * Constructs a new FileOptions. + * Constructs a new DescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions java_package. */ - public java_package: string; - - /** 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; + constructor(properties?: google.protobuf.IDescriptorProto); - /** FileOptions go_package. */ - public go_package: string; + /** DescriptorProto name. */ + public name: string; - /** FileOptions cc_generic_services. */ - public cc_generic_services: boolean; + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; - /** FileOptions java_generic_services. */ - public java_generic_services: boolean; + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** FileOptions py_generic_services. */ - public py_generic_services: boolean; + /** DescriptorProto nested_type. */ + public nested_type: google.protobuf.IDescriptorProto[]; - /** FileOptions deprecated. */ - public deprecated: boolean; + /** DescriptorProto enum_type. */ + public enum_type: google.protobuf.IEnumDescriptorProto[]; - /** FileOptions cc_enable_arenas. */ - public cc_enable_arenas: boolean; + /** DescriptorProto extension_range. */ + public extension_range: google.protobuf.DescriptorProto.IExtensionRange[]; - /** FileOptions objc_class_prefix. */ - public objc_class_prefix: string; + /** DescriptorProto oneof_decl. */ + public oneof_decl: google.protobuf.IOneofDescriptorProto[]; - /** FileOptions csharp_namespace. */ - public csharp_namespace: string; + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); - /** FileOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** DescriptorProto reserved_range. */ + public reserved_range: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reserved_name. */ + public reserved_name: string[]; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions 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.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileOptions 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 FileOptions + * @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.FileOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Decodes a FileOptions 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 FileOptions + * @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.FileOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; /** - * Verifies a FileOptions 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 a FileOptions 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 FileOptions + * @returns DescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions + * 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.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileOptions to JSON. + * Converts this DescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FileOptions { - - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } - - /** 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); + namespace DescriptorProto { - /** MessageOptions .gogoproto.goproto_unkeyed */ - ".gogoproto.goproto_unkeyed"?: (boolean|null); + /** Properties of an ExtensionRange. */ + interface IExtensionRange { - /** MessageOptions .cosmos_proto.implements_interface */ - ".cosmos_proto.implements_interface"?: (string[]|null); - } + /** ExtensionRange start */ + start?: (number|null); - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** ExtensionRange end */ + end?: (number|null); + } - /** - * Constructs a new MessageOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMessageOptions); + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { - /** MessageOptions message_set_wire_format. */ - public message_set_wire_format: boolean; + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - /** MessageOptions no_standard_descriptor_accessor. */ - public no_standard_descriptor_accessor: boolean; + /** ExtensionRange start. */ + public start: number; - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** ExtensionRange end. */ + public end: number; - /** MessageOptions map_entry. */ - public map_entry: boolean; + /** + * 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; - /** MessageOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * 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; - /** - * 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 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 }; - /** - * 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; + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + /** Properties of a ReservedRange. */ + interface IReservedRange { - /** - * Converts this MessageOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ReservedRange start */ + start?: (number|null); - /** Properties of a FieldOptions. */ - interface IFieldOptions { + /** ReservedRange end */ + end?: (number|null); + } - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { - /** FieldOptions packed */ - packed?: (boolean|null); + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); + /** ReservedRange start. */ + public start: number; - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** ReservedRange end. */ + public end: number; - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** + * 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; - /** FieldOptions weak */ - weak?: (boolean|null); + /** + * 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; - /** FieldOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** + * 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; - /** FieldOptions .gogoproto.nullable */ - ".gogoproto.nullable"?: (boolean|null); + /** + * 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; - /** FieldOptions .gogoproto.embed */ - ".gogoproto.embed"?: (boolean|null); + /** + * 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); - /** FieldOptions .gogoproto.customtype */ - ".gogoproto.customtype"?: (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; - /** FieldOptions .gogoproto.customname */ - ".gogoproto.customname"?: (string|null); + /** + * 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 }; - /** FieldOptions .gogoproto.jsontag */ - ".gogoproto.jsontag"?: (string|null); + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** FieldOptions .gogoproto.moretags */ - ".gogoproto.moretags"?: (string|null); + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** FieldOptions .gogoproto.casttype */ - ".gogoproto.casttype"?: (string|null); + /** FieldDescriptorProto name */ + name?: (string|null); - /** FieldOptions .gogoproto.castkey */ - ".gogoproto.castkey"?: (string|null); + /** FieldDescriptorProto number */ + number?: (number|null); - /** FieldOptions .gogoproto.castvalue */ - ".gogoproto.castvalue"?: (string|null); + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); - /** FieldOptions .gogoproto.stdtime */ - ".gogoproto.stdtime"?: (boolean|null); + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); - /** FieldOptions .gogoproto.stdduration */ - ".gogoproto.stdduration"?: (boolean|null); + /** FieldDescriptorProto type_name */ + type_name?: (string|null); - /** FieldOptions .gogoproto.wktpointer */ - ".gogoproto.wktpointer"?: (boolean|null); + /** FieldDescriptorProto extendee */ + extendee?: (string|null); - /** FieldOptions .gogoproto.castrepeated */ - ".gogoproto.castrepeated"?: (string|null); + /** FieldDescriptorProto default_value */ + default_value?: (string|null); - /** FieldOptions .cosmos_proto.accepts_interface */ - ".cosmos_proto.accepts_interface"?: (string|null); + /** FieldDescriptorProto oneof_index */ + oneof_index?: (number|null); - /** FieldOptions .cosmos_proto.scalar */ - ".cosmos_proto.scalar"?: (string|null); + /** FieldDescriptorProto json_name */ + json_name?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); } - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Constructs a new FieldOptions. + * Constructs a new FieldDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldOptions); + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; + /** FieldDescriptorProto name. */ + public name: string; - /** FieldOptions packed. */ - public packed: boolean; + /** FieldDescriptorProto number. */ + public number: number; - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; - /** FieldOptions lazy. */ - public lazy: boolean; + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; - /** FieldOptions deprecated. */ - public deprecated: boolean; + /** FieldDescriptorProto type_name. */ + public type_name: string; - /** FieldOptions weak. */ - public weak: boolean; + /** FieldDescriptorProto extendee. */ + public extendee: string; - /** FieldOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** 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 FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions 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.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, 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 + * 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.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldOptions 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 FieldOptions + * @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.FieldOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes a FieldOptions 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 FieldOptions + * @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.FieldOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies a FieldOptions 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 FieldOptions 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 FieldOptions + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions + * 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.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldOptions { + namespace FieldDescriptorProto { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 + /** 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 } - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 } } - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** OneofOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new OneofOptions. + * Constructs a new OneofDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofOptions); + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** OneofOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|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 + * 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.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, 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 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.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions 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 OneofOptions + * @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.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes an OneofOptions 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 OneofOptions + * @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.OneofOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies an OneofOptions 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 an OneofOptions 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 OneofOptions + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * 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.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { - - /** EnumOptions allow_alias */ - allow_alias?: (boolean|null); - - /** EnumOptions deprecated */ - deprecated?: (boolean|null); - - /** EnumOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - - /** EnumOptions .gogoproto.goproto_enum_prefix */ - ".gogoproto.goproto_enum_prefix"?: (boolean|null); - - /** EnumOptions .gogoproto.goproto_enum_stringer */ - ".gogoproto.goproto_enum_stringer"?: (boolean|null); + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** EnumOptions .gogoproto.enum_stringer */ - ".gogoproto.enum_stringer"?: (boolean|null); + /** EnumDescriptorProto name */ + name?: (string|null); - /** EnumOptions .gogoproto.enum_customname */ - ".gogoproto.enum_customname"?: (string|null); + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** EnumOptions .gogoproto.enumdecl */ - ".gogoproto.enumdecl"?: (boolean|null); + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); } - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new EnumOptions. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** EnumOptions allow_alias. */ - public allow_alias: boolean; + /** EnumDescriptorProto name. */ + public name: string; - /** EnumOptions deprecated. */ - public deprecated: boolean; + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; - /** EnumOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); /** - * 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 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.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, 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 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.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions 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 EnumOptions + * @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.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Decodes an EnumOptions 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 EnumOptions + * @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.EnumOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; /** - * Verifies an EnumOptions 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 EnumOptions 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 EnumOptions + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * 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.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** EnumValueDescriptorProto name */ + name?: (string|null); - /** EnumValueOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** EnumValueDescriptorProto number */ + number?: (number|null); - /** EnumValueOptions .gogoproto.enumvalue_customname */ - ".gogoproto.enumvalue_customname"?: (string|null); + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); } - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { /** - * Constructs a new EnumValueOptions. + * Constructs a new EnumValueDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueOptions); + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** EnumValueDescriptorProto name. */ + public name: string; - /** EnumValueOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); /** - * 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 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.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueDescriptorProto, 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 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.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueOptions 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 EnumValueOptions + * @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.EnumValueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; /** - * Decodes an EnumValueOptions 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 EnumValueOptions + * @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.EnumValueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; /** - * Verifies an EnumValueOptions 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 an EnumValueOptions 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 EnumValueOptions + * @returns EnumValueDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions + * 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.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueOptions to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceOptions. */ - interface IServiceOptions { + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); + /** ServiceDescriptorProto name */ + name?: (string|null); - /** ServiceOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { /** - * Constructs a new ServiceOptions. + * Constructs a new ServiceDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** ServiceDescriptorProto name. */ + public name: string; - /** ServiceOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|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 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.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceDescriptorProto, 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 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.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * 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 ServiceOptions + * @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.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceOptions + * @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.ServiceOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; /** - * Verifies a ServiceOptions message. + * 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); /** - * Creates a ServiceOptions 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. * @param object Plain object - * @returns ServiceOptions + * @returns ServiceDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; /** - * 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 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.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodOptions. */ - interface IMethodOptions { + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** MethodOptions deprecated */ - deprecated?: (boolean|null); + /** MethodDescriptorProto name */ + name?: (string|null); - /** MethodOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** MethodDescriptorProto input_type */ + input_type?: (string|null); - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); + /** MethodDescriptorProto output_type */ + output_type?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto client_streaming */ + client_streaming?: (boolean|null); + + /** MethodDescriptorProto server_streaming */ + server_streaming?: (boolean|null); } - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new MethodOptions. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodOptions); + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** MethodOptions deprecated. */ - public deprecated: boolean; + /** MethodDescriptorProto name. */ + public name: string; - /** MethodOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** 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 MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions 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.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, 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 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.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodOptions 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 MethodOptions + * @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.MethodOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Decodes a MethodOptions 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 MethodOptions + * @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.MethodOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; /** - * Verifies a MethodOptions 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 MethodOptions 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 MethodOptions + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions + * 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.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions java_package */ + java_package?: (string|null); + + /** FileOptions java_outer_classname */ + java_outer_classname?: (string|null); + + /** FileOptions java_multiple_files */ + java_multiple_files?: (boolean|null); + + /** FileOptions java_generate_equals_and_hash */ + java_generate_equals_and_hash?: (boolean|null); + + /** FileOptions java_string_check_utf8 */ + java_string_check_utf8?: (boolean|null); + + /** FileOptions optimize_for */ + optimize_for?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions go_package */ + go_package?: (string|null); + + /** FileOptions cc_generic_services */ + cc_generic_services?: (boolean|null); + + /** FileOptions java_generic_services */ + java_generic_services?: (boolean|null); + + /** FileOptions py_generic_services */ + py_generic_services?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions cc_enable_arenas */ + cc_enable_arenas?: (boolean|null); + + /** FileOptions objc_class_prefix */ + objc_class_prefix?: (string|null); + + /** FileOptions csharp_namespace */ + csharp_namespace?: (string|null); + + /** FileOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .gogoproto.goproto_getters_all */ + ".gogoproto.goproto_getters_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_enum_prefix_all */ + ".gogoproto.goproto_enum_prefix_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_stringer_all */ + ".gogoproto.goproto_stringer_all"?: (boolean|null); - /** - * Converts this MethodOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileOptions .gogoproto.verbose_equal_all */ + ".gogoproto.verbose_equal_all"?: (boolean|null); - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { + /** FileOptions .gogoproto.face_all */ + ".gogoproto.face_all"?: (boolean|null); - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + /** FileOptions .gogoproto.gostring_all */ + ".gogoproto.gostring_all"?: (boolean|null); - /** UninterpretedOption identifier_value */ - identifier_value?: (string|null); + /** FileOptions .gogoproto.populate_all */ + ".gogoproto.populate_all"?: (boolean|null); - /** UninterpretedOption positive_int_value */ - positive_int_value?: (Long|null); + /** FileOptions .gogoproto.stringer_all */ + ".gogoproto.stringer_all"?: (boolean|null); - /** UninterpretedOption negative_int_value */ - negative_int_value?: (Long|null); + /** FileOptions .gogoproto.onlyone_all */ + ".gogoproto.onlyone_all"?: (boolean|null); - /** UninterpretedOption double_value */ - double_value?: (number|null); + /** FileOptions .gogoproto.equal_all */ + ".gogoproto.equal_all"?: (boolean|null); - /** UninterpretedOption string_value */ - string_value?: (Uint8Array|null); + /** FileOptions .gogoproto.description_all */ + ".gogoproto.description_all"?: (boolean|null); - /** UninterpretedOption aggregate_value */ - aggregate_value?: (string|null); - } + /** FileOptions .gogoproto.testgen_all */ + ".gogoproto.testgen_all"?: (boolean|null); - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** FileOptions .gogoproto.benchgen_all */ + ".gogoproto.benchgen_all"?: (boolean|null); - /** - * Constructs a new UninterpretedOption. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUninterpretedOption); + /** FileOptions .gogoproto.marshaler_all */ + ".gogoproto.marshaler_all"?: (boolean|null); - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; + /** FileOptions .gogoproto.unmarshaler_all */ + ".gogoproto.unmarshaler_all"?: (boolean|null); - /** UninterpretedOption identifier_value. */ - public identifier_value: string; + /** FileOptions .gogoproto.stable_marshaler_all */ + ".gogoproto.stable_marshaler_all"?: (boolean|null); - /** UninterpretedOption positive_int_value. */ - public positive_int_value: Long; + /** FileOptions .gogoproto.sizer_all */ + ".gogoproto.sizer_all"?: (boolean|null); - /** UninterpretedOption negative_int_value. */ - public negative_int_value: Long; + /** FileOptions .gogoproto.goproto_enum_stringer_all */ + ".gogoproto.goproto_enum_stringer_all"?: (boolean|null); - /** UninterpretedOption double_value. */ - public double_value: number; + /** FileOptions .gogoproto.enum_stringer_all */ + ".gogoproto.enum_stringer_all"?: (boolean|null); - /** UninterpretedOption string_value. */ - public string_value: Uint8Array; + /** FileOptions .gogoproto.unsafe_marshaler_all */ + ".gogoproto.unsafe_marshaler_all"?: (boolean|null); - /** UninterpretedOption aggregate_value. */ - public aggregate_value: string; + /** FileOptions .gogoproto.unsafe_unmarshaler_all */ + ".gogoproto.unsafe_unmarshaler_all"?: (boolean|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; + /** FileOptions .gogoproto.goproto_extensions_map_all */ + ".gogoproto.goproto_extensions_map_all"?: (boolean|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; + /** FileOptions .gogoproto.goproto_unrecognized_all */ + ".gogoproto.goproto_unrecognized_all"?: (boolean|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; + /** FileOptions .gogoproto.gogoproto_import */ + ".gogoproto.gogoproto_import"?: (boolean|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; + /** FileOptions .gogoproto.protosizer_all */ + ".gogoproto.protosizer_all"?: (boolean|null); - /** - * 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); + /** FileOptions .gogoproto.compare_all */ + ".gogoproto.compare_all"?: (boolean|null); - /** - * 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; + /** FileOptions .gogoproto.typedecl_all */ + ".gogoproto.typedecl_all"?: (boolean|null); - /** - * 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 }; + /** FileOptions .gogoproto.enumdecl_all */ + ".gogoproto.enumdecl_all"?: (boolean|null); - /** - * Converts this UninterpretedOption to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileOptions .gogoproto.goproto_registration */ + ".gogoproto.goproto_registration"?: (boolean|null); - namespace UninterpretedOption { + /** FileOptions .gogoproto.messagename_all */ + ".gogoproto.messagename_all"?: (boolean|null); - /** Properties of a NamePart. */ - interface INamePart { + /** FileOptions .gogoproto.goproto_sizecache_all */ + ".gogoproto.goproto_sizecache_all"?: (boolean|null); - /** NamePart name_part */ - name_part: string; + /** FileOptions .gogoproto.goproto_unkeyed_all */ + ".gogoproto.goproto_unkeyed_all"?: (boolean|null); - /** NamePart is_extension */ - is_extension: boolean; - } + /** FileOptions .cosmos_proto.declare_interface */ + ".cosmos_proto.declare_interface"?: (cosmos_proto.IInterfaceDescriptor[]|null); - /** Represents a NamePart. */ - class NamePart implements INamePart { + /** FileOptions .cosmos_proto.declare_scalar */ + ".cosmos_proto.declare_scalar"?: (cosmos_proto.IScalarDescriptor[]|null); + } - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { - /** NamePart name_part. */ - public name_part: string; + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); - /** NamePart is_extension. */ - public is_extension: boolean; + /** FileOptions java_package. */ + public java_package: string; - /** - * 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; + /** FileOptions java_outer_classname. */ + public java_outer_classname: string; - /** - * 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; + /** FileOptions java_multiple_files. */ + public java_multiple_files: boolean; - /** - * 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; + /** FileOptions java_generate_equals_and_hash. */ + public java_generate_equals_and_hash: boolean; - /** - * 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; + /** FileOptions java_string_check_utf8. */ + public java_string_check_utf8: boolean; - /** - * 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); + /** FileOptions optimize_for. */ + public optimize_for: google.protobuf.FileOptions.OptimizeMode; - /** - * 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; + /** FileOptions go_package. */ + public go_package: string; - /** - * 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 }; + /** FileOptions cc_generic_services. */ + public cc_generic_services: boolean; - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** FileOptions java_generic_services. */ + public java_generic_services: boolean; - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** FileOptions py_generic_services. */ + public py_generic_services: boolean; - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); - } + /** FileOptions deprecated. */ + public deprecated: boolean; - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** FileOptions cc_enable_arenas. */ + public cc_enable_arenas: boolean; - /** - * Constructs a new SourceCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + /** FileOptions objc_class_prefix. */ + public objc_class_prefix: string; - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** FileOptions csharp_namespace. */ + public csharp_namespace: string; + + /** FileOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * 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 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.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileOptions, 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 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.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo 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 SourceCodeInfo + * @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.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; /** - * Decodes a SourceCodeInfo 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 SourceCodeInfo + * @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.SourceCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; /** - * Verifies a SourceCodeInfo 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 SourceCodeInfo 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 SourceCodeInfo + * @returns FileOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * 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.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SourceCodeInfo { + namespace FileOptions { - /** Properties of a Location. */ - interface ILocation { + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } - /** Location path */ - path?: (number[]|null); + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** Location span */ - span?: (number[]|null); + /** MessageOptions message_set_wire_format */ + message_set_wire_format?: (boolean|null); - /** Location leading_comments */ - leading_comments?: (string|null); + /** MessageOptions no_standard_descriptor_accessor */ + no_standard_descriptor_accessor?: (boolean|null); - /** Location trailing_comments */ - trailing_comments?: (string|null); + /** MessageOptions deprecated */ + deprecated?: (boolean|null); - /** Location leading_detached_comments */ - leading_detached_comments?: (string[]|null); - } + /** MessageOptions map_entry */ + map_entry?: (boolean|null); - /** Represents a Location. */ - class Location implements ILocation { + /** MessageOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + /** MessageOptions .gogoproto.goproto_getters */ + ".gogoproto.goproto_getters"?: (boolean|null); - /** Location path. */ - public path: number[]; + /** MessageOptions .gogoproto.goproto_stringer */ + ".gogoproto.goproto_stringer"?: (boolean|null); - /** Location span. */ - public span: number[]; + /** MessageOptions .gogoproto.verbose_equal */ + ".gogoproto.verbose_equal"?: (boolean|null); - /** Location leading_comments. */ - public leading_comments: string; + /** MessageOptions .gogoproto.face */ + ".gogoproto.face"?: (boolean|null); - /** Location trailing_comments. */ - public trailing_comments: string; + /** MessageOptions .gogoproto.gostring */ + ".gogoproto.gostring"?: (boolean|null); - /** Location leading_detached_comments. */ - public leading_detached_comments: string[]; + /** MessageOptions .gogoproto.populate */ + ".gogoproto.populate"?: (boolean|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; + /** MessageOptions .gogoproto.stringer */ + ".gogoproto.stringer"?: (boolean|null); - /** - * 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; + /** MessageOptions .gogoproto.onlyone */ + ".gogoproto.onlyone"?: (boolean|null); - /** - * 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; + /** MessageOptions .gogoproto.equal */ + ".gogoproto.equal"?: (boolean|null); - /** - * 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; + /** MessageOptions .gogoproto.description */ + ".gogoproto.description"?: (boolean|null); - /** - * 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); + /** MessageOptions .gogoproto.testgen */ + ".gogoproto.testgen"?: (boolean|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; + /** MessageOptions .gogoproto.benchgen */ + ".gogoproto.benchgen"?: (boolean|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 }; + /** MessageOptions .gogoproto.marshaler */ + ".gogoproto.marshaler"?: (boolean|null); - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** MessageOptions .gogoproto.unmarshaler */ + ".gogoproto.unmarshaler"?: (boolean|null); - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** MessageOptions .gogoproto.stable_marshaler */ + ".gogoproto.stable_marshaler"?: (boolean|null); - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|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); } - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new MessageOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + constructor(properties?: google.protobuf.IMessageOptions); - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** MessageOptions message_set_wire_format. */ + public message_set_wire_format: boolean; + + /** 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 GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo 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.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, 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 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.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo 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 GeneratedCodeInfo + * @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.GeneratedCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Decodes a GeneratedCodeInfo 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 GeneratedCodeInfo + * @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.GeneratedCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; /** - * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo 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 GeneratedCodeInfo + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * 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 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.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace GeneratedCodeInfo { + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** Properties of an Annotation. */ - interface IAnnotation { + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); - /** Annotation path */ - path?: (number[]|null); + /** FieldOptions packed */ + packed?: (boolean|null); - /** Annotation source_file */ - source_file?: (string|null); + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); - /** Annotation begin */ - begin?: (number|null); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** Annotation end */ - end?: (number|null); - } + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** FieldOptions weak */ + weak?: (boolean|null); - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** FieldOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** Annotation path. */ - public path: number[]; + /** FieldOptions .gogoproto.nullable */ + ".gogoproto.nullable"?: (boolean|null); - /** Annotation source_file. */ - public source_file: string; + /** FieldOptions .gogoproto.embed */ + ".gogoproto.embed"?: (boolean|null); - /** Annotation begin. */ - public begin: number; + /** FieldOptions .gogoproto.customtype */ + ".gogoproto.customtype"?: (string|null); - /** Annotation end. */ - public end: number; + /** FieldOptions .gogoproto.customname */ + ".gogoproto.customname"?: (string|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; + /** FieldOptions .gogoproto.jsontag */ + ".gogoproto.jsontag"?: (string|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; + /** FieldOptions .gogoproto.moretags */ + ".gogoproto.moretags"?: (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; + /** FieldOptions .gogoproto.casttype */ + ".gogoproto.casttype"?: (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; + /** 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); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * 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 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 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); + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + namespace FieldOptions { - /** - * 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 }; + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** - * Converts this Annotation 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 Timestamp. */ - interface ITimestamp { - - /** Timestamp seconds */ - seconds?: (Long|null); + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** Timestamp nanos */ - nanos?: (number|null); + /** OneofOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { /** - * Constructs a new Timestamp. + * Constructs a new OneofOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: Long; + constructor(properties?: google.protobuf.IOneofOptions); - /** Timestamp nanos. */ - public nanos: number; + /** OneofOptions 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 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.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofOptions, 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 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.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * 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 Timestamp + * @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.Timestamp; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Timestamp + * @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.Timestamp; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; /** - * Verifies a Timestamp message. + * Verifies an OneofOptions message. * @param message 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 an OneofOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Timestamp + * @returns OneofOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp + * 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.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Timestamp to JSON. + * Converts this OneofOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Duration. */ - interface IDuration { + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** Duration seconds */ - seconds?: (Long|null); + /** EnumOptions allow_alias */ + allow_alias?: (boolean|null); - /** Duration nanos */ - nanos?: (number|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + + /** EnumOptions .gogoproto.goproto_enum_prefix */ + ".gogoproto.goproto_enum_prefix"?: (boolean|null); + + /** EnumOptions .gogoproto.goproto_enum_stringer */ + ".gogoproto.goproto_enum_stringer"?: (boolean|null); + + /** EnumOptions .gogoproto.enum_stringer */ + ".gogoproto.enum_stringer"?: (boolean|null); + + /** EnumOptions .gogoproto.enum_customname */ + ".gogoproto.enum_customname"?: (string|null); + + /** EnumOptions .gogoproto.enumdecl */ + ".gogoproto.enumdecl"?: (boolean|null); } - /** Represents a Duration. */ - class Duration implements IDuration { + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { /** - * Constructs a new Duration. + * Constructs a new EnumOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDuration); + constructor(properties?: google.protobuf.IEnumOptions); - /** Duration seconds. */ - public seconds: Long; + /** EnumOptions allow_alias. */ + public allow_alias: boolean; - /** Duration nanos. */ - public nanos: number; + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions 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 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.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumOptions, 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 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.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration 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 Duration + * @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.protobuf.Duration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; /** - * Decodes a Duration 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 Duration + * @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.protobuf.Duration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; /** - * Verifies a Duration 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 Duration 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 Duration + * @returns EnumOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * 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.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this EnumOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Any. */ - interface IAny { + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** Any type_url */ - type_url?: (string|null); + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** Any value */ - value?: (Uint8Array|null); + /** EnumValueOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + + /** EnumValueOptions .gogoproto.enumvalue_customname */ + ".gogoproto.enumvalue_customname"?: (string|null); } - /** Represents an Any. */ - class Any implements IAny { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { /** - * Constructs a new Any. + * Constructs a new EnumValueOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IAny); + constructor(properties?: google.protobuf.IEnumValueOptions); - /** Any type_url. */ - public type_url: string; + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** Any value. */ - public value: Uint8Array; + /** EnumValueOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any 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.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueOptions, 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 + * 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.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Any 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 Any + * @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.protobuf.Any; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; /** - * Decodes an Any 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 Any + * @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.protobuf.Any; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; /** - * Verifies an Any 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 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. * @param object Plain object - * @returns Any + * @returns EnumValueOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any + * 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.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Any to JSON. + * Converts this EnumValueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Namespace api. */ - namespace api { - /** Properties of a Http. */ - interface IHttp { + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); - /** Http fully_decode_reserved_expansion */ - fully_decode_reserved_expansion?: (boolean|null); + /** ServiceOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents a Http. */ - class Http implements IHttp { + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { /** - * Constructs a new Http. + * Constructs a new ServiceOptions. * @param [properties] Properties to set */ - constructor(properties?: google.api.IHttp); + constructor(properties?: google.protobuf.IServiceOptions); - /** Http rules. */ - public rules: google.api.IHttpRule[]; + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** Http fully_decode_reserved_expansion. */ - public fully_decode_reserved_expansion: boolean; + /** ServiceOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode + * 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.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceOptions, 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 + * 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.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Http message from the specified reader or buffer. + * 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 Http + * @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.api.Http; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Http + * @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.api.Http; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; /** - * Verifies a Http message. + * 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); /** - * Creates a Http 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. * @param object Plain object - * @returns Http + * @returns ServiceOptions */ - public static fromObject(object: { [k: string]: any }): google.api.Http; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; /** - * 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 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.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Http to JSON. + * Converts this ServiceOptions 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); + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** HttpRule body */ - body?: (string|null); + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** HttpRule response_body */ - response_body?: (string|null); + /** MethodOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** HttpRule additional_bindings */ - additional_bindings?: (google.api.IHttpRule[]|null); + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); } - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { /** - * Constructs a new HttpRule. + * Constructs a new MethodOptions. * @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; + constructor(properties?: google.protobuf.IMethodOptions); - /** HttpRule additional_bindings. */ - public additional_bindings: google.api.IHttpRule[]; + /** MethodOptions deprecated. */ + public deprecated: boolean; - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** MethodOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * 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.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodOptions, 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 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.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HttpRule message from the specified reader or buffer. + * 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 HttpRule + * @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.api.HttpRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HttpRule + * @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.api.HttpRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; /** - * Verifies a HttpRule message. + * 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); /** - * Creates a HttpRule 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. * @param object Plain object - * @returns HttpRule + * @returns MethodOptions */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule + * 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.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HttpRule to JSON. + * Converts this MethodOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** CustomHttpPattern kind */ - kind?: (string|null); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** CustomHttpPattern path */ - path?: (string|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); + + /** UninterpretedOption double_value */ + double_value?: (number|null); + + /** UninterpretedOption string_value */ + string_value?: (Uint8Array|null); + + /** UninterpretedOption aggregate_value */ + aggregate_value?: (string|null); } - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { /** - * Constructs a new CustomHttpPattern. + * Constructs a new UninterpretedOption. * @param [properties] Properties to set */ - constructor(properties?: google.api.ICustomHttpPattern); + 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; + + /** UninterpretedOption double_value. */ + public double_value: number; - /** CustomHttpPattern kind. */ - public kind: string; + /** UninterpretedOption string_value. */ + public string_value: Uint8Array; - /** CustomHttpPattern path. */ - public path: string; + /** UninterpretedOption aggregate_value. */ + public aggregate_value: 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 + * 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.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IUninterpretedOption, 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 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.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * 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 CustomHttpPattern + * @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.api.CustomHttpPattern; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; /** - * Verifies a CustomHttpPattern message. + * 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); /** - * Creates a CustomHttpPattern 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. * @param object Plain object - * @returns CustomHttpPattern + * @returns UninterpretedOption */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; /** - * 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 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.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this UninterpretedOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } -} - -/** Namespace ibc. */ -export namespace ibc { - - /** Namespace core. */ - namespace core { - - /** Namespace client. */ - namespace client { - - /** Namespace v1. */ - namespace v1 { - - /** Properties of an IdentifiedClientState. */ - interface IIdentifiedClientState { - - /** IdentifiedClientState client_id */ - client_id?: (string|null); - - /** IdentifiedClientState client_state */ - client_state?: (google.protobuf.IAny|null); - } - - /** Represents an IdentifiedClientState. */ - class IdentifiedClientState implements IIdentifiedClientState { - - /** - * Constructs a new IdentifiedClientState. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IIdentifiedClientState); - - /** IdentifiedClientState client_id. */ - public client_id: string; - - /** IdentifiedClientState client_state. */ - public client_state?: (google.protobuf.IAny|null); - - /** - * 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.IIdentifiedClientState, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.IdentifiedClientState; - - /** - * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.IdentifiedClientState; - - /** - * 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 an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IdentifiedClientState - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedClientState; - - /** - * 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.IdentifiedClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IdentifiedClientState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** 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 ConsensusStateWithHeight. */ - class ConsensusStateWithHeight implements IConsensusStateWithHeight { - - /** - * Constructs a new ConsensusStateWithHeight. - * @param [properties] Properties to set - */ - 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); + namespace UninterpretedOption { - /** - * 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.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a NamePart. */ + interface INamePart { - /** - * 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.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; + /** NamePart name_part */ + name_part: string; - /** - * 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 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.ConsensusStateWithHeight; + /** NamePart is_extension */ + is_extension: boolean; + } - /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ConsensusStateWithHeight; + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** - * 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); + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** - * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConsensusStateWithHeight - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ConsensusStateWithHeight; + /** NamePart name_part. */ + public name_part: string; - /** - * 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.ConsensusStateWithHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NamePart is_extension. */ + public is_extension: boolean; - /** - * Converts this ConsensusStateWithHeight to JSON. - * @returns JSON object - */ - public toJSON(): { [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; - /** Properties of a ClientConsensusStates. */ - interface IClientConsensusStates { + /** + * 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; - /** ClientConsensusStates client_id */ - client_id?: (string|null); + /** + * 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; - /** ClientConsensusStates consensus_states */ - consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); - } + /** + * 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; - /** Represents a ClientConsensusStates. */ - class ClientConsensusStates implements IClientConsensusStates { + /** + * 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); - /** - * Constructs a new ClientConsensusStates. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IClientConsensusStates); + /** + * 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; - /** ClientConsensusStates client_id. */ - public client_id: string; + /** + * 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 }; - /** ClientConsensusStates consensus_states. */ - public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * 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.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { - /** - * 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.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } - /** - * 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 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.ClientConsensusStates; + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { - /** - * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ClientConsensusStates; + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** - * 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); + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; - /** - * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientConsensusStates - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientConsensusStates; + /** + * 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; - /** - * 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.ClientConsensusStates, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this ClientConsensusStates to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a ClientUpdateProposal. */ - interface IClientUpdateProposal { + /** + * 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; - /** ClientUpdateProposal title */ - title?: (string|null); + /** + * 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); - /** ClientUpdateProposal description */ - description?: (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; - /** ClientUpdateProposal subject_client_id */ - subject_client_id?: (string|null); + /** + * 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 }; - /** ClientUpdateProposal substitute_client_id */ - substitute_client_id?: (string|null); - } + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a ClientUpdateProposal. */ - class ClientUpdateProposal implements IClientUpdateProposal { + namespace SourceCodeInfo { - /** - * Constructs a new ClientUpdateProposal. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IClientUpdateProposal); + /** Properties of a Location. */ + interface ILocation { - /** ClientUpdateProposal title. */ - public title: string; + /** Location path */ + path?: (number[]|null); - /** ClientUpdateProposal description. */ - public description: string; + /** Location span */ + span?: (number[]|null); - /** ClientUpdateProposal subject_client_id. */ - public subject_client_id: string; + /** Location leading_comments */ + leading_comments?: (string|null); - /** ClientUpdateProposal substitute_client_id. */ - public substitute_client_id: string; + /** Location trailing_comments */ + trailing_comments?: (string|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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; + /** Location leading_detached_comments */ + leading_detached_comments?: (string[]|null); + } - /** - * 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.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - /** - * 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 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.ClientUpdateProposal; + /** Location path. */ + public path: number[]; - /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ClientUpdateProposal; + /** Location span. */ + public span: number[]; - /** - * 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); + /** Location leading_comments. */ + public leading_comments: string; - /** - * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientUpdateProposal - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientUpdateProposal; + /** Location trailing_comments. */ + public trailing_comments: string; - /** - * 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.ClientUpdateProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Location leading_detached_comments. */ + public leading_detached_comments: string[]; - /** - * Converts this ClientUpdateProposal to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of an UpgradeProposal. */ - interface IUpgradeProposal { + /** + * 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; - /** UpgradeProposal title */ - title?: (string|null); + /** + * 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; - /** UpgradeProposal description */ - description?: (string|null); + /** + * 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; - /** UpgradeProposal plan */ - plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** + * 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); - /** UpgradeProposal upgraded_client_state */ - upgraded_client_state?: (google.protobuf.IAny|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; - /** Represents an UpgradeProposal. */ - class UpgradeProposal implements IUpgradeProposal { + /** + * 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 }; - /** - * Constructs a new UpgradeProposal. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IUpgradeProposal); + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** UpgradeProposal title. */ - public title: string; + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { - /** UpgradeProposal description. */ - public description: string; + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } - /** UpgradeProposal plan. */ - public plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { - /** UpgradeProposal upgraded_client_state. */ - public upgraded_client_state?: (google.protobuf.IAny|null); + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); - /** - * 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 static encode(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - /** - * 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 static encodeDelimited(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.UpgradeProposal; + /** + * 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 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 static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.UpgradeProposal; + /** + * 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; - /** - * Verifies an UpgradeProposal message. - * @param message 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 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; - /** - * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpgradeProposal - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.UpgradeProposal; + /** + * 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 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 static toObject(message: ibc.core.client.v1.UpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this UpgradeProposal to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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 }; - /** Properties of an Height. */ - interface IHeight { + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Height revision_number */ - revision_number?: (Long|null); + namespace GeneratedCodeInfo { - /** Height revision_height */ - revision_height?: (Long|null); - } + /** Properties of an Annotation. */ + interface IAnnotation { - /** Represents an Height. */ - class Height implements IHeight { + /** Annotation path */ + path?: (number[]|null); - /** - * Constructs a new Height. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IHeight); + /** Annotation source_file */ + source_file?: (string|null); - /** Height revision_number. */ - public revision_number: Long; + /** Annotation begin */ + begin?: (number|null); - /** Height revision_height. */ - public revision_height: Long; + /** Annotation end */ + end?: (number|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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an Annotation. */ + class Annotation implements IAnnotation { - /** - * 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 - */ - public static encodeDelimited(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - /** - * 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 - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Height; + /** Annotation path. */ + public path: number[]; - /** - * 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 - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Height; + /** Annotation source_file. */ + public source_file: string; - /** - * Verifies an Height message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Annotation begin. */ + public begin: number; - /** - * Creates an Height message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Height - */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Height; + /** Annotation end. */ + public end: number; - /** - * 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 - */ - public static toObject(message: ibc.core.client.v1.Height, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this Height to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a Params. */ - interface IParams { + /** + * 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; - /** Params allowed_clients */ - allowed_clients?: (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; - /** Represents a Params. */ - class Params implements IParams { + /** + * 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); - /** - * Constructs a new Params. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.client.v1.IParams); + /** + * 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; - /** Params allowed_clients. */ - public allowed_clients: string[]; + /** + * 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 }; - /** - * 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.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * 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.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an Any. */ + interface IAny { - /** - * 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.core.client.v1.Params; + /** Any type_url */ + type_url?: (string|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)): ibc.core.client.v1.Params; + /** Any value */ + value?: (Uint8Array|null); + } - /** - * 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); + /** Represents an Any. */ + class Any implements IAny { - /** - * 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.core.client.v1.Params; + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); - /** - * 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.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Any type_url. */ + public type_url: string; - /** - * Converts this Params to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } - } + /** Any value. */ + public value: Uint8Array; - /** Namespace applications. */ - namespace applications { + /** + * 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; - /** Namespace transfer. */ - namespace transfer { + /** + * 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; - /** Namespace v1. */ - namespace v1 { + /** + * 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; - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** + * 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; - /** - * 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); + /** + * 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); - /** - * 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; + /** + * 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; - /** - * Calls DenomTrace. - * @param request QueryDenomTraceRequest message or plain object - * @returns Promise - */ - public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; + /** + * 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 }; - /** - * 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; + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Calls DenomTraces. - * @param request QueryDenomTracesRequest message or plain object - * @returns Promise - */ - public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): Promise; + /** Properties of a Timestamp. */ + interface ITimestamp { - /** - * 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; + /** Timestamp seconds */ + seconds?: (Long|null); - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; + /** Timestamp nanos */ + nanos?: (number|null); + } - /** - * 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; + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { - /** - * Calls DenomHash. - * @param request QueryDenomHashRequest message or plain object - * @returns Promise - */ - public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): Promise; + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); - /** - * 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; + /** Timestamp seconds. */ + public seconds: Long; - /** - * Calls EscrowAddress. - * @param request QueryEscrowAddressRequest message or plain object - * @returns Promise - */ - public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest): Promise; - } + /** Timestamp nanos. */ + public nanos: number; - namespace Query { + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * 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; - } + /** + * 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; - /** Properties of a QueryDenomTraceRequest. */ - interface IQueryDenomTraceRequest { + /** + * 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 }; - /** QueryDenomTraceRequest hash */ - hash?: (string|null); - } + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a QueryDenomTraceRequest. */ - class QueryDenomTraceRequest implements IQueryDenomTraceRequest { + /** Properties of a Duration. */ + interface IDuration { - /** - * Constructs a new QueryDenomTraceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceRequest); + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } - /** QueryDenomTraceRequest hash. */ - public hash: string; + /** Represents a Duration. */ + class Duration implements IDuration { - /** - * 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; + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); - /** - * 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; + /** Duration seconds. */ + public seconds: Long; - /** - * 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; + /** Duration nanos. */ + public nanos: number; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this QueryDenomTraceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Properties of a QueryDenomTraceResponse. */ - interface IQueryDenomTraceResponse { + /** + * 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; - /** QueryDenomTraceResponse denom_trace */ - denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); - } + /** + * 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 }; - /** Represents a QueryDenomTraceResponse. */ - class QueryDenomTraceResponse implements IQueryDenomTraceResponse { + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * Constructs a new QueryDenomTraceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceResponse); + /** Namespace api. */ + namespace api { - /** QueryDenomTraceResponse denom_trace. */ - public denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); + /** Properties of a Http. */ + interface IHttp { - /** - * 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; + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); - /** - * 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; + /** Http fully_decode_reserved_expansion */ + fully_decode_reserved_expansion?: (boolean|null); + } - /** - * 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 Http. */ + class Http implements IHttp { - /** - * 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 - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceResponse; + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); - /** - * 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); + /** Http rules. */ + public rules: google.api.IHttpRule[]; - /** - * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomTraceResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceResponse; + /** Http fully_decode_reserved_expansion. */ + public fully_decode_reserved_expansion: boolean; - /** - * 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 }; + /** + * 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; - /** - * Converts this QueryDenomTraceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a QueryDenomTracesRequest. */ - interface IQueryDenomTracesRequest { + /** + * 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; - /** QueryDenomTracesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - } + /** + * 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); - /** Represents a QueryDenomTracesRequest. */ - class QueryDenomTracesRequest implements IQueryDenomTracesRequest { + /** + * 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; - /** - * Constructs a new QueryDenomTracesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesRequest); + /** + * 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 }; - /** QueryDenomTracesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a HttpRule. */ + interface IHttpRule { - /** - * 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; + /** HttpRule selector */ + selector?: (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; + /** HttpRule get */ + get?: (string|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; + /** HttpRule put */ + put?: (string|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); + /** HttpRule post */ + post?: (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; + /** HttpRule delete */ + "delete"?: (string|null); - /** - * 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.QueryDenomTracesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HttpRule patch */ + patch?: (string|null); - /** - * Converts this QueryDenomTracesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); - /** Properties of a QueryDenomTracesResponse. */ - interface IQueryDenomTracesResponse { + /** HttpRule body */ + body?: (string|null); - /** QueryDenomTracesResponse denom_traces */ - denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); + /** HttpRule response_body */ + response_body?: (string|null); - /** QueryDenomTracesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - } + /** HttpRule additional_bindings */ + additional_bindings?: (google.api.IHttpRule[]|null); + } - /** Represents a QueryDenomTracesResponse. */ - class QueryDenomTracesResponse implements IQueryDenomTracesResponse { + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { - /** - * Constructs a new QueryDenomTracesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesResponse); + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); - /** QueryDenomTracesResponse denom_traces. */ - public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; + /** HttpRule selector. */ + public selector: string; - /** QueryDenomTracesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** HttpRule get. */ + public get?: (string|null); - /** - * 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.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** HttpRule put. */ + public put?: (string|null); - /** - * 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.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** HttpRule post. */ + public post?: (string|null); - /** - * 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 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.v1.QueryDenomTracesResponse; + /** HttpRule delete. */ + public delete?: (string|null); - /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.v1.QueryDenomTracesResponse; + /** HttpRule patch. */ + public patch?: (string|null); - /** - * 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); + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); - /** - * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomTracesResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesResponse; + /** HttpRule body. */ + public body: string; - /** - * 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.v1.QueryDenomTracesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HttpRule response_body. */ + public response_body: string; - /** - * Converts this QueryDenomTracesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** HttpRule additional_bindings. */ + public additional_bindings: google.api.IHttpRule[]; - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { - } + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** + * 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; - /** - * Constructs a new QueryParamsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryParamsRequest); + /** + * 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; - /** - * 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.applications.transfer.v1.IQueryParamsRequest, 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; - /** - * 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.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.transfer.v1.QueryParamsRequest; + /** + * 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); - /** - * 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.transfer.v1.QueryParamsRequest; + /** + * 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; - /** - * 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 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 }; - /** - * 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.transfer.v1.QueryParamsRequest; + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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.transfer.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { - /** - * Converts this QueryParamsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CustomHttpPattern kind */ + kind?: (string|null); - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** CustomHttpPattern path */ + path?: (string|null); + } - /** QueryParamsResponse params */ - params?: (ibc.applications.transfer.v1.IParams|null); - } + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); - /** - * Constructs a new QueryParamsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryParamsResponse); + /** CustomHttpPattern kind. */ + public kind: string; - /** QueryParamsResponse params. */ - public params?: (ibc.applications.transfer.v1.IParams|null); + /** CustomHttpPattern path. */ + public path: 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 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.applications.transfer.v1.IQueryParamsResponse, 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 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.transfer.v1.QueryParamsResponse; + /** + * 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 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.transfer.v1.QueryParamsResponse; + /** + * 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 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); + /** + * 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 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.transfer.v1.QueryParamsResponse; + /** + * 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 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.transfer.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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 QueryParamsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} - /** Properties of a QueryDenomHashRequest. */ - interface IQueryDenomHashRequest { +/** Namespace osmosis. */ +export namespace osmosis { - /** QueryDenomHashRequest trace */ - trace?: (string|null); - } + /** Namespace tokenfactory. */ + namespace tokenfactory { - /** Represents a QueryDenomHashRequest. */ - class QueryDenomHashRequest implements IQueryDenomHashRequest { + /** Namespace v1beta1. */ + namespace v1beta1 { - /** - * Constructs a new QueryDenomHashRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashRequest); + /** 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); - /** QueryDenomHashRequest trace. */ - public trace: string; + /** + * Calls CreateDenom. + * @param request MsgCreateDenom message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateDenomResponse + */ + public createDenom(request: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, callback: osmosis.tokenfactory.v1beta1.Msg.CreateDenomCallback): void; - /** - * 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.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls CreateDenom. + * @param request MsgCreateDenom message or plain object + * @returns Promise + */ + public createDenom(request: osmosis.tokenfactory.v1beta1.IMsgCreateDenom): Promise; - /** - * 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.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls Mint. + * @param request MsgMint message or plain object + * @param callback Node-style callback called with the error, if any, and MsgMintResponse + */ + public mint(request: osmosis.tokenfactory.v1beta1.IMsgMint, callback: osmosis.tokenfactory.v1beta1.Msg.MintCallback): void; - /** - * 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 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.applications.transfer.v1.QueryDenomHashRequest; + /** + * Calls Mint. + * @param request MsgMint message or plain object + * @returns Promise + */ + public mint(request: osmosis.tokenfactory.v1beta1.IMsgMint): Promise; - /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.applications.transfer.v1.QueryDenomHashRequest; + /** + * Calls Burn. + * @param request MsgBurn message or plain object + * @param callback Node-style callback called with the error, if any, and MsgBurnResponse + */ + public burn(request: osmosis.tokenfactory.v1beta1.IMsgBurn, callback: osmosis.tokenfactory.v1beta1.Msg.BurnCallback): void; - /** - * 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); + /** + * Calls Burn. + * @param request MsgBurn message or plain object + * @returns Promise + */ + public burn(request: osmosis.tokenfactory.v1beta1.IMsgBurn): Promise; - /** - * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomHashRequest - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashRequest; + /** + * Calls ChangeAdmin. + * @param request MsgChangeAdmin message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChangeAdminResponse + */ + public changeAdmin(request: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, callback: osmosis.tokenfactory.v1beta1.Msg.ChangeAdminCallback): void; - /** - * 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.applications.transfer.v1.QueryDenomHashRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls ChangeAdmin. + * @param request MsgChangeAdmin message or plain object + * @returns Promise + */ + public changeAdmin(request: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin): Promise; - /** - * Converts this QueryDenomHashRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Calls SetDenomMetadata. + * @param request MsgSetDenomMetadata message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSetDenomMetadataResponse + */ + public setDenomMetadata(request: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata, callback: osmosis.tokenfactory.v1beta1.Msg.SetDenomMetadataCallback): void; - /** Properties of a QueryDenomHashResponse. */ - interface IQueryDenomHashResponse { + /** + * Calls SetDenomMetadata. + * @param request MsgSetDenomMetadata message or plain object + * @returns Promise + */ + public setDenomMetadata(request: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata): Promise; - /** QueryDenomHashResponse hash */ - hash?: (string|null); - } + /** + * Calls SetBeforeSendHook. + * @param request MsgSetBeforeSendHook message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSetBeforeSendHookResponse + */ + public setBeforeSendHook(request: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook, callback: osmosis.tokenfactory.v1beta1.Msg.SetBeforeSendHookCallback): void; - /** Represents a QueryDenomHashResponse. */ - class QueryDenomHashResponse implements IQueryDenomHashResponse { + /** + * Calls SetBeforeSendHook. + * @param request MsgSetBeforeSendHook message or plain object + * @returns Promise + */ + public setBeforeSendHook(request: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook): Promise; - /** - * Constructs a new QueryDenomHashResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashResponse); + /** + * Calls ForceTransfer. + * @param request MsgForceTransfer message or plain object + * @param callback Node-style callback called with the error, if any, and MsgForceTransferResponse + */ + public forceTransfer(request: osmosis.tokenfactory.v1beta1.IMsgForceTransfer, callback: osmosis.tokenfactory.v1beta1.Msg.ForceTransferCallback): void; - /** QueryDenomHashResponse hash. */ - public hash: string; + /** + * Calls ForceTransfer. + * @param request MsgForceTransfer message or plain object + * @returns Promise + */ + public forceTransfer(request: osmosis.tokenfactory.v1beta1.IMsgForceTransfer): Promise; - /** - * 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.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateParamsResponse + */ + public updateParams(request: osmosis.tokenfactory.v1beta1.IMsgUpdateParams, callback: osmosis.tokenfactory.v1beta1.Msg.UpdateParamsCallback): void; - /** - * 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.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls UpdateParams. + * @param request MsgUpdateParams message or plain object + * @returns Promise + */ + public updateParams(request: osmosis.tokenfactory.v1beta1.IMsgUpdateParams): Promise; + } - /** - * 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 - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashResponse; + namespace Msg { - /** - * 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 - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashResponse; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#createDenom}. + * @param error Error, if any + * @param [response] MsgCreateDenomResponse + */ + type CreateDenomCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse) => void; - /** - * 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); + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#mint}. + * @param error Error, if any + * @param [response] MsgMintResponse + */ + type MintCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgMintResponse) => void; - /** - * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomHashResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashResponse; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#burn}. + * @param error Error, if any + * @param [response] MsgBurnResponse + */ + type BurnCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgBurnResponse) => 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 - */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomHashResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#changeAdmin}. + * @param error Error, if any + * @param [response] MsgChangeAdminResponse + */ + type ChangeAdminCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse) => void; - /** - * Converts this QueryDenomHashResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#setDenomMetadata}. + * @param error Error, if any + * @param [response] MsgSetDenomMetadataResponse + */ + type SetDenomMetadataCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse) => void; - /** Properties of a QueryEscrowAddressRequest. */ - interface IQueryEscrowAddressRequest { + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#setBeforeSendHook}. + * @param error Error, if any + * @param [response] MsgSetBeforeSendHookResponse + */ + type SetBeforeSendHookCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse) => void; - /** QueryEscrowAddressRequest port_id */ - port_id?: (string|null); + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#forceTransfer}. + * @param error Error, if any + * @param [response] MsgForceTransferResponse + */ + type ForceTransferCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgForceTransferResponse) => void; - /** QueryEscrowAddressRequest channel_id */ - channel_id?: (string|null); - } + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#updateParams}. + * @param error Error, if any + * @param [response] MsgUpdateParamsResponse + */ + type UpdateParamsCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse) => void; + } - /** Represents a QueryEscrowAddressRequest. */ - class QueryEscrowAddressRequest implements IQueryEscrowAddressRequest { + /** Properties of a MsgCreateDenom. */ + interface IMsgCreateDenom { - /** - * Constructs a new QueryEscrowAddressRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressRequest); + /** MsgCreateDenom sender */ + sender?: (string|null); - /** QueryEscrowAddressRequest port_id. */ - public port_id: string; + /** MsgCreateDenom subdenom */ + subdenom?: (string|null); + } - /** QueryEscrowAddressRequest channel_id. */ - public channel_id: string; + /** Represents a MsgCreateDenom. */ + class MsgCreateDenom implements IMsgCreateDenom { - /** - * 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.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new MsgCreateDenom. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgCreateDenom); - /** - * 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.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MsgCreateDenom sender. */ + public sender: string; - /** - * 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 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.applications.transfer.v1.QueryEscrowAddressRequest; + /** MsgCreateDenom subdenom. */ + public subdenom: string; - /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.applications.transfer.v1.QueryEscrowAddressRequest; + /** + * Encodes the specified MsgCreateDenom message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * @param message MsgCreateDenom message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Encodes the specified MsgCreateDenom message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. + * @param message MsgCreateDenom message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryEscrowAddressRequest - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressRequest; + /** + * Decodes a MsgCreateDenom message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgCreateDenom + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgCreateDenom; - /** - * 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.applications.transfer.v1.QueryEscrowAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MsgCreateDenom message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgCreateDenom + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgCreateDenom; - /** - * Converts this QueryEscrowAddressRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a MsgCreateDenom message. + * @param message 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 QueryEscrowAddressResponse. */ - interface IQueryEscrowAddressResponse { + /** + * Creates a MsgCreateDenom message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgCreateDenom + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgCreateDenom; - /** QueryEscrowAddressResponse escrow_address */ - escrow_address?: (string|null); - } + /** + * Creates a plain object from a MsgCreateDenom message. Also converts values to other types if specified. + * @param message MsgCreateDenom + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgCreateDenom, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a QueryEscrowAddressResponse. */ - class QueryEscrowAddressResponse implements IQueryEscrowAddressResponse { + /** + * Converts this MsgCreateDenom to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new QueryEscrowAddressResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressResponse); + /** Properties of a MsgCreateDenomResponse. */ + interface IMsgCreateDenomResponse { - /** QueryEscrowAddressResponse escrow_address. */ - public escrow_address: string; + /** MsgCreateDenomResponse new_token_denom */ + new_token_denom?: (string|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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a MsgCreateDenomResponse. */ + class MsgCreateDenomResponse implements IMsgCreateDenomResponse { - /** - * 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.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new MsgCreateDenomResponse. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse); - /** - * 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 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.applications.transfer.v1.QueryEscrowAddressResponse; + /** MsgCreateDenomResponse new_token_denom. */ + public new_token_denom: string; - /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.applications.transfer.v1.QueryEscrowAddressResponse; + /** + * Encodes the specified MsgCreateDenomResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * @param message MsgCreateDenomResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Encodes the specified MsgCreateDenomResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. + * @param message MsgCreateDenomResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryEscrowAddressResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressResponse; + /** + * Decodes a MsgCreateDenomResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgCreateDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; - /** - * 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.applications.transfer.v1.QueryEscrowAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MsgCreateDenomResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgCreateDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; - /** - * Converts this QueryEscrowAddressResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a MsgCreateDenomResponse message. + * @param message 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 DenomTrace. */ - interface IDenomTrace { + /** + * Creates a MsgCreateDenomResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgCreateDenomResponse + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; - /** DenomTrace path */ - path?: (string|null); + /** + * Creates a plain object from a MsgCreateDenomResponse message. Also converts values to other types if specified. + * @param message MsgCreateDenomResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DenomTrace base_denom */ - base_denom?: (string|null); - } + /** + * Converts this MsgCreateDenomResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a DenomTrace. */ - class DenomTrace implements IDenomTrace { + /** Properties of a MsgMint. */ + interface IMsgMint { - /** - * Constructs a new DenomTrace. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IDenomTrace); + /** MsgMint sender */ + sender?: (string|null); - /** DenomTrace path. */ - public path: string; + /** MsgMint amount */ + amount?: (cosmos.base.v1beta1.ICoin|null); - /** DenomTrace base_denom. */ - public base_denom: string; + /** MsgMint mintToAddress */ + mintToAddress?: (string|null); + } - /** - * 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; + /** Represents a MsgMint. */ + class MsgMint implements IMsgMint { - /** - * 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; + /** + * Constructs a new MsgMint. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgMint); - /** - * 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; + /** MsgMint sender. */ + public sender: 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; + /** MsgMint amount. */ + public amount?: (cosmos.base.v1beta1.ICoin|null); - /** - * 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); + /** MsgMint mintToAddress. */ + public mintToAddress: string; - /** - * 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; + /** + * Encodes the specified MsgMint message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * @param message MsgMint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgMint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 }; + /** + * Encodes the specified MsgMint message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. + * @param message MsgMint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgMint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this DenomTrace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a MsgMint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgMint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgMint; - /** Properties of a Params. */ - interface IParams { + /** + * Decodes a MsgMint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgMint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgMint; - /** Params send_enabled */ - send_enabled?: (boolean|null); + /** + * Verifies a MsgMint message. + * @param message 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 receive_enabled */ - receive_enabled?: (boolean|null); - } + /** + * Creates a MsgMint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgMint + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgMint; - /** Represents a Params. */ - class Params implements IParams { + /** + * Creates a plain object from a MsgMint message. Also converts values to other types if specified. + * @param message MsgMint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgMint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new Params. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IParams); + /** + * Converts this MsgMint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Params send_enabled. */ - public send_enabled: boolean; + /** Properties of a MsgMintResponse. */ + interface IMsgMintResponse { + } - /** Params receive_enabled. */ - public receive_enabled: boolean; + /** Represents a MsgMintResponse. */ + class MsgMintResponse implements IMsgMintResponse { - /** - * 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; + /** + * Constructs a new MsgMintResponse. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgMintResponse); - /** - * 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; + /** + * Encodes the specified MsgMintResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * @param message MsgMintResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgMintResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Encodes the specified MsgMintResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. + * @param message MsgMintResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgMintResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes a MsgMintResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgMintResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgMintResponse; - /** - * 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); + /** + * Decodes a MsgMintResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgMintResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgMintResponse; + + /** + * Verifies a MsgMintResponse message. + * @param message 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. - * @param object Plain object - * @returns Params - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.Params; + /** + * Creates a MsgMintResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgMintResponse + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgMintResponse; - /** - * 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 }; + /** + * Creates a plain object from a MsgMintResponse message. Also converts values to other types if specified. + * @param message MsgMintResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgMintResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Params to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this MsgMintResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - } - } -} -/** Namespace cosmos_proto. */ -export namespace cosmos_proto { + /** Properties of a MsgBurn. */ + interface IMsgBurn { - /** Properties of an InterfaceDescriptor. */ - interface IInterfaceDescriptor { + /** MsgBurn sender */ + sender?: (string|null); - /** InterfaceDescriptor name */ - name?: (string|null); + /** MsgBurn amount */ + amount?: (cosmos.base.v1beta1.ICoin|null); - /** InterfaceDescriptor description */ - description?: (string|null); - } + /** MsgBurn burnFromAddress */ + burnFromAddress?: (string|null); + } - /** Represents an InterfaceDescriptor. */ - class InterfaceDescriptor implements IInterfaceDescriptor { + /** Represents a MsgBurn. */ + class MsgBurn implements IMsgBurn { - /** - * Constructs a new InterfaceDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: cosmos_proto.IInterfaceDescriptor); + /** + * Constructs a new MsgBurn. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgBurn); - /** InterfaceDescriptor name. */ - public name: string; + /** MsgBurn sender. */ + public sender: string; - /** InterfaceDescriptor description. */ - public description: string; + /** MsgBurn amount. */ + public amount?: (cosmos.base.v1beta1.ICoin|null); - /** - * 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; + /** MsgBurn burnFromAddress. */ + public burnFromAddress: string; - /** - * 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; + /** + * Encodes the specified MsgBurn message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * @param message MsgBurn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgBurn, 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; + /** + * Encodes the specified MsgBurn message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. + * @param message MsgBurn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgBurn, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes a MsgBurn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgBurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgBurn; - /** - * 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); + /** + * Decodes a MsgBurn message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgBurn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgBurn; - /** - * 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; + /** + * Verifies a MsgBurn message. + * @param message 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 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 }; + /** + * Creates a MsgBurn message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgBurn + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgBurn; - /** - * Converts this InterfaceDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a MsgBurn message. Also converts values to other types if specified. + * @param message MsgBurn + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgBurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a ScalarDescriptor. */ - interface IScalarDescriptor { + /** + * Converts this MsgBurn to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ScalarDescriptor name */ - name?: (string|null); + /** Properties of a MsgBurnResponse. */ + interface IMsgBurnResponse { + } - /** ScalarDescriptor description */ - description?: (string|null); + /** Represents a MsgBurnResponse. */ + class MsgBurnResponse implements IMsgBurnResponse { - /** ScalarDescriptor field_type */ - field_type?: (cosmos_proto.ScalarType[]|null); + /** + * Constructs a new MsgBurnResponse. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgBurnResponse); - /** ScalarDescriptor legacy_amino_encoding */ - legacy_amino_encoding?: (string|null); - } + /** + * Encodes the specified MsgBurnResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * @param message MsgBurnResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgBurnResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ScalarDescriptor. */ - class ScalarDescriptor implements IScalarDescriptor { + /** + * Encodes the specified MsgBurnResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. + * @param message MsgBurnResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgBurnResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ScalarDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: cosmos_proto.IScalarDescriptor); + /** + * Decodes a MsgBurnResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgBurnResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgBurnResponse; - /** ScalarDescriptor name. */ - public name: string; + /** + * Decodes a MsgBurnResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgBurnResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgBurnResponse; - /** ScalarDescriptor description. */ - public description: string; + /** + * Verifies a MsgBurnResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ScalarDescriptor field_type. */ - public field_type: cosmos_proto.ScalarType[]; + /** + * Creates a MsgBurnResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgBurnResponse + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgBurnResponse; - /** ScalarDescriptor legacy_amino_encoding. */ - public legacy_amino_encoding: string; + /** + * Creates a plain object from a MsgBurnResponse message. Also converts values to other types if specified. + * @param message MsgBurnResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgBurnResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this MsgBurnResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a MsgChangeAdmin. */ + interface IMsgChangeAdmin { - /** - * 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; + /** MsgChangeAdmin sender */ + sender?: (string|null); - /** - * 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; + /** MsgChangeAdmin denom */ + denom?: (string|null); - /** - * 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); + /** MsgChangeAdmin new_admin */ + new_admin?: (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; + /** Represents a MsgChangeAdmin. */ + class MsgChangeAdmin implements IMsgChangeAdmin { - /** - * 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 }; + /** + * Constructs a new MsgChangeAdmin. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin); - /** - * Converts this ScalarDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** MsgChangeAdmin sender. */ + public sender: string; - /** ScalarType enum. */ - enum ScalarType { - SCALAR_TYPE_UNSPECIFIED = 0, - SCALAR_TYPE_STRING = 1, - SCALAR_TYPE_BYTES = 2 - } -} + /** MsgChangeAdmin denom. */ + public denom: string; -/** Namespace osmosis. */ -export namespace osmosis { + /** MsgChangeAdmin new_admin. */ + public new_admin: string; - /** Namespace tokenfactory. */ - namespace tokenfactory { + /** + * Encodes the specified MsgChangeAdmin message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * @param message MsgChangeAdmin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** Namespace v1beta1. */ - namespace v1beta1 { + /** + * Encodes the specified MsgChangeAdmin message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. + * @param message MsgChangeAdmin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** + * Decodes a MsgChangeAdmin message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChangeAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; /** - * 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 + * Decodes a MsgChangeAdmin message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChangeAdmin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; /** - * Calls CreateDenom. - * @param request MsgCreateDenom message or plain object - * @param callback Node-style callback called with the error, if any, and MsgCreateDenomResponse + * Verifies a MsgChangeAdmin message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createDenom(request: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, callback: osmosis.tokenfactory.v1beta1.Msg.CreateDenomCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateDenom. - * @param request MsgCreateDenom message or plain object - * @returns Promise + * Creates a MsgChangeAdmin message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChangeAdmin */ - public createDenom(request: osmosis.tokenfactory.v1beta1.IMsgCreateDenom): Promise; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; /** - * Calls Mint. - * @param request MsgMint message or plain object - * @param callback Node-style callback called with the error, if any, and MsgMintResponse + * Creates a plain object from a MsgChangeAdmin message. Also converts values to other types if specified. + * @param message MsgChangeAdmin + * @param [options] Conversion options + * @returns Plain object */ - public mint(request: osmosis.tokenfactory.v1beta1.IMsgMint, callback: osmosis.tokenfactory.v1beta1.Msg.MintCallback): void; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgChangeAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls Mint. - * @param request MsgMint message or plain object - * @returns Promise + * Converts this MsgChangeAdmin to JSON. + * @returns JSON object */ - public mint(request: osmosis.tokenfactory.v1beta1.IMsgMint): Promise; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChangeAdminResponse. */ + interface IMsgChangeAdminResponse { + } + + /** Represents a MsgChangeAdminResponse. */ + class MsgChangeAdminResponse implements IMsgChangeAdminResponse { /** - * Calls Burn. - * @param request MsgBurn message or plain object - * @param callback Node-style callback called with the error, if any, and MsgBurnResponse + * Constructs a new MsgChangeAdminResponse. + * @param [properties] Properties to set */ - public burn(request: osmosis.tokenfactory.v1beta1.IMsgBurn, callback: osmosis.tokenfactory.v1beta1.Msg.BurnCallback): void; + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse); /** - * Calls Burn. - * @param request MsgBurn message or plain object - * @returns Promise + * Encodes the specified MsgChangeAdminResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * @param message MsgChangeAdminResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public burn(request: osmosis.tokenfactory.v1beta1.IMsgBurn): Promise; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChangeAdmin. - * @param request MsgChangeAdmin message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChangeAdminResponse + * Encodes the specified MsgChangeAdminResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. + * @param message MsgChangeAdminResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public changeAdmin(request: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, callback: osmosis.tokenfactory.v1beta1.Msg.ChangeAdminCallback): void; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChangeAdmin. - * @param request MsgChangeAdmin message or plain object - * @returns Promise + * Decodes a MsgChangeAdminResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChangeAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public changeAdmin(request: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin): Promise; - } + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; - namespace Msg { + /** + * Decodes a MsgChangeAdminResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChangeAdminResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#createDenom}. - * @param error Error, if any - * @param [response] MsgCreateDenomResponse + * Verifies a MsgChangeAdminResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateDenomCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#mint}. - * @param error Error, if any - * @param [response] MsgMintResponse + * Creates a MsgChangeAdminResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChangeAdminResponse */ - type MintCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgMintResponse) => void; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#burn}. - * @param error Error, if any - * @param [response] MsgBurnResponse + * Creates a plain object from a MsgChangeAdminResponse message. Also converts values to other types if specified. + * @param message MsgChangeAdminResponse + * @param [options] Conversion options + * @returns Plain object */ - type BurnCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgBurnResponse) => void; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link osmosis.tokenfactory.v1beta1.Msg#changeAdmin}. - * @param error Error, if any - * @param [response] MsgChangeAdminResponse + * Converts this MsgChangeAdminResponse to JSON. + * @returns JSON object */ - type ChangeAdminCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a MsgCreateDenom. */ - interface IMsgCreateDenom { + /** Properties of a MsgSetBeforeSendHook. */ + interface IMsgSetBeforeSendHook { - /** MsgCreateDenom sender */ + /** MsgSetBeforeSendHook sender */ sender?: (string|null); - /** MsgCreateDenom subdenom */ - subdenom?: (string|null); + /** MsgSetBeforeSendHook denom */ + denom?: (string|null); + + /** MsgSetBeforeSendHook cosmwasm_address */ + cosmwasm_address?: (string|null); } - /** Represents a MsgCreateDenom. */ - class MsgCreateDenom implements IMsgCreateDenom { + /** Represents a MsgSetBeforeSendHook. */ + class MsgSetBeforeSendHook implements IMsgSetBeforeSendHook { /** - * Constructs a new MsgCreateDenom. + * Constructs a new MsgSetBeforeSendHook. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgCreateDenom); + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook); - /** MsgCreateDenom sender. */ + /** MsgSetBeforeSendHook sender. */ public sender: string; - /** MsgCreateDenom subdenom. */ - public subdenom: string; + /** MsgSetBeforeSendHook denom. */ + public denom: string; + + /** MsgSetBeforeSendHook cosmwasm_address. */ + public cosmwasm_address: string; /** - * Encodes the specified MsgCreateDenom message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. - * @param message MsgCreateDenom message or plain object to encode + * Encodes the specified MsgSetBeforeSendHook message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. + * @param message MsgSetBeforeSendHook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgCreateDenom message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenom.verify|verify} messages. - * @param message MsgCreateDenom message or plain object to encode + * Encodes the specified MsgSetBeforeSendHook message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. + * @param message MsgSetBeforeSendHook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenom, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgCreateDenom message from the specified reader or buffer. + * Decodes a MsgSetBeforeSendHook message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgCreateDenom + * @returns MsgSetBeforeSendHook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgCreateDenom; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook; /** - * Decodes a MsgCreateDenom message from the specified reader or buffer, length delimited. + * Decodes a MsgSetBeforeSendHook message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgCreateDenom + * @returns MsgSetBeforeSendHook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgCreateDenom; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook; /** - * Verifies a MsgCreateDenom message. + * Verifies a MsgSetBeforeSendHook message. * @param message 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 MsgCreateDenom message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetBeforeSendHook message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgCreateDenom + * @returns MsgSetBeforeSendHook */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgCreateDenom; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook; /** - * Creates a plain object from a MsgCreateDenom message. Also converts values to other types if specified. - * @param message MsgCreateDenom + * Creates a plain object from a MsgSetBeforeSendHook message. Also converts values to other types if specified. + * @param message MsgSetBeforeSendHook * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgCreateDenom, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgCreateDenom to JSON. + * Converts this MsgSetBeforeSendHook to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgCreateDenomResponse. */ - interface IMsgCreateDenomResponse { - - /** MsgCreateDenomResponse new_token_denom */ - new_token_denom?: (string|null); + /** Properties of a MsgSetBeforeSendHookResponse. */ + interface IMsgSetBeforeSendHookResponse { } - /** Represents a MsgCreateDenomResponse. */ - class MsgCreateDenomResponse implements IMsgCreateDenomResponse { + /** Represents a MsgSetBeforeSendHookResponse. */ + class MsgSetBeforeSendHookResponse implements IMsgSetBeforeSendHookResponse { /** - * Constructs a new MsgCreateDenomResponse. + * Constructs a new MsgSetBeforeSendHookResponse. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse); - - /** MsgCreateDenomResponse new_token_denom. */ - public new_token_denom: string; + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse); /** - * Encodes the specified MsgCreateDenomResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. - * @param message MsgCreateDenomResponse message or plain object to encode + * Encodes the specified MsgSetBeforeSendHookResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse.verify|verify} messages. + * @param message MsgSetBeforeSendHookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgCreateDenomResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse.verify|verify} messages. - * @param message MsgCreateDenomResponse message or plain object to encode + * Encodes the specified MsgSetBeforeSendHookResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse.verify|verify} messages. + * @param message MsgSetBeforeSendHookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgCreateDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgSetBeforeSendHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgCreateDenomResponse message from the specified reader or buffer. + * Decodes a MsgSetBeforeSendHookResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgCreateDenomResponse + * @returns MsgSetBeforeSendHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse; /** - * Decodes a MsgCreateDenomResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSetBeforeSendHookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgCreateDenomResponse + * @returns MsgSetBeforeSendHookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse; /** - * Verifies a MsgCreateDenomResponse message. + * Verifies a MsgSetBeforeSendHookResponse message. * @param message 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 MsgCreateDenomResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetBeforeSendHookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgCreateDenomResponse + * @returns MsgSetBeforeSendHookResponse */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse; /** - * Creates a plain object from a MsgCreateDenomResponse message. Also converts values to other types if specified. - * @param message MsgCreateDenomResponse + * Creates a plain object from a MsgSetBeforeSendHookResponse message. Also converts values to other types if specified. + * @param message MsgSetBeforeSendHookResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgCreateDenomResponse to JSON. + * Converts this MsgSetBeforeSendHookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgMint. */ - interface IMsgMint { + /** Properties of a MsgSetDenomMetadata. */ + interface IMsgSetDenomMetadata { - /** MsgMint sender */ + /** MsgSetDenomMetadata sender */ sender?: (string|null); - /** MsgMint amount */ - amount?: (cosmos.base.v1beta1.ICoin|null); + /** MsgSetDenomMetadata metadata */ + metadata?: (cosmos.bank.v1beta1.IMetadata|null); } - /** Represents a MsgMint. */ - class MsgMint implements IMsgMint { + /** Represents a MsgSetDenomMetadata. */ + class MsgSetDenomMetadata implements IMsgSetDenomMetadata { /** - * Constructs a new MsgMint. + * Constructs a new MsgSetDenomMetadata. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgMint); + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata); - /** MsgMint sender. */ + /** MsgSetDenomMetadata sender. */ public sender: string; - /** MsgMint amount. */ - public amount?: (cosmos.base.v1beta1.ICoin|null); + /** MsgSetDenomMetadata metadata. */ + public metadata?: (cosmos.bank.v1beta1.IMetadata|null); /** - * Encodes the specified MsgMint message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. - * @param message MsgMint message or plain object to encode + * Encodes the specified MsgSetDenomMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata.verify|verify} messages. + * @param message MsgSetDenomMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgMint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgMint message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMint.verify|verify} messages. - * @param message MsgMint message or plain object to encode + * Encodes the specified MsgSetDenomMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata.verify|verify} messages. + * @param message MsgSetDenomMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgMint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgMint message from the specified reader or buffer. + * Decodes a MsgSetDenomMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgMint + * @returns MsgSetDenomMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgMint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata; /** - * Decodes a MsgMint message from the specified reader or buffer, length delimited. + * Decodes a MsgSetDenomMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgMint + * @returns MsgSetDenomMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgMint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata; /** - * Verifies a MsgMint message. + * Verifies a MsgSetDenomMetadata message. * @param message 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 MsgMint message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetDenomMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgMint + * @returns MsgSetDenomMetadata */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgMint; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata; /** - * Creates a plain object from a MsgMint message. Also converts values to other types if specified. - * @param message MsgMint + * Creates a plain object from a MsgSetDenomMetadata message. Also converts values to other types if specified. + * @param message MsgSetDenomMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgMint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgMint to JSON. + * Converts this MsgSetDenomMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgMintResponse. */ - interface IMsgMintResponse { + /** Properties of a MsgSetDenomMetadataResponse. */ + interface IMsgSetDenomMetadataResponse { } - /** Represents a MsgMintResponse. */ - class MsgMintResponse implements IMsgMintResponse { + /** Represents a MsgSetDenomMetadataResponse. */ + class MsgSetDenomMetadataResponse implements IMsgSetDenomMetadataResponse { /** - * Constructs a new MsgMintResponse. + * Constructs a new MsgSetDenomMetadataResponse. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgMintResponse); + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse); /** - * Encodes the specified MsgMintResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. - * @param message MsgMintResponse message or plain object to encode + * Encodes the specified MsgSetDenomMetadataResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse.verify|verify} messages. + * @param message MsgSetDenomMetadataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgMintResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgMintResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgMintResponse.verify|verify} messages. - * @param message MsgMintResponse message or plain object to encode + * Encodes the specified MsgSetDenomMetadataResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse.verify|verify} messages. + * @param message MsgSetDenomMetadataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgMintResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgSetDenomMetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgMintResponse message from the specified reader or buffer. + * Decodes a MsgSetDenomMetadataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgMintResponse + * @returns MsgSetDenomMetadataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgMintResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse; /** - * Decodes a MsgMintResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSetDenomMetadataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgMintResponse + * @returns MsgSetDenomMetadataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgMintResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse; /** - * Verifies a MsgMintResponse message. + * Verifies a MsgSetDenomMetadataResponse message. * @param message 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 MsgMintResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSetDenomMetadataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgMintResponse + * @returns MsgSetDenomMetadataResponse */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgMintResponse; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse; /** - * Creates a plain object from a MsgMintResponse message. Also converts values to other types if specified. - * @param message MsgMintResponse + * Creates a plain object from a MsgSetDenomMetadataResponse message. Also converts values to other types if specified. + * @param message MsgSetDenomMetadataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgMintResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgMintResponse to JSON. + * Converts this MsgSetDenomMetadataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgBurn. */ - interface IMsgBurn { + /** Properties of a MsgForceTransfer. */ + interface IMsgForceTransfer { - /** MsgBurn sender */ + /** MsgForceTransfer sender */ sender?: (string|null); - /** MsgBurn amount */ + /** MsgForceTransfer amount */ amount?: (cosmos.base.v1beta1.ICoin|null); + + /** MsgForceTransfer transferFromAddress */ + transferFromAddress?: (string|null); + + /** MsgForceTransfer transferToAddress */ + transferToAddress?: (string|null); } - /** Represents a MsgBurn. */ - class MsgBurn implements IMsgBurn { + /** Represents a MsgForceTransfer. */ + class MsgForceTransfer implements IMsgForceTransfer { /** - * Constructs a new MsgBurn. + * Constructs a new MsgForceTransfer. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgBurn); + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgForceTransfer); - /** MsgBurn sender. */ + /** MsgForceTransfer sender. */ public sender: string; - /** MsgBurn amount. */ + /** MsgForceTransfer amount. */ public amount?: (cosmos.base.v1beta1.ICoin|null); + /** MsgForceTransfer transferFromAddress. */ + public transferFromAddress: string; + + /** MsgForceTransfer transferToAddress. */ + public transferToAddress: string; + /** - * Encodes the specified MsgBurn message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. - * @param message MsgBurn message or plain object to encode + * Encodes the specified MsgForceTransfer message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransfer.verify|verify} messages. + * @param message MsgForceTransfer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgBurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgForceTransfer, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgBurn message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurn.verify|verify} messages. - * @param message MsgBurn message or plain object to encode + * Encodes the specified MsgForceTransfer message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransfer.verify|verify} messages. + * @param message MsgForceTransfer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgBurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgForceTransfer, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgBurn message from the specified reader or buffer. + * Decodes a MsgForceTransfer message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgBurn + * @returns MsgForceTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgBurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgForceTransfer; /** - * Decodes a MsgBurn message from the specified reader or buffer, length delimited. + * Decodes a MsgForceTransfer message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgBurn + * @returns MsgForceTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgBurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgForceTransfer; /** - * Verifies a MsgBurn message. + * Verifies a MsgForceTransfer message. * @param message 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 MsgBurn message from a plain object. Also converts values to their respective internal types. + * Creates a MsgForceTransfer message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgBurn + * @returns MsgForceTransfer */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgBurn; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgForceTransfer; /** - * Creates a plain object from a MsgBurn message. Also converts values to other types if specified. - * @param message MsgBurn + * Creates a plain object from a MsgForceTransfer message. Also converts values to other types if specified. + * @param message MsgForceTransfer * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgBurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgForceTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgBurn to JSON. + * Converts this MsgForceTransfer to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgBurnResponse. */ - interface IMsgBurnResponse { + /** Properties of a MsgForceTransferResponse. */ + interface IMsgForceTransferResponse { } - /** Represents a MsgBurnResponse. */ - class MsgBurnResponse implements IMsgBurnResponse { + /** Represents a MsgForceTransferResponse. */ + class MsgForceTransferResponse implements IMsgForceTransferResponse { /** - * Constructs a new MsgBurnResponse. + * Constructs a new MsgForceTransferResponse. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgBurnResponse); + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse); /** - * Encodes the specified MsgBurnResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. - * @param message MsgBurnResponse message or plain object to encode + * Encodes the specified MsgForceTransferResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransferResponse.verify|verify} messages. + * @param message MsgForceTransferResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgBurnResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgBurnResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgBurnResponse.verify|verify} messages. - * @param message MsgBurnResponse message or plain object to encode + * Encodes the specified MsgForceTransferResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgForceTransferResponse.verify|verify} messages. + * @param message MsgForceTransferResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgBurnResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgForceTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgBurnResponse message from the specified reader or buffer. + * Decodes a MsgForceTransferResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgBurnResponse + * @returns MsgForceTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgBurnResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgForceTransferResponse; /** - * Decodes a MsgBurnResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgForceTransferResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgBurnResponse + * @returns MsgForceTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgBurnResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgForceTransferResponse; /** - * Verifies a MsgBurnResponse message. + * Verifies a MsgForceTransferResponse message. * @param message 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 MsgBurnResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgForceTransferResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgBurnResponse + * @returns MsgForceTransferResponse */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgBurnResponse; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgForceTransferResponse; /** - * Creates a plain object from a MsgBurnResponse message. Also converts values to other types if specified. - * @param message MsgBurnResponse + * Creates a plain object from a MsgForceTransferResponse message. Also converts values to other types if specified. + * @param message MsgForceTransferResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgBurnResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgForceTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgBurnResponse to JSON. + * Converts this MsgForceTransferResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChangeAdmin. */ - interface IMsgChangeAdmin { + /** Properties of a MsgUpdateParams. */ + interface IMsgUpdateParams { - /** MsgChangeAdmin sender */ - sender?: (string|null); + /** MsgUpdateParams authority */ + authority?: (string|null); + + /** MsgUpdateParams params */ + params?: (osmosis.tokenfactory.v1beta1.IParams|null); + } + + /** Represents a MsgUpdateParams. */ + class MsgUpdateParams implements IMsgUpdateParams { + + /** + * Constructs a new MsgUpdateParams. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgUpdateParams); + + /** MsgUpdateParams authority. */ + public authority: string; + + /** MsgUpdateParams params. */ + public params?: (osmosis.tokenfactory.v1beta1.IParams|null); + + /** + * Encodes the specified MsgUpdateParams message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgUpdateParams message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParams.verify|verify} messages. + * @param message MsgUpdateParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgUpdateParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgUpdateParams; + + /** + * Decodes a MsgUpdateParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUpdateParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgUpdateParams; + + /** + * Verifies a MsgUpdateParams message. + * @param message 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 MsgUpdateParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUpdateParams + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgUpdateParams; + + /** + * Creates a plain object from a MsgUpdateParams message. Also converts values to other types if specified. + * @param message MsgUpdateParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgUpdateParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MsgChangeAdmin denom */ - denom?: (string|null); + /** + * Converts this MsgUpdateParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MsgChangeAdmin newAdmin */ - newAdmin?: (string|null); + /** Properties of a MsgUpdateParamsResponse. */ + interface IMsgUpdateParamsResponse { } - /** Represents a MsgChangeAdmin. */ - class MsgChangeAdmin implements IMsgChangeAdmin { + /** Represents a MsgUpdateParamsResponse. */ + class MsgUpdateParamsResponse implements IMsgUpdateParamsResponse { /** - * Constructs a new MsgChangeAdmin. + * Constructs a new MsgUpdateParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin); - - /** MsgChangeAdmin sender. */ - public sender: string; - - /** MsgChangeAdmin denom. */ - public denom: string; - - /** MsgChangeAdmin newAdmin. */ - public newAdmin: string; + constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse); /** - * Encodes the specified MsgChangeAdmin message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. - * @param message MsgChangeAdmin message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChangeAdmin message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdmin.verify|verify} messages. - * @param message MsgChangeAdmin message or plain object to encode + * Encodes the specified MsgUpdateParamsResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse.verify|verify} messages. + * @param message MsgUpdateParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgChangeAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IMsgUpdateParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChangeAdmin message from the specified reader or buffer. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChangeAdmin + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse; /** - * Decodes a MsgChangeAdmin message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChangeAdmin + * @returns MsgUpdateParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse; /** - * Verifies a MsgChangeAdmin message. + * Verifies a MsgUpdateParamsResponse message. * @param message 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 MsgChangeAdmin message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChangeAdmin + * @returns MsgUpdateParamsResponse */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgChangeAdmin; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse; /** - * Creates a plain object from a MsgChangeAdmin message. Also converts values to other types if specified. - * @param message MsgChangeAdmin + * Creates a plain object from a MsgUpdateParamsResponse message. Also converts values to other types if specified. + * @param message MsgUpdateParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.MsgChangeAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.MsgUpdateParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChangeAdmin to JSON. + * Converts this MsgUpdateParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChangeAdminResponse. */ - interface IMsgChangeAdminResponse { + /** Properties of a Params. */ + interface IParams { + + /** Params denom_creation_fee */ + denom_creation_fee?: (cosmos.base.v1beta1.ICoin[]|null); + + /** Params denom_creation_gas_consume */ + denom_creation_gas_consume?: (Long|null); } - /** Represents a MsgChangeAdminResponse. */ - class MsgChangeAdminResponse implements IMsgChangeAdminResponse { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new MsgChangeAdminResponse. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse); + constructor(properties?: osmosis.tokenfactory.v1beta1.IParams); + + /** Params denom_creation_fee. */ + public denom_creation_fee: cosmos.base.v1beta1.ICoin[]; + + /** Params denom_creation_gas_consume. */ + public denom_creation_gas_consume: Long; /** - * Encodes the specified MsgChangeAdminResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. - * @param message MsgChangeAdminResponse message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.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: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChangeAdminResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse.verify|verify} messages. - * @param message MsgChangeAdminResponse message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link osmosis.tokenfactory.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: osmosis.tokenfactory.v1beta1.IMsgChangeAdminResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChangeAdminResponse 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 MsgChangeAdminResponse + * @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): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.Params; /** - * Decodes a MsgChangeAdminResponse 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 MsgChangeAdminResponse + * @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)): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.Params; /** - * Verifies a MsgChangeAdminResponse 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 MsgChangeAdminResponse 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 MsgChangeAdminResponse + * @returns Params */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.Params; /** - * Creates a plain object from a MsgChangeAdminResponse message. Also converts values to other types if specified. - * @param message MsgChangeAdminResponse + * 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: osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChangeAdminResponse to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -22184,6 +25745,20 @@ export namespace osmosis { * @returns Promise */ public denomsFromCreator(request: osmosis.tokenfactory.v1beta1.IQueryDenomsFromCreatorRequest): Promise; + + /** + * Calls BeforeSendHookAddress. + * @param request QueryBeforeSendHookAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryBeforeSendHookAddressResponse + */ + public beforeSendHookAddress(request: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest, callback: osmosis.tokenfactory.v1beta1.Query.BeforeSendHookAddressCallback): void; + + /** + * Calls BeforeSendHookAddress. + * @param request QueryBeforeSendHookAddressRequest message or plain object + * @returns Promise + */ + public beforeSendHookAddress(request: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest): Promise; } namespace Query { @@ -22208,6 +25783,13 @@ export namespace osmosis { * @param [response] QueryDenomsFromCreatorResponse */ type DenomsFromCreatorCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse) => void; + + /** + * Callback as used by {@link osmosis.tokenfactory.v1beta1.Query#beforeSendHookAddress}. + * @param error Error, if any + * @param [response] QueryBeforeSendHookAddressResponse + */ + type BeforeSendHookAddressCallback = (error: (Error|null), response?: osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse) => void; } /** Properties of a QueryParamsRequest. */ @@ -22373,11 +25955,8 @@ export namespace osmosis { /** Properties of a QueryDenomAuthorityMetadataRequest. */ interface IQueryDenomAuthorityMetadataRequest { - /** QueryDenomAuthorityMetadataRequest creator */ - creator?: (string|null); - - /** QueryDenomAuthorityMetadataRequest subdenom */ - subdenom?: (string|null); + /** QueryDenomAuthorityMetadataRequest denom */ + denom?: (string|null); } /** Represents a QueryDenomAuthorityMetadataRequest. */ @@ -22389,11 +25968,8 @@ export namespace osmosis { */ constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryDenomAuthorityMetadataRequest); - /** QueryDenomAuthorityMetadataRequest creator. */ - public creator: string; - - /** QueryDenomAuthorityMetadataRequest subdenom. */ - public subdenom: string; + /** QueryDenomAuthorityMetadataRequest denom. */ + public denom: string; /** * Encodes the specified QueryDenomAuthorityMetadataRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest.verify|verify} messages. @@ -22708,161 +26284,250 @@ export namespace osmosis { public toJSON(): { [k: string]: any }; } - /** Properties of a DenomAuthorityMetadata. */ - interface IDenomAuthorityMetadata { + /** Properties of a QueryBeforeSendHookAddressRequest. */ + interface IQueryBeforeSendHookAddressRequest { - /** DenomAuthorityMetadata Admin */ - Admin?: (string|null); + /** QueryBeforeSendHookAddressRequest denom */ + denom?: (string|null); } - /** Represents a DenomAuthorityMetadata. */ - class DenomAuthorityMetadata implements IDenomAuthorityMetadata { + /** Represents a QueryBeforeSendHookAddressRequest. */ + class QueryBeforeSendHookAddressRequest implements IQueryBeforeSendHookAddressRequest { /** - * Constructs a new DenomAuthorityMetadata. + * Constructs a new QueryBeforeSendHookAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata); + constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest); - /** DenomAuthorityMetadata Admin. */ - public Admin: string; + /** QueryBeforeSendHookAddressRequest denom. */ + public denom: string; /** - * Encodes the specified DenomAuthorityMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. - * @param message DenomAuthorityMetadata message or plain object to encode + * Encodes the specified QueryBeforeSendHookAddressRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. + * @param message QueryBeforeSendHookAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DenomAuthorityMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. - * @param message DenomAuthorityMetadata message or plain object to encode + * Encodes the specified QueryBeforeSendHookAddressRequest message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. + * @param message QueryBeforeSendHookAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DenomAuthorityMetadata message from the specified reader or buffer. + * Decodes a QueryBeforeSendHookAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DenomAuthorityMetadata + * @returns QueryBeforeSendHookAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest; /** - * Decodes a DenomAuthorityMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryBeforeSendHookAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DenomAuthorityMetadata + * @returns QueryBeforeSendHookAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest; /** - * Verifies a DenomAuthorityMetadata message. + * Verifies a QueryBeforeSendHookAddressRequest message. * @param message 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 DenomAuthorityMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryBeforeSendHookAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DenomAuthorityMetadata + * @returns QueryBeforeSendHookAddressRequest */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest; /** - * Creates a plain object from a DenomAuthorityMetadata message. Also converts values to other types if specified. - * @param message DenomAuthorityMetadata + * Creates a plain object from a QueryBeforeSendHookAddressRequest message. Also converts values to other types if specified. + * @param message QueryBeforeSendHookAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DenomAuthorityMetadata to JSON. + * Converts this QueryBeforeSendHookAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { + /** Properties of a QueryBeforeSendHookAddressResponse. */ + interface IQueryBeforeSendHookAddressResponse { + + /** QueryBeforeSendHookAddressResponse cosmwasm_address */ + cosmwasm_address?: (string|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QueryBeforeSendHookAddressResponse. */ + class QueryBeforeSendHookAddressResponse implements IQueryBeforeSendHookAddressResponse { /** - * Constructs a new Params. + * Constructs a new QueryBeforeSendHookAddressResponse. * @param [properties] Properties to set */ - constructor(properties?: osmosis.tokenfactory.v1beta1.IParams); + constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse); + + /** QueryBeforeSendHookAddressResponse cosmwasm_address. */ + public cosmwasm_address: string; /** - * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryBeforeSendHookAddressResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. + * @param message QueryBeforeSendHookAddressResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: osmosis.tokenfactory.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryBeforeSendHookAddressResponse message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. + * @param message QueryBeforeSendHookAddressResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryBeforeSendHookAddressResponse 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 QueryBeforeSendHookAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryBeforeSendHookAddressResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QueryBeforeSendHookAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse; /** - * Verifies a Params message. + * Verifies a QueryBeforeSendHookAddressResponse message. * @param message 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 QueryBeforeSendHookAddressResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QueryBeforeSendHookAddressResponse */ - public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.Params; + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse; /** - * 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 QueryBeforeSendHookAddressResponse message. Also converts values to other types if specified. + * @param message QueryBeforeSendHookAddressResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: osmosis.tokenfactory.v1beta1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryBeforeSendHookAddressResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DenomAuthorityMetadata. */ + interface IDenomAuthorityMetadata { + + /** DenomAuthorityMetadata Admin */ + Admin?: (string|null); + } + + /** Represents a DenomAuthorityMetadata. */ + class DenomAuthorityMetadata implements IDenomAuthorityMetadata { + + /** + * Constructs a new DenomAuthorityMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata); + + /** DenomAuthorityMetadata Admin. */ + public Admin: string; + + /** + * Encodes the specified DenomAuthorityMetadata message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * @param message DenomAuthorityMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DenomAuthorityMetadata message, length delimited. Does not implicitly {@link osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata.verify|verify} messages. + * @param message DenomAuthorityMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: osmosis.tokenfactory.v1beta1.IDenomAuthorityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DenomAuthorityMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DenomAuthorityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + + /** + * Decodes a DenomAuthorityMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DenomAuthorityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + + /** + * Verifies a DenomAuthorityMetadata message. + * @param message 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 DenomAuthorityMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DenomAuthorityMetadata + */ + public static fromObject(object: { [k: string]: any }): osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata; + + /** + * Creates a plain object from a DenomAuthorityMetadata message. Also converts values to other types if specified. + * @param message DenomAuthorityMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DenomAuthorityMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/src/helpers/tokenfactory.ts b/src/helpers/tokenfactory.ts index e85df9bf..833b5ff4 100644 --- a/src/helpers/tokenfactory.ts +++ b/src/helpers/tokenfactory.ts @@ -22,6 +22,10 @@ cosmosclient.codec.register( '/osmosis.tokenfactory.v1beta1.MsgChangeAdmin', osmosis.tokenfactory.v1beta1.MsgChangeAdmin, ); +// cosmosclient.codec.register( +// '/osmosis.tokenfactory.v1beta1.MsgChangeAdmin', +// osmosis.tokenfactory.v1beta1.MsgChangeAdmin, +// ); export const msgMintDenom = async ( cmNeutron: WalletWrapper, @@ -55,8 +59,8 @@ export const msgCreateDenom = async ( }); const res = await cmNeutron.execTx( { - gas_limit: Long.fromString('200000'), - amount: [{ denom: cmNeutron.chain.denom, amount: '1000' }], + gas_limit: Long.fromString('2000000'), + amount: [{ denom: cmNeutron.chain.denom, amount: '5000' }], }, [msgCreateDenom], 10, @@ -77,11 +81,12 @@ export const msgBurn = async ( denom: denom, amount: amountToBurn, }, + burnFromAddress: creator, }); const res = await cmNeutron.execTx( { gas_limit: Long.fromString('200000'), - amount: [{ denom: cmNeutron.chain.denom, amount: '1000' }], + amount: [{ denom: cmNeutron.chain.denom, amount: '5000' }], }, [msgBurn], 10, @@ -100,12 +105,12 @@ export const msgChangeAdmin = async ( const msgChangeAdmin = new osmosis.tokenfactory.v1beta1.MsgChangeAdmin({ sender: creator, denom, - newAdmin, + new_admin: newAdmin, }); const res = await cmNeutron.execTx( { gas_limit: Long.fromString('200000'), - amount: [{ denom: cmNeutron.chain.denom, amount: '1000' }], + amount: [{ denom: cmNeutron.chain.denom, amount: '5000' }], }, [msgChangeAdmin], 10, diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 54b3506f..87043a12 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -50,7 +50,6 @@ describe('Neutron / Tokenfactory', () => { describe('Module itself', () => { test('create denoms and check list', async () => { const denom = 'test1'; - const data = await msgCreateDenom( neutronAccount, ownerWallet.address.toString(), @@ -118,32 +117,35 @@ describe('Neutron / Tokenfactory', () => { 'new_token_denom', ); - const authorityMetadataBefore = await getAuthorityMetadata( - neutronChain.sdk.url, - newTokenDenom, - ); + console.log(newTokenDenom); - expect(authorityMetadataBefore.authority_metadata).toEqual({ - Admin: ownerWallet.address.toString(), - }); - - const newAdmin = 'neutron1pyqyzrh6p4skmm43zrpt77wgrqq588vc8nhpfz'; - - await msgChangeAdmin( - neutronAccount, - ownerWallet.address.toString(), - newTokenDenom, - newAdmin, - ); - - const authorityMetadataAfter = await getAuthorityMetadata( + const authorityMetadataBefore = await getAuthorityMetadata( neutronChain.sdk.url, newTokenDenom, ); - - expect(authorityMetadataAfter.authority_metadata).toEqual({ - Admin: newAdmin, - }); + console.log(authorityMetadataBefore); + + // expect(authorityMetadataBefore.authority_metadata).toEqual({ + // Admin: ownerWallet.address.toString(), + // }); + // + // const newAdmin = 'neutron1pyqyzrh6p4skmm43zrpt77wgrqq588vc8nhpfz'; + // + // await msgChangeAdmin( + // neutronAccount, + // ownerWallet.address.toString(), + // newTokenDenom, + // newAdmin, + // ); + // + // const authorityMetadataAfter = await getAuthorityMetadata( + // neutronChain.sdk.url, + // newTokenDenom, + // ); + // + // expect(authorityMetadataAfter.authority_metadata).toEqual({ + // Admin: newAdmin, + // }); }); // Test denom creation, mint some coins and burn some of them @@ -160,7 +162,7 @@ describe('Neutron / Tokenfactory', () => { 'create_denom', 'new_token_denom', ); - + console.log(newTokenDenom); await msgMintDenom(neutronAccount, ownerWallet.address.toString(), { denom: newTokenDenom, amount: '10000', From 990f7a009019fa30dda34f93ff8e6c711c0c8512 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 7 Sep 2023 17:42:08 +0400 Subject: [PATCH 03/19] wip --- src/helpers/tokenfactory.ts | 23 ++++++ src/testcases/parallel/tokenfactory.test.ts | 91 +++++++++++++++------ 2 files changed, 91 insertions(+), 23 deletions(-) diff --git a/src/helpers/tokenfactory.ts b/src/helpers/tokenfactory.ts index 833b5ff4..eeb91274 100644 --- a/src/helpers/tokenfactory.ts +++ b/src/helpers/tokenfactory.ts @@ -118,3 +118,26 @@ export const msgChangeAdmin = async ( return res.tx_response!; }; + +export const msgSetBeforeSendHook = async ( + cmNeutron: WalletWrapper, + creator: string, + denom: string, + cosmwasmAddress: string, +): Promise => { + const msgMint = new osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook({ + sender: creator, + denom, + cosmwasm_address: cosmwasmAddress, + }); + const res = await cmNeutron.execTx( + { + gas_limit: Long.fromString('200000'), + amount: [{ denom: cmNeutron.chain.denom, amount: '1000' }], + }, + [msgMint], + 10, + ); + + return res.tx_response!; +}; diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 87043a12..9a448dbd 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -13,7 +13,7 @@ import { msgBurn, msgChangeAdmin, msgCreateDenom, - msgMintDenom, + msgMintDenom, msgSetBeforeSendHook, } from '../../helpers/tokenfactory'; interface DenomsFromCreator { @@ -24,6 +24,10 @@ interface AuthorityMetadata { readonly authority_metadata: { readonly Admin: string }; } +interface BerforeSendHook { + readonly before_send_hook: { readonly CosmwasmAddress: string }; +} + describe('Neutron / Tokenfactory', () => { let testState: TestStateLocalCosmosTestNet; let neutronChain: CosmosWrapper; @@ -118,6 +122,7 @@ describe('Neutron / Tokenfactory', () => { ); console.log(newTokenDenom); + console.log(neutronChain.sdk.url); const authorityMetadataBefore = await getAuthorityMetadata( neutronChain.sdk.url, @@ -125,27 +130,27 @@ describe('Neutron / Tokenfactory', () => { ); console.log(authorityMetadataBefore); - // expect(authorityMetadataBefore.authority_metadata).toEqual({ - // Admin: ownerWallet.address.toString(), - // }); - // - // const newAdmin = 'neutron1pyqyzrh6p4skmm43zrpt77wgrqq588vc8nhpfz'; - // - // await msgChangeAdmin( - // neutronAccount, - // ownerWallet.address.toString(), - // newTokenDenom, - // newAdmin, - // ); - // - // const authorityMetadataAfter = await getAuthorityMetadata( - // neutronChain.sdk.url, - // newTokenDenom, - // ); - // - // expect(authorityMetadataAfter.authority_metadata).toEqual({ - // Admin: newAdmin, - // }); + expect(authorityMetadataBefore.authority_metadata).toEqual({ + Admin: ownerWallet.address.toString(), + }); + + const newAdmin = 'neutron1pyqyzrh6p4skmm43zrpt77wgrqq588vc8nhpfz'; + + await msgChangeAdmin( + neutronAccount, + ownerWallet.address.toString(), + newTokenDenom, + newAdmin, + ); + + const authorityMetadataAfter = await getAuthorityMetadata( + neutronChain.sdk.url, + newTokenDenom, + ); + + expect(authorityMetadataAfter.authority_metadata).toEqual({ + Admin: newAdmin, + }); }); // Test denom creation, mint some coins and burn some of them @@ -162,7 +167,6 @@ describe('Neutron / Tokenfactory', () => { 'create_denom', 'new_token_denom', ); - console.log(newTokenDenom); await msgMintDenom(neutronAccount, ownerWallet.address.toString(), { denom: newTokenDenom, amount: '10000', @@ -191,6 +195,36 @@ describe('Neutron / Tokenfactory', () => { }); }); + test('create denom, set before', async () => { + const denom = `test5`; + + const data = await msgCreateDenom( + neutronAccount, + ownerWallet.address.toString(), + denom, + ); + const newTokenDenom = getEventAttribute( + (data as any).events, + 'create_denom', + 'new_token_denom', + ); + await msgSetBeforeSendHook( + neutronAccount, + ownerWallet.address.toString(), + newTokenDenom, + ownerWallet.address.toString(), + ); + + const hookAfter = await getBeforeSendHook( + neutronChain.sdk.url, + newTokenDenom, + ); + + expect(hookAfter.before_send_hook.CosmwasmAddress).toEqual( + ownerWallet.address.toString, + ); + }); + describe('wasmbindings', () => { let contractAddress: string; const subdenom = 'mycoin'; @@ -361,3 +395,14 @@ const getAuthorityMetadata = async ( return res.data; }; + +const getBeforeSendHook = async ( + sdkUrl: string, + denom: string, +): Promise => { + const res = await axios.get( + `${sdkUrl}/osmosis/tokenfactory/v1beta1/denoms/${denom}/before_send_hook`, + ); + + return res.data; +}; From a2fab01cbd0b48a7c1f7d5998d6009be0fb8e54c Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 8 Sep 2023 12:42:48 +0400 Subject: [PATCH 04/19] add new tokenfactory & upd params tests --- src/helpers/dao.ts | 25 ++++++++++++++- src/helpers/proposal.ts | 26 ++++++++++++++++ src/testcases/parallel/governance.test.ts | 34 +++++++++++++++++++++ src/testcases/parallel/tokenfactory.test.ts | 26 ++++++++++++++++ 4 files changed, 110 insertions(+), 1 deletion(-) diff --git a/src/helpers/dao.ts b/src/helpers/dao.ts index 962daf42..2348d1d9 100644 --- a/src/helpers/dao.ts +++ b/src/helpers/dao.ts @@ -28,7 +28,7 @@ import { removeSchedule, SendProposalInfo, unpinCodesProposal, - updateAdminProposal, + updateAdminProposal, updateInterchaintxsParamsProposal, upgradeProposal, } from './proposal'; import { ibc } from '../generated/ibc/proto'; @@ -1208,6 +1208,29 @@ export class DaoMember { ); } + /** + * submitUnpinCodesProposal creates proposal which unpins given code ids to wasmvm. + */ + + async submitUpdateParamsInterchaintxsProposal( + title: string, + description: string, + msgSubmitTxMaxMessages: number, + amount: string, + ): Promise { + const message = updateInterchaintxsParamsProposal({ + title, + description, + msg_submit_tx_max_messages: msgSubmitTxMaxMessages, + }); + return await this.submitSingleChoiceProposal( + title, + description, + [message], + amount, + ); + } + /** * submitClientUpdateProposal creates proposal which updates client. */ diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index b7f986cf..7a14df95 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -16,6 +16,12 @@ export type PinCodesInfo = { codes_ids: number[]; }; + +export type UpdateParamsInterchaintxsInfo = { + title: string; + description: string; + msg_submit_tx_max_messages: number; +}; export type UpdateAdmin = { sender: string; contract: string; @@ -192,6 +198,26 @@ export const unpinCodesProposal = (info: PinCodesInfo): any => ({ }, }); +export const updateInterchaintxsParamsProposal = ( + info: UpdateParamsInterchaintxsInfo, +): any => ({ + custom: { + submit_admin_proposal: { + admin_proposal: { + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmos.interchaintxs.MsgUpdateParams', + authority: ADMIN_MODULE_ADDRESS, + pararms: { + msg_submit_tx_max_messages: info.msg_submit_tx_max_messages, + }, + }), + }, + }, + }, + }, +}); + export const updateAdminProposal = (info: UpdateAdmin): any => ({ custom: { submit_admin_proposal: { diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 38dd0816..44161793 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -389,6 +389,15 @@ describe('Neutron / Governance', () => { ); }); + test('create proposal #20, will pass', async () => { + await daoMember1.submitUpdateParamsInterchaintxsProposal( + 'Proposal #20', + 'Update interchaintxs params', + 11, + '1000', + ); + }); + test('create multi-choice proposal #2, will be rejected', async () => { await daoMember1.submitMultiChoiceParameterChangeProposal( [ @@ -1035,6 +1044,31 @@ describe('Neutron / Governance', () => { }); }); + describe('vote for proposal #20 with unbonded funds(no, yes, yes)', () => { + const proposalId = 20; + 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('try to execute proposal #20', () => { + const proposalId = 20; + test('check if proposal is passed', async () => { + await dao.checkPassedProposal(proposalId); + }); + test('execute passed proposal', async () => { + await daoMember1.executeProposalWithAttempts(proposalId); + }); + }); + describe('check that only admin can create valid proposals', () => { test('submit admin proposal from non-admin addr, should fail', async () => { const res = await daoMember1.user.msgSendDirectProposal( diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 9a448dbd..4c01ba71 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -362,6 +362,32 @@ describe('Neutron / Tokenfactory', () => { ); expect(res.admin).toEqual(neutronAccount.wallet.address.toString()); }); + test('set_before_send_hook', async () => { + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + set_before_send_hook: { + denom, + cosm_wasm_addr: contractAddress + }, + }), + ); + + const balance = await neutronChain.queryDenomBalance( + neutronAccount.wallet.address.toString(), + denom, + ); + expect(balance).toEqual(amount); + const res = await neutronChain.queryContract<{ cosm_wasm_addr: string }>( + contractAddress, + { + before_send_hook: { + denom, + }, + }, + ); + expect(res.cosm_wasm_addr).toEqual(contractAddress); + }); }); }); From 3648f51a2108075b882135c39c7da2df92c76504 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 8 Sep 2023 16:33:59 +0400 Subject: [PATCH 05/19] finalaze tokenfactory tests --- src/helpers/proposal.ts | 3 +- src/helpers/tokenfactory.ts | 8 +-- src/testcases/parallel/governance.test.ts | 2 - src/testcases/parallel/tokenfactory.test.ts | 58 ++++++++------------- 4 files changed, 28 insertions(+), 43 deletions(-) diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index 7a14df95..66df51ff 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -16,7 +16,6 @@ export type PinCodesInfo = { codes_ids: number[]; }; - export type UpdateParamsInterchaintxsInfo = { title: string; description: string; @@ -206,7 +205,7 @@ export const updateInterchaintxsParamsProposal = ( admin_proposal: { proposal_execute_message: { message: JSON.stringify({ - '@type': '/cosmos.interchaintxs.MsgUpdateParams', + '@type': '/neutron.interchaintxs.MsgUpdateParams', authority: ADMIN_MODULE_ADDRESS, pararms: { msg_submit_tx_max_messages: info.msg_submit_tx_max_messages, diff --git a/src/helpers/tokenfactory.ts b/src/helpers/tokenfactory.ts index eeb91274..d9cc8667 100644 --- a/src/helpers/tokenfactory.ts +++ b/src/helpers/tokenfactory.ts @@ -22,10 +22,10 @@ cosmosclient.codec.register( '/osmosis.tokenfactory.v1beta1.MsgChangeAdmin', osmosis.tokenfactory.v1beta1.MsgChangeAdmin, ); -// cosmosclient.codec.register( -// '/osmosis.tokenfactory.v1beta1.MsgChangeAdmin', -// osmosis.tokenfactory.v1beta1.MsgChangeAdmin, -// ); +cosmosclient.codec.register( + '/osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook', + osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook, +); export const msgMintDenom = async ( cmNeutron: WalletWrapper, diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 44161793..2ec4d69b 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -1047,11 +1047,9 @@ describe('Neutron / Governance', () => { describe('vote for proposal #20 with unbonded funds(no, yes, yes)', () => { const proposalId = 20; 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 () => { diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 4c01ba71..ed0c1a5c 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -13,7 +13,8 @@ import { msgBurn, msgChangeAdmin, msgCreateDenom, - msgMintDenom, msgSetBeforeSendHook, + msgMintDenom, + msgSetBeforeSendHook, } from '../../helpers/tokenfactory'; interface DenomsFromCreator { @@ -25,7 +26,7 @@ interface AuthorityMetadata { } interface BerforeSendHook { - readonly before_send_hook: { readonly CosmwasmAddress: string }; + readonly cosmwasm_address: string; } describe('Neutron / Tokenfactory', () => { @@ -121,14 +122,10 @@ describe('Neutron / Tokenfactory', () => { 'new_token_denom', ); - console.log(newTokenDenom); - console.log(neutronChain.sdk.url); - const authorityMetadataBefore = await getAuthorityMetadata( neutronChain.sdk.url, newTokenDenom, ); - console.log(authorityMetadataBefore); expect(authorityMetadataBefore.authority_metadata).toEqual({ Admin: ownerWallet.address.toString(), @@ -220,9 +217,7 @@ describe('Neutron / Tokenfactory', () => { newTokenDenom, ); - expect(hookAfter.before_send_hook.CosmwasmAddress).toEqual( - ownerWallet.address.toString, - ); + expect(hookAfter.cosmwasm_address).toEqual(ownerWallet.address.toString()); }); describe('wasmbindings', () => { @@ -325,6 +320,25 @@ describe('Neutron / Tokenfactory', () => { ); expect(res.admin).toEqual(contractAddress); }); + test('set_before_send_hook', async () => { + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + set_before_send_hook: { + denom, + cosm_wasm_addr: contractAddress, + }, + }), + ); + const res = await neutronChain.queryContract<{ + cosm_wasm_addr: string; + }>(contractAddress, { + before_send_hook: { + denom, + }, + }); + expect(res.cosm_wasm_addr).toEqual(contractAddress); + }); test('change admin', async () => { await neutronAccount.executeContract( @@ -362,32 +376,6 @@ describe('Neutron / Tokenfactory', () => { ); expect(res.admin).toEqual(neutronAccount.wallet.address.toString()); }); - test('set_before_send_hook', async () => { - await neutronAccount.executeContract( - contractAddress, - JSON.stringify({ - set_before_send_hook: { - denom, - cosm_wasm_addr: contractAddress - }, - }), - ); - - const balance = await neutronChain.queryDenomBalance( - neutronAccount.wallet.address.toString(), - denom, - ); - expect(balance).toEqual(amount); - const res = await neutronChain.queryContract<{ cosm_wasm_addr: string }>( - contractAddress, - { - before_send_hook: { - denom, - }, - }, - ); - expect(res.cosm_wasm_addr).toEqual(contractAddress); - }); }); }); From 3ff7e5dbe987e95837de746427aae6beb61fa389 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 12:52:20 +0400 Subject: [PATCH 06/19] post-review + some fixes --- src/helpers/cosmos.ts | 23 +++++++++++++++++++-- src/helpers/dao.ts | 4 +--- src/helpers/proposal.ts | 6 ++---- src/helpers/types.ts | 6 ++++++ src/testcases/parallel/tokenfactory.test.ts | 12 +++++------ 5 files changed, 36 insertions(+), 15 deletions(-) diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index 20213722..52353b9a 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -27,7 +27,7 @@ import { CurrentPlanResponse, PinnedCodesResponse, IcaHostParamsResponse, - GlobalfeeParamsResponse, + GlobalfeeParamsResponse, InterchaintxsParamsResponse, } from './types'; import { DEBUG_SUBMIT_TX, getContractBinary } from './env'; const adminmodule = AdminProto.adminmodule.adminmodule; @@ -75,7 +75,6 @@ cosmosclient.codec.register( '/cosmos.params.v1beta1.ParameterChangeProposal', cosmosclient.proto.cosmos.params.v1beta1.ParameterChangeProposal, ); - cosmosclient.codec.register( '/neutron.interchainqueries.MsgRemoveInterchainQueryRequest', neutron.interchainqueries.MsgRemoveInterchainQueryRequest, @@ -104,6 +103,11 @@ cosmosclient.codec.register( '/pob.builder.v1.MsgAuctionBid', pob.builder.v1.MsgAuctionBid, ); +cosmosclient.codec.register( + '/neutron.interchaintxs.v1.MsgUpdateParams', + neutron.interchaintxs.v1.MsgUpdateParams, +); + export class CosmosWrapper { readonly sdk: cosmosclient.CosmosSDK; @@ -396,6 +400,21 @@ export class CosmosWrapper { } } + async queryMaxTxsAllowed(): Promise { + try { + const req = await axios.get( + `${this.sdk.url}/ibc/apps/interchain_accounts/host/v1/params`, + {}, + ); + return req.data.params.msg_submit_tx_max_messages; + } catch (e) { + if (e.response?.data?.message !== undefined) { + throw new Error(e.response?.data?.message); + } + throw e; + } + } + async queryGlobalfeeParams(): Promise { const req = await axios.get( `${this.sdk.url}/gaia/globalfee/v1beta1/params`, diff --git a/src/helpers/dao.ts b/src/helpers/dao.ts index 2348d1d9..5a48fb26 100644 --- a/src/helpers/dao.ts +++ b/src/helpers/dao.ts @@ -1209,7 +1209,7 @@ export class DaoMember { } /** - * submitUnpinCodesProposal creates proposal which unpins given code ids to wasmvm. + * submitUpdateParamsInterchaintxsProposal creates proposal which changes params of interchaintxs module. */ async submitUpdateParamsInterchaintxsProposal( @@ -1219,8 +1219,6 @@ export class DaoMember { amount: string, ): Promise { const message = updateInterchaintxsParamsProposal({ - title, - description, msg_submit_tx_max_messages: msgSubmitTxMaxMessages, }); return await this.submitSingleChoiceProposal( diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index 66df51ff..e5284364 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -17,8 +17,6 @@ export type PinCodesInfo = { }; export type UpdateParamsInterchaintxsInfo = { - title: string; - description: string; msg_submit_tx_max_messages: number; }; export type UpdateAdmin = { @@ -205,9 +203,9 @@ export const updateInterchaintxsParamsProposal = ( admin_proposal: { proposal_execute_message: { message: JSON.stringify({ - '@type': '/neutron.interchaintxs.MsgUpdateParams', + '@type': '/neutron.interchaintxs.v1.MsgUpdateParams', authority: ADMIN_MODULE_ADDRESS, - pararms: { + params: { msg_submit_tx_max_messages: info.msg_submit_tx_max_messages, }, }), diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 9780bf12..3ae5bdae 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -284,6 +284,12 @@ export type IcaHostParamsResponse = { }; }; +export type InterchaintxsParamsResponse = { + params: { + msg_submit_tx_max_messages: number; + }; +}; + export type GlobalfeeParamsResponse = { minimum_gas_prices: cosmos.base.v1beta1.ICoin[]; bypass_min_fee_msg_types: string[]; diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index ed0c1a5c..02186f82 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -25,8 +25,8 @@ interface AuthorityMetadata { readonly authority_metadata: { readonly Admin: string }; } -interface BerforeSendHook { - readonly cosmwasm_address: string; +interface BeforeSendHook { + readonly contract_addr: string; } describe('Neutron / Tokenfactory', () => { @@ -192,7 +192,7 @@ describe('Neutron / Tokenfactory', () => { }); }); - test('create denom, set before', async () => { + test('create denom, set before send hook', async () => { const denom = `test5`; const data = await msgCreateDenom( @@ -217,7 +217,7 @@ describe('Neutron / Tokenfactory', () => { newTokenDenom, ); - expect(hookAfter.cosmwasm_address).toEqual(ownerWallet.address.toString()); + expect(hookAfter.contract_addr).toEqual(ownerWallet.address.toString()); }); describe('wasmbindings', () => { @@ -413,8 +413,8 @@ const getAuthorityMetadata = async ( const getBeforeSendHook = async ( sdkUrl: string, denom: string, -): Promise => { - const res = await axios.get( +): Promise => { + const res = await axios.get( `${sdkUrl}/osmosis/tokenfactory/v1beta1/denoms/${denom}/before_send_hook`, ); From f733a450ce5087d7e1b8e57a6274a8107d94ebb7 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 12:52:54 +0400 Subject: [PATCH 07/19] lint --- src/helpers/cosmos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index 52353b9a..f73a1a69 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -27,7 +27,8 @@ import { CurrentPlanResponse, PinnedCodesResponse, IcaHostParamsResponse, - GlobalfeeParamsResponse, InterchaintxsParamsResponse, + GlobalfeeParamsResponse, + InterchaintxsParamsResponse, } from './types'; import { DEBUG_SUBMIT_TX, getContractBinary } from './env'; const adminmodule = AdminProto.adminmodule.adminmodule; @@ -108,7 +109,6 @@ cosmosclient.codec.register( neutron.interchaintxs.v1.MsgUpdateParams, ); - export class CosmosWrapper { readonly sdk: cosmosclient.CosmosSDK; readonly blockWaiter: BlockWaiter; From 4a791718d19d2b41f5a6ffbc671a3be43e4589d1 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 16:05:32 +0400 Subject: [PATCH 08/19] polish --- src/generated/proto.cjs | 110 ++++++++++++++------ src/generated/proto.d.ts | 28 +++-- src/helpers/cosmos.ts | 2 +- src/testcases/parallel/governance.test.ts | 2 + src/testcases/parallel/tokenfactory.test.ts | 8 +- 5 files changed, 105 insertions(+), 45 deletions(-) diff --git a/src/generated/proto.cjs b/src/generated/proto.cjs index 703e0e9d..2b0ee867 100644 --- a/src/generated/proto.cjs +++ b/src/generated/proto.cjs @@ -64467,7 +64467,8 @@ * Properties of a QueryDenomAuthorityMetadataRequest. * @memberof osmosis.tokenfactory.v1beta1 * @interface IQueryDenomAuthorityMetadataRequest - * @property {string|null} [denom] QueryDenomAuthorityMetadataRequest denom + * @property {string|null} [creator] QueryDenomAuthorityMetadataRequest creator + * @property {string|null} [subdenom] QueryDenomAuthorityMetadataRequest subdenom */ /** @@ -64486,12 +64487,20 @@ } /** - * QueryDenomAuthorityMetadataRequest denom. - * @member {string} denom + * QueryDenomAuthorityMetadataRequest creator. + * @member {string} creator + * @memberof osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest + * @instance + */ + QueryDenomAuthorityMetadataRequest.prototype.creator = ""; + + /** + * QueryDenomAuthorityMetadataRequest subdenom. + * @member {string} subdenom * @memberof osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest * @instance */ - QueryDenomAuthorityMetadataRequest.prototype.denom = ""; + QueryDenomAuthorityMetadataRequest.prototype.subdenom = ""; /** * Encodes the specified QueryDenomAuthorityMetadataRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest.verify|verify} messages. @@ -64505,8 +64514,10 @@ QueryDenomAuthorityMetadataRequest.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.creator != null && Object.hasOwnProperty.call(message, "creator")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.creator); + if (message.subdenom != null && Object.hasOwnProperty.call(message, "subdenom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subdenom); return writer; }; @@ -64542,7 +64553,10 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.creator = reader.string(); + break; + case 2: + message.subdenom = reader.string(); break; default: reader.skipType(tag & 7); @@ -64579,9 +64593,12 @@ QueryDenomAuthorityMetadataRequest.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.creator != null && message.hasOwnProperty("creator")) + if (!$util.isString(message.creator)) + return "creator: string expected"; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + if (!$util.isString(message.subdenom)) + return "subdenom: string expected"; return null; }; @@ -64597,8 +64614,10 @@ if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest) return object; var message = new $root.osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest(); - if (object.denom != null) - message.denom = String(object.denom); + if (object.creator != null) + message.creator = String(object.creator); + if (object.subdenom != null) + message.subdenom = String(object.subdenom); return message; }; @@ -64615,10 +64634,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) - object.denom = ""; - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; + if (options.defaults) { + object.creator = ""; + object.subdenom = ""; + } + if (message.creator != null && message.hasOwnProperty("creator")) + object.creator = message.creator; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + object.subdenom = message.subdenom; return object; }; @@ -65188,7 +65211,8 @@ * Properties of a QueryBeforeSendHookAddressRequest. * @memberof osmosis.tokenfactory.v1beta1 * @interface IQueryBeforeSendHookAddressRequest - * @property {string|null} [denom] QueryBeforeSendHookAddressRequest denom + * @property {string|null} [creator] QueryBeforeSendHookAddressRequest creator + * @property {string|null} [subdenom] QueryBeforeSendHookAddressRequest subdenom */ /** @@ -65207,12 +65231,20 @@ } /** - * QueryBeforeSendHookAddressRequest denom. - * @member {string} denom + * QueryBeforeSendHookAddressRequest creator. + * @member {string} creator + * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest + * @instance + */ + QueryBeforeSendHookAddressRequest.prototype.creator = ""; + + /** + * QueryBeforeSendHookAddressRequest subdenom. + * @member {string} subdenom * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest * @instance */ - QueryBeforeSendHookAddressRequest.prototype.denom = ""; + QueryBeforeSendHookAddressRequest.prototype.subdenom = ""; /** * Encodes the specified QueryBeforeSendHookAddressRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. @@ -65226,8 +65258,10 @@ QueryBeforeSendHookAddressRequest.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.creator != null && Object.hasOwnProperty.call(message, "creator")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.creator); + if (message.subdenom != null && Object.hasOwnProperty.call(message, "subdenom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subdenom); return writer; }; @@ -65263,7 +65297,10 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.creator = reader.string(); + break; + case 2: + message.subdenom = reader.string(); break; default: reader.skipType(tag & 7); @@ -65300,9 +65337,12 @@ QueryBeforeSendHookAddressRequest.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.creator != null && message.hasOwnProperty("creator")) + if (!$util.isString(message.creator)) + return "creator: string expected"; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + if (!$util.isString(message.subdenom)) + return "subdenom: string expected"; return null; }; @@ -65318,8 +65358,10 @@ if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest) return object; var message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest(); - if (object.denom != null) - message.denom = String(object.denom); + if (object.creator != null) + message.creator = String(object.creator); + if (object.subdenom != null) + message.subdenom = String(object.subdenom); return message; }; @@ -65336,10 +65378,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) - object.denom = ""; - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; + if (options.defaults) { + object.creator = ""; + object.subdenom = ""; + } + if (message.creator != null && message.hasOwnProperty("creator")) + object.creator = message.creator; + if (message.subdenom != null && message.hasOwnProperty("subdenom")) + object.subdenom = message.subdenom; return object; }; diff --git a/src/generated/proto.d.ts b/src/generated/proto.d.ts index 510cebcc..6e3d571e 100644 --- a/src/generated/proto.d.ts +++ b/src/generated/proto.d.ts @@ -25955,8 +25955,11 @@ export namespace osmosis { /** Properties of a QueryDenomAuthorityMetadataRequest. */ interface IQueryDenomAuthorityMetadataRequest { - /** QueryDenomAuthorityMetadataRequest denom */ - denom?: (string|null); + /** QueryDenomAuthorityMetadataRequest creator */ + creator?: (string|null); + + /** QueryDenomAuthorityMetadataRequest subdenom */ + subdenom?: (string|null); } /** Represents a QueryDenomAuthorityMetadataRequest. */ @@ -25968,8 +25971,11 @@ export namespace osmosis { */ constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryDenomAuthorityMetadataRequest); - /** QueryDenomAuthorityMetadataRequest denom. */ - public denom: string; + /** QueryDenomAuthorityMetadataRequest creator. */ + public creator: string; + + /** QueryDenomAuthorityMetadataRequest subdenom. */ + public subdenom: string; /** * Encodes the specified QueryDenomAuthorityMetadataRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest.verify|verify} messages. @@ -26287,8 +26293,11 @@ export namespace osmosis { /** Properties of a QueryBeforeSendHookAddressRequest. */ interface IQueryBeforeSendHookAddressRequest { - /** QueryBeforeSendHookAddressRequest denom */ - denom?: (string|null); + /** QueryBeforeSendHookAddressRequest creator */ + creator?: (string|null); + + /** QueryBeforeSendHookAddressRequest subdenom */ + subdenom?: (string|null); } /** Represents a QueryBeforeSendHookAddressRequest. */ @@ -26300,8 +26309,11 @@ export namespace osmosis { */ constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressRequest); - /** QueryBeforeSendHookAddressRequest denom. */ - public denom: string; + /** QueryBeforeSendHookAddressRequest creator. */ + public creator: string; + + /** QueryBeforeSendHookAddressRequest subdenom. */ + public subdenom: string; /** * Encodes the specified QueryBeforeSendHookAddressRequest message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest.verify|verify} messages. diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index f73a1a69..eb52805e 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -403,7 +403,7 @@ export class CosmosWrapper { async queryMaxTxsAllowed(): Promise { try { const req = await axios.get( - `${this.sdk.url}/ibc/apps/interchain_accounts/host/v1/params`, + `${this.sdk.url}/interchaintxs/v1/params`, {}, ); return req.data.params.msg_submit_tx_max_messages; diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 2ec4d69b..6d50963a 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -1064,6 +1064,8 @@ describe('Neutron / Governance', () => { }); test('execute passed proposal', async () => { await daoMember1.executeProposalWithAttempts(proposalId); + const paramAfter = await neutronChain.queryMaxTxsAllowed(); + expect(paramAfter).toEqual(11); }); }); diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 02186f82..8208892c 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -26,7 +26,7 @@ interface AuthorityMetadata { } interface BeforeSendHook { - readonly contract_addr: string; + readonly cosmwasm_address: string; } describe('Neutron / Tokenfactory', () => { @@ -217,7 +217,7 @@ describe('Neutron / Tokenfactory', () => { newTokenDenom, ); - expect(hookAfter.contract_addr).toEqual(ownerWallet.address.toString()); + expect(hookAfter.cosmwasm_address).toEqual(ownerWallet.address.toString()); }); describe('wasmbindings', () => { @@ -331,13 +331,13 @@ describe('Neutron / Tokenfactory', () => { }), ); const res = await neutronChain.queryContract<{ - cosm_wasm_addr: string; + contract_addr: string; }>(contractAddress, { before_send_hook: { denom, }, }); - expect(res.cosm_wasm_addr).toEqual(contractAddress); + expect(res.contract_addr).toEqual(contractAddress); }); test('change admin', async () => { From 6decd6d719ad44ac8b98597485062d88e4caa6c4 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 18:04:23 +0400 Subject: [PATCH 09/19] fix query --- src/generated/proto.cjs | 25 ++++++++++++++++++++++++- src/generated/proto.d.ts | 6 ++++++ src/helpers/cosmos.ts | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/generated/proto.cjs b/src/generated/proto.cjs index 2b0ee867..dc2806a9 100644 --- a/src/generated/proto.cjs +++ b/src/generated/proto.cjs @@ -63755,6 +63755,7 @@ * @interface IParams * @property {Array.|null} [denom_creation_fee] Params denom_creation_fee * @property {Long|null} [denom_creation_gas_consume] Params denom_creation_gas_consume + * @property {string|null} [fee_collector_address] Params fee_collector_address */ /** @@ -63789,6 +63790,14 @@ */ Params.prototype.denom_creation_gas_consume = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Params fee_collector_address. + * @member {string} fee_collector_address + * @memberof osmosis.tokenfactory.v1beta1.Params + * @instance + */ + Params.prototype.fee_collector_address = ""; + /** * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. * @function encode @@ -63806,6 +63815,8 @@ $root.cosmos.base.v1beta1.Coin.encode(message.denom_creation_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.denom_creation_gas_consume != null && Object.hasOwnProperty.call(message, "denom_creation_gas_consume")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denom_creation_gas_consume); + if (message.fee_collector_address != null && Object.hasOwnProperty.call(message, "fee_collector_address")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.fee_collector_address); return writer; }; @@ -63848,6 +63859,9 @@ case 2: message.denom_creation_gas_consume = reader.uint64(); break; + case 3: + message.fee_collector_address = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -63895,6 +63909,9 @@ if (message.denom_creation_gas_consume != null && message.hasOwnProperty("denom_creation_gas_consume")) if (!$util.isInteger(message.denom_creation_gas_consume) && !(message.denom_creation_gas_consume && $util.isInteger(message.denom_creation_gas_consume.low) && $util.isInteger(message.denom_creation_gas_consume.high))) return "denom_creation_gas_consume: integer|Long expected"; + if (message.fee_collector_address != null && message.hasOwnProperty("fee_collector_address")) + if (!$util.isString(message.fee_collector_address)) + return "fee_collector_address: string expected"; return null; }; @@ -63929,6 +63946,8 @@ message.denom_creation_gas_consume = object.denom_creation_gas_consume; else if (typeof object.denom_creation_gas_consume === "object") message.denom_creation_gas_consume = new $util.LongBits(object.denom_creation_gas_consume.low >>> 0, object.denom_creation_gas_consume.high >>> 0).toNumber(true); + if (object.fee_collector_address != null) + message.fee_collector_address = String(object.fee_collector_address); return message; }; @@ -63947,12 +63966,14 @@ var object = {}; if (options.arrays || options.defaults) object.denom_creation_fee = []; - if (options.defaults) + if (options.defaults) { if ($util.Long) { var long = new $util.Long(0, 0, true); object.denom_creation_gas_consume = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.denom_creation_gas_consume = options.longs === String ? "0" : 0; + object.fee_collector_address = ""; + } if (message.denom_creation_fee && message.denom_creation_fee.length) { object.denom_creation_fee = []; for (var j = 0; j < message.denom_creation_fee.length; ++j) @@ -63963,6 +63984,8 @@ object.denom_creation_gas_consume = options.longs === String ? String(message.denom_creation_gas_consume) : message.denom_creation_gas_consume; else object.denom_creation_gas_consume = options.longs === String ? $util.Long.prototype.toString.call(message.denom_creation_gas_consume) : options.longs === Number ? new $util.LongBits(message.denom_creation_gas_consume.low >>> 0, message.denom_creation_gas_consume.high >>> 0).toNumber(true) : message.denom_creation_gas_consume; + if (message.fee_collector_address != null && message.hasOwnProperty("fee_collector_address")) + object.fee_collector_address = message.fee_collector_address; return object; }; diff --git a/src/generated/proto.d.ts b/src/generated/proto.d.ts index 6e3d571e..5db47bbe 100644 --- a/src/generated/proto.d.ts +++ b/src/generated/proto.d.ts @@ -25612,6 +25612,9 @@ export namespace osmosis { /** Params denom_creation_gas_consume */ denom_creation_gas_consume?: (Long|null); + + /** Params fee_collector_address */ + fee_collector_address?: (string|null); } /** Represents a Params. */ @@ -25629,6 +25632,9 @@ export namespace osmosis { /** Params denom_creation_gas_consume. */ public denom_creation_gas_consume: Long; + /** Params fee_collector_address. */ + public fee_collector_address: string; + /** * Encodes the specified Params message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.Params.verify|verify} messages. * @param message Params message or plain object to encode diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index eb52805e..ce72045b 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -403,7 +403,7 @@ export class CosmosWrapper { async queryMaxTxsAllowed(): Promise { try { const req = await axios.get( - `${this.sdk.url}/interchaintxs/v1/params`, + `${this.sdk.url}/neutron/interchaintxs/v1/params`, {}, ); return req.data.params.msg_submit_tx_max_messages; From 15813859fe6d9db602897aa4d82632c4e1918ac4 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 19:14:40 +0400 Subject: [PATCH 10/19] fix stargate tests --- src/testcases/parallel/stargate_queries.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/testcases/parallel/stargate_queries.test.ts b/src/testcases/parallel/stargate_queries.test.ts index f8c72b53..03d72ffd 100644 --- a/src/testcases/parallel/stargate_queries.test.ts +++ b/src/testcases/parallel/stargate_queries.test.ts @@ -206,8 +206,7 @@ describe('Neutron / Simple', () => { test('tokenfactory params should work', async () => { const res = JSON.parse(await querySmart({ tokenfactory_params: {} })); - expect(res.params.denom_creation_fee[0].denom).toBe('untrn'); - expect(res.params.denom_creation_fee[0].amount).toBe('1000000'); + expect(res.params.denom_creation_gas_consume).toBe('0'); }); test('tokenfactory denom authority metadata should work', async () => { From 50f32aef206266a6f1c19004e0d10e6457f558b8 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 19:54:30 +0400 Subject: [PATCH 11/19] fix query --- src/helpers/cosmos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index ce72045b..1e5970db 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -403,7 +403,7 @@ export class CosmosWrapper { async queryMaxTxsAllowed(): Promise { try { const req = await axios.get( - `${this.sdk.url}/neutron/interchaintxs/v1/params`, + `${this.sdk.url}/neutron/interchaintxs/params`, {}, ); return req.data.params.msg_submit_tx_max_messages; From f1933a151c0b947687d6c5bb5a9600038a88cbe3 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Wed, 13 Sep 2023 20:42:23 +0400 Subject: [PATCH 12/19] explicit type --- src/helpers/types.ts | 2 +- src/testcases/parallel/governance.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 3ae5bdae..49d9c24b 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -286,7 +286,7 @@ export type IcaHostParamsResponse = { export type InterchaintxsParamsResponse = { params: { - msg_submit_tx_max_messages: number; + msg_submit_tx_max_messages: string; }; }; diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 6d50963a..39b1e36c 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -1065,7 +1065,7 @@ describe('Neutron / Governance', () => { test('execute passed proposal', async () => { await daoMember1.executeProposalWithAttempts(proposalId); const paramAfter = await neutronChain.queryMaxTxsAllowed(); - expect(paramAfter).toEqual(11); + expect(paramAfter).toEqual("11"); }); }); From be6e78e6b8ab2f21c487b0cf241e344b05b6d0b0 Mon Sep 17 00:00:00 2001 From: swelf Date: Fri, 15 Sep 2023 11:45:47 +0300 Subject: [PATCH 13/19] topup balance at the beginning of the test --- src/helpers/types.ts | 21 +------ src/testcases/parallel/simple.test.ts | 37 ++++++++++-- .../run_in_band/interchaintx.test.ts | 57 +++++++------------ 3 files changed, 53 insertions(+), 62 deletions(-) diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 9780bf12..2d437d2b 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -80,26 +80,7 @@ export type AckFailuresResponse = { type Failure = { address: string; id: string; - ack: { - response: { - result: string | null; // base64 encoded bytes - error: string | null; // error text - }; - }; - ack_type: string; - packet: { - data: string; - destination_channel: string; - destination_port: string; - sequence: string; - source_channel: string; - source_port: string; - timeout_height: { - revision_height: string; - revision_number: string; - }; - timeout_timestamp: string; - }; + sudo_payload: string; // base64 encoded json bytes }; export type ScheduleResponse = { diff --git a/src/testcases/parallel/simple.test.ts b/src/testcases/parallel/simple.test.ts index d5dcb9b5..2e140e13 100644 --- a/src/testcases/parallel/simple.test.ts +++ b/src/testcases/parallel/simple.test.ts @@ -526,25 +526,54 @@ describe('Neutron / Simple', () => { expect.objectContaining({ address: contractAddress, id: '0', - ack_type: 'ack', }), expect.objectContaining({ address: contractAddress, id: '1', - ack_type: 'ack', }), expect.objectContaining({ address: contractAddress, id: '2', - ack_type: 'timeout', }), expect.objectContaining({ address: contractAddress, id: '3', - ack_type: 'timeout', }), ]); + expect( + JSON.parse( + Buffer.from( + failuresAfterCall.failures[0].sudo_payload, + 'base64', + ).toString(), + ), + ).toHaveProperty('response'); + expect( + JSON.parse( + Buffer.from( + failuresAfterCall.failures[1].sudo_payload, + 'base64', + ).toString(), + ), + ).toHaveProperty('response'); + expect( + JSON.parse( + Buffer.from( + failuresAfterCall.failures[2].sudo_payload, + 'base64', + ).toString(), + ), + ).toHaveProperty('timeout'); + expect( + JSON.parse( + Buffer.from( + failuresAfterCall.failures[3].sudo_payload, + 'base64', + ).toString(), + ), + ).toHaveProperty('timeout'); + // Restore sudo handler to state await neutronAccount.executeContract( contractAddress, diff --git a/src/testcases/run_in_band/interchaintx.test.ts b/src/testcases/run_in_band/interchaintx.test.ts index dbac5ec6..39a4c2c8 100644 --- a/src/testcases/run_in_band/interchaintx.test.ts +++ b/src/testcases/run_in_band/interchaintx.test.ts @@ -74,6 +74,10 @@ describe('Neutron / Interchain TXs', () => { }); }); describe('Create ICAs and setup contract', () => { + test('fund contract to pay fees', async () => { + const res = await neutronAccount.msgSend(contractAddress, '100000'); + expect(res.code).toEqual(0); + }); test('create ICA1', async () => { const res = await neutronAccount.executeContract( contractAddress, @@ -98,6 +102,13 @@ describe('Neutron / Interchain TXs', () => { ); expect(res.code).toEqual(0); }); + test('check contract balance', async () => { + const res = await neutronChain.queryBalances(contractAddress); + const balance = res.balances.find( + (b) => b.denom === neutronChain.denom, + )?.amount; + expect(balance).toEqual('98000'); + }); test('multiple IBC accounts created', async () => { const channels = await getWithAttempts( neutronChain.blockWaiter, @@ -157,10 +168,7 @@ describe('Neutron / Interchain TXs', () => { ); expect(res.code).toEqual(0); }); - test('fund contract to pay fees', async () => { - const res = await neutronAccount.msgSend(contractAddress, '100000'); - expect(res.code).toEqual(0); - }); + test('add some money to ICAs', async () => { const res1 = await gaiaAccount.msgSend(icaAddress1.toString(), '10000'); expect(res1.code).toEqual(0); @@ -230,7 +238,7 @@ describe('Neutron / Interchain TXs', () => { const balance = res.balances.find( (b) => b.denom === neutronChain.denom, )?.amount; - expect(balance).toEqual('98000'); + expect(balance).toEqual('96000'); }); }); @@ -304,7 +312,7 @@ describe('Neutron / Interchain TXs', () => { (b) => b.denom === neutronChain.denom, )?.amount; // two interchain txs inside (2000 * 2 = 4000) - expect(balance).toEqual('94000'); + expect(balance).toEqual('92000'); }); }); @@ -881,67 +889,37 @@ describe('Neutron / Interchain TXs', () => { test('check stored failures and acks', async () => { const failures = await neutronChain.queryAckFailures(contractAddress); - // 3 ack failures, 1 timeout failure, just as described in the tests above + // 4 ack failures, 2 timeout failure, just as described in the tests above expect(failures.failures).toEqual([ expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '0', - packet: expect.objectContaining({ - source_channel: 'channel-3', - sequence: '2', - }), - ack_type: 'ack', }), expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '1', - packet: expect.objectContaining({ - source_channel: 'channel-3', - sequence: '3', - }), - ack_type: 'ack', }), expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '2', - packet: expect.objectContaining({ - source_channel: 'channel-3', - sequence: '4', - }), - ack_type: 'ack', }), expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '3', - packet: expect.objectContaining({ - source_channel: 'channel-3', - sequence: '5', - }), - ack_type: 'ack', }), expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '4', - packet: expect.objectContaining({ - source_channel: 'channel-3', - sequence: '6', - }), - ack_type: 'timeout', }), expect.objectContaining({ address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '5', - packet: expect.objectContaining({ - source_channel: 'channel-2', - sequence: '3', - }), - ack_type: 'timeout', }), ]); @@ -1028,7 +1006,10 @@ describe('Neutron / Interchain TXs', () => { // make sure contract's state has been changed const acks = await getAcks(neutronChain, contractAddress); expect(acks.length).toEqual(1); - expect(acks[0].sequence_id).toEqual(+failure.packet.sequence); + expect(acks[0].sequence_id).toEqual( + +JSON.parse(Buffer.from(failure.sudo_payload, 'base64').toString()) + .response.request.sequence, + ); }); }); }); From 72a2b93120337e7277321d8e3782ecf325ac43f9 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 15 Sep 2023 18:32:06 +0400 Subject: [PATCH 14/19] lint, fix some stuff, introduce new test etc. --- src/helpers/cosmos.ts | 6 +- src/helpers/proposal.ts | 2 +- src/helpers/types.ts | 2 + src/testcases/parallel/governance.test.ts | 2 +- src/testcases/parallel/tokenfactory.test.ts | 138 ++++++++++++++++---- 5 files changed, 121 insertions(+), 29 deletions(-) diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index 1e5970db..5273893c 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -400,7 +400,7 @@ export class CosmosWrapper { } } - async queryMaxTxsAllowed(): Promise { + async queryMaxTxsAllowed(): Promise { try { const req = await axios.get( `${this.sdk.url}/neutron/interchaintxs/params`, @@ -695,8 +695,8 @@ export class WalletWrapper { } | string, fee = { - gas_limit: Long.fromString('200000'), - amount: [{ denom: this.chain.denom, amount: '1000' }], + gas_limit: Long.fromString('300000'), + amount: [{ denom: this.chain.denom, amount: '1500' }], }, sequence: number = this.wallet.account.sequence, mode: cosmosclient.rest.tx.BroadcastTxMode = cosmosclient.rest.tx diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index e5284364..e1e4a9c1 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -17,7 +17,7 @@ export type PinCodesInfo = { }; export type UpdateParamsInterchaintxsInfo = { - msg_submit_tx_max_messages: number; + msg_submit_tx_max_messages: string; }; export type UpdateAdmin = { sender: string; diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 49d9c24b..6684c575 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -172,6 +172,8 @@ export const NeutronContract = { VESTING_INVESTORS: 'vesting_investors.wasm', INVESTORS_VESTING_VAULT: 'investors_vesting_vault.wasm', TOKENFACTORY: 'tokenfactory.wasm', + BEFORE_SEND_HOOK_TEST: 'before_send_hook_test.wasm', + NO100: 'no100.wasm', }; export type MultiChoiceOption = { diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 39b1e36c..ec0baa43 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -1065,7 +1065,7 @@ describe('Neutron / Governance', () => { test('execute passed proposal', async () => { await daoMember1.executeProposalWithAttempts(proposalId); const paramAfter = await neutronChain.queryMaxTxsAllowed(); - expect(paramAfter).toEqual("11"); + expect(paramAfter).toEqual('11'); }); }); diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 8208892c..f9eab296 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -190,34 +190,114 @@ describe('Neutron / Tokenfactory', () => { expect(balanceAfter).toEqual(9900); }); - }); + test('create denom, set before send hook', async () => { + const codeId = await neutronAccount.storeWasm( + NeutronContract.BEFORE_SEND_HOOK_TEST, + ); + expect(codeId).toBeGreaterThan(0); - test('create denom, set before send hook', async () => { - const denom = `test5`; + const res = await neutronAccount.instantiateContract( + codeId, + '{}', + 'before_send_hook_test', + ); + const contractAddress = res[0]._contract_address; - const data = await msgCreateDenom( - neutronAccount, - ownerWallet.address.toString(), - denom, - ); - const newTokenDenom = getEventAttribute( - (data as any).events, - 'create_denom', - 'new_token_denom', - ); - await msgSetBeforeSendHook( - neutronAccount, - ownerWallet.address.toString(), - newTokenDenom, - ownerWallet.address.toString(), - ); + const denom = `test5`; - const hookAfter = await getBeforeSendHook( - neutronChain.sdk.url, - newTokenDenom, - ); + const data = await msgCreateDenom( + neutronAccount, + ownerWallet.address.toString(), + denom, + ); + const newTokenDenom = getEventAttribute( + (data as any).events, + 'create_denom', + 'new_token_denom', + ); - expect(hookAfter.cosmwasm_address).toEqual(ownerWallet.address.toString()); + await msgMintDenom(neutronAccount, ownerWallet.address.toString(), { + denom: newTokenDenom, + amount: '10000', + }); + + const balanceBefore = await neutronChain.queryDenomBalance( + ownerWallet.address.toString(), + newTokenDenom, + ); + + expect(balanceBefore).toEqual(10000); + + await neutronAccount.msgSend(contractAddress, { + amount: '666', + denom: newTokenDenom, + }); + + const contractBalance = await neutronChain.queryDenomBalance( + contractAddress, + newTokenDenom, + ); + expect(contractBalance).toEqual(666); + + let queryBlock = await neutronChain.queryContract<{ + block: { received: boolean }; + }>(contractAddress, { + sudo_result_block_before: {}, + }); + console.log(queryBlock); + + let queryTrack = await neutronChain.queryContract<{ + track: { received: boolean }; + }>(contractAddress, { + sudo_result_track_before: {}, + }); + console.log(queryTrack); + + await msgSetBeforeSendHook( + neutronAccount, + ownerWallet.address.toString(), + newTokenDenom, + contractAddress, + ); + + const hookAfter = await getBeforeSendHook( + neutronChain.sdk.url, + newTokenDenom, + ); + expect(hookAfter.cosmwasm_address).toEqual(contractAddress); + + await neutronAccount.msgSend(contractAddress, { + amount: '1', + denom: newTokenDenom, + }); + + const contractBalanceAfter = await neutronChain.queryDenomBalance( + contractAddress, + newTokenDenom, + ); + expect(contractBalanceAfter).toEqual(667); + + const balanceAfter = await neutronChain.queryDenomBalance( + ownerWallet.address.toString(), + newTokenDenom, + ); + expect(balanceAfter).toEqual(9333); + + queryBlock = await neutronChain.queryContract<{ + block: { received: boolean }; + }>(contractAddress, { + sudo_result_block_before: {}, + }); + + queryTrack = await neutronChain.queryContract<{ + track: { received: boolean }; + }>(contractAddress, { + sudo_result_track_before: {}, + }); + + expect(queryTrack.track.received).toEqual(true); + expect(queryBlock.block.received).toEqual(true); + }); }); describe('wasmbindings', () => { @@ -338,6 +418,16 @@ describe('Neutron / Tokenfactory', () => { }, }); expect(res.contract_addr).toEqual(contractAddress); + + await neutronAccount.executeContract( + contractAddress, + JSON.stringify({ + set_before_send_hook: { + denom, + cosm_wasm_addr: '', + }, + }), + ); }); test('change admin', async () => { From a13c37a361c5f311fd2e74fe9790ed4197c46ace Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 15 Sep 2023 18:49:28 +0400 Subject: [PATCH 15/19] lintt --- src/helpers/dao.ts | 3 ++- src/helpers/proposal.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/dao.ts b/src/helpers/dao.ts index 5a48fb26..34112c43 100644 --- a/src/helpers/dao.ts +++ b/src/helpers/dao.ts @@ -28,7 +28,8 @@ import { removeSchedule, SendProposalInfo, unpinCodesProposal, - updateAdminProposal, updateInterchaintxsParamsProposal, + updateAdminProposal, + updateInterchaintxsParamsProposal, upgradeProposal, } from './proposal'; import { ibc } from '../generated/ibc/proto'; diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index e1e4a9c1..e5284364 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -17,7 +17,7 @@ export type PinCodesInfo = { }; export type UpdateParamsInterchaintxsInfo = { - msg_submit_tx_max_messages: string; + msg_submit_tx_max_messages: number; }; export type UpdateAdmin = { sender: string; From 9f1447478d7e447403c93dd78c5ed6226bbd2201 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Fri, 15 Sep 2023 18:57:55 +0400 Subject: [PATCH 16/19] rm legacy --- src/helpers/types.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 6684c575..f14ae352 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -173,7 +173,6 @@ export const NeutronContract = { INVESTORS_VESTING_VAULT: 'investors_vesting_vault.wasm', TOKENFACTORY: 'tokenfactory.wasm', BEFORE_SEND_HOOK_TEST: 'before_send_hook_test.wasm', - NO100: 'no100.wasm', }; export type MultiChoiceOption = { From 8f5ab5da7d1f5593a76fdd86d46ab3ff8cb7f8f3 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Sun, 17 Sep 2023 15:55:54 +0400 Subject: [PATCH 17/19] fix reserve tests --- src/testcases/run_in_band/reserve.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/testcases/run_in_band/reserve.test.ts b/src/testcases/run_in_band/reserve.test.ts index 0ff579ed..308ba8ca 100644 --- a/src/testcases/run_in_band/reserve.test.ts +++ b/src/testcases/run_in_band/reserve.test.ts @@ -280,8 +280,8 @@ describe('Neutron / Treasury', () => { }); expect(stats).toEqual( expect.objectContaining({ - total_distributed: '42013', - total_reserved: `${158050 + parseInt(reserveStats.total_reserved)}`, + total_distributed: '42014', + total_reserved: `${158053 + parseInt(reserveStats.total_reserved)}`, total_processed_burned_coins: `${ parseInt(burnedCoinsAfter!) - parseInt(burnedCoinsBefore!) + @@ -298,7 +298,7 @@ describe('Neutron / Treasury', () => { NEUTRON_DENOM, ); expect(treasuryBalance - lastTreasuryBalance).toEqual( - 158050 + parseInt(reserveStats.total_reserved), + 158053 + parseInt(reserveStats.total_reserved), ); lastTreasuryBalance = treasuryBalance; }); @@ -308,7 +308,7 @@ describe('Neutron / Treasury', () => { }); expect(pending).toEqual([ [holder1Addr.toString(), '14005'], - [holder2Addr.toString(), '28008'], + [holder2Addr.toString(), '28009'], ]); }); test('claim pending', async () => { From 6397a30802983527640a1cc8eb407cbfcfb87cd1 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 18 Sep 2023 14:14:35 +0400 Subject: [PATCH 18/19] commit forgotten --- src/testcases/parallel/tokenfactory.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index f9eab296..7055af45 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -244,14 +244,14 @@ describe('Neutron / Tokenfactory', () => { }>(contractAddress, { sudo_result_block_before: {}, }); - console.log(queryBlock); - let queryTrack = await neutronChain.queryContract<{ track: { received: boolean }; }>(contractAddress, { sudo_result_track_before: {}, }); - console.log(queryTrack); + + expect(queryTrack.track.received).toEqual(false); + expect(queryBlock.block.received).toEqual(false); await msgSetBeforeSendHook( neutronAccount, From 55d39bca156dddfcb5a7937e9672a361ebe47d19 Mon Sep 17 00:00:00 2001 From: nhpd Date: Tue, 19 Sep 2023 19:54:50 +0400 Subject: [PATCH 19/19] fix tests after review changes --- src/generated/proto.cjs | 60 ++++++++++----------- src/generated/proto.d.ts | 16 +++--- src/helpers/tokenfactory.ts | 4 +- src/testcases/parallel/tokenfactory.test.ts | 11 ++-- 4 files changed, 47 insertions(+), 44 deletions(-) diff --git a/src/generated/proto.cjs b/src/generated/proto.cjs index dc2806a9..435bea05 100644 --- a/src/generated/proto.cjs +++ b/src/generated/proto.cjs @@ -62290,7 +62290,7 @@ * @interface IMsgSetBeforeSendHook * @property {string|null} [sender] MsgSetBeforeSendHook sender * @property {string|null} [denom] MsgSetBeforeSendHook denom - * @property {string|null} [cosmwasm_address] MsgSetBeforeSendHook cosmwasm_address + * @property {string|null} [contract_addr] MsgSetBeforeSendHook contract_addr */ /** @@ -62325,12 +62325,12 @@ MsgSetBeforeSendHook.prototype.denom = ""; /** - * MsgSetBeforeSendHook cosmwasm_address. - * @member {string} cosmwasm_address + * MsgSetBeforeSendHook contract_addr. + * @member {string} contract_addr * @memberof osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook * @instance */ - MsgSetBeforeSendHook.prototype.cosmwasm_address = ""; + MsgSetBeforeSendHook.prototype.contract_addr = ""; /** * Encodes the specified MsgSetBeforeSendHook message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. @@ -62348,8 +62348,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender); if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.denom); - if (message.cosmwasm_address != null && Object.hasOwnProperty.call(message, "cosmwasm_address")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cosmwasm_address); + if (message.contract_addr != null && Object.hasOwnProperty.call(message, "contract_addr")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contract_addr); return writer; }; @@ -62391,7 +62391,7 @@ message.denom = reader.string(); break; case 3: - message.cosmwasm_address = reader.string(); + message.contract_addr = reader.string(); break; default: reader.skipType(tag & 7); @@ -62434,9 +62434,9 @@ if (message.denom != null && message.hasOwnProperty("denom")) if (!$util.isString(message.denom)) return "denom: string expected"; - if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) - if (!$util.isString(message.cosmwasm_address)) - return "cosmwasm_address: string expected"; + if (message.contract_addr != null && message.hasOwnProperty("contract_addr")) + if (!$util.isString(message.contract_addr)) + return "contract_addr: string expected"; return null; }; @@ -62456,8 +62456,8 @@ message.sender = String(object.sender); if (object.denom != null) message.denom = String(object.denom); - if (object.cosmwasm_address != null) - message.cosmwasm_address = String(object.cosmwasm_address); + if (object.contract_addr != null) + message.contract_addr = String(object.contract_addr); return message; }; @@ -62477,14 +62477,14 @@ if (options.defaults) { object.sender = ""; object.denom = ""; - object.cosmwasm_address = ""; + object.contract_addr = ""; } if (message.sender != null && message.hasOwnProperty("sender")) object.sender = message.sender; if (message.denom != null && message.hasOwnProperty("denom")) object.denom = message.denom; - if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) - object.cosmwasm_address = message.cosmwasm_address; + if (message.contract_addr != null && message.hasOwnProperty("contract_addr")) + object.contract_addr = message.contract_addr; return object; }; @@ -65432,7 +65432,7 @@ * Properties of a QueryBeforeSendHookAddressResponse. * @memberof osmosis.tokenfactory.v1beta1 * @interface IQueryBeforeSendHookAddressResponse - * @property {string|null} [cosmwasm_address] QueryBeforeSendHookAddressResponse cosmwasm_address + * @property {string|null} [contract_addr] QueryBeforeSendHookAddressResponse contract_addr */ /** @@ -65451,12 +65451,12 @@ } /** - * QueryBeforeSendHookAddressResponse cosmwasm_address. - * @member {string} cosmwasm_address + * QueryBeforeSendHookAddressResponse contract_addr. + * @member {string} contract_addr * @memberof osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse * @instance */ - QueryBeforeSendHookAddressResponse.prototype.cosmwasm_address = ""; + QueryBeforeSendHookAddressResponse.prototype.contract_addr = ""; /** * Encodes the specified QueryBeforeSendHookAddressResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. @@ -65470,8 +65470,8 @@ QueryBeforeSendHookAddressResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cosmwasm_address != null && Object.hasOwnProperty.call(message, "cosmwasm_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cosmwasm_address); + if (message.contract_addr != null && Object.hasOwnProperty.call(message, "contract_addr")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contract_addr); return writer; }; @@ -65507,7 +65507,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cosmwasm_address = reader.string(); + message.contract_addr = reader.string(); break; default: reader.skipType(tag & 7); @@ -65544,9 +65544,9 @@ QueryBeforeSendHookAddressResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) - if (!$util.isString(message.cosmwasm_address)) - return "cosmwasm_address: string expected"; + if (message.contract_addr != null && message.hasOwnProperty("contract_addr")) + if (!$util.isString(message.contract_addr)) + return "contract_addr: string expected"; return null; }; @@ -65562,8 +65562,8 @@ if (object instanceof $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse) return object; var message = new $root.osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse(); - if (object.cosmwasm_address != null) - message.cosmwasm_address = String(object.cosmwasm_address); + if (object.contract_addr != null) + message.contract_addr = String(object.contract_addr); return message; }; @@ -65581,9 +65581,9 @@ options = {}; var object = {}; if (options.defaults) - object.cosmwasm_address = ""; - if (message.cosmwasm_address != null && message.hasOwnProperty("cosmwasm_address")) - object.cosmwasm_address = message.cosmwasm_address; + object.contract_addr = ""; + if (message.contract_addr != null && message.hasOwnProperty("contract_addr")) + object.contract_addr = message.contract_addr; return object; }; diff --git a/src/generated/proto.d.ts b/src/generated/proto.d.ts index 5db47bbe..677b9b4b 100644 --- a/src/generated/proto.d.ts +++ b/src/generated/proto.d.ts @@ -24931,8 +24931,8 @@ export namespace osmosis { /** MsgSetBeforeSendHook denom */ denom?: (string|null); - /** MsgSetBeforeSendHook cosmwasm_address */ - cosmwasm_address?: (string|null); + /** MsgSetBeforeSendHook contract_addr */ + contract_addr?: (string|null); } /** Represents a MsgSetBeforeSendHook. */ @@ -24950,8 +24950,8 @@ export namespace osmosis { /** MsgSetBeforeSendHook denom. */ public denom: string; - /** MsgSetBeforeSendHook cosmwasm_address. */ - public cosmwasm_address: string; + /** MsgSetBeforeSendHook contract_addr. */ + public contract_addr: string; /** * Encodes the specified MsgSetBeforeSendHook message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook.verify|verify} messages. @@ -26388,8 +26388,8 @@ export namespace osmosis { /** Properties of a QueryBeforeSendHookAddressResponse. */ interface IQueryBeforeSendHookAddressResponse { - /** QueryBeforeSendHookAddressResponse cosmwasm_address */ - cosmwasm_address?: (string|null); + /** QueryBeforeSendHookAddressResponse contract_addr */ + contract_addr?: (string|null); } /** Represents a QueryBeforeSendHookAddressResponse. */ @@ -26401,8 +26401,8 @@ export namespace osmosis { */ constructor(properties?: osmosis.tokenfactory.v1beta1.IQueryBeforeSendHookAddressResponse); - /** QueryBeforeSendHookAddressResponse cosmwasm_address. */ - public cosmwasm_address: string; + /** QueryBeforeSendHookAddressResponse contract_addr. */ + public contract_addr: string; /** * Encodes the specified QueryBeforeSendHookAddressResponse message. Does not implicitly {@link osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse.verify|verify} messages. diff --git a/src/helpers/tokenfactory.ts b/src/helpers/tokenfactory.ts index d9cc8667..58aa3fa6 100644 --- a/src/helpers/tokenfactory.ts +++ b/src/helpers/tokenfactory.ts @@ -123,12 +123,12 @@ export const msgSetBeforeSendHook = async ( cmNeutron: WalletWrapper, creator: string, denom: string, - cosmwasmAddress: string, + contractAddr: string, ): Promise => { const msgMint = new osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook({ sender: creator, denom, - cosmwasm_address: cosmwasmAddress, + contract_addr: contractAddr, }); const res = await cmNeutron.execTx( { diff --git a/src/testcases/parallel/tokenfactory.test.ts b/src/testcases/parallel/tokenfactory.test.ts index 7055af45..7b904ad0 100644 --- a/src/testcases/parallel/tokenfactory.test.ts +++ b/src/testcases/parallel/tokenfactory.test.ts @@ -26,7 +26,7 @@ interface AuthorityMetadata { } interface BeforeSendHook { - readonly cosmwasm_address: string; + readonly contract_addr: string; } describe('Neutron / Tokenfactory', () => { @@ -264,7 +264,7 @@ describe('Neutron / Tokenfactory', () => { neutronChain.sdk.url, newTokenDenom, ); - expect(hookAfter.cosmwasm_address).toEqual(contractAddress); + expect(hookAfter.contract_addr).toEqual(contractAddress); await neutronAccount.msgSend(contractAddress, { amount: '1', @@ -400,13 +400,14 @@ describe('Neutron / Tokenfactory', () => { ); expect(res.admin).toEqual(contractAddress); }); + test('set_before_send_hook', async () => { await neutronAccount.executeContract( contractAddress, JSON.stringify({ set_before_send_hook: { denom, - cosm_wasm_addr: contractAddress, + contract_addr: contractAddress, }, }), ); @@ -424,10 +425,12 @@ describe('Neutron / Tokenfactory', () => { JSON.stringify({ set_before_send_hook: { denom, - cosm_wasm_addr: '', + contract_addr: '', }, }), ); + + // TODO: check that it actually sets hook by querying tokenfactory module }); test('change admin', async () => {