73 releases (29 stable)

new 3.14.0 Jun 4, 2024
3.7.0 Feb 13, 2024
3.3.0 Oct 11, 2023
3.0.0 Jul 2, 2023
0.9.1 Mar 27, 2022

#603 in Magic Beans

Download history 134/week @ 2024-02-15 212/week @ 2024-02-22 189/week @ 2024-02-29 779/week @ 2024-03-07 234/week @ 2024-03-14 125/week @ 2024-03-21 404/week @ 2024-03-28 718/week @ 2024-04-04 120/week @ 2024-04-11 132/week @ 2024-04-18 268/week @ 2024-04-25 65/week @ 2024-05-02 97/week @ 2024-05-09 81/week @ 2024-05-16 81/week @ 2024-05-23 248/week @ 2024-05-30

514 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–5.5MB
~122K SLoC