{"id":13766738,"url":"https://github.com/huff-language/huff-examples","last_synced_at":"2025-05-10T22:31:16.926Z","repository":{"id":40977051,"uuid":"498204505","full_name":"huff-language/huff-examples","owner":"huff-language","description":"A collection of commonly used, vigorously tested Huff contracts for learning purposes.","archived":true,"fork":false,"pushed_at":"2023-03-09T13:18:22.000Z","size":1223,"stargazers_count":138,"open_issues_count":2,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-17T02:34:13.942Z","etag":null,"topics":["foundry","huff","huff-lang","solidity"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/huff-language.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}},"created_at":"2022-05-31T05:54:51.000Z","updated_at":"2024-09-14T02:53:58.000Z","dependencies_parsed_at":"2024-02-07T08:52:35.344Z","dependency_job_id":null,"html_url":"https://github.com/huff-language/huff-examples","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/huff-language%2Fhuff-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huff-language%2Fhuff-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huff-language%2Fhuff-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huff-language%2Fhuff-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huff-language","download_url":"https://codeload.github.com/huff-language/huff-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253492529,"owners_count":21916959,"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":["foundry","huff","huff-lang","solidity"],"created_at":"2024-08-03T16:01:00.236Z","updated_at":"2025-05-10T22:31:16.458Z","avatar_url":"https://github.com/huff-language.png","language":"Solidity","readme":"\u003cimg align=\"right\" width=\"150\" height=\"150\" top=\"100\" src=\"./assets/tests.png\"\u003e\n\n# huff-examples • [![ci](https://github.com/huff-language/huff-examples/actions/workflows/ci.yaml/badge.svg)](https://github.com/huff-language/huff-examples/actions/workflows/ci.yaml) ![license](https://img.shields.io/github/license/huff-language/huff-examples.svg) ![solidity](https://img.shields.io/badge/solidity-^0.8.15-lightgrey)\n\nRigorously Tested, Demonstrative Huff Contracts Built with [Huffmate](https://github.com/pentagonxyz/huffmate).\n\n\u003e **Warning**\n\u003e\n\u003e These contracts are **unaudited** and are not recommended for use in production.\n\u003e\n\u003e Although contracts have been rigorously reviewed, this is **experimental software** and is provided on an \"as is\" and \"as available\" basis.\n\u003e We **do not give any warranties** and **will not be liable for any loss** incurred through any use of this codebase.\n\n\n### Pre-requisites\n\nMake sure you've installed the Huff Compiler as outlined in the [Huff Docs](https://docs.huff.sh/get-started/installing/).\n\nTL;DR: `curl -L get.huff.sh | bash \u0026\u0026 huffup`\n\nTo verify your installation, run `huffc --help`. This should print a list of available commands for the huff compiler cli.\n\n\n### Setup\n\nTo simplify the developer experience, Huff Language contributors created [foundry-huff](https://github.com/huff-language/foundry-huff), a foundry library written in solidity. This allows you to test your Huff contracts in solidity and to utilize the [Foundry](https://github.com/foundry-rs/foundry) stack for an ever-growing array of tooling.\n\nTo install dependencies, run:\n\n```sh\nforge install\n```\n\nTo run tests, run:\n\n```sh\nforge test\n```\n\nYou can also update dependencies with `forge update` and format with `forge lint`.\n\n_NOTE: These commands require [Foundry](https://foundry.sh) to be installed. You can install it with `curl -L https://foundry.paradigm.xyz | bash`._\n\n\n### Contracts\n\n```\nsrc\n├─ ERC20 — \"Mintable and Burnable ERC20 + EIP-2612 implementation\"\n└─ ERC721 — \"Mintable ERC721 implementation\"\n```\n\n\n### Acknowledgements\n\nThese contracts were enabled by the following beautiful OSS libraries and tooling:\n\n- [huffmate](https://github.com/pentagonxyz/huffmate)\n- [solmate](https://github.com/transmissions11/solmate)\n- [foundry](https://github.com/foundry-rs/foundry)\n- [foundry-huff](https://github.com/huff-language/foundry-huff)\n","funding_links":[],"categories":["Official huff-language Github repo"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuff-language%2Fhuff-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuff-language%2Fhuff-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuff-language%2Fhuff-examples/lists"}