62 releases (28 stable)

3.13.0 Apr 26, 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

#784 in Magic Beans

Download history 11/week @ 2024-01-22 36/week @ 2024-02-05 108/week @ 2024-02-12 111/week @ 2024-02-19 100/week @ 2024-02-26 38/week @ 2024-03-04 59/week @ 2024-03-11 22/week @ 2024-03-18 25/week @ 2024-03-25 825/week @ 2024-04-01 89/week @ 2024-04-08 37/week @ 2024-04-15 178/week @ 2024-04-22 40/week @ 2024-04-29 33/week @ 2024-05-06

293 downloads per month
Used in 11 crates (7 directly)

Apache-2.0

4KB

SG4 Spec: Stargaze Minter Contracts

A minter must store the factory that created it, so it can query its parameters:

pub struct MinterConfig<T> {
    pub factory: Addr,
    pub collection_code_id: u64,
    pub mint_price: Coin,
    pub extension: T,
}

Custom minters can add more fields using extension.

A minimum, Stargaze minters should specify at least one Mint {} operation that takes 0 to many arguments.

pub enum ExecuteMsg {
    Mint {},
}

Provides minter status for each collection. Status is changed through on-chain governance proposals.

  • Verified: a community based signal that the creators are verified
  • Blocked: a community based signal that the collection should be blocked
  • Explicit: a community based signal that the collection has explicit content (not safe for work, pornographic, etc)
pub struct Minter {
    pub verified: bool,
    pub blocked: bool,
    pub is_explicit: bool,
}

Dependencies

~3.5–5MB
~110K SLoC