62 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.21.1 Oct 26, 2022

#572 in Magic Beans

Download history 123/week @ 2024-02-15 93/week @ 2024-02-22 41/week @ 2024-02-29 74/week @ 2024-03-07 37/week @ 2024-03-14 18/week @ 2024-03-21 257/week @ 2024-03-28 643/week @ 2024-04-04 49/week @ 2024-04-11 32/week @ 2024-04-18 198/week @ 2024-04-25 26/week @ 2024-05-02 35/week @ 2024-05-09 39/week @ 2024-05-16 36/week @ 2024-05-23 141/week @ 2024-05-30

255 downloads per month
Used in 14 crates (13 directly)

Apache-2.0

16KB
265 lines

SG2 Spec: Stargaze Minter Factory Contracts

Common types needed for minter factories. New minter factories should extend these types to add their custom properties.

Every minter requires a factory that stores the minter's governance paramaters. A minter factory creates minters based on these paramaters.

Factories also restrict minters to a set of allowed sg721 code ids.

For example, the vending minter factory needs a shuffle_fee. This is added as a custom extension to MinterParams and UpdateParamsMsg.

pub struct VendingUpdateParamsExtension {
    pub shuffle_fee: Option<Coin>,
}
pub type VendingUpdateParamsMsg = UpdateMinterParamsMsg<VendingUpdateParamsExtension>;

pub struct ParamsExtension {
    pub shuffle_fee: Coin,
}
pub type VendingMinterParams = MinterParams<ParamsExtension>;

Dependencies

~4–5.5MB
~123K SLoC