{"id":21820140,"url":"https://github.com/5afe/safe-yul","last_synced_at":"2026-05-16T12:33:49.109Z","repository":{"id":229607475,"uuid":"777159651","full_name":"5afe/safe-yul","owner":"5afe","description":"Proof of Concept Implementation of the Safe Smart Account in Pure Yul","archived":false,"fork":false,"pushed_at":"2024-04-12T17:25:52.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T08:32:57.809Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5afe.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":"2024-03-25T10:17:19.000Z","updated_at":"2024-03-25T10:17:36.000Z","dependencies_parsed_at":"2024-11-27T16:35:20.753Z","dependency_job_id":"ceed9abb-2331-4d5b-b3dc-bc1b4756969b","html_url":"https://github.com/5afe/safe-yul","commit_stats":null,"previous_names":["5afe/safe-yul"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/5afe/safe-yul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-yul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-yul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-yul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-yul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5afe","download_url":"https://codeload.github.com/5afe/safe-yul/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5afe%2Fsafe-yul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33102884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-27T16:28:48.225Z","updated_at":"2026-05-16T12:33:49.093Z","avatar_url":"https://github.com/5afe.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safe Smart Accout Implemented in Yul\n\n## Functional Differences\n\nWhile this implementation strives to be a pure port, there are a couple\nfunctional differences with the reference implementation:\n\n- Some view methods are implemented in the fallback handler using simulation\n  techniques (`simulateAndRevert`) instead of in the account itself.\n- Calldata length is not verified in function calls. This is a difference with\n  the Solidity ABI in general, but not a security issue for the account, but may\n  be unexpected if callers make certain (unsafe) assumptions about how contracts\n  react to incorrectly ABI-encoded calls.\n- When the fallback handler is address `0`, we still call it. The output will be\n  the same, but will do an extra unnecessary `CALL`. However, the extra code and\n  gas for checking the handler address is non-zero is not worth it as Safes are\n  almost never configured this way in practice, and when they are, shouldn't be\n  called this way anyway.\n- `getModules` reverts if there are more than the default page size of modules.\n- `simulateAndRevert` is payable. It reverts so funds can't be lost.\n- We always revert with `GS204` on duplicate owners during `setup`. This is\n  ensured by reversing the order in which we build the linked list.\n- `setup` function is `payable`.\n\n## Benchmarks\n\n|                  | Configuration  | EOA   | Yul    | 1.4.1  | 1.5.0  | Gas Improvement | Overhead Improvement |\n| ---------------- | -------------- | ----- | ------ | ------ | ------ | --------------- | -------------------- |\n| Setup            | 1 of 1         | 0     | 163848 | 166349 | 166309 | 1.50%           | 1.50%                |\n|                  | 1 of 1 + guard | -     | 163848 | 166349 | 166309 | 1.50%           | 1.50%                |\n|                  | 2 of 2         | -     | 186756 | 189813 | 189755 | 1.61%           | 1.61%                |\n|                  | 3 of 3         | -     | 209652 | 213265 | 213189 | 1.69%           | 1.69%                |\n|                  | 3 of 5         | -     | 255468 | 260193 | 260081 | 1.82%           | 1.82%                |\n| Ether Transfer   | 1 of 1         | 21000 | 55807  | 58718  | 58706  | 4.96%           | 7.72%                |\n|                  | 1 of 1 + guard | -     | 60558  | 64502  | 64535  | 6.11%           | 9.07%                |\n|                  | 2 of 2         | -     | 62358  | 65796  | 65750  | 5.23%           | 7.67%                |\n|                  | 3 of 3         | -     | 68897  | 72862  | 72819  | 5.44%           | 7.65%                |\n|                  | 3 of 5         | -     | 68909  | 72850  | 72819  | 5.41%           | 7.60%                |\n| ERC20 Transfer   | 1 of 1         | 51800 | 80049  | 82975  | 82975  | 3.53%           | 9.39%                |\n|                  | 1 of 1 + guard | -     | 84845  | 88769  | 88825  | 4.42%           | 10.61%               |\n|                  | 2 of 2         | -     | 86612  | 90029  | 90019  | 3.80%           | 8.94%                |\n|                  | 3 of 3         | -     | 93164  | 97109  | 97089  | 4.06%           | 8.71%                |\n|                  | 3 of 5         | -     | 93164  | 97097  | 97065  | 4.05%           | 8.68%                |\n| ERC1155 Transfer | 1 of 1         | 53707 | 82041  | 84967  | 84967  | 3.44%           | 9.36%                |\n|                  | 1 of 1 + guard | -     | 86874  | 90810  | 90842  | 4.33%           | 10.61%               |\n|                  | 2 of 2         | -     | 88580  | 92034  | 92024  | 3.75%           | 9.01%                |\n|                  | 3 of 3         | -     | 95143  | 99088  | 99068  | 3.98%           | 8.69%                |\n|                  | 3 of 5         | -     | 95143  | 99100  | 99080  | 3.99%           | 8.72%                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5afe%2Fsafe-yul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5afe%2Fsafe-yul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5afe%2Fsafe-yul/lists"}