{"id":16756445,"url":"https://github.com/jackhamer09/zksync-era-hardhat-example","last_synced_at":"2025-07-13T02:32:01.549Z","repository":{"id":60065765,"uuid":"540866254","full_name":"JackHamer09/zkSync-era-Hardhat-example","owner":"JackHamer09","description":"This is a simple example of how to use zkSync Era with Hardhat. It will help you to deploy your first zkSync smart contracts and interact with them.","archived":false,"fork":false,"pushed_at":"2023-03-24T07:26:13.000Z","size":515,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-14T03:26:06.686Z","etag":null,"topics":["ethereum","harhat","solidity","zksync"],"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/JackHamer09.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":"2022-09-24T14:59:09.000Z","updated_at":"2024-09-19T08:12:52.000Z","dependencies_parsed_at":"2023-01-31T02:01:09.665Z","dependency_job_id":null,"html_url":"https://github.com/JackHamer09/zkSync-era-Hardhat-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHamer09%2FzkSync-era-Hardhat-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHamer09%2FzkSync-era-Hardhat-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHamer09%2FzkSync-era-Hardhat-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackHamer09%2FzkSync-era-Hardhat-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JackHamer09","download_url":"https://codeload.github.com/JackHamer09/zkSync-era-Hardhat-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850275,"owners_count":17534067,"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":["ethereum","harhat","solidity","zksync"],"created_at":"2024-10-13T03:25:55.088Z","updated_at":"2024-11-22T06:07:45.413Z","avatar_url":"https://github.com/JackHamer09.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zkSync Era Hardhat Example\nThis is a simple example of how to use zkSync Era with [Hardhat](https://v2-docs.zksync.io/api/hardhat/getting-started.html). It will help you to deploy your first zkSync smart contracts, interact with them, and automatically verify its source code on [zkSync Era Block Explorer](https://explorer.zksync.io/).\n\n\n## Setup\n1. Install dependencies\n    ```bash\n    npm install\n    ```\n2. Rename or copy file `.env.example` to `.env` and fill in the private key of the account you want to use for deployment.\n\n---\n\n\n## Deploying contracts\n1. Compile contracts\n    ```bash\n    npm run compile\n    ```\n\n2. Deploy contracts:\n  - Greeter - this is a simple contract that allows you to set a greeting message and read it. It will also log SetGreeting event when you set a new greeting message.\n    ```bash\n    npm run deploy greeter.ts\n    ```\n\n  - ERC20 Token - this is a multifile contract that will let you deploy your own custom token to zkSync 2.0.\n    - Fill in the values for your token in `deploy/erc20.ts`\n    - Deploy the contract\n      ```bash\n      npm run deploy erc20.ts\n      ```\n\n---\n\n\n### Useful links\n- [zkSync Era Hardhat Documentation](https://era.zksync.io/docs/api/hardhat/getting-started.html)\n- [zkSync Era Block Explorer](https://explorer.zksync.io/)\n- [zkSync Era Documentation](https://era.zksync.io/docs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhamer09%2Fzksync-era-hardhat-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackhamer09%2Fzksync-era-hardhat-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackhamer09%2Fzksync-era-hardhat-example/lists"}