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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

init.gno

0.78 Kb · 21 lines
 1package nsskin
 2
 3import (
 4	"gno.land/p/nt/grc721/v0"
 5	"gno.land/p/nt/seqid/v0"
 6)
 7
 8// The deployer is the first admin. Rotatable with SetAdmin, and
 9// deliberately NOT the vault's timelocked governance: this realm is
10// replaceable, so it does not need machinery built for one that is not.
11// See the note in types.gno.
12//
13// The ledger is the chain's own gno.land/p/nt/grc721/v0, created here
14// once: NewToken emits the NewToken event and every later mint and
15// transfer is stamped with that package, which is what wallets and
16// indexers require before they will list a skin at all. The collection
17// id is "<this realm's path>.MNSKIN.0000000".
18func init(cur realm) {
19	token, ledger = grc721.NewToken("Meme Name Service Skins", "MNSKIN", seqid.ID(0), cur)
20	admin = cur.Previous().Address()
21}