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

#2 in #minters

Download history 13/week @ 2025-08-05 2/week @ 2025-08-12 44/week @ 2025-08-19 54/week @ 2025-08-26 72/week @ 2025-09-02 47/week @ 2025-09-09 25/week @ 2025-09-16 33/week @ 2025-09-23 51/week @ 2025-09-30 12/week @ 2025-10-07 44/week @ 2025-10-14 54/week @ 2025-10-21 20/week @ 2025-10-28 28/week @ 2025-11-04 30/week @ 2025-11-11 22/week @ 2025-11-18

107 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–7MB
~144K SLoC