21 releases (6 stable)

1.2.5 Jun 2, 2023
1.1.1 Dec 10, 2022
0.20.0 Nov 24, 2022

#9 in #name-service


Used in sg721-name

Apache-2.0

8KB
135 lines

Stargaze Names Collection

Defines on-chain metadata for Stargaze Names, a Cosmos / Interchain name service.

pub struct NFT {
    pub collection: Addr,
    pub token_id: String,
}

pub struct TextRecord {
    pub name: String,  // "twitter"
    pub value: String, // "shan3v"
    pub verified_at: Option<Timestamp>,
}

pub struct Metadata {
    pub image: Option<NFT>,
    pub records: Vec<TextRecord>,
}

Dependencies

~3.5–5.5MB
~114K SLoC