Rubyscore_Profile
Rubyscore_Profile is an SBT ERC721-based smart contract for claiming and managing user names. Users can claim unique names represented by ERC721 tokens.
OPERATOR_ROLE
getIdByName
See {IRubyscore_Profile}
getBaseURI
See {IRubyscore_Profile}
getBaseExtension
See {IRubyscore_Profile}
checkName
See {IRubyscore_Profile}
getPremiumPrice
See {IRubyscore_Profile}
getPremiumStatus
See {IRubyscore_Profile}
getOwnerByName
See {IRubyscore_Profile}
getNameByOwner
See {IRubyscore_Profile}
getNameById
See {IRubyscore_Profile}
getIdByOwner
See {IRubyscore_Profile}
tokenURI
See {IRubyscore_Profile}
hasName
See {IRubyscore_Profile}
supportsInterface
See {IRubyscore_Profile}
constructor
Constructor to initialize the contract with admin and operator addresses.
Parameters
updateBaseURI
See {IRubyscore_Profile}
updateBaseExtension
See {IRubyscore_Profile}
updatePremiumPrice
See {IRubyscore_Profile}
claimName
See {IRubyscore_Profile}
withdraw
See {IRubyscore_Profile}
_transfer
Internal ERC721 transfer function override to prevent external transfers.
from The address to transfer from. to The address to transfer to. tokenId The ID of the token being transferred.
_convertNameToId
Converts a name string to a unique identifier (ID).
Parameters
Return Values
_convertStringToUint256
Converts a string to a unique uint256 value.
Parameters
Return Values
_normalizeName
Normalizes a given name string by converting it to lowercase and validating its length and characters.
Parameters
Return Values
_checkValidCharacters
Checks if a given character is valid within a name.
Parameters
Return Values
strLength
Returns the length of a given string
Parameters
Return Values
Last updated