import { Params, ParamsAmino, ParamsSDKType, Downtime, DowntimeAmino, DowntimeSDKType } from "./downtime"; import { BinaryReader, BinaryWriter } from "../../../../binary"; import { JsonSafe } from "../../../../json-safe"; /** GenesisState is the genesis state of the downtime module. */ export interface GenesisState { params: Params; downtimes: Downtime[]; /** * last_block_time keeps track of when the last block time was set. * it's nullable because we might want it to be non existent. * we want it to exist when we have a genesis export-import migration scenario. */ lastBlockTime?: Date; } export interface GenesisStateProtoMsg { typeUrl: "/lavanet.lava.downtime.v1.GenesisState"; value: Uint8Array; } /** GenesisState is the genesis state of the downtime module. */ export interface GenesisStateAmino { params?: ParamsAmino; downtimes?: DowntimeAmino[]; /** * last_block_time keeps track of when the last block time was set. * it's nullable because we might want it to be non existent. * we want it to exist when we have a genesis export-import migration scenario. */ last_block_time?: string; } export interface GenesisStateAminoMsg { type: "/lavanet.lava.downtime.v1.GenesisState"; value: GenesisStateAmino; } /** GenesisState is the genesis state of the downtime module. */ export interface GenesisStateSDKType { params: ParamsSDKType; downtimes: DowntimeSDKType[]; last_block_time?: Date; } export declare const GenesisState: { typeUrl: string; encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): JsonSafe; fromPartial(object: Partial): GenesisState; fromAmino(object: GenesisStateAmino): GenesisState; toAmino(message: GenesisState): GenesisStateAmino; fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; toProto(message: GenesisState): Uint8Array; toProtoMsg(message: GenesisState): GenesisStateProtoMsg; };