{"id":18357276,"url":"https://github.com/nethermindeth/hardhat-warp","last_synced_at":"2025-10-17T23:02:55.926Z","repository":{"id":50318287,"uuid":"517548796","full_name":"NethermindEth/hardhat-warp","owner":"NethermindEth","description":"A Hardhat plugin that uses Warp to bring Solidity contracts to StarkNet","archived":false,"fork":false,"pushed_at":"2025-06-20T09:48:12.000Z","size":741,"stargazers_count":19,"open_issues_count":12,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T10:44:38.174Z","etag":null,"topics":["nubia"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NethermindEth.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-07-25T06:42:37.000Z","updated_at":"2024-10-14T12:21:02.000Z","dependencies_parsed_at":"2025-04-06T13:35:44.608Z","dependency_job_id":"68864f04-c9d5-411d-8475-33b151afc4a4","html_url":"https://github.com/NethermindEth/hardhat-warp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NethermindEth/hardhat-warp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NethermindEth%2Fhardhat-warp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NethermindEth%2Fhardhat-warp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NethermindEth%2Fhardhat-warp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NethermindEth%2Fhardhat-warp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NethermindEth","download_url":"https://codeload.github.com/NethermindEth/hardhat-warp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NethermindEth%2Fhardhat-warp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279435384,"owners_count":26169714,"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","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nubia"],"created_at":"2024-11-05T22:13:18.381Z","updated_at":"2025-10-17T23:02:55.878Z","avatar_url":"https://github.com/NethermindEth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hardhat testing integration tool\n\nThe hardhat-warp framework overwrites parts of hardhat so that it uses Warp\nand StarkNet instead of solc and Ethereum.\n\nNOTE: hardhat-warp is in beta and there might be bugs. Please open issues or reach out to\nus on our [discord](https://discord.gg/cPqaZXev7P).\n\n## Template for new project\n\nIf you're setting up a new project you can use [this repository](https://github.com/swapnilraj/hardhat-warp-template) as template.\n\n## Configuring you project\n\nThe project has two peer dependencies which must be used in your hardhat repo.\nThese are `@typechain/hardhat` (over hardhat-typechain) and the latest version\nof `@typechain/ethers-v5` (^10.1.1). Many older projects have old versions of\nthese dependencies already installed. Updating them is simple.\n\nInstall hardhat-warp\n\n```\nyarn add --dev @nethermindeth/harhdhat-warp\n```\n\nYou will need to have python env with an instance of `starknet-devnet`.\nSee instructions for setting up `starknet-devnet`\n[here](https://shard-labs.github.io/starknet-devnet/docs/intro).\n\n```\npython3.9 -m venv venv\nsource venv/bin/activate\npip install starknet-devnet\n```\n\nWe will support\n[starknet-hardhat-plguin](https://github.com/Shard-Labs/starknet-hardhat-plugin)'s\ndockerized devnet and starknet cli soon\n\nIn `hardhat.config.ts` add the import after importing hardhat:\n\n```\nimport '@nethermindeth/hardhat-warp';\n```\n\nThen add the following to run on a local testnet:\n\n```\nstarknet: {\n  network: \"integrated-devnet\",\n}\nnetworks: {\n  integratedDevnet: {\n    url: `http://127.0.0.1:5050`,\n\n    venv: \"\u003cpath/to/venv/with/starknet-devnet\u003e\",\n    args: [\"--seed\", \"0\", \"--timeout\", \"10000\"],\n    stdout: `stdout.log`, // \u003c- logs redirected to log file\n    stderr: \"STDERR\"  // \u003c- logs stderr to the terminal\n  },\n},\n```\n\nInstall the python dependencies of hardhat-warp:\n\n```\nyarn hardhat warp-install\n```\n\nHere's an example configuration from the [UniStark repo](https://github.com/NethermindEth/UniStark/blob/main/hardhat.config.ts#L1).\n\n## Solidity changes\n\nMake the required changes for compatibility with StarkNet, you can checkout\nsome commonly required changes\n[here](https://nethermindeth.github.io/warp/docs/get_around_unsupported_features).\n\n## Using hardhat warp\n\n```\nyarn hardhat test\n```\n\nThe Cairo files are written to the `artifacts` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnethermindeth%2Fhardhat-warp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnethermindeth%2Fhardhat-warp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnethermindeth%2Fhardhat-warp/lists"}