TicketRedeemer

Git Source

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

NameTypeDescription
_tokenaddress
_toaddressAddress of token receiver
_ticketIduint256
_fxParamsbytesRandom 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;