solidity-rwa
Generate ERC-20 compliant smart contracts for tokenizing real-world assets with customizable features like minting, pausing, and cross-chain bridging. Returns source code in Markdown format without writing to disk.
Instructions
Make a real-world asset token that uses the ERC-20 standard. Experimental, some features are not audited and are subject to change.
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 |
---|---|---|---|
access | No | The type of access control to provision. Ownable is a simple mechanism with a single account authorized for all privileged actions. Roles is a flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts. Managed enables a central contract to define a policy that allows certain callers to access certain functions. | |
burnable | No | Whether token holders will be able to destroy their tokens | |
callback | No | Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction. | |
crossChainBridging | No | Whether to allow authorized bridge contracts to mint and burn tokens for cross-chain transfers. Options are to use custom bridges on any chain, or the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. Emphasize that these features are experimental, not audited and are subject to change. The SuperchainERC20 feature is only available on chains in the Superchain, and requires deploying your contract to the same address on every chain in the Superchain. | |
custodian | No | Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change. | |
flashmint | No | Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction. | |
info | No | Metadata about the contract and author | |
limitations | No | Whether to restrict certain users from transferring tokens, either via allowing or blocking them. This feature is experimental, not audited and is subject to change. | |
mintable | No | Whether privileged accounts will be able to create more supply or emit more tokens | |
name | Yes | The name of the contract | |
pausable | No | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. | |
permit | No | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. | |
premint | No | The number of tokens to premint for the deployer. | |
premintChainId | No | The chain ID of the network on which to premint tokens. | |
symbol | Yes | The short symbol for the token | |
votes | No | Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |