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

#3 in #stargaze

Download history 22/week @ 2024-10-23 33/week @ 2024-10-30 23/week @ 2024-11-06 11/week @ 2024-11-13 23/week @ 2024-11-20 37/week @ 2024-11-27 37/week @ 2024-12-04 50/week @ 2024-12-11 13/week @ 2024-12-18 67/week @ 2024-12-25 5/week @ 2025-01-01 13/week @ 2025-01-08 24/week @ 2025-01-15 35/week @ 2025-01-22 13/week @ 2025-01-29 22/week @ 2025-02-05

96 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–6MB
~127K SLoC