// Since: cosmos-sdk 0.47 // @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/consensus/v1/tx.proto (package cosmos.consensus.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; /** * MsgUpdateParams is the Msg/UpdateParams request type. * * @generated from message cosmos.consensus.v1.MsgUpdateParams */ export class MsgUpdateParams extends Message { /** * authority is the address that controls the module (defaults to x/gov unless overwritten). * * @generated from field: string authority = 1; */ authority = ""; /** * params defines the x/consensus parameters to update. * VersionsParams is not included in this Msg because it is tracked * separarately in x/upgrade. * * NOTE: All parameters must be supplied. * * @generated from field: tendermint.types.BlockParams block = 2; */ block?: BlockParams; /** * @generated from field: tendermint.types.EvidenceParams evidence = 3; */ evidence?: EvidenceParams; /** * @generated from field: tendermint.types.ValidatorParams validator = 4; */ validator?: ValidatorParams; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.consensus.v1.MsgUpdateParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "block", kind: "message", T: BlockParams }, { no: 3, name: "evidence", kind: "message", T: EvidenceParams }, { no: 4, name: "validator", kind: "message", T: ValidatorParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParams, a, b); } } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * * @generated from message cosmos.consensus.v1.MsgUpdateParamsResponse */ export class MsgUpdateParamsResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.consensus.v1.MsgUpdateParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParamsResponse, a, b); } }