Registry
Purpose
The SuperMemeRegistry
contract serves as a central registry for all tokens created within the SuperMeme ecosystem. It tracks token addresses, ensures only authorized factories can register tokens, and collects data for use in subgraph integrations.
Core Functions
registerToken(address _tokenAddress, address _devAddress, uint256 _amount, bool _devLocked, uint256 _tokenType)
Description: Registers a new token in the SuperMeme ecosystem.
Parameters:
_tokenAddress
(address): The address of the token being registered._devAddress
(address): The address of the developer associated with the token._amount
(uint256): The initial amount of tokens._devLocked
(bool): Indicates whether developer tokens are locked._tokenType
(uint256): Specifies the type of token (e.g., Degen, Refundable, Locking).
Requirements:
Caller must be an authorized factory.
Behavior:
Adds the token address to the
tokenAddresses
array.Emits the
TokenCreated
event with relevant details.
Returns: None.
Last updated