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

profile source realm

Package profile stores lightweight user profiles for gnomemepad. Independent of pad versions — upgrade this realm w...

Overview

Package profile stores lightweight user profiles for gnomemepad. Independent of pad versions — upgrade this realm without redeploying markets.

Example
1SetProfile(displayName, bio, uri) — EOA only, per caller address
2GetProfile(addr) → name|bio|uri|updatedHeight

Functions 7

func GetProfile

Action
1func GetProfile(addr string) string
source

GetProfile returns pipe-delimited: name|bio|uri|updatedHeight Empty string if none.

func Init

crossing Action
1func Init(cur realm)
source

Init is optional (no-op state). Kept for deploy symmetry with hub/pad.

func Render

1func Render(path string) string
source

Render home or user/{addr}

func SetProfile

crossing Action
1func SetProfile(cur realm, name, bio, uri string)
source

SetProfile upserts the caller's profile.

Types 1

type Profile

struct
1type Profile struct {
2	Name    string
3	Bio     string
4	URI     string
5	Updated int64 // block height
6}
source

Profile is one user's public card (all fields exported for LaunchInfo-style reads).

Imports 5

Source Files 2