Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

nftprofiles state

Back to all declarations

MaxDisplayNameLen

untyped bigint

MaxDisplayNameLen and MaxAvatarURILen keep storage costs bounded and prevent this from being used as generic blob storage.

Value

(32 <untyped> bigint)

MaxAvatarURILen

untyped bigint

MaxDisplayNameLen and MaxAvatarURILen keep storage costs bounded and prevent this from being used as generic blob storage.

Value

(256 <untyped> bigint)

Profile

type

Profile is one address's self-set profile.

Value

nftprofiles.Profile

ProfileInfo

type

ProfileInfo is the exported, read-only view of a Profile.

Value

nftprofiles.ProfileInfo

profiles

*v0.Tree

// address.String() -> \*Profile

Open
OID
04f6d6…972b:4
profiles details

Inspect pointer

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).

Open
OID
04f6d6…972b:6
SetProfile details

Inspect func

GetProfile

func(addr .uverse.address) nftprofiles.ProfileInfo

GetProfile 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".

Open
OID
04f6d6…972b:8
GetProfile details

Inspect func

Render

func(path string) string

Render 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).

Open
OID
04f6d6…972b:9
Render details

Inspect func

toInfo

func(p *nftprofiles.Profile) nftprofiles.ProfileInfo
Open
OID
04f6d6…972b:10
toInfo details

Inspect func
MaxDisplayNameLen : untyped bigint =(32 <untyped> bigint)
MaxAvatarURILen : untyped bigint =(256 <untyped> bigint)
Profile : type =nftprofiles.Profile
ProfileInfo : type =nftprofiles.ProfileInfo
profiles : *v0.Tree Inspect
SetProfile : func(displayName string, avatarURI string) Inspect
GetProfile : func(addr .uverse.address) nftprofiles.ProfileInfo Inspect
Render : func(path string) string Inspect
toInfo : func(p *nftprofiles.Profile) nftprofiles.ProfileInfo Inspect