// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; library TixSellContentLibrary { enum ContentType{ PDF,VIDEO,IMAGE, ZIP,AUDIO } struct ContentTicketType { uint256 ticketPrice; //exprimé en WEI 1 € = 1 ETH = 10^18 WEI (euros) bool sellable; bool nbTicketsLimited; uint256 nbTickets; uint256 maxSellablePrice; uint256 royaltySellable; uint256 fixAmount ; // amount for TixSell per ticket sold bool unlimitedAccess; string name; string image; } struct Content { string id; ContentType typeContent; string name; string description; bool canceled; uint96 royalty; //must be 100,200,300,..., 10 000 (for 100%) uint96 sellTixRoyaltieValue; ContentTicketType[] ticketTypes; } }