// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ibc/core/client/v1/query.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, protoInt64 } from "@bufbuild/protobuf"; import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client_pb.js"; import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; import { MerklePath } from "../../commitment/v1/commitment_pb.js"; /** * QueryClientStateRequest is the request type for the Query/ClientState RPC * method * * @generated from message ibc.core.client.v1.QueryClientStateRequest */ export class QueryClientStateRequest extends Message { /** * client state unique identifier * * @generated from field: string client_id = 1; */ clientId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateRequest { return new QueryClientStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateRequest { return new QueryClientStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStateRequest { return new QueryClientStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryClientStateRequest | PlainMessage | undefined, b: QueryClientStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStateRequest, a, b); } } /** * QueryClientStateResponse is the response type for the Query/ClientState RPC * method. Besides the client state, it includes a proof and the height from * which the proof was retrieved. * * @generated from message ibc.core.client.v1.QueryClientStateResponse */ export class QueryClientStateResponse extends Message { /** * client state associated with the request identifier * * @generated from field: google.protobuf.Any client_state = 1; */ clientState?: Any; /** * merkle proof of existence * * @generated from field: bytes proof = 2; */ proof = new Uint8Array(0); /** * height at which the proof was retrieved * * @generated from field: ibc.core.client.v1.Height proof_height = 3; */ proofHeight?: Height; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_state", kind: "message", T: Any }, { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "proof_height", kind: "message", T: Height }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateResponse { return new QueryClientStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateResponse { return new QueryClientStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStateResponse { return new QueryClientStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryClientStateResponse | PlainMessage | undefined, b: QueryClientStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStateResponse, a, b); } } /** * QueryClientStatesRequest is the request type for the Query/ClientStates RPC * method * * @generated from message ibc.core.client.v1.QueryClientStatesRequest */ export class QueryClientStatesRequest extends Message { /** * pagination request * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStatesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesRequest { return new QueryClientStatesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesRequest { return new QueryClientStatesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesRequest { return new QueryClientStatesRequest().fromJsonString(jsonString, options); } static equals(a: QueryClientStatesRequest | PlainMessage | undefined, b: QueryClientStatesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStatesRequest, a, b); } } /** * QueryClientStatesResponse is the response type for the Query/ClientStates RPC * method. * * @generated from message ibc.core.client.v1.QueryClientStatesResponse */ export class QueryClientStatesResponse extends Message { /** * list of stored ClientStates of the chain. * * @generated from field: repeated ibc.core.client.v1.IdentifiedClientState client_states = 1; */ clientStates: IdentifiedClientState[] = []; /** * pagination response * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStatesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_states", kind: "message", T: IdentifiedClientState, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesResponse { return new QueryClientStatesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesResponse { return new QueryClientStatesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesResponse { return new QueryClientStatesResponse().fromJsonString(jsonString, options); } static equals(a: QueryClientStatesResponse | PlainMessage | undefined, b: QueryClientStatesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStatesResponse, a, b); } } /** * QueryConsensusStateRequest is the request type for the Query/ConsensusState * RPC method. Besides the consensus state, it includes a proof and the height * from which the proof was retrieved. * * @generated from message ibc.core.client.v1.QueryConsensusStateRequest */ export class QueryConsensusStateRequest extends Message { /** * client identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * consensus state revision number * * @generated from field: uint64 revision_number = 2; */ revisionNumber = protoInt64.zero; /** * consensus state revision height * * @generated from field: uint64 revision_height = 3; */ revisionHeight = protoInt64.zero; /** * latest_height overrides the height field and queries the latest stored * ConsensusState * * @generated from field: bool latest_height = 4; */ latestHeight = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "latest_height", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateRequest { return new QueryConsensusStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateRequest { return new QueryConsensusStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateRequest { return new QueryConsensusStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStateRequest | PlainMessage | undefined, b: QueryConsensusStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStateRequest, a, b); } } /** * QueryConsensusStateResponse is the response type for the Query/ConsensusState * RPC method * * @generated from message ibc.core.client.v1.QueryConsensusStateResponse */ export class QueryConsensusStateResponse extends Message { /** * consensus state associated with the client identifier at the given height * * @generated from field: google.protobuf.Any consensus_state = 1; */ consensusState?: Any; /** * merkle proof of existence * * @generated from field: bytes proof = 2; */ proof = new Uint8Array(0); /** * height at which the proof was retrieved * * @generated from field: ibc.core.client.v1.Height proof_height = 3; */ proofHeight?: Height; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "consensus_state", kind: "message", T: Any }, { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "proof_height", kind: "message", T: Height }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateResponse { return new QueryConsensusStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateResponse { return new QueryConsensusStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateResponse { return new QueryConsensusStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStateResponse | PlainMessage | undefined, b: QueryConsensusStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStateResponse, a, b); } } /** * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates * RPC method. * * @generated from message ibc.core.client.v1.QueryConsensusStatesRequest */ export class QueryConsensusStatesRequest extends Message { /** * client identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * pagination request * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesRequest { return new QueryConsensusStatesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesRequest { return new QueryConsensusStatesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesRequest { return new QueryConsensusStatesRequest().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStatesRequest | PlainMessage | undefined, b: QueryConsensusStatesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStatesRequest, a, b); } } /** * QueryConsensusStatesResponse is the response type for the * Query/ConsensusStates RPC method * * @generated from message ibc.core.client.v1.QueryConsensusStatesResponse */ export class QueryConsensusStatesResponse extends Message { /** * consensus states associated with the identifier * * @generated from field: repeated ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1; */ consensusStates: ConsensusStateWithHeight[] = []; /** * pagination response * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "consensus_states", kind: "message", T: ConsensusStateWithHeight, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesResponse { return new QueryConsensusStatesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesResponse { return new QueryConsensusStatesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesResponse { return new QueryConsensusStatesResponse().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStatesResponse | PlainMessage | undefined, b: QueryConsensusStatesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStatesResponse, a, b); } } /** * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights * RPC method. * * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsRequest */ export class QueryConsensusStateHeightsRequest extends Message { /** * client identifier * * @generated from field: string client_id = 1; */ clientId = ""; /** * pagination request * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsRequest { return new QueryConsensusStateHeightsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsRequest { return new QueryConsensusStateHeightsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsRequest { return new QueryConsensusStateHeightsRequest().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStateHeightsRequest | PlainMessage | undefined, b: QueryConsensusStateHeightsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStateHeightsRequest, a, b); } } /** * QueryConsensusStateHeightsResponse is the response type for the * Query/ConsensusStateHeights RPC method * * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsResponse */ export class QueryConsensusStateHeightsResponse extends Message { /** * consensus state heights * * @generated from field: repeated ibc.core.client.v1.Height consensus_state_heights = 1; */ consensusStateHeights: Height[] = []; /** * pagination response * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "consensus_state_heights", kind: "message", T: Height, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsResponse { return new QueryConsensusStateHeightsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsResponse { return new QueryConsensusStateHeightsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsResponse { return new QueryConsensusStateHeightsResponse().fromJsonString(jsonString, options); } static equals(a: QueryConsensusStateHeightsResponse | PlainMessage | undefined, b: QueryConsensusStateHeightsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryConsensusStateHeightsResponse, a, b); } } /** * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC * method * * @generated from message ibc.core.client.v1.QueryClientStatusRequest */ export class QueryClientStatusRequest extends Message { /** * client unique identifier * * @generated from field: string client_id = 1; */ clientId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStatusRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusRequest { return new QueryClientStatusRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusRequest { return new QueryClientStatusRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusRequest { return new QueryClientStatusRequest().fromJsonString(jsonString, options); } static equals(a: QueryClientStatusRequest | PlainMessage | undefined, b: QueryClientStatusRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStatusRequest, a, b); } } /** * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC * method. It returns the current status of the IBC client. * * @generated from message ibc.core.client.v1.QueryClientStatusResponse */ export class QueryClientStatusResponse extends Message { /** * @generated from field: string status = 1; */ status = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientStatusResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusResponse { return new QueryClientStatusResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusResponse { return new QueryClientStatusResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusResponse { return new QueryClientStatusResponse().fromJsonString(jsonString, options); } static equals(a: QueryClientStatusResponse | PlainMessage | undefined, b: QueryClientStatusResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientStatusResponse, a, b); } } /** * QueryClientParamsRequest is the request type for the Query/ClientParams RPC * method. * * @generated from message ibc.core.client.v1.QueryClientParamsRequest */ export class QueryClientParamsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientParamsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsRequest { return new QueryClientParamsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsRequest { return new QueryClientParamsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsRequest { return new QueryClientParamsRequest().fromJsonString(jsonString, options); } static equals(a: QueryClientParamsRequest | PlainMessage | undefined, b: QueryClientParamsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientParamsRequest, a, b); } } /** * QueryClientParamsResponse is the response type for the Query/ClientParams RPC * method. * * @generated from message ibc.core.client.v1.QueryClientParamsResponse */ export class QueryClientParamsResponse extends Message { /** * params defines the parameters of the module. * * @generated from field: ibc.core.client.v1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryClientParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsResponse { return new QueryClientParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsResponse { return new QueryClientParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsResponse { return new QueryClientParamsResponse().fromJsonString(jsonString, options); } static equals(a: QueryClientParamsResponse | PlainMessage | undefined, b: QueryClientParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClientParamsResponse, a, b); } } /** * QueryUpgradedClientStateRequest is the request type for the * Query/UpgradedClientState RPC method * * @generated from message ibc.core.client.v1.QueryUpgradedClientStateRequest */ export class QueryUpgradedClientStateRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateRequest { return new QueryUpgradedClientStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateRequest { return new QueryUpgradedClientStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateRequest { return new QueryUpgradedClientStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryUpgradedClientStateRequest | PlainMessage | undefined, b: QueryUpgradedClientStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUpgradedClientStateRequest, a, b); } } /** * QueryUpgradedClientStateResponse is the response type for the * Query/UpgradedClientState RPC method. * * @generated from message ibc.core.client.v1.QueryUpgradedClientStateResponse */ export class QueryUpgradedClientStateResponse extends Message { /** * client state associated with the request identifier * * @generated from field: google.protobuf.Any upgraded_client_state = 1; */ upgradedClientState?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "upgraded_client_state", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateResponse { return new QueryUpgradedClientStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateResponse { return new QueryUpgradedClientStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateResponse { return new QueryUpgradedClientStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryUpgradedClientStateResponse | PlainMessage | undefined, b: QueryUpgradedClientStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUpgradedClientStateResponse, a, b); } } /** * QueryUpgradedConsensusStateRequest is the request type for the * Query/UpgradedConsensusState RPC method * * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateRequest */ export class QueryUpgradedConsensusStateRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateRequest { return new QueryUpgradedConsensusStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateRequest { return new QueryUpgradedConsensusStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateRequest { return new QueryUpgradedConsensusStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryUpgradedConsensusStateRequest | PlainMessage | undefined, b: QueryUpgradedConsensusStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUpgradedConsensusStateRequest, a, b); } } /** * QueryUpgradedConsensusStateResponse is the response type for the * Query/UpgradedConsensusState RPC method. * * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateResponse */ export class QueryUpgradedConsensusStateResponse extends Message { /** * Consensus state associated with the request identifier * * @generated from field: google.protobuf.Any upgraded_consensus_state = 1; */ upgradedConsensusState?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "upgraded_consensus_state", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateResponse { return new QueryUpgradedConsensusStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateResponse { return new QueryUpgradedConsensusStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateResponse { return new QueryUpgradedConsensusStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryUpgradedConsensusStateResponse | PlainMessage | undefined, b: QueryUpgradedConsensusStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUpgradedConsensusStateResponse, a, b); } } /** * QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method * * @generated from message ibc.core.client.v1.QueryVerifyMembershipRequest */ export class QueryVerifyMembershipRequest extends Message { /** * client unique identifier. * * @generated from field: string client_id = 1; */ clientId = ""; /** * the proof to be verified by the client. * * @generated from field: bytes proof = 2; */ proof = new Uint8Array(0); /** * the height of the commitment root at which the proof is verified. * * @generated from field: ibc.core.client.v1.Height proof_height = 3; */ proofHeight?: Height; /** * the commitment key path. * * @generated from field: ibc.core.commitment.v1.MerklePath merkle_path = 4; */ merklePath?: MerklePath; /** * the value which is proven. * * @generated from field: bytes value = 5; */ value = new Uint8Array(0); /** * optional time delay * * @generated from field: uint64 time_delay = 6; */ timeDelay = protoInt64.zero; /** * optional block delay * * @generated from field: uint64 block_delay = 7; */ blockDelay = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "proof_height", kind: "message", T: Height }, { no: 4, name: "merkle_path", kind: "message", T: MerklePath }, { no: 5, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "time_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 7, name: "block_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipRequest { return new QueryVerifyMembershipRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipRequest { return new QueryVerifyMembershipRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipRequest { return new QueryVerifyMembershipRequest().fromJsonString(jsonString, options); } static equals(a: QueryVerifyMembershipRequest | PlainMessage | undefined, b: QueryVerifyMembershipRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryVerifyMembershipRequest, a, b); } } /** * QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method * * @generated from message ibc.core.client.v1.QueryVerifyMembershipResponse */ export class QueryVerifyMembershipResponse extends Message { /** * boolean indicating success or failure of proof verification. * * @generated from field: bool success = 1; */ success = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipResponse { return new QueryVerifyMembershipResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipResponse { return new QueryVerifyMembershipResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipResponse { return new QueryVerifyMembershipResponse().fromJsonString(jsonString, options); } static equals(a: QueryVerifyMembershipResponse | PlainMessage | undefined, b: QueryVerifyMembershipResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryVerifyMembershipResponse, a, b); } }