@solarity/hardhat-migrate
Version:
The simplest way to deploy smart contracts
18 lines (13 loc) • 391 B
text/typescript
import type { MigrationStats } from "../../types/index.js";
class BaseStats {
private _stats: MigrationStats = {
currentMigration: 0,
};
public get currentMigration(): number {
return this._stats.currentMigration;
}
public set currentMigration(currentMigration: number) {
this._stats.currentMigration = currentMigration;
}
}
export const Stats = new BaseStats();