erc7984
Generate ERC-7984 confidential token contracts with options for decimals, premint, wrapping, and voting, outputting Solidity source code.
Instructions
Make a confidential fungible token in Solidity according to the ERC-7984 standard, similar to ERC-20 but with confidentiality.
Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the contract | |
| symbol | Yes | The short symbol for the token | |
| contractURI | Yes | The metadata URI for the token. Should follow the schema defined in [ERC-7572](https://eips.ethereum.org/EIPS/eip-7572). | |
| decimals | No | The number of decimals used to represent token amounts. Defaults to 6, with a maximum of 10, since confidential token amounts are represented as uint64 and higher decimals would make the maximum total supply too limited. Incompatible with wrappable, which derives its decimals from the underlying token (capped at 6). | |
| premint | No | The number of tokens to premint for the deployer. Cannot be used with wrappable, since preminted tokens would not be backed by the underlying token. | |
| networkConfig | Yes | Specify the provider and network configuration to use for FHEVM contracts. | |
| wrappable | No | Whether to allow wrapping an ERC20 token into a confidential fungible token. Derives its decimals from the underlying token (capped at 6), so it cannot be used with custom decimals. Cannot be used with premint, since preminted tokens would not be backed by the underlying token. | |
| votes | No | Whether to keep track of historical balances for voting in on-chain governance. Voting durations must be expressed as block numbers or timestamps. | |
| info | No | Metadata about the contract and author |