{"id":18017805,"url":"https://github.com/assafmo/my-fhenix-example","last_synced_at":"2025-04-04T15:43:12.575Z","repository":{"id":232811863,"uuid":"757374817","full_name":"assafmo/my-fhenix-example","owner":"assafmo","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-14T11:16:10.000Z","size":241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T01:37:48.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/assafmo.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":"2024-02-14T11:16:08.000Z","updated_at":"2024-02-14T11:16:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"e581ec29-50d7-4823-a2e7-fa539e793d7c","html_url":"https://github.com/assafmo/my-fhenix-example","commit_stats":null,"previous_names":["assafmo/my-fhenix-example"],"tags_count":0,"template":false,"template_full_name":"FhenixProtocol/fhenix-hardhat-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2Fmy-fhenix-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2Fmy-fhenix-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2Fmy-fhenix-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2Fmy-fhenix-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assafmo","download_url":"https://codeload.github.com/assafmo/my-fhenix-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208018,"owners_count":20901568,"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":[],"created_at":"2024-10-30T04:24:27.190Z","updated_at":"2025-04-04T15:43:12.555Z","avatar_url":"https://github.com/assafmo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fhenix Hardhat Example [![Open in Gitpod][gitpod-badge]][gitpod]\n\n[gitpod]: https://gitpod.io/#https://github.com/fhenixprotocol/fhenix-hardhat-example\n[gitpod-badge]: https://img.shields.io/badge/Gitpod-Open%20in%20Gitpod-FFB45B?logo=gitpod\n\nThis repository contains a sample project that you can use as the starting point\nfor your Fhenix project. It's also a great fit for learning the basics of\nFhenix smart contract development.\n\nThis project is intended to be used with the\n[Fhenix Hardhat Beginners Tutorial](TODO), but you should be\nable to follow it by yourself by reading the README and exploring its\n`contracts`, `tests`, `deploy` and `tasks` directories.\n\nIt comes with two fhenix-specific hardhat plugins:\n\n- `fhenix-hardhat-plugin`: The main plugin for fhenix development in hardhat. It injects `fhenixjs` into the hardhat runtime environment, which allows you to interact with encrypted data in your tests and tasks.\n- `fhenix-hardhat-docker`: A plugin that allows you to run a local Fhenix testnet in a docker container. This is useful for testing your contracts in a sandbox before deploying them on a testnet or on mainnet.\n\n## Quick start\n\nThe first things you need to do are cloning this repository and installing its dependencies:\n\n```sh\ngit clone https://github.com/FhenixProtocol/fhenix-hardhat-example.git\ncd fhenix-hardhat-example\npnpm install\n```\n\nOnce installed, let's run a LocalFhenix instance:\n\n```sh\npnpm localfhenix:start\n```\n\nThis will start a LocalFhenix instance in a docker container. If this worked you should see a `Started LocalFhenix successfully` message in your console.\n\nIf not, please make sure you have `docker` installed and running on your machine. You can find instructions on how to install docker [here](https://docs.docker.com/get-docker/).\n\nNow that we have a LocalFhenix instance running, we can deploy our contracts to it:\n\n```sh\nnpx hardhat deploy\n```\n\nNote that this template defaults to use the `localfhenix` network, which is injected into the hardhat configuration.\n\nFinally, we can run the tasks with:\n\n```sh\npnpm task:getCount # =\u003e 0\npnpm task:addCount\npnpm task:getCount # =\u003e 1\npnpm task:addCount --amount 5\npnpm task:getCount # =\u003e 6\n```\n\nTODO: frontend\n\n## More Info\n\nTo learn more about the Fhenix Hardhat plugin, check out the [Fhenix Hardhat Plugin Repository](https://github.com/FhenixProtocol/fhenix-hardhat-plugin).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassafmo%2Fmy-fhenix-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassafmo%2Fmy-fhenix-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassafmo%2Fmy-fhenix-example/lists"}