{"id":13759877,"url":"https://github.com/alexroan/chuff","last_synced_at":"2025-05-10T10:30:59.902Z","repository":{"id":54134417,"uuid":"522062474","full_name":"alexroan/chuff","owner":"alexroan","description":"Common Solidity contract patterns, based on OpenZeppelin's contract library, implemented in the Huff language","archived":false,"fork":false,"pushed_at":"2022-08-20T10:12:31.000Z","size":831,"stargazers_count":31,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T13:04:03.520Z","etag":null,"topics":["huff","huff-lang","safemath","solidity"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/alexroan.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}},"created_at":"2022-08-06T21:59:52.000Z","updated_at":"2023-08-20T14:44:49.000Z","dependencies_parsed_at":"2022-08-13T07:10:59.020Z","dependency_job_id":null,"html_url":"https://github.com/alexroan/chuff","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/alexroan%2Fchuff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexroan%2Fchuff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexroan%2Fchuff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexroan%2Fchuff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexroan","download_url":"https://codeload.github.com/alexroan/chuff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224949642,"owners_count":17397204,"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":["huff","huff-lang","safemath","solidity"],"created_at":"2024-08-03T13:01:00.280Z","updated_at":"2024-11-16T17:30:20.750Z","avatar_url":"https://github.com/alexroan.png","language":"Solidity","funding_links":[],"categories":["dApps directory"],"sub_categories":["Smart Contract Tools"],"readme":"# Chuff - Huff Utility Contracts\n\nCommon Solidity contract patterns, based on Openzeppelin's contract library, implemented in the Huff language:\n\n- Access Control: `access/Ownable.huff`\n- Safe Math: `math/SafeMath.huff`\n\nSpoiler: [It's cheap](https://github.com/alexroan/huff-math/blob/master/.gas-snapshot#L1-L2).\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [Getting Started](#getting-started)\n  - [Requirements](#requirements)\n  - [Quickstart](#quickstart)\n  - [Gas Comparison](#gas-comparison)\n  - [Testing](#testing)\n- [Misc](#misc)\n  - [Disclaimer](#disclaimer)\n  - [Contributing](#contributing)\n  - [Resources](#resources)\n  - [Helpful Debugging Resources:](#helpful-debugging-resources)\n\n## Getting Started\n\n### Requirements\n\nPlease install the following:\n\n-   [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)  \n    -   You'll know you've done it right if you can run `git --version`\n-   [Foundry / Foundryup](https://github.com/gakonst/foundry)\n    -   This will install `forge`, `cast`, and `anvil`\n    -   You can test you've installed them right by running `forge --version` and get an output like: `forge 0.2.0 (f016135 2022-07-04T00:15:02.930499Z)`\n    -   To get the latest of each, just run `foundryup`\n-   [Huff Compiler](https://docs.huff.sh/get-started/installing/)\n    -   You'll know you've done it right if you can run `huffc --version` and get an output like: `huffc 0.2.0`\n\n\n### Quickstart\n\n```sh\ngit clone https://github.com/alexroan/huff-math.git\ncd huff-math\nmake\n```\n\n### Gas Comparison\n\nGas comparison tests between the Huff implementation and native Solidity checked math can be found in the [test files](https://github.com/alexroan/huff-math/tree/master/test). The naming convention for these comparisons are:\n\n```\nfunction test\u003cfunction_name\u003eGas[Huff/Solidity]() public {...}\n```\n\nResults can be found in [.gas-snapshot](https://github.com/alexroan/huff-math/blob/master/.gas-snapshot) in the repo root.\n\n\n### Testing\n\n`make test` or `forge test`\n\n## Misc\n\n### Disclaimer\n\n\u003e None of the contacts have been audited, use at your own risk.\n\n### Contributing\n\nContributions are always welcome! Open a PR or an issue!\n\nThank You!\n\n### Resources\n\n-   [Foundry Documentation](https://book.getfoundry.sh/)\n-   [Huff Documentation](https://docs.huff.sh/)\n\n### Helpful Debugging Resources:\n\n- [evm.codes](https://www.evm.codes/)\n- [evm.codes playground](https://www.evm.codes/playground)\n- [Huff VSCode Debugger \u0026 Highlighter](https://github.com/huff-language/vscode-huff)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexroan%2Fchuff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexroan%2Fchuff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexroan%2Fchuff/lists"}