43 releases (15 breaking)

0.25.0 Mar 16, 2023
0.24.0 Feb 28, 2023
0.21.8 Dec 22, 2022
0.21.1 Oct 26, 2022
0.9.1 Mar 27, 2022

#345 in Magic Beans

Download history 286/week @ 2022-12-08 218/week @ 2022-12-15 249/week @ 2022-12-22 100/week @ 2022-12-29 87/week @ 2023-01-05 149/week @ 2023-01-12 146/week @ 2023-01-19 412/week @ 2023-01-26 343/week @ 2023-02-02 144/week @ 2023-02-09 208/week @ 2023-02-16 402/week @ 2023-02-23 84/week @ 2023-03-02 121/week @ 2023-03-09 200/week @ 2023-03-16 79/week @ 2023-03-23

599 downloads per month
Used in 12 crates (10 directly)

Apache-2.0

6KB
87 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

~3.5–4.5MB
~104K SLoC