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
599 downloads per month
Used in 12 crates
(10 directly)
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