{"id":13544201,"url":"https://github.com/cygaar/ERC721Stylus","last_synced_at":"2025-04-02T14:30:31.273Z","repository":{"id":197949444,"uuid":"699639153","full_name":"cygaar/ERC721Stylus","owner":"cygaar","description":"Implementation of ERC721 in Rust for Stylus","archived":false,"fork":false,"pushed_at":"2023-10-06T17:08:00.000Z","size":653,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-21T17:11:30.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cygaar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"licenses/Apache-2.0","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-03T03:16:19.000Z","updated_at":"2024-01-24T17:50:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"7faa221a-9e89-4221-8ae7-908b3e617ed0","html_url":"https://github.com/cygaar/ERC721Stylus","commit_stats":null,"previous_names":["cygaar/erc721stylus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cygaar%2FERC721Stylus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cygaar%2FERC721Stylus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cygaar%2FERC721Stylus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cygaar%2FERC721Stylus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cygaar","download_url":"https://codeload.github.com/cygaar/ERC721Stylus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246832077,"owners_count":20841106,"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-08-01T11:00:43.654Z","updated_at":"2025-04-02T14:30:30.970Z","avatar_url":"https://github.com/cygaar.png","language":"Rust","funding_links":[],"categories":["Further examples (created using an older cargo-stylus version and an older stylus-sdk version)"],"sub_categories":["Examples built with cargo-stylus v0.1.x"],"readme":"# ERC721 Stylus\n\nImplementation of ERC721 in Rust for Arbitrum's [Stylus](https://docs.arbitrum.io/stylus/stylus-gentle-introduction).\nMost of the code is based off of the example [here](https://github.com/OffchainLabs/stylus-workshop-nft/blob/main/src/erc712.rs), however there are several differences:\n- Fixed balances bug in the transfer function\n- Fixed receiver check for safeMint and safeTransfer\n- Optimized mint function to be more gas efficient\n- Optimized safeMint function to be more gas efficient\n- mint(address) has been changed to mint(address, tokenId). Same goes for safeMint.\n- totalSupply was removed from the base implementation\n- supportsInterface returns true for IERC721Metadata\n- tokenUri() has been renamed to tokenUR() to match the ERC721 spec\n- Changed internal burn() function to only require a tokenId\n- Refactored code to match the latest Stylus SDK\n\n## Running the code\n\nTo get the contract abi, you can run:\n\n```bash\ncargo stylus export-abi\n```\n\nTo deploy the code you can run (this will use the default Stylus RPC):\n\n```bash\ncargo stylus deploy --private-key=\u003cPRIVATE_KEY\u003e\n```\n\nYou can interact with Stylus contracts as you would any other contract using the exported ABI.\n\nMore info on Stylus can be found [here](https://docs.arbitrum.io/stylus/stylus-quickstart).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygaar%2FERC721Stylus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcygaar%2FERC721Stylus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcygaar%2FERC721Stylus/lists"}