{"id":22701718,"url":"https://github.com/looksrare/solidity-template","last_synced_at":"2025-06-21T11:07:42.082Z","repository":{"id":38374222,"uuid":"474562853","full_name":"LooksRare/solidity-template","owner":"LooksRare","description":"Template for Solidity smart contracts with Forge and Hardhat","archived":false,"fork":false,"pushed_at":"2024-09-21T07:25:04.000Z","size":2208,"stargazers_count":22,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-18T00:43:17.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/LooksRare.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":"2022-03-27T07:12:13.000Z","updated_at":"2024-06-24T07:10:23.000Z","dependencies_parsed_at":"2024-09-26T12:27:03.663Z","dependency_job_id":null,"html_url":"https://github.com/LooksRare/solidity-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/LooksRare/solidity-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LooksRare%2Fsolidity-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LooksRare%2Fsolidity-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LooksRare%2Fsolidity-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LooksRare%2Fsolidity-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LooksRare","download_url":"https://codeload.github.com/LooksRare/solidity-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LooksRare%2Fsolidity-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110612,"owners_count":23111064,"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":[],"created_at":"2024-12-10T07:09:53.505Z","updated_at":"2025-06-21T11:07:37.067Z","avatar_url":"https://github.com/LooksRare.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solidity template\n\nThis is a template for GitHub repos with Solidity smart contracts using Forge and Hardhat. This template is used by the LooksRare team for Solidity-based repos. Feel free to use or get inspired to build your own templates!\n\n## Getting Started\n\nSet an dotenv file with:\n\n```\nFOUNDRY_INVARIANT_FAIL_ON_REVERT=true\n```\n\nthen\n\n```\nyarn install --ignore-scripts\nforge install foundry-rs/forge-std\nforge install dapphub/ds-test\nforge install gelatodigital/vrf-contracts\nFOUNDRY_PROFILE=local forge test\n```\n\n## About this repo\n\n### Structure\n\nIt is a hybrid [Hardhat](https://hardhat.org/) repo that also requires [Foundry](https://book.getfoundry.sh/index.html) to run Solidity tests powered by the [ds-test library](https://github.com/dapphub/ds-test/).\n\n\u003e To install Foundry, please follow the instructions [here](https://book.getfoundry.sh/getting-started/installation.html).\n\n### Run tests\n\n- TypeScript tests are included in the `typescript` folder in the `test` folder at the root of the repo.\n- Solidity tests are included in the `foundry` folder in the `test` folder at the root of the repo.\n\n### Example of Foundry/Forge commands\n\n```shell\nforge build\nforge test\nforge test -vv\nforge tree\n```\n\n### Example of Hardhat commands\n\n```shell\nnpx hardhat accounts\nnpx hardhat compile\nnpx hardhat clean\nnpx hardhat test\nnpx hardhat node\nnpx hardhat help\nREPORT_GAS=true npx hardhat test\nnpx hardhat coverage\nnpx hardhat run scripts/deploy.ts\nTS_NODE_FILES=true npx ts-node scripts/deploy.ts\nnpx eslint '**/*.{js,ts}'\nnpx eslint '**/*.{js,ts}' --fix\nnpx prettier '**/*.{json,sol,md}' --check\nnpx prettier '**/*.{json,sol,md}' --write\nnpx solhint 'contracts/**/*.sol'\nnpx solhint 'contracts/**/*.sol' --fix\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooksrare%2Fsolidity-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flooksrare%2Fsolidity-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooksrare%2Fsolidity-template/lists"}