{"id":13803540,"url":"https://github.com/0xSpaceShard/starknet-hardhat-example","last_synced_at":"2025-05-13T16:32:06.714Z","repository":{"id":37096540,"uuid":"409522711","full_name":"0xSpaceShard/starknet-hardhat-example","owner":"0xSpaceShard","description":"Examples of how Starknet Hardhat plugin can be used.","archived":false,"fork":false,"pushed_at":"2024-10-15T05:21:50.000Z","size":2132,"stargazers_count":90,"open_issues_count":11,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-18T20:48:36.180Z","etag":null,"topics":["example-project","hardhat","plugin","starknet","starkware"],"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/0xSpaceShard.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":"2021-09-23T09:09:56.000Z","updated_at":"2024-08-20T18:42:31.000Z","dependencies_parsed_at":"2023-11-27T10:34:15.371Z","dependency_job_id":"f5c70be7-e85f-4c98-ae9d-f2545a7b3e0a","html_url":"https://github.com/0xSpaceShard/starknet-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/0xSpaceShard%2Fstarknet-hardhat-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSpaceShard%2Fstarknet-hardhat-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSpaceShard%2Fstarknet-hardhat-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSpaceShard%2Fstarknet-hardhat-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xSpaceShard","download_url":"https://codeload.github.com/0xSpaceShard/starknet-hardhat-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981876,"owners_count":21994350,"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":["example-project","hardhat","plugin","starknet","starkware"],"created_at":"2024-08-04T01:00:35.047Z","updated_at":"2025-05-13T16:32:03.190Z","avatar_url":"https://github.com/0xSpaceShard.png","language":"TypeScript","funding_links":[],"categories":["Additional developer resources"],"sub_categories":[],"readme":"# Basic Sample Hardhat Project - with Starknet Plugin\n\nThis project demonstrates a basic Hardhat project, but with [Starknet plugin](https://github.com/0xSpaceShard/starknet-hardhat-plugin).\n\n## Get started\n\n#### Clone this repo\n\n```\ngit clone git@github.com:0xSpaceShard/starknet-hardhat-example.git\ncd starknet-hardhat-example\n```\n\n#### Install dependencies\n\n```\nnpm ci\n```\n\n#### Compile a contract\n\n```\nnpx hardhat starknet-compile cairo1-contracts/contract1.cairo --single-file\n```\n\n#### Compile a deprecated (Cairo 0) contract\n\n```\nnpx hardhat starknet-compile-deprecated contracts/contract.cairo\n```\n\n### Set up environment variables\n\nSome scripts require environment variables (search for usage of `ensureEnvVar` in the repo). You can define these variables in an `.env` file in the project root.\n\n#### Run a test that interacts with the compiled contract\n\n```\nnpx hardhat test test/quick-test.ts\n```\n\n## Supported `starknet-hardhat-plugin` version\n\n`package.json` is fixed to use the latest `starknet-hardhat-plugin` version this example repository is synced with.\n\n## Troubleshooting\n\nIf you're having issues trying to use this example repo with the Starknet plugin, try running `npm install` or `npm update`, as it may be due to version mismatch in the dependencies.\n\n## Branches\n\n-   `master` - latest stable examples\n-   `plugin` - used for testing by [Starknet Hardhat Plugin](https://github.com/0xSpaceShard/starknet-hardhat-plugin)\n\n### Branch updating (for developers)\n\n-   New PRs and features should be targeted to the `plugin` branch.\n-   After releasing a new plugin version, `master` should ideally be reset (fast forwarded) to `plugin` (less ideally merged).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xSpaceShard%2Fstarknet-hardhat-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xSpaceShard%2Fstarknet-hardhat-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xSpaceShard%2Fstarknet-hardhat-example/lists"}