Set mine script for localhost deployment only and add deploy reset command

This commit is contained in:
Arnaud 2025-05-23 11:22:57 +02:00
parent af3338e754
commit e4ae6f0012
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -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",