Created
July 27, 2024 09:02
-
-
Save KBPsystem777/7db9769c0c65f093f9488c156586ac4a to your computer and use it in GitHub Desktop.
DevUp!: Deployment script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules") | |
const JAN_1ST_2030 = 1893456000 | |
const ONE_GWEI = 1_000_000_000n | |
module.exports = 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 } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment