{"id":21349134,"url":"https://github.com/halink0803/fhenix-try-out","last_synced_at":"2025-03-16T04:23:49.306Z","repository":{"id":251073952,"uuid":"806655307","full_name":"halink0803/fhenix-try-out","owner":"halink0803","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-07T04:38:16.000Z","size":267,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T16:49:54.386Z","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/halink0803.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-05-27T16:08:10.000Z","updated_at":"2024-08-07T04:38:19.000Z","dependencies_parsed_at":"2024-08-07T08:10:22.903Z","dependency_job_id":null,"html_url":"https://github.com/halink0803/fhenix-try-out","commit_stats":null,"previous_names":["halink0803/fhenix-try-out"],"tags_count":0,"template":false,"template_full_name":"FhenixProtocol/fhenix-hardhat-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halink0803%2Ffhenix-try-out","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halink0803%2Ffhenix-try-out/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halink0803%2Ffhenix-try-out/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halink0803%2Ffhenix-try-out/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halink0803","download_url":"https://codeload.github.com/halink0803/fhenix-try-out/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243824040,"owners_count":20353780,"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-11-22T02:42:37.293Z","updated_at":"2025-03-16T04:23:49.289Z","avatar_url":"https://github.com/halink0803.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%2Fhalink0803%2Ffhenix-try-out","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalink0803%2Ffhenix-try-out","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalink0803%2Ffhenix-try-out/lists"}