Skip to content

Commit

Permalink
chore: deps update, greater unlock time for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Nov 24, 2023
1 parent 943b033 commit 816bdd9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
- name: "Run tests"
run: npm run test
- name: "Deploy contracts"
run: npm run deploy
run: npx hardhat run scripts/deploy.ts --network localhost
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ task(

task("deploy", "Deploys Contract", async (_, hre) => {
const currentTimestampInSeconds = Math.round(Date.now() / 1000);
const unlockTime = currentTimestampInSeconds + 300;
const unlockTime = currentTimestampInSeconds + 365 * 24 * 60 * 60; // 1 year from now
const lockedAmount = hre.ethers.parseEther("0.001");

const lockInstance = await hre.ethers.deployContract("Lock", [unlockTime], {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Salman Dabbakuti",
"license": "ISC",
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"dotenv": "^16.3.1",
"hardhat": "^2.19.0"
"hardhat": "^2.19.1"
}
}
2 changes: 1 addition & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ethers } from "hardhat";

async function main() {
const currentTimestampInSeconds = Math.round(Date.now() / 1000);
const unlockTime = currentTimestampInSeconds + 300;
const unlockTime = currentTimestampInSeconds + 365 * 24 * 60 * 60; // 1 year from now
const lockedAmount = ethers.parseEther("0.001");

const lockInstance = await ethers.deployContract("Lock", [unlockTime], {
Expand Down

0 comments on commit 816bdd9

Please sign in to comment.