Clanker
Source:Verified
Write Functions / deployTokenZeroSupply
Overview

The deployTokenZeroSupply function in the Clanker contract is designed to deploy a new token with zero initial supply on a non-originating chain. It checks that the function is called from a chain different from the one specified in the token configuration and then delegates the actual token deployment to the ClankerDeployer library.

Inputs
  • tokenConfig (struct IClanker.TokenConfig): A struct containing the configuration for the token:
    • name (string): The name of the token.
    • symbol (string): The symbol of the token.
    • salt (bytes32): A unique salt for the token deployment.
    • image (string): The image associated with the token.
    • metadata (string): Metadata for the token.
    • context (string): Contextual information for the token.
    • originatingChainId (uint256): The chain ID from which the token originates.
  • tokenAdmin (address): The address of the token administrator.
Outputs
  • tokenAddress (address): The address of the newly deployed token.
Emits Zero Events
Functions will often emit events during execution, often signifying key changes in state. There are no events emited by this function
Recent Transactions Calling This Function
This returns the latest 20 times that this function was called directly by a wallet or internally by another contract.
Looking for transactions where this function was called...