CreatorTokenERC20

Description

The CreatorTokenERC20 contract is a module that builds upon the ERC-20 standard to offer additional functionality tailored for token creators. This module includes features such as transfer validation to ensure only approved transfers are processed, adding a layer of control and security for token transfers.

GitHub
View on GitHub

Callback Functions

FunctionDescription
beforeTransferERC20Callback function for the ERC20.transferFrom and ERC20.safeTransferFrom functions. Executes actions before token transfers, including validation of the transfer by transferValidator.

Fallback Functions

FunctionDescription
getTransferValidatorReturns the transfer validator contract address for this token contract.
getTransferValidationFunctionReturns the function selector and view status for the transfer validator's validation function.
setTransferValidatorSets the address of the transferValidator. Requires admin role.

Required Interfaces

(No required interfaces for this contract)