Skip to main content

ZkPadToken

Source: contracts/src/ZkPadToken.sol · Interface: IZkPadToken · Port of Clanker v4 ClankerToken without the superchain parts. MIT.

Purpose​

The launched coin. OpenZeppelin ERC20 + ERC20Permit + ERC20Burnable. The whole supply (1,000,000,000 × 10¹⁸) is minted once, in the constructor, to the factory. There is no mint, tax, blacklist, pause or any other power over balances.

Functions​

FunctionAccessDescription
ERC20 / ERC20Permit / ERC20BurnableanyoneStandard
tokenAdmin() viewCurrent cosmetic admin (address(0) = none)
originalAdmin() viewAdmin set at launch
factory() viewDeploying factory
image(), metadata(), context() viewCosmetic data
allData() viewAll of the above in one call
updateImage(string)token adminCosmetic
updateMetadata(string)token adminCosmetic
updateTokenAdmin(address)token adminHand over, or renounce with address(0)
supportsInterface(bytes4) pureERC-165

The token admin is also the only address the hook accepts for lowerFees.

Events​

ImageUpdated(image), MetadataUpdated(metadata), TokenAdminUpdated(oldAdmin, newAdmin), plus standard ERC20 events.

Errors​

NotTokenAdmin().