{"id":20974311,"url":"https://github.com/thirdweb-example/erc-6551","last_synced_at":"2025-04-12T01:35:45.393Z","repository":{"id":169905753,"uuid":"645994351","full_name":"thirdweb-example/erc-6551","owner":"thirdweb-example","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-30T14:33:12.000Z","size":36,"stargazers_count":13,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T21:15:51.842Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdweb-example.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T00:44:17.000Z","updated_at":"2024-05-06T05:02:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"2df4b204-bf68-4952-b491-14ebea0d9844","html_url":"https://github.com/thirdweb-example/erc-6551","commit_stats":null,"previous_names":["thirdweb-example/erc-6551"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Ferc-6551","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Ferc-6551/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Ferc-6551/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Ferc-6551/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdweb-example","download_url":"https://codeload.github.com/thirdweb-example/erc-6551/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504730,"owners_count":21115198,"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":"2024-11-19T04:27:58.422Z","updated_at":"2025-04-12T01:35:45.373Z","avatar_url":"https://github.com/thirdweb-example.png","language":"Solidity","readme":"## Custom Smart Accounts\n\nUse the [Solidity SDK](https://portal.thirdweb.com/solidity) to create custom ERC-4337 [Smart Wallets](https://portal.thirdweb.com/wallet/smart-wallet) in which the owner of the wallet is tied to the ownership of a specified erc-721 token.\n\n## Getting Started\n\nTo create a custom smart wallet, clone this repo using the [thirdweb CLI](https://portal.thirdweb.com/cli):\n\n```bash\nnpx thirdweb create --contract --template erc-6551\n```\n\n## Building the project \u0026 running tests\n\n_Note: This repository is a [Foundry](https://book.getfoundry.sh/) project, so make sure that [Foundry is installed](https://book.getfoundry.sh/getting-started/installation) locally._\n\nTo make sure that Foundry is up to date and install dependencies, run the following command:\n\n```bash\nfoundryup \u0026\u0026 forge install\n```\n\nOnce the dependencies are installed, tests can be run:\n\n```bash\nforge test\n```\n\n## Deploying Contracts\n\nTo deploy *ANY* contract, with no requirements, use thirdweb Deploy:\n\n```bash\nnpx thirdweb deploy\n```\n\n1. Deploy the implementation contract, `TokenBoundAccount` as this will be needed as a constructor parameter for the factory.\n2. Deploy the factory contract `TokenBoundAccountFactory`\n\nIn both cases, set the `EntryPoint` contract address as `0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789`.\nThis address is the same on all chains it is deployed to.\n\n## Join our Discord!\n\nFor any questions or suggestions, join our discord at [https://discord.gg/thirdweb](https://discord.gg/thirdweb).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Ferc-6551","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdweb-example%2Ferc-6551","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Ferc-6551/lists"}