// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ibc/lightclients/wasm/v1/wasm.proto (package ibc.lightclients.wasm.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 { Height } from "../../../core/client/v1/client_pb.js"; /** * Wasm light client's Client state * * @generated from message ibc.lightclients.wasm.v1.ClientState */ export class ClientState extends Message { /** * bytes encoding the client state of the underlying light client * implemented as a Wasm contract. * * @generated from field: bytes data = 1; */ data = new Uint8Array(0); /** * @generated from field: bytes checksum = 2; */ checksum = new Uint8Array(0); /** * @generated from field: ibc.core.client.v1.Height latest_height = 3; */ latestHeight?: Height; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.lightclients.wasm.v1.ClientState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "latest_height", kind: "message", T: Height }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { return new ClientState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { return new ClientState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClientState { return new ClientState().fromJsonString(jsonString, options); } static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { return proto3.util.equals(ClientState, a, b); } } /** * Wasm light client's ConsensusState * * @generated from message ibc.lightclients.wasm.v1.ConsensusState */ export class ConsensusState extends Message { /** * bytes encoding the consensus state of the underlying light client * implemented as a Wasm contract. * * @generated from field: bytes data = 1; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.lightclients.wasm.v1.ConsensusState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { return new ConsensusState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { return new ConsensusState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ConsensusState { return new ConsensusState().fromJsonString(jsonString, options); } static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { return proto3.util.equals(ConsensusState, a, b); } } /** * Wasm light client message (either header(s) or misbehaviour) * * @generated from message ibc.lightclients.wasm.v1.ClientMessage */ export class ClientMessage extends Message { /** * @generated from field: bytes data = 1; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.lightclients.wasm.v1.ClientMessage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClientMessage { return new ClientMessage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClientMessage { return new ClientMessage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClientMessage { return new ClientMessage().fromJsonString(jsonString, options); } static equals(a: ClientMessage | PlainMessage | undefined, b: ClientMessage | PlainMessage | undefined): boolean { return proto3.util.equals(ClientMessage, a, b); } } /** * Checksums defines a list of all checksums that are stored * * Deprecated: This message is deprecated in favor of storing the checksums * using a Collections.KeySet. * * @generated from message ibc.lightclients.wasm.v1.Checksums * @deprecated */ export class Checksums extends Message { /** * @generated from field: repeated bytes checksums = 1; */ checksums: Uint8Array[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ibc.lightclients.wasm.v1.Checksums"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "checksums", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Checksums { return new Checksums().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Checksums { return new Checksums().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Checksums { return new Checksums().fromJsonString(jsonString, options); } static equals(a: Checksums | PlainMessage | undefined, b: Checksums | PlainMessage | undefined): boolean { return proto3.util.equals(Checksums, a, b); } }