{"id":17971203,"url":"https://github.com/cairoeth/foundry-fe","last_synced_at":"2025-08-16T18:05:41.068Z","repository":{"id":207844236,"uuid":"719065440","full_name":"cairoeth/foundry-fe","owner":"cairoeth","description":"A plug-and-play Foundry library for compiling, debugging, and working with Fe contracts in Solidity.","archived":false,"fork":false,"pushed_at":"2023-11-18T07:53:33.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T09:04:05.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/cairoeth.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":"2023-11-15T11:28:47.000Z","updated_at":"2023-11-18T06:41:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5ddb14e-48c9-408a-a831-46247fbe19f8","html_url":"https://github.com/cairoeth/foundry-fe","commit_stats":null,"previous_names":["cairoeth/foundry-fe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cairoeth/foundry-fe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cairoeth%2Ffoundry-fe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cairoeth%2Ffoundry-fe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cairoeth%2Ffoundry-fe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cairoeth%2Ffoundry-fe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cairoeth","download_url":"https://codeload.github.com/cairoeth/foundry-fe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cairoeth%2Ffoundry-fe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270749192,"owners_count":24638673,"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-08-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2024-10-29T15:37:20.804Z","updated_at":"2025-08-16T18:05:41.031Z","avatar_url":"https://github.com/cairoeth.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" width=\"400\" height=\"160\" top=\"140\" src=\"./assets/foundry_fe_banner.jpg\"\u003e\n\n\n# Foundry x Fe\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA [Foundry](https://github.com/foundry-rs/foundry) library for working with [Fe](https://github.com/ethereum/fe) contracts.\n\n\n## Installing\n\nFirst, install the [Fe compiler](https://fe-lang.org/docs/user-guide/installation.html) by running:\n```\nbrew install fe-lang/tap/fe\n```\n\nThen, install this library with [forge](https://github.com/foundry-rs/foundry):\n```\nforge install cairoeth/foundry-fe\n```\n\n\n## Usage\n\nThe FeDeployer is a Solidity library that takes a filename and deploys the corresponding Fe contract, returning the address that the bytecode was deployed to. To use it, simply import it into your file by doing:\n\n```js\nimport {FeDeployer} from \"foundry-fe/src/FeDeployer.sol\";\n```\n\nTo compile contracts, you can use `FeDeployer.deploy(string fileName)`, which takes in a single string representing the filename's path relative to the `src` directory. Note that the file ending, i.e. `.fe`, must be omitted.\nHere is an example deployment (where the contract is located in [`src/test/contracts/Number.fe`](./src/test/contracts/Number.fe)):\n\n```solidity\n// SPDX-License-Identifier: Apache-2.0\npragma solidity \u003e=0.7.0 \u003c0.9.0;\n\nimport {FeDeployer} from \"foundry-fe/src/FeDeployer\";\n\ninterface Number {\n  function setNumber(uint256) external;\n  function getNumber() external returns (uint256);\n}\n\ncontract FeDeployerExample {\n  function deploy() public {\n    // Deploy a new instance of src/test/contracts/Number.fe\n    address addr = FeDeployer.deploy(\"test/contracts/Number.fe\", \"Number\");\n\n    // To call a function on the deployed contract, create an interface and wrap the address like so\n    Number number = Number(addr);\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcairoeth%2Ffoundry-fe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcairoeth%2Ffoundry-fe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcairoeth%2Ffoundry-fe/lists"}