TicketRedeemer
Inherits: ITicketRedeemer, Ownable, Pausable
Author: fx(hash)
See the documentation in {ITicketRedeemer}
State Variables
tickets
Mapping of FxGenArt721 token address to FxMintTicket721 token address
mapping(address => address) public tickets;
Functions
redeem
Burns a ticket and mints a new token to the caller
function redeem(address _token, address _to, uint256 _ticketId, bytes calldata _fxParams) external whenNotPaused;
Parameters
Name | Type | Description |
---|---|---|
_token | address | |
_to | address | Address of token receiver |
_ticketId | uint256 | |
_fxParams | bytes | Random sequence of fixed-length bytes used for token input |
setMintDetails
Mint Details: ticket contract address
function setMintDetails(ReserveInfo calldata, bytes calldata _mintDetails) external whenNotPaused;
pause
Pauses all function executions where modifier is applied
function pause() external onlyOwner;
unpause
Unpauses all function executions where modifier is applied
function unpause() external onlyOwner;