This contract allows developers to create profiles for different users in their games and dapps. Users can set up their profile by providing a tokenURI, which represents the metadata associated with their profile.
@thirdweb-dev/contracts/base/ERC721Base.sol
base contract, which provides basic ERC721 functionality with royalty support.URISet
event when a profile's tokenURI is set or updated.name
, symbol
, royalty recipient address
, and royalty basis points (BPS)
during deployment.setupProfile
function, providing their desired tokenURI
, to create or update their profile.getTokenId
and getTokenURI
functions to retrieve the token ID and tokenURI associated with a user's profile, respectively._beforeTokenTransfers
function is implemented to enforce this restriction._setTokenURI
function to set or update the tokenURI associated with a profile. Developers should override this function to implement their own logic for setting tokenURIs._startTokenId
function.Apr 30, 2023
Apache-2.0, MIT