sg2

Crates.iosg2
lib.rssg2
version3.15.0
sourcesrc
created_at2022-08-26 20:41:09.680916
updated_at2024-10-01 18:42:12.678151
descriptionDefinition and types for the SG2 interface
homepagehttps://stargaze.zone
repositoryhttps://github.com/public-awesome/launchpad
max_upload_size
id653046
size8,995
Michael J.S. (humanalgorithm)

documentation

README

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>;
Commit count: 2335

cargo fmt