// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ibc/core/client/v1/tx.proto (package ibc.core.client.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3 } from "@bufbuild/protobuf"; import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade_pb.js"; import { Params } from "./client_pb.js"; /** * MsgCreateClient defines a message to create an IBC client * * @generated from message ibc.core.client.v1.MsgCreateClient */ export class MsgCreateClient extends Message { /** * light client state * * @generated from field: google.protobuf.Any client_state = 1; */ clientState?: Any; /** * consensus state associated with the client that corresponds to a given * height. * * @generated from field: google.protobuf.Any consensus_state = 2; */ consensusState?: Any; /** * signer address * * @generated from field: string signer = 3; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgCreateClient"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_state", kind: "message", T: Any }, { no: 2, name: "consensus_state", kind: "message", T: Any }, { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClient { return new MsgCreateClient().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClient { return new MsgCreateClient().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateClient { return new MsgCreateClient().fromJsonString(jsonString, options); } static equals(a: MsgCreateClient | PlainMessage | undefined, b: MsgCreateClient | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateClient, a, b); } } /** * MsgCreateClientResponse defines the Msg/CreateClient response type. * * @generated from message ibc.core.client.v1.MsgCreateClientResponse */ export class MsgCreateClientResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgCreateClientResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClientResponse { return new MsgCreateClientResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClientResponse { return new MsgCreateClientResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateClientResponse { return new MsgCreateClientResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateClientResponse | PlainMessage | undefined, b: MsgCreateClientResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateClientResponse, a, b); } } /** * MsgUpdateClient defines an sdk.Msg to update a IBC client state using * the given client message. * * @generated from message ibc.core.client.v1.MsgUpdateClient */ export class MsgUpdateClient extends Message { /** * client unique identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * client message to update the light client * * @generated from field: google.protobuf.Any client_message = 2; */ clientMessage?: Any; /** * signer address * * @generated from field: string signer = 3; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgUpdateClient"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "client_message", kind: "message", T: Any }, { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClient { return new MsgUpdateClient().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClient { return new MsgUpdateClient().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClient { return new MsgUpdateClient().fromJsonString(jsonString, options); } static equals(a: MsgUpdateClient | PlainMessage | undefined, b: MsgUpdateClient | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateClient, a, b); } } /** * MsgUpdateClientResponse defines the Msg/UpdateClient response type. * * @generated from message ibc.core.client.v1.MsgUpdateClientResponse */ export class MsgUpdateClientResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgUpdateClientResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClientResponse { return new MsgUpdateClientResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClientResponse { return new MsgUpdateClientResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClientResponse { return new MsgUpdateClientResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateClientResponse | PlainMessage | undefined, b: MsgUpdateClientResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateClientResponse, a, b); } } /** * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client * state * * @generated from message ibc.core.client.v1.MsgUpgradeClient */ export class MsgUpgradeClient extends Message { /** * client unique identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * upgraded client state * * @generated from field: google.protobuf.Any client_state = 2; */ clientState?: Any; /** * upgraded consensus state, only contains enough information to serve as a * basis of trust in update logic * * @generated from field: google.protobuf.Any consensus_state = 3; */ consensusState?: Any; /** * proof that old chain committed to new client * * @generated from field: bytes proof_upgrade_client = 4; */ proofUpgradeClient = new Uint8Array(0); /** * proof that old chain committed to new consensus state * * @generated from field: bytes proof_upgrade_consensus_state = 5; */ proofUpgradeConsensusState = new Uint8Array(0); /** * signer address * * @generated from field: string signer = 6; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgUpgradeClient"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "client_state", kind: "message", T: Any }, { no: 3, name: "consensus_state", kind: "message", T: Any }, { no: 4, name: "proof_upgrade_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 5, name: "proof_upgrade_consensus_state", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClient { return new MsgUpgradeClient().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClient { return new MsgUpgradeClient().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClient { return new MsgUpgradeClient().fromJsonString(jsonString, options); } static equals(a: MsgUpgradeClient | PlainMessage | undefined, b: MsgUpgradeClient | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpgradeClient, a, b); } } /** * MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. * * @generated from message ibc.core.client.v1.MsgUpgradeClientResponse */ export class MsgUpgradeClientResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgUpgradeClientResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClientResponse { return new MsgUpgradeClientResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClientResponse { return new MsgUpgradeClientResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClientResponse { return new MsgUpgradeClientResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpgradeClientResponse | PlainMessage | undefined, b: MsgUpgradeClientResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpgradeClientResponse, a, b); } } /** * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for * light client misbehaviour. * This message has been deprecated. Use MsgUpdateClient instead. * * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviour * @deprecated */ export class MsgSubmitMisbehaviour extends Message { /** * client unique identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * misbehaviour used for freezing the light client * * @generated from field: google.protobuf.Any misbehaviour = 2; */ misbehaviour?: Any; /** * signer address * * @generated from field: string signer = 3; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviour"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "misbehaviour", kind: "message", T: Any }, { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviour { return new MsgSubmitMisbehaviour().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviour { return new MsgSubmitMisbehaviour().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviour { return new MsgSubmitMisbehaviour().fromJsonString(jsonString, options); } static equals(a: MsgSubmitMisbehaviour | PlainMessage | undefined, b: MsgSubmitMisbehaviour | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSubmitMisbehaviour, a, b); } } /** * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response * type. * * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviourResponse */ export class MsgSubmitMisbehaviourResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviourResponse { return new MsgSubmitMisbehaviourResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviourResponse { return new MsgSubmitMisbehaviourResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviourResponse { return new MsgSubmitMisbehaviourResponse().fromJsonString(jsonString, options); } static equals(a: MsgSubmitMisbehaviourResponse | PlainMessage | undefined, b: MsgSubmitMisbehaviourResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSubmitMisbehaviourResponse, a, b); } } /** * MsgRecoverClient defines the message used to recover a frozen or expired client. * * @generated from message ibc.core.client.v1.MsgRecoverClient */ export class MsgRecoverClient extends Message { /** * the client identifier for the client to be updated if the proposal passes * * @generated from field: string subject_client_id = 1; */ subjectClientId = ""; /** * the substitute client identifier for the client which will replace the subject * client * * @generated from field: string substitute_client_id = 2; */ substituteClientId = ""; /** * signer address * * @generated from field: string signer = 3; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgRecoverClient"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subject_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "substitute_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClient { return new MsgRecoverClient().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClient { return new MsgRecoverClient().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClient { return new MsgRecoverClient().fromJsonString(jsonString, options); } static equals(a: MsgRecoverClient | PlainMessage | undefined, b: MsgRecoverClient | PlainMessage | undefined): boolean { return proto3.util.equals(MsgRecoverClient, a, b); } } /** * MsgRecoverClientResponse defines the Msg/RecoverClient response type. * * @generated from message ibc.core.client.v1.MsgRecoverClientResponse */ export class MsgRecoverClientResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgRecoverClientResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClientResponse { return new MsgRecoverClientResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClientResponse { return new MsgRecoverClientResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClientResponse { return new MsgRecoverClientResponse().fromJsonString(jsonString, options); } static equals(a: MsgRecoverClientResponse | PlainMessage | undefined, b: MsgRecoverClientResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgRecoverClientResponse, a, b); } } /** * MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of an IBC client using a v1 governance proposal * * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgrade */ export class MsgIBCSoftwareUpgrade extends Message { /** * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 1; */ plan?: Plan; /** * An UpgradedClientState must be provided to perform an IBC breaking upgrade. * This will make the chain commit to the correct upgraded (self) client state * before the upgrade occurs, so that connecting chains can verify that the * new upgraded client is valid by verifying a proof on the previous version * of the chain. This will allow IBC connections to persist smoothly across * planned chain upgrades. Correspondingly, the UpgradedClientState field has been * deprecated in the Cosmos SDK to allow for this logic to exist solely in * the 02-client module. * * @generated from field: google.protobuf.Any upgraded_client_state = 2; */ upgradedClientState?: Any; /** * signer address * * @generated from field: string signer = 3; */ signer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgIBCSoftwareUpgrade"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "plan", kind: "message", T: Plan }, { no: 2, name: "upgraded_client_state", kind: "message", T: Any }, { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgrade { return new MsgIBCSoftwareUpgrade().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgrade { return new MsgIBCSoftwareUpgrade().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgrade { return new MsgIBCSoftwareUpgrade().fromJsonString(jsonString, options); } static equals(a: MsgIBCSoftwareUpgrade | PlainMessage | undefined, b: MsgIBCSoftwareUpgrade | PlainMessage | undefined): boolean { return proto3.util.equals(MsgIBCSoftwareUpgrade, a, b); } } /** * MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response type. * * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse */ export class MsgIBCSoftwareUpgradeResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgradeResponse { return new MsgIBCSoftwareUpgradeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgradeResponse { return new MsgIBCSoftwareUpgradeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgradeResponse { return new MsgIBCSoftwareUpgradeResponse().fromJsonString(jsonString, options); } static equals(a: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined, b: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgIBCSoftwareUpgradeResponse, a, b); } } /** * MsgUpdateParams defines the sdk.Msg type to update the client parameters. * * @generated from message ibc.core.client.v1.MsgUpdateParams */ export class MsgUpdateParams extends Message { /** * signer address * * @generated from field: string signer = 1; */ signer = ""; /** * params defines the client parameters to update. * * NOTE: All parameters must be supplied. * * @generated from field: ibc.core.client.v1.Params params = 2; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.MsgUpdateParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "params", kind: "message", T: Params }, ]); 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 MsgUpdateParams response type. * * @generated from message ibc.core.client.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 = "ibc.core.client.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); } }