This Hardhat project is part of a Master's thesis on implementing blockchain technology for real estate transactions in Nigeria. It contains smart contracts, tests, and deployment scripts for a system designed to enhance transparency, reduce fraud, and streamline property transactions.
/contracts
: Contains Solidity smart contractsNigeriaGovernment.sol
: Main contract for property registration and government oversightProperty.sol
: Contract representing individual propertiesNGNToken.sol
: ERC20 token contract for transaction payments
/scripts
: Deployment and interaction scripts/test
: Unit and integration tests for smart contracts
- Clone the repository
- Install dependencies:
npm install
- Compile contracts:
npx hardhat compile
- Run tests:
npx hardhat test
- Deploy to local network:
npx hardhat run scripts/deploy.js
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts
The contracts are deployed on the Sepolia testnet:
- NGNToken:
0xBcccFFe91e3e9fC289ce6179A8BBF4b351579233
- NigeriaGovernment:
0x02f5F8b77aaEd3C3D96425C29058c1aefC8d3eE2
- SampleProperty1:
0xAaa6c2C33a9A35b26746f8561cF8DfD6541DdEe7
Rikome S. EREZI
This project is licensed under the MIT License.