koperasi/services/smartcontract/README.md
2025-08-08 14:12:40 +07:00

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