-
Notifications
You must be signed in to change notification settings - Fork 86
/
IAssetCreate.sol
81 lines (78 loc) · 2.08 KB
/
IAssetCreate.sol
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
/// @title AssetCreate interface
/// @author The Sandbox
interface IAssetCreate {
struct LazyMintData {
address caller;
uint8 tier;
uint256 amount;
uint256 unitPrice;
address paymentToken;
string metadataHash;
uint256 maxSupply;
address creator;
}
struct LazyMintBatchData {
address caller;
uint8[] tiers;
uint256[] amounts;
uint256[] unitPrices;
address[] paymentTokens;
string[] metadataHashes;
uint256[] maxSupplies;
address[] creators;
}
event TrustedForwarderChanged(address indexed newTrustedForwarderAddress);
event AssetMinted(
address indexed creator,
uint256 tokenId,
uint16 tier,
uint256 amount,
string metadataHash,
bool revealed
);
event SpecialAssetMinted(
address indexed creator,
uint256 tokenId,
uint16 tier,
uint256 amount,
string metadataHash,
bool revealed
);
event SpecialAssetBatchMinted(
address indexed creator,
uint256[] tokenIds,
uint8[] tiers,
uint256[] amounts,
string[] metadataHashes,
bool[] revealed
);
event AssetBatchMinted(
address indexed creator,
uint256[] tokenIds,
uint8[] tiers,
uint256[] amounts,
string[] metadataHashes,
bool[] revealed
);
event AssetLazyMinted(
address indexed recipient,
address indexed creator,
uint256 tokenId,
uint16 tier,
uint256 amount,
string metadataHash
);
event AssetBatchLazyMinted(
address indexed recipient,
address[] indexed creators,
uint256[] tokenIds,
uint8[] tiers,
uint256[] amounts,
string[] metadataHashes
);
event LazyMintFeeSet(uint256 indexed newLazyMintFee);
event LazyMintFeeReceiverSet(address indexed newLazyMintFeeReceived);
event ExchangeContractSet(address indexed exchangeContract);
}