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

#1 in #sg721

Download history 341/week @ 2024-12-11 28/week @ 2024-12-18 89/week @ 2024-12-25 7/week @ 2025-01-01 16/week @ 2025-01-08 39/week @ 2025-01-15 61/week @ 2025-01-22 37/week @ 2025-01-29 206/week @ 2025-02-05 81/week @ 2025-02-12 20/week @ 2025-02-19 100/week @ 2025-02-26 8/week @ 2025-03-05 62/week @ 2025-03-12 82/week @ 2025-03-19 26/week @ 2025-03-26

214 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

~5.5–7.5MB
~159K SLoC