sg721

Crates.iosg721
lib.rssg721
version3.15.0
sourcesrc
created_at2022-03-21 02:48:08.905099
updated_at2024-10-01 18:41:05.441891
descriptionStargaze Basic NFT Collection Interface
homepagehttps://stargaze.zone
repositoryhttps://github.com/public-awesome/launchpad
max_upload_size
id553813
size7,002
Michael J.S. (humanalgorithm)

documentation

README

SG-721

SG-721 is a cw721-compatible spec that adds on-chain contract metadata, including royalties.

pub struct CollectionInfo<T> {
    pub creator: String,
    pub description: String,
    pub image: String,
    pub external_link: Option<String>,
    pub trading_start_time: Option<Timestamp>,
    pub royalty_info: Option<T>,
}

pub struct RoyaltyInfo {
    pub payment_address: Addr,
    pub share: Decimal,
}

The above is set when the contract is instantiated. The contract inherits everything else from cw721-base.

Commit count: 2335

cargo fmt