Skip to main content

Module tip20_factory

Module tip20_factory 

Source
Expand description

TIP-20 token factory precompile — deploys new TIP-20 tokens at deterministic addresses.

Modules§

ITIP20Factory
Module containing a contract’s types and functions.
dispatch
ABI dispatch for the TIP20Factory precompile.
slots

Structs§

TIP20Factory
createTokenCall
Function with signature createToken(string,string,string,address,address,bytes32) and selector 0x68130445.
createTokenWithLogoCall
@notice Creates a token and sets its logoURI atomically (TIP-1026). @dev Solidity overload of createToken with an additional logoURI argument. Reverts with LogoURITooLong if bytes(logoURI).length > 256, or with InvalidLogoURI if logoURI is non-empty and either has no parseable scheme or its scheme is not in the allow-list. Function with signature createToken(string,string,string,address,address,bytes32,string) and selector 0x5323d222.

Enums§

TIP20FactoryError
Container for all the ITIP20Factory custom errors.
TIP20FactoryEvent
Container for all the ITIP20Factory events.

Constants§

RESERVED_SIZE 🔒
Number of reserved addresses (0 to RESERVED_SIZE-1) that cannot be deployed via factory
TIP20_PREFIX_BYTES 🔒
TIP20 token address prefix (12 bytes): 0x20C000000000000000000000

Functions§

compute_tip20_address 🔒
Computes the deterministic TIP20 address from sender and salt. Returns the address and the lower bytes used for derivation.