UniTick's smart contracts form the backbone of the platform, handling ticket minting, payment processing, and vendor management with complete transparency and security.
Contract Architecture
UniTick Token (ERC-20)
Platform currency
Payment processing
Fee collection
Token distribution
Faucet integration
UniTick Tickets (ERC-721)
NFT ticket minting
Order management
Vendor payments
Free ticket support
Metadata storage
Contract Features
Secure
OpenZeppelin standards
Efficient
Gas-optimized operations
Transparent
Publicly verifiable
Key Functions
1
createOrder
Creates a new order with multiple vendor payments and mints NFT tickets for each booking.
Validates vendor whitelist
Processes payments
Mints NFT tickets
Emits events
2
whitelistVendor
Adds vendor addresses to the whitelist, enabling them to receive payments from orders.
Admin-only function
Address validation
Whitelist update
Event emission
3
isFreeTicket
Checks if a specific NFT ticket represents a free service (zero payment amount).