From e4ae6f001284cffe99cba6d7181742658a92c701 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 23 May 2025 11:22:57 +0200 Subject: [PATCH] Set mine script for localhost deployment only and add deploy reset command --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 92644ab..723da3e 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "scripts": { "test": "npm run lint && hardhat test", "fuzz": "hardhat compile && fuzzing/fuzz.sh", - "start": "concurrently --names \"hardhat,deployment\" --prefix \"[{time} {name}]\" \"hardhat node\" \"sleep 2 && HARDHAT_NETWORK=localhost npm run deploy\"", + "start": "concurrently --names \"hardhat,deployment\" --prefix \"[{time} {name}]\" \"hardhat node\" \"sleep 2 && npm run mine && HARDHAT_NETWORK=localhost npm run deploy\"", "compile": "hardhat compile", "format": "prettier --write test/**/*.js --plugin=prettier-plugin-solidity contracts/**/*.sol ", "format:check": "prettier --check test/**/*.js --plugin=prettier-plugin-solidity contracts/**/*.sol", "lint": "solhint contracts/**.sol", "deploy": "hardhat ignition deploy ignition/modules/marketplace.js --network $HARDHAT_NETWORK", - "predeploy": "hardhat run scripts/mine.js --network localhost", + "deploy:reset": "hardhat ignition deploy ignition/modules/marketplace.js --network $HARDHAT_NETWORK --reset", + "mine": "hardhat run scripts/mine.js --network localhost", "verify": "npm run verify:marketplace && npm run verify:state_changes", "verify:marketplace": "certoraRun certora/confs/Marketplace.conf", "verify:state_changes": "certoraRun certora/confs/StateChanges.conf",