74 releases (30 stable)

3.15.0 Oct 1, 2024
3.14.0 Jun 4, 2024
3.13.0 Apr 26, 2024
3.7.0 Feb 13, 2024
0.9.1 Mar 27, 2022

#3 in #stargaze

Download history 50/week @ 2024-10-14 42/week @ 2024-10-21 22/week @ 2024-10-28 35/week @ 2024-11-04 7/week @ 2024-11-11 31/week @ 2024-11-18 38/week @ 2024-11-25 59/week @ 2024-12-02 458/week @ 2024-12-09 46/week @ 2024-12-16 90/week @ 2024-12-23 5/week @ 2024-12-30 16/week @ 2025-01-06 30/week @ 2025-01-13 63/week @ 2025-01-20 42/week @ 2025-01-27

153 downloads per month
Used in 23 crates (21 directly)

Apache-2.0

7KB
94 lines

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.

Dependencies

~4–6MB
~128K SLoC