537 B
537 B
Smart Contract Service
Configuration
Go to services/smartcontract directory
Instalation dependencies
npm install
Run project
Compile
npx hardhat compile
Copy abi in artifacts/contracts/ProjectToken.sol/ProjectToken.json to contractABI.json in services/backend directory
Run localhost network hardhat (network blockchain for development)
npx hardhat node
Open new terminal
Deploy
npx hardhat ignition deploy ./ignition/modules/Deploy.ts --network localhost