{"id":21307844,"url":"https://github.com/solidstate-network/hardhat-template","last_synced_at":"2025-07-11T22:32:34.511Z","repository":{"id":44043777,"uuid":"306513080","full_name":"solidstate-network/hardhat-template","owner":"solidstate-network","description":"👷🏽 Template for new Solidity projects built with Hardhat and tested with Chai 🫖","archived":false,"fork":false,"pushed_at":"2024-08-28T12:42:47.000Z","size":900,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-28T14:07:31.759Z","etag":null,"topics":["buidler","eth","ether","ethereum","hardhat","smart-contracts","solidity","waffle","wow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solidstate-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-23T02:49:26.000Z","updated_at":"2024-08-28T12:42:51.000Z","dependencies_parsed_at":"2024-08-28T14:07:35.425Z","dependency_job_id":"de942949-1174-4c84-b6f9-1376a6970a70","html_url":"https://github.com/solidstate-network/hardhat-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fhardhat-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fhardhat-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fhardhat-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidstate-network%2Fhardhat-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidstate-network","download_url":"https://codeload.github.com/solidstate-network/hardhat-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225764072,"owners_count":17520577,"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":["buidler","eth","ether","ethereum","hardhat","smart-contracts","solidity","waffle","wow"],"created_at":"2024-11-21T16:34:36.363Z","updated_at":"2025-07-11T22:32:34.501Z","avatar_url":"https://github.com/solidstate-network.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solidstate Smart Contract Project\n\n\u003e Note: This repository was generated from a template or is the template itself. To set up a new project, set the missing data marked \"TODO\" in `package.json` and remove this notice.\n\nThis project is built with [Solidstate](https://github.com/solidstate-network). See the [solidstate-solidity](https://github.com/solidstate-network/solidstate-solidity) documentation for information about contract integration and testing.\n\n## Development\n\nInstall dependencies via Pnpm:\n\n```bash\npnpm install\n```\n\nSetup Husky to format code on commit:\n\n```bash\npnpm prepare\n```\n\nCompile contracts via Hardhat:\n\n```bash\npnpm hardhat compile\n```\n\nThe Hardhat environment relies on the following environment variables. The `dotenv` package will attempt to read them from the `.env` and `.env.secret` files, if they are present.\n\n| Key                 | Description                                                              |\n| ------------------- | ------------------------------------------------------------------------ |\n| `API_KEY_ETHERSCAN` | [Etherscan](https://etherscan.io//) API key for source code verification |\n| `NODE_URL_MAINNET`  | JSON-RPC node URL for `mainnet` network                                  |\n| `NODE_URL_TESTNET`  | JSON-RPC node URL for `testnet` network                                  |\n| `PKEY_TESTNET`      | private key for test/development use on `testnet` network                |\n| `PKEY_MAINNET`      | private key for production use on `mainnet` network                      |\n| `REPORT_GAS`        | if `true`, a gas report will be generated after running tests            |\n\n### Networks\n\nBy default, Hardhat uses the Hardhat Network in-process. Two additional networks, `mainnet` and `testnet` are available, and their behavior is determined by the configuration of environment variables.\n\n### Testing\n\nTest contracts via Hardhat:\n\n```bash\npnpm hardhat test\n```\n\nActivate gas usage reporting by setting the `REPORT_GAS` environment variable to `\"true\"`:\n\n```bash\nREPORT_GAS=true pnpm hardhat test\n```\n\nGenerate a code coverage report using `solidity-coverage`:\n\n```bash\npnpm hardhat coverage\n```\n\n### Documentation\n\nA static documentation site can be generated using `hardhat-docgen`:\n\n```bash\npnpm hardhat docgen\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstate-network%2Fhardhat-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidstate-network%2Fhardhat-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidstate-network%2Fhardhat-template/lists"}