{"id":28165630,"url":"https://github.com/fireblocks/fireblocks-smart-contracts","last_synced_at":"2025-06-23T18:37:18.932Z","repository":{"id":279720372,"uuid":"894211453","full_name":"fireblocks/fireblocks-smart-contracts","owner":"fireblocks","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T11:17:19.000Z","size":1001,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T12:26:30.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fireblocks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audits/Fireblocks ERC1155 Audit.pdf","citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-26T00:30:06.000Z","updated_at":"2025-06-19T11:14:03.000Z","dependencies_parsed_at":"2025-02-27T03:30:08.424Z","dependency_job_id":"84768743-3ec4-4a52-adaf-d0ae9df1bd19","html_url":"https://github.com/fireblocks/fireblocks-smart-contracts","commit_stats":null,"previous_names":["fireblocks/fireblocks-smart-contracts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fireblocks/fireblocks-smart-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireblocks%2Ffireblocks-smart-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireblocks%2Ffireblocks-smart-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireblocks%2Ffireblocks-smart-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireblocks%2Ffireblocks-smart-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireblocks","download_url":"https://codeload.github.com/fireblocks/fireblocks-smart-contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireblocks%2Ffireblocks-smart-contracts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261534703,"owners_count":23173453,"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":"2025-05-15T12:11:55.316Z","updated_at":"2025-06-23T18:37:18.901Z","avatar_url":"https://github.com/fireblocks.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fireblocks Smart Contracts\n\nWelcome to the Fireblocks Smart Contracts repository. This repository is built using [Hardhat](https://hardhat.org/) and contains the smart contracts that power the **Fireblocks Tokenization** product. These contracts are designed to streamline token creation, management, and utility, integrating seamlessly with the Fireblocks workspace.\n\n---\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Smart Contracts](#smart-contracts)\n  - [ERC20F](#erc20f)\n  - [ERC721F](#erc721f)\n  - [ERC1155F](#erc1155f)\n  - [Allowlist](#allowlist)\n  - [Denylist](#denylist)\n  - [VestingVault](#vestingvault) (⚠️ in audit process)\n  - [UUPS Proxy](#uups-proxy)\n  - [Trusted Forwarder](#trusted-forwarder)\n- [Gasless Variants](#gasless-variants)\n- [Gasless Upgrades](#gasless-upgrades)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Setup](#setup)\n  - [Compile](#compile)\n  - [Verify](#verify)\n\n---\n\n## Overview\n\nThe Fireblocks Smart Contracts repository includes upgradeable templates for issuing and managing fungible, non-fungible, and semi-fungible tokens. These contracts are designed for:\n\n- Tokenizing assets\n- Managing access controls\n- Reducing gas costs\n- Ensuring compatibility with Fireblocks workflows\n\nEach contract uses the [UUPS proxy pattern](https://eips.ethereum.org/EIPS/eip-1822) for upgrades, maintaining state and functionality while enabling improvements over time.\n\n---\n\n## Smart Contracts\n\n### [ERC20F](./contracts/ERC20F.sol)\n\nAn upgradeable ERC-20 token template for:\n\n- Serving as a unit of account\n- Issuing stablecoins or CBDCs\n- Supporting tokenized fundraising\n- Recovering funds from blacklisted accounts\n\n### [ERC721F](./contracts/ERC721F.sol)\n\nAn upgradeable ERC-721 token template for:\n\n- Creating unique NFTs (e.g., collectibles, artwork, in-game items)\n- Tracking token ownership and metadata\n- Reflecting rarity, age, or other attributes\n\n### [ERC1155F](./contracts/ERC1155F.sol)\n\nAn upgradeable ERC-1155 token template for:\n\n- Representing semi-fungible tokens (SFTs)\n- Bundling multiple token types in one contract\n- Reducing deployment costs\n\n### [AllowList](./contracts/library/AccessRegistry/AllowList.sol)\n\nA utility contract for managing access control via an allowlist of approved addresses. Supports:\n\n- Integration with Fireblocks ERC-20F, ERC-721F, and ERC-1155F contracts\n- Shared usage across multiple token contracts\n- Upgradeability via the UUPS proxy pattern\n\n### [DenyList](./contracts/library/AccessRegistry/DenyList.sol)\n\nA utility contract for managing access control via a denylist of restricted addresses. Supports:\n\n- Integration with Fireblocks ERC-20F, ERC-721F, and ERC-1155F contracts\n- Shared usage across multiple token contracts\n- Upgradeability via the UUPS proxy pattern\n\n### [VestingVault](./contracts/vaults/VestingVault.sol)\n\n\u003e [!WARNING]\n\u003e **Audit in Progress**\n\u003e\n\u003e This contract is currently undergoing a security audit and is **not suitable for production use** until the audit is complete.\n\nA non-upgradeable contract for managing token vesting schedules with:\n\n- Multi-period vesting schedules with linear vesting and cliff options\n- Global vesting mode for synchronized schedule starts across all beneficiaries\n- Granular claim/release operations at beneficiary, schedule, or period level\n- Schedule cancellation with pro-rated vesting up to cancellation time\n- Role-based access control with VESTING_ADMIN and FORFEITURE_ADMIN roles\n\n### [UUPS Proxy](./contracts/library/Proxy/Proxy.sol)\n\nProvides upgradeable functionality for all smart contracts using the UUPS proxy pattern, ensuring flexibility and forward compatibility.\n\n### [Trusted Forwarder](./contracts/gasless-contracts/TrustedForwarder.sol)\n\nEnables seamless meta-transactions, supporting off-chain signing and gasless interactions with Fireblocks token contracts.\n\n---\n\n## Gasless Variants\n\nThis repository also includes **gasless versions** via the following contracts:\n\n- [ERC20FGasless](./contracts/gasless-contracts/ERC20FGasless.sol)\n- [ERC721FGasless](./contracts/gasless-contracts/ERC721FGasless.sol)\n- [ERC1155FGasless](./contracts/gasless-contracts/ERC1155FGasless.sol)\n- [AllowlistGasless](./contracts/gasless-contracts/AccessRegistry/AllowListGasless.sol)\n- [DenylistGasless](./contracts/gasless-contracts/AccessRegistry/DenyListGasless.sol)\n\nThese variants use the ERC2771 standard and allow users to perform transactions without requiring them to pay gas fees, enhancing usability and accessibility.\n\n---\n\n## Gasless Upgrades\n\nAdditionally, this repository provides contracts for upgrading from the standard contracts to the gasless variants (If you have already deployed the standard contracts):\n\n- [ERC20FV2](./contracts/gasless-upgrades/ERC20FV2.sol)\n- [ERC721FV2](./contracts/gasless-upgrades/ERC721FV2.sol)\n- [ERC1155FV2](./contracts/gasless-upgrades/ERC1155FV2.sol)\n- [AllowlistV2](./contracts/gasless-upgrades/AccessRegistry/AllowListV2.sol)\n- [DenylistV2](./contracts/gasless-upgrades/AccessRegistry/DenyListV2.sol)\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n1. Install [Node.js](https://nodejs.org/).\n\n### Setup\n\nClone the repository and install dependencies:\n\n```bash\ngit clone https://github.com/fireblocks/fireblocks-smart-contracts.git\ncd fireblocks-smart-contracts\nnpm install\n```\n\n### Compile\n```bash\nnpx hardhat compile\n```\n\n### Verify\nVerify, dont trust. Always make sure your deployed bytecode matches the bytecode in the [artifacts](./artifacts/) directory\n\n## Audits\n\n- [Fireblocks ERC20 Audit](./audits/Fireblocks%20ERC20%20Audit.pdf)\n- [Fireblocks ERC721 Audit](./audits/Fireblocks%20ERC721%20Audit.pdf)\n- [Fireblocks ERC1155 Audit](./audits/Fireblocks%20ERC1155%20Audit.pdf)\n- [Gasless Audit from OpenZeppelin](./audits/Fireblocks%20Gasless%20Contracts%20Audit.pdf)\n\n## Security\n\n- [Security Policy](./SECURITY.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireblocks%2Ffireblocks-smart-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireblocks%2Ffireblocks-smart-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireblocks%2Ffireblocks-smart-contracts/lists"}