1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
use anyhow::Error;
use cosmwasm_std::{Addr, Timestamp};
use sg2::msg::CollectionParams;
use sg_multi_test::StargazeApp;
use vending_factory::msg::VendingMinterInitMsgExtension;
pub struct MinterSetupParams<'a> {
pub router: &'a mut StargazeApp,
pub minter_admin: Addr,
pub num_tokens: u32,
pub collection_params: CollectionParams,
pub splits_addr: Option<String>,
pub start_time: Option<Timestamp>,
pub minter_code_id: u64,
pub factory_code_id: u64,
pub sg721_code_id: u64,
pub init_msg: Option<VendingMinterInitMsgExtension>,
}
pub struct MinterCollectionResponse {
pub minter: Option<Addr>,
pub collection: Option<Addr>,
pub factory: Option<Addr>,
pub error: Option<Error>,
}
pub struct MinterInstantiateParams {
pub num_tokens: u32,
pub start_time: Option<Timestamp>,
pub splits_addr: Option<String>,
pub init_msg: Option<VendingMinterInitMsgExtension>,
}
use cosmwasm_schema::cw_serde;
#[cw_serde]
pub struct CodeIds {
pub minter_code_id: u64,
pub factory_code_id: u64,
pub sg721_code_id: u64,
}
pub struct VendingTemplateResponse<T> {
pub collection_response_vec: Vec<MinterCollectionResponse>,
pub router: StargazeApp,
pub accts: T,
}
pub struct VendingAccounts {
pub creator: Addr,
pub buyer: Addr,
}