// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; library TixSellLibrary { // change PRO PROD // Mainnet 0xAB594600376Ec9fD91F8e885dADF0CE036862dE0 // Amoy 0x001382149eBa3441043c1c66972b4772963f5D43 address constant AGGREGATOR_V3_INTERFACE_ID = 0x001382149eBa3441043c1c66972b4772963f5D43; //USDT AMOY : 0x0c677bbcb7d8080abe0fa82ad7990bc718dc5027 MAINNET: 0xc2132d05d31c914a87c6611c10748aeb04b58e8f // USDC AMOY : 0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582 //MAINET : 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 //EUROE AMOY : 0x77A2998A260705a535d7D74dbAC4b9b6451Ff6F4 MAINNET : 0x820802Fa8a99901F52e39acD21177b0BE6EE2974 address constant USDT_ERC20 = 0x2F7b97837F2D14bA2eD3a4B2282e259126A9b848; address constant USDC_ERC20 = 0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582; address constant EUROE_ERC20 = 0x77A2998A260705a535d7D74dbAC4b9b6451Ff6F4; address constant SELLTIX_MANAGER = 0x73366Fe0AA0Ded304479862808e02506FE556a98; // AMOY : 0xa73B1C149CB4a0bf27e36dE347CBcfbe88F65DB2 // MaINET : 0x73366Fe0AA0Ded304479862808e02506FE556a98 address constant addressChainLinkConverter = 0xa73B1C149CB4a0bf27e36dE347CBcfbe88F65DB2; struct TicketDesignInfo { string gradient1Color; string gradient2Color; string eventTitleOne; string eventTitleTwo; string eventTitleFont; string eventColor; string ticketTypeFont; string ticketTypeColor; string price; string priceColor; string priceFont; string fontUrl; string ticketType; string venue; string svgUrl; string heureDisplay; } struct TicketType { uint256 id; uint32 maxTickets; uint32 maxTicketsPerUser; uint256 ticketPrice; //exprimé en WEI 1 € = 1 ETH = 10^18 WEI (euros) uint256 bookingStartDate; uint256 bookingEndDate; bool revealed; uint256 revealStartDate; bool sellable; uint256 maxSellablePrice; uint256 royaltySellable; bool earlyBid; uint256 discountPrice; uint256 discountEndDate; uint256 templateId; uint256 fixAmount ; // amount for TixSell per ticket sold bool freeDrink; bool priorityQueue; bool canStream; string name; string hiddenuri ; string image; TicketDesignInfo ticketDesignInfo; } struct NftTicketInfo { uint256 templateId; uint256 tokenId; string image; uint256 eventDate; TicketDesignInfo ticketDesignInfo; bool freeDrink; bool priorityQueue; bool canStream; bool sellable; } }