Crates.io | minter-utils |
lib.rs | minter-utils |
version | 0.1.0 |
source | src |
created_at | 2023-12-07 09:12:31.782203 |
updated_at | 2023-12-07 09:12:31.782203 |
description | Definition and types for the SG4 interface |
homepage | https://terp.network |
repository | https://github.com/terpnetwork/core-cosmwasm |
max_upload_size | |
id | 1060838 |
size | 3,526 |
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, Terp 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.
pub struct Minter {
pub verified: bool,
pub blocked: bool,
pub is_explicit: bool,
}
previously sg4