-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIKSTicketLib.sol
49 lines (43 loc) · 999 Bytes
/
IKSTicketLib.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
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
library ticket {
enum NftType {
ERC721,
ERC1155
}
struct Ticket {
address host;
uint supply;
uint remaining;
uint price;
address owner;
uint ticketId;
bool isActive; //indicates paused/active event
bool isPublished;
bool isShortlist; //if the event is open or shortlist-based
bool isExistingTicket;
bool isStaking;
NftType nftType;
}
struct existing721NFT {
NftType nftType;
string collectionName;
address contractAddress;
string uri;
}
struct existing1155NFT {
NftType nftType;
string collectionName;
address contractAddress;
uint tokenId;
string uri;
}
struct Reward {
uint rewardId;
address host;
uint supply;
bool isClaimed;
bool isCryptoBound;
uint price;
}
}