ERC-20 Core

Supported Callback Functions

FunctionMode
beforeMintERC20REQUIRED
beforeMintWithSignatureERC20REQUIRED
beforeTransferERC20OPTIONAL
beforeBurnERC20OPTIONAL
beforeApproveERC20OPTIONAL

Supported Interfaces

InterfaceID
ERC1650x01ffc9a7
ERC-75720xe8a3d485
ERC-1730x7f5828d0
IERC200x36372b07

Functions Supported

FunctionDescription
_initializeInitializes the contract with parameters for name, symbol, metadata URI, owner, modules, and their data.
contractURIReturns the contract metadata URI.
nameReturns the name of the token.
symbolReturns the symbol of the token.
supportsInterfaceChecks if the contract implements an interface with the given interface ID.
getSupportedCallbackFunctionsReturns the supported callback functions.
setContractURISets the contract metadata URI. Callable only by the contract admin.
mintMints tokens to a specified address, calling the beforeMint hook.
mintWithSignatureMints tokens with a signature, calling the beforeMintWithSignature hook.
burnBurns tokens from a specified address, calling the beforeBurn hook if it exists.
transferTransfers tokens to a recipient, calling the beforeTransfer hook if it exists.
transferFromTransfers tokens from a sender to a recipient, calling the beforeTransfer hook if it exists.
approveApproves a spender to spend tokens on behalf of an owner, calling the beforeApprove hook if it exists.
permitSets allowance based on token owner's signed approval, calling the beforeApprove hook.