{"id":17105108,"url":"https://github.com/amanusk/hardhat-template","last_synced_at":"2025-09-01T00:47:35.400Z","repository":{"id":42916635,"uuid":"321941623","full_name":"amanusk/hardhat-template","owner":"amanusk","description":"Template to build smart contract with hardhat + typescript + ethers","archived":false,"fork":false,"pushed_at":"2022-12-27T09:28:36.000Z","size":136,"stargazers_count":114,"open_issues_count":5,"forks_count":53,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T01:13:07.321Z","etag":null,"topics":["blockchain","ethereum","hardhat","solidity","typechain"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/amanusk.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}},"created_at":"2020-12-16T10:06:30.000Z","updated_at":"2025-01-10T20:40:54.000Z","dependencies_parsed_at":"2023-01-31T03:01:10.006Z","dependency_job_id":null,"html_url":"https://github.com/amanusk/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/amanusk%2Fhardhat-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amanusk%2Fhardhat-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amanusk%2Fhardhat-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amanusk%2Fhardhat-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amanusk","download_url":"https://codeload.github.com/amanusk/hardhat-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650754,"owners_count":21139681,"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":["blockchain","ethereum","hardhat","solidity","typechain"],"created_at":"2024-10-14T15:41:00.855Z","updated_at":"2025-04-13T01:13:12.509Z","avatar_url":"https://github.com/amanusk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solidity Template\n\nThis is a basic hardhat template to get you started writing and compiling contract.\nThe template is configured with some sensible defaults but tries to stay minimal.\nIt comes with most sensible plugins already installed via the suggested `hardhat-toolbox`.\n\n- [Hardhat](https://github.com/nomiclabs/hardhat): compile and run the smart contracts on a local development network\n- [TypeChain](https://github.com/ethereum-ts/TypeChain): generate TypeScript types for smart contracts\n- [Ethers](https://github.com/ethers-io/ethers.js/): renowned Ethereum library and wallet implementation\n\nUse the template by clicking the \"Use this template\" button at the top of the page.\n\n## Usage\n\n### Pre Requisites\n\nBefore running any command, make sure to install dependencies:\n\n```sh\nyarn install\n```\n\n### Compile\n\nCompile the smart contracts with Hardhat:\n\n```sh\nyarn compile\n```\n\n### Test\n\nRun the tests:\n\n```sh\nyarn test\n```\n\n#### Test gas costs\n\nTo get a report of gas costs, set env `REPORT_GAS` to true\n\nTo take a snapshot of the contract's gas costs\n\n```sh\nyarn test:gas\n```\n\n### Deploy contract to network (requires Mnemonic and Infura API key)\n\n```\nnpx hardhat run --network goerli ./scripts/deploy.ts\n```\n\n### Validate a contract with etherscan (requires API key)\n\n```\nnpx hardhat verify --network \u003cnetwork\u003e \u003cDEPLOYED_CONTRACT_ADDRESS\u003e \"Constructor argument 1\"\n```\n\n## Thanks\n\nIf you like it than you shoulda put a start ⭐ on it\n\nTwitter: [@amanusk\\_](https://twitter.com/amanusk_)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanusk%2Fhardhat-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famanusk%2Fhardhat-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanusk%2Fhardhat-template/lists"}