MaxDisplayNameLen
untyped bigintMaxDisplayNameLen and MaxAvatarURILen keep storage costs bounded and prevent this from being used as generic blob storage.
Value
(32 <untyped> bigint)
MaxAvatarURILen
untyped bigintMaxDisplayNameLen and MaxAvatarURILen keep storage costs bounded and prevent this from being used as generic blob storage.
Value
(256 <untyped> bigint)
Profile
typeProfile is one address's self-set profile.
Value
nftprofiles.Profile
ProfileInfo
typeProfileInfo is the exported, read-only view of a Profile.
Value
nftprofiles.ProfileInfo
profiles
*v0.Tree// address.String() -> \*Profile
- OID
- 04f6d6…972b:4
profiles details
SetProfile
func(displayName string, avatarURI string)SetProfile sets (or updates) the caller's own display name and/or avatar URI. Pass an empty string for either field to clear just that field while keeping the other. Calling with both empty removes the profile entirely (reverting the address to the frontend's generated fallback avatar).
- OID
- 04f6d6…972b:6
SetProfile details
GetProfile
func(addr .uverse.address) nftprofiles.ProfileInfoGetProfile returns the profile for an address, or a zero-value ProfileInfo (empty DisplayName/AvatarURI, UpdatedAt == 0) if none was ever set — callers should treat that as "use the generated fallback".
- OID
- 04f6d6…972b:8
GetProfile details
Render
func(path string) stringRender implements the gno.land realm home-page convention. Path, if given, is the bech32 address to look up (mirrors the other realms' single-path-segment convention).
- OID
- 04f6d6…972b:9
Render details
toInfo
func(p *nftprofiles.Profile) nftprofiles.ProfileInfo- OID
- 04f6d6…972b:10