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.
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.tokenAddress
(address
): The address of the newly deployed token.