ITicketRedeemer
Inherits: IMinter
Author: fx(hash)
Minter for redeeming FxGenArt721 tokens by burning FxMintTicket721 tokens
Functions
pause
Pauses all function executions where modifier is applied
function pause() external;
redeem
Burns a ticket and mints a new token to the caller
function redeem(address _ticket, address _to, uint256 _tokenId, bytes calldata _fxParams) external;
Parameters
Name | Type | Description |
---|---|---|
_ticket | address | Address of the ticket contract |
_to | address | Address of token receiver |
_tokenId | uint256 | ID of the ticket being burned |
_fxParams | bytes | Random sequence of fixed-length bytes used for token input |
setMintDetails
Sets the mint details for token reserves
Mint Details: ticket contract address
function setMintDetails(ReserveInfo calldata _reserveInfo, bytes calldata _mintDetails) external;
Parameters
Name | Type | Description |
---|---|---|
_reserveInfo | ReserveInfo | Reserve information for the token |
_mintDetails | bytes | Details of the mint pertaining to the minter |
tickets
Mapping of FxGenArt721 token address to FxMintTicket721 token address
function tickets(address) external view returns (address);
unpause
Unpauses all function executions where modifier is applied
function unpause() external;
Events
MintDetailsSet
Event emitted when the mint details are set for a ticket contract
event MintDetailsSet(address indexed _ticket, address indexed _token);
Parameters
Name | Type | Description |
---|---|---|
_ticket | address | Address of the ticket contract |
_token | address | Address of the token contract that can be redeemed through the ticket |
Redeemed
Event emitted when a ticket is burned and a new token is minted
event Redeemed(address indexed _ticket, uint256 indexed _tokenId, address indexed _owner, address _token);
Parameters
Name | Type | Description |
---|---|---|
_ticket | address | Address of the ticket contract |
_tokenId | uint256 | ID of the token being burned |
_owner | address | Address of the owner receiving the token |
_token | address | Address of the token being minted |
Errors
AlreadySet
Error thrown when mint details are already set for a ticket contract
error AlreadySet();
InvalidToken
Error thrown when token address is invalid
error InvalidToken();
NotAuthorized
Error thrown when the caller is not authorized
error NotAuthorized();
ZeroAddress
Error thrown when receiver is zero address
error ZeroAddress();