UNPKG

@solarity/hardhat-migrate

Version:
30 lines 1.15 kB
import { HardhatRuntimeEnvironment } from "hardhat/types"; declare class BaseStorage { private _hre; private _namespace; private readonly _directory; private readonly _fileName; protected _state: Record<string, any>; constructor(_hre: HardhatRuntimeEnvironment, _namespace?: string); deleteStateFile(): void; readFullStateFromFile(): Record<string, Record<string, any>>; stateExistsInFile(): boolean; filePath(): string; protected _saveStateToFile(): void; } export declare class MigrateStorage extends BaseStorage { get(key: string): any; getAll(): Record<string, any>; set(key: string, value: any, force?: boolean): void; delete(key: string, force?: boolean): void; has(key: string): boolean; clear(): void; } export declare const DefaultStorage: BaseStorage; export declare const UserStorage: MigrateStorage; export declare const TransactionStorage: MigrateStorage; export declare const ArtifactStorage: MigrateStorage; export declare const VerificationStorage: MigrateStorage; export declare function clearAllStorage(): void; export {}; //# sourceMappingURL=MigrateStorage.d.ts.map