# Base Contract Repo
Minimal starter Solidity contract for projects. Files:
- `contracts/BaseContract.sol` - A compact base contract with ownership, pausability, and reentrancy guard.
- `LICENSE` - MIT license.
- `.gitignore` - Node/Hardhat common ignores.
## How to use
1. Create a new GitHub repository.
2. Copy the files from this repo into the repository.
3. Initialize a Hardhat project locally (recommended):
```bash
npm init -y
npm install --save-dev hardhat
npx hardhat # create an empty hardhat project- Add
contracts/BaseContract.solto thecontracts/folder. - Compile:
npx hardhat compile- Write tests or deployment scripts in
test/andscripts/.
- Replace the simple
onlyOwnerwith OpenZeppelin'sOwnableif you prefer battle-tested code. - Use OpenZeppelin
ReentrancyGuardandPausablefor standardized behaviour. - Add NatSpec comments for all public/external functions.
- For upgradeable contracts, consider OpenZeppelin upgradeable patterns.
MIT