{"id":28524698,"url":"https://github.com/julienbrg/affix-contracts","last_synced_at":"2026-05-09T16:47:50.533Z","repository":{"id":297419552,"uuid":"996694552","full_name":"julienbrg/affix-contracts","owner":"julienbrg","description":"Affix your digital seal and let the world verify it","archived":false,"fork":false,"pushed_at":"2025-07-04T13:29:23.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T14:54:10.683Z","etag":null,"topics":["filecoin","foundry","ipfs"],"latest_commit_sha":null,"homepage":"https://affix.vercel.app/","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julienbrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2025-06-05T10:19:05.000Z","updated_at":"2025-07-04T13:37:59.000Z","dependencies_parsed_at":"2025-07-04T14:54:14.835Z","dependency_job_id":"d79cbacf-4d74-487c-8dc6-6c3d4c2250c1","html_url":"https://github.com/julienbrg/affix-contracts","commit_stats":null,"previous_names":["julienbrg/veridocs-contracts","julienbrg/affix-contracts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/julienbrg/affix-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienbrg%2Faffix-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienbrg%2Faffix-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienbrg%2Faffix-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienbrg%2Faffix-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julienbrg","download_url":"https://codeload.github.com/julienbrg/affix-contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienbrg%2Faffix-contracts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263892902,"owners_count":23526182,"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":["filecoin","foundry","ipfs"],"created_at":"2025-06-09T11:10:53.702Z","updated_at":"2025-10-06T01:23:01.728Z","avatar_url":"https://github.com/julienbrg.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Affix Contracts\n\nAffix your onchain seal and let the world verify it.\n\n- UI repo: https://github.com/julienbrg/affix-ui\n- Live demo: https://affix-ui.vercel.app\n\nOrganisations, businesses and individuals can authenticate their documents using Filecoin while keeping their existing\nworkflows intact. Anyone can then instantly verify that documents are genuine and unaltered.\n\n### Install\n\n```bash\n# Clone the repository\ngit clone https://github.com/julienbrg/affix-contracts.git\ncd affix-contracts\n\n# Install dependencies\nbun install\n\n# Build the project\nforge build\n```\n\n## Test\n\nRun the basic test suite:\n\n```bash\nforge test\n```\n\n## Deploy\n\nIn a seperated shell:\n\n```bash\nsupersim fork --chains=op\n```\n\nThen:\n\n```bash\nforge script script/DeployAffixFactory.sol --rpc-url op --broadcast\nforge script script/RegisterEntity.s.sol --rpc-url op --broadcast\nforge script script/AddAgent.s.sol --rpc-url op --broadcast\nforge script script/IssueDocument.s.sol --rpc-url op --broadcast\nforge script script/VerifyDocument.s.sol --rpc-url op --broadcast\n```\n\n## Deploy to OP Mainnet\n\n#### 1. Deploy Factory\n\n```bash\nforge script script/DeployAffixFactory.sol \\\n  --rpc-url optimism \\\n  --broadcast \\\n  --verify\n```\n\n#### 2. Update Factory Address\n\nAfter successful factory deployment, update the factory address in `script/RegisterEntity.s.sol`:\n\n```solidity\n// Update this line with your deployed factory address\naddress constant AFFIX_FACTORY_ADDRESS = \u003cNEW_FACTORY_ADDRESS\u003e;\n```\n\n#### 3. Register Entity\n\n```bash\nforge script script/RegisterEntity.s.sol \\\n  --rpc-url optimism \\\n  --broadcast \\\n  --verify\n```\n\n#### 4. Add Agents (Optional)\n\n```bash\nforge script script/AddAgent.s.sol \\\n  --rpc-url optimism \\\n  --broadcast\n```\n\n#### 5. Issue Documents\n\n```bash\nforge script script/IssueDocument.s.sol \\\n  --rpc-url optimism \\\n  --broadcast\n```\n\n## Support\n\nFeel free to reach out to [Julien](https://github.com/julienbrg) on [Farcaster](https://warpcast.com/julien-),\n[Element](https://matrix.to/#/@julienbrg:matrix.org),\n[Status](https://status.app/u/iwSACggKBkp1bGllbgM=#zQ3shmh1sbvE6qrGotuyNQB22XU5jTrZ2HFC8bA56d5kTS2fy),\n[Telegram](https://t.me/julienbrg), [Twitter](https://twitter.com/julienbrg),\n[Discord](https://discordapp.com/users/julienbrg), or [LinkedIn](https://www.linkedin.com/in/julienberanger/).\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0.\n\n\u003cimg src=\"https://bafkreid5xwxz4bed67bxb2wjmwsec4uhlcjviwy7pkzwoyu5oesjd3sp64.ipfs.w3s.link\" alt=\"built-with-ethereum-w3hc\" width=\"100\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienbrg%2Faffix-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienbrg%2Faffix-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienbrg%2Faffix-contracts/lists"}