{"id":27000069,"url":"https://github.com/arec1b0/fortifysol","last_synced_at":"2026-04-21T10:06:14.747Z","repository":{"id":266998535,"uuid":"899985101","full_name":"arec1b0/FortifySol","owner":"arec1b0","description":"FortifySol: A flexible open-source Solidity template providing secure, upgradeable, and governance-ready contracts. Ideal for small prototypes or complex productions, it’s an all-in-one starting point for your decentralized applications.","archived":false,"fork":false,"pushed_at":"2024-12-07T15:41:23.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T23:33:59.574Z","etag":null,"topics":["dapps-development","harhat","smart-contracts","solidity","solidity-contracts"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arec1b0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-07T14:57:07.000Z","updated_at":"2024-12-07T15:42:51.000Z","dependencies_parsed_at":"2024-12-07T16:17:15.630Z","dependency_job_id":"fc4c518e-1a0d-4579-a918-9ad53533e229","html_url":"https://github.com/arec1b0/FortifySol","commit_stats":null,"previous_names":["dkrizhanovskyi/fortifysol","arec1b0/fortifysol"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2FFortifySol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2FFortifySol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2FFortifySol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arec1b0%2FFortifySol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arec1b0","download_url":"https://codeload.github.com/arec1b0/FortifySol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247112846,"owners_count":20885616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapps-development","harhat","smart-contracts","solidity","solidity-contracts"],"created_at":"2025-04-04T03:18:42.468Z","updated_at":"2025-10-10T18:32:16.432Z","avatar_url":"https://github.com/arec1b0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FortifySol\n\n**FortifySol** is a flexible, open-source Solidity template designed to help you build secure, upgradeable, and governance-ready smart contract systems. Whether you’re prototyping a single contract or orchestrating a complex decentralized application (dApp), FortifySol serves as a robust starting point, offering a collection of well-structured contracts, best practices, and supporting scripts.\n\n## Key Features\n\n- **Modular Architecture:** A well-organized folder structure with dedicated directories for access control, security, upgrades, tokens, and utility libraries.\n- **Security-Focused:** Implements role-based access control, timelock controllers, multi-signature wallets, escrow, pausability, and reentrancy guards—all inspired by industry standards and official Solidity security recommendations.\n- **Upgradeable Contracts:** Includes a proxy pattern (EIP-1967/EIP-1822 compatible) and upgradeable logic contracts for future-proofing your code.\n- **Governance-Ready:** Offers a governance token template and integration with timelocks and multi-sig wallets to support community-driven decision-making.\n- **Comprehensive Tooling:** Uses Hardhat, Mocha/Chai tests, and optional plugins for coverage, gas reporting, linting, and static analysis to ensure code quality and reliability.\n- **Open-Source \u0026 Extensible:** Provided under the MIT License, with documentation and contribution guidelines encouraging community involvement.\n\n## Project Structure\n\n```\nFortifySol/\n├── contracts/\n│   ├── access/\n│   │   └── RoleManager.sol\n│   ├── security/\n│   │   ├── MultiSigWallet.sol\n│   │   ├── TimeLockController.sol\n│   │   └── SafeEscrow.sol\n│   ├── upgrades/\n│   │   ├── UpgradeableProxy.sol\n│   │   └── MyUpgradableLogic.sol\n│   ├── tokens/\n│   │   └── GovernanceToken.sol\n│   ├── utilities/\n│   │   ├── ReentrancyGuarded.sol\n│   │   └── SafeIncrement.sol\n│   ├── PausableContract.sol\n│   └── Vault.sol\n├── test/\n│   ├── test_RoleManager.js\n│   ├── test_MultiSigWallet.js\n│   ├── test_TimeLockController.js\n│   ├── test_SafeEscrow.js\n│   ├── test_UpgradeableProxy.js\n│   ├── test_GovernanceToken.js\n│   ├── test_PausableContract.js\n│   └── test_Vault.js\n├── scripts/\n│   ├── deploy_all.js\n│   ├── deploy_upgradeable.js\n│   └── verify_all.js\n├── docs/\n│   ├── Architecture.md\n│   ├── CONTRIBUTING.md\n│   └── README.md (You are here)\n├── .github/\n│   └── workflows/\n│       └── ci.yml\n├── .gitignore\n├── LICENSE\n├── hardhat.config.js\n└── package.json\n```\n\n## Getting Started\n\n1. **Install Dependencies:**\n   ```bash\n   npm install\n   ```\n\n2. **Compile Contracts:**\n   ```bash\n   npx hardhat compile\n   ```\n\n3. **Run Tests:**\n   ```bash\n   npx hardhat test\n   ```\n\n4. **Local Deployment:**\n   ```bash\n   npx hardhat run scripts/deploy_all.js\n   ```\n\n5. **Public Testnet Deployment \u0026 Verification (e.g., Goerli):**\n   - Configure your `.env` with private keys and API keys.\n   - Deploy:\n     ```bash\n     npx hardhat run scripts/deploy_all.js --network goerli\n     ```\n   - Verify:\n     ```bash\n     npx hardhat run scripts/verify_all.js --network goerli\n     ```\n\n## Customization \u0026 Scalability\n\n- Start small: Use just the `Vault.sol` or `PausableContract.sol` for quick proofs-of-concept.\n- Scale up: Integrate the `TimeLockController`, `MultiSigWallet`, and governance mechanisms for production-ready solutions.\n- Extend functionality: Add your own contracts, interfaces, or libraries following the provided structure and best practices.\n\n## Security \u0026 Best Practices\n\n- **Static Analysis \u0026 Audits:** Use tools like `solhint`, `slither`, and `mythril` to detect potential issues early.\n- **Gas Optimization:** Consider integrating `hardhat-gas-reporter` and follow Solidity gas-saving guidelines.\n- **Test Thoroughly:** Expand tests for edge cases, fuzzing inputs, and integrating differential testing techniques if needed.\n- **Review Access Controls:** Regularly audit roles, permissions, and upgrade paths to ensure minimal trust assumptions.\n\n## Contributing\n\nWe welcome contributions! Please review [CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidance on reporting issues, submitting pull requests, and following coding standards.\n\n## License\n\nFortifySol is released under the [MIT License](LICENSE).\n\n## Further Reading\n\n- **Official Solidity Documentation:**  \n  [https://docs.soliditylang.org](https://docs.soliditylang.org)\n- **Hardhat Documentation:**  \n  [https://hardhat.org](https://hardhat.org)\n- **OpenZeppelin Contracts:**  \n  [https://docs.openzeppelin.com/contracts](https://docs.openzeppelin.com/contracts)\n\nHarness the power of FortifySol to accelerate your decentralized development journey, from quick experimentation to production-scale, security-focused dApps.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farec1b0%2Ffortifysol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farec1b0%2Ffortifysol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farec1b0%2Ffortifysol/lists"}