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

meta source realm

Package meta stores off-pad token presentation data (description, image, socials). Independent of pad versions — up...

Overview

Package meta stores off-pad token presentation data (description, image, socials). Independent of pad versions — upgrade without redeploying markets.

Key = padPkg + "|" + launchId First SetMeta caller becomes owner; only owner may update later.

Functions 7

func ClearMeta

crossing Action
1func ClearMeta(cur realm, padPkg, launchID string)
source

ClearMeta removes caller's owned entry.

func GetMeta

Action
1func GetMeta(padPkg, launchID string) string
source

GetMeta returns:

Example
1owner|description|imageURI|website|twitter|telegram|updated

Empty string if none.

func HasMeta

Action
1func HasMeta(padPkg, launchID string) bool
source

HasMeta reports whether metadata exists.

func SetMeta

crossing Action
1func SetMeta(cur realm, padPkg, launchID, description, imageURI, website, twitter, telegram string)
source

SetMeta upserts metadata for a launch. First writer owns the entry.

Types 1

type TokenMeta

struct
 1type TokenMeta struct {
 2	PadPkg      string
 3	LaunchID    string
 4	Owner       address
 5	Description string
 6	ImageURI    string
 7	Website     string
 8	Twitter     string
 9	Telegram    string
10	Updated     int64
11}
source

TokenMeta is presentation data for one launch (not trading state).

Imports 5

Source Files 2