mirror of
https://github.com/emo2007/block-accounting.git
synced 2024-11-10 04:36:26 +00:00
18 lines
467 B
TypeScript
18 lines
467 B
TypeScript
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
|
|
|
|
const JAN_1ST_2030 = 1893456000;
|
|
const ONE_GWEI: bigint = 1_000_000_000n;
|
|
|
|
const LockModule = buildModule("LockModule", (m) => {
|
|
const unlockTime = m.getParameter("unlockTime", JAN_1ST_2030);
|
|
const lockedAmount = m.getParameter("lockedAmount", ONE_GWEI);
|
|
|
|
const lock = m.contract("Lock", [unlockTime], {
|
|
value: lockedAmount,
|
|
});
|
|
|
|
return { lock };
|
|
});
|
|
|
|
export default LockModule;
|