import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../../google/protobuf/any"; import { Channel } from "../../../core/channel/v1/channel"; import { ConnectionEnd } from "../../../core/connection/v1/connection"; export declare const protobufPackage = "ibc.lightclients.solomachine.v2"; /** * DataType defines the type of solo machine proof being created. This is done * to preserve uniqueness of different data sign byte encodings. */ export declare enum DataType { /** DATA_TYPE_UNINITIALIZED_UNSPECIFIED - Default State */ DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, /** DATA_TYPE_CLIENT_STATE - Data type for client state verification */ DATA_TYPE_CLIENT_STATE = 1, /** DATA_TYPE_CONSENSUS_STATE - Data type for consensus state verification */ DATA_TYPE_CONSENSUS_STATE = 2, /** DATA_TYPE_CONNECTION_STATE - Data type for connection state verification */ DATA_TYPE_CONNECTION_STATE = 3, /** DATA_TYPE_CHANNEL_STATE - Data type for channel state verification */ DATA_TYPE_CHANNEL_STATE = 4, /** DATA_TYPE_PACKET_COMMITMENT - Data type for packet commitment verification */ DATA_TYPE_PACKET_COMMITMENT = 5, /** DATA_TYPE_PACKET_ACKNOWLEDGEMENT - Data type for packet acknowledgement verification */ DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, /** DATA_TYPE_PACKET_RECEIPT_ABSENCE - Data type for packet receipt absence verification */ DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, /** DATA_TYPE_NEXT_SEQUENCE_RECV - Data type for next sequence recv verification */ DATA_TYPE_NEXT_SEQUENCE_RECV = 8, /** DATA_TYPE_HEADER - Data type for header verification */ DATA_TYPE_HEADER = 9, UNRECOGNIZED = -1 } export declare function dataTypeFromJSON(object: any): DataType; export declare function dataTypeToJSON(object: DataType): string; /** * ClientState defines a solo machine client that tracks the current consensus * state and if the client is frozen. */ export interface ClientState { /** latest sequence of the client state */ sequence: Long; /** frozen sequence of the solo machine */ isFrozen: boolean; consensusState: ConsensusState | undefined; /** * when set to true, will allow governance to update a solo machine client. * The client will be unfrozen if it is frozen. */ allowUpdateAfterProposal: boolean; } /** * ConsensusState defines a solo machine consensus state. The sequence of a * consensus state is contained in the "height" key used in storing the * consensus state. */ export interface ConsensusState { /** public key of the solo machine */ publicKey: Any | undefined; /** * diversifier allows the same public key to be reused across different solo * machine clients (potentially on different chains) without being considered * misbehaviour. */ diversifier: string; timestamp: Long; } /** Header defines a solo machine consensus header */ export interface Header { /** sequence to update solo machine public key at */ sequence: Long; timestamp: Long; signature: Uint8Array; newPublicKey: Any | undefined; newDiversifier: string; } /** * Misbehaviour defines misbehaviour for a solo machine which consists * of a sequence and two signatures over different messages at that sequence. */ export interface Misbehaviour { clientId: string; sequence: Long; signatureOne: SignatureAndData | undefined; signatureTwo: SignatureAndData | undefined; } /** * SignatureAndData contains a signature and the data signed over to create that * signature. */ export interface SignatureAndData { signature: Uint8Array; dataType: DataType; data: Uint8Array; timestamp: Long; } /** * TimestampedSignatureData contains the signature data and the timestamp of the * signature. */ export interface TimestampedSignatureData { signatureData: Uint8Array; timestamp: Long; } /** SignBytes defines the signed bytes used for signature verification. */ export interface SignBytes { sequence: Long; timestamp: Long; diversifier: string; /** type of the data used */ dataType: DataType; /** marshaled data */ data: Uint8Array; } /** HeaderData returns the SignBytes data for update verification. */ export interface HeaderData { /** header public key */ newPubKey: Any | undefined; /** header diversifier */ newDiversifier: string; } /** ClientStateData returns the SignBytes data for client state verification. */ export interface ClientStateData { path: Uint8Array; clientState: Any | undefined; } /** * ConsensusStateData returns the SignBytes data for consensus state * verification. */ export interface ConsensusStateData { path: Uint8Array; consensusState: Any | undefined; } /** * ConnectionStateData returns the SignBytes data for connection state * verification. */ export interface ConnectionStateData { path: Uint8Array; connection: ConnectionEnd | undefined; } /** * ChannelStateData returns the SignBytes data for channel state * verification. */ export interface ChannelStateData { path: Uint8Array; channel: Channel | undefined; } /** * PacketCommitmentData returns the SignBytes data for packet commitment * verification. */ export interface PacketCommitmentData { path: Uint8Array; commitment: Uint8Array; } /** * PacketAcknowledgementData returns the SignBytes data for acknowledgement * verification. */ export interface PacketAcknowledgementData { path: Uint8Array; acknowledgement: Uint8Array; } /** * PacketReceiptAbsenceData returns the SignBytes data for * packet receipt absence verification. */ export interface PacketReceiptAbsenceData { path: Uint8Array; } /** * NextSequenceRecvData returns the SignBytes data for verification of the next * sequence to be received. */ export interface NextSequenceRecvData { path: Uint8Array; nextSeqRecv: Long; } export declare const ClientState: { encode(message: ClientState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ClientState; fromJSON(object: any): ClientState; toJSON(message: ClientState): unknown; create(base?: DeepPartial): ClientState; fromPartial(object: DeepPartial): ClientState; }; export declare const ConsensusState: { encode(message: ConsensusState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusState; fromJSON(object: any): ConsensusState; toJSON(message: ConsensusState): unknown; create(base?: DeepPartial): ConsensusState; fromPartial(object: DeepPartial): ConsensusState; }; export declare const Header: { encode(message: Header, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Header; fromJSON(object: any): Header; toJSON(message: Header): unknown; create(base?: DeepPartial
): Header; fromPartial(object: DeepPartial
): Header; }; export declare const Misbehaviour: { encode(message: Misbehaviour, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Misbehaviour; fromJSON(object: any): Misbehaviour; toJSON(message: Misbehaviour): unknown; create(base?: DeepPartial): Misbehaviour; fromPartial(object: DeepPartial): Misbehaviour; }; export declare const SignatureAndData: { encode(message: SignatureAndData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SignatureAndData; fromJSON(object: any): SignatureAndData; toJSON(message: SignatureAndData): unknown; create(base?: DeepPartial): SignatureAndData; fromPartial(object: DeepPartial): SignatureAndData; }; export declare const TimestampedSignatureData: { encode(message: TimestampedSignatureData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TimestampedSignatureData; fromJSON(object: any): TimestampedSignatureData; toJSON(message: TimestampedSignatureData): unknown; create(base?: DeepPartial): TimestampedSignatureData; fromPartial(object: DeepPartial): TimestampedSignatureData; }; export declare const SignBytes: { encode(message: SignBytes, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SignBytes; fromJSON(object: any): SignBytes; toJSON(message: SignBytes): unknown; create(base?: DeepPartial): SignBytes; fromPartial(object: DeepPartial): SignBytes; }; export declare const HeaderData: { encode(message: HeaderData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HeaderData; fromJSON(object: any): HeaderData; toJSON(message: HeaderData): unknown; create(base?: DeepPartial): HeaderData; fromPartial(object: DeepPartial): HeaderData; }; export declare const ClientStateData: { encode(message: ClientStateData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ClientStateData; fromJSON(object: any): ClientStateData; toJSON(message: ClientStateData): unknown; create(base?: DeepPartial): ClientStateData; fromPartial(object: DeepPartial): ClientStateData; }; export declare const ConsensusStateData: { encode(message: ConsensusStateData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusStateData; fromJSON(object: any): ConsensusStateData; toJSON(message: ConsensusStateData): unknown; create(base?: DeepPartial): ConsensusStateData; fromPartial(object: DeepPartial): ConsensusStateData; }; export declare const ConnectionStateData: { encode(message: ConnectionStateData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConnectionStateData; fromJSON(object: any): ConnectionStateData; toJSON(message: ConnectionStateData): unknown; create(base?: DeepPartial): ConnectionStateData; fromPartial(object: DeepPartial): ConnectionStateData; }; export declare const ChannelStateData: { encode(message: ChannelStateData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ChannelStateData; fromJSON(object: any): ChannelStateData; toJSON(message: ChannelStateData): unknown; create(base?: DeepPartial): ChannelStateData; fromPartial(object: DeepPartial): ChannelStateData; }; export declare const PacketCommitmentData: { encode(message: PacketCommitmentData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PacketCommitmentData; fromJSON(object: any): PacketCommitmentData; toJSON(message: PacketCommitmentData): unknown; create(base?: DeepPartial): PacketCommitmentData; fromPartial(object: DeepPartial): PacketCommitmentData; }; export declare const PacketAcknowledgementData: { encode(message: PacketAcknowledgementData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PacketAcknowledgementData; fromJSON(object: any): PacketAcknowledgementData; toJSON(message: PacketAcknowledgementData): unknown; create(base?: DeepPartial): PacketAcknowledgementData; fromPartial(object: DeepPartial): PacketAcknowledgementData; }; export declare const PacketReceiptAbsenceData: { encode(message: PacketReceiptAbsenceData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PacketReceiptAbsenceData; fromJSON(object: any): PacketReceiptAbsenceData; toJSON(message: PacketReceiptAbsenceData): unknown; create(base?: DeepPartial): PacketReceiptAbsenceData; fromPartial(object: DeepPartial): PacketReceiptAbsenceData; }; export declare const NextSequenceRecvData: { encode(message: NextSequenceRecvData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NextSequenceRecvData; fromJSON(object: any): NextSequenceRecvData; toJSON(message: NextSequenceRecvData): unknown; create(base?: DeepPartial): NextSequenceRecvData; fromPartial(object: DeepPartial): NextSequenceRecvData; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};