cairo-erc1155
Generate Cairo source code for an ERC-1155 non-fungible token contract, with configurable options for burnable, pausable, mintable, royalty, access control, and upgradeability.
Instructions
Make a non-fungible token per the ERC-1155 standard.
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 | |
| baseUri | Yes | The location of the metadata for the token. Clients will replace any instance of {id} in this string with the tokenId. | |
| burnable | No | Whether token holders will be able to destroy their tokens | |
| pausable | No | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. | |
| mintable | No | Whether privileged accounts will be able to create more supply or emit more tokens | |
| updatableUri | No | Whether privileged accounts will be able to set a new URI for all token types. | |
| royaltyInfo | No | Provides information for how much royalty is owed and to whom, based on a sale price. Follows ERC-2981 standard. | |
| access | No | ||
| upgradeable | No | Whether the smart contract is upgradeable. | |
| info | No | Metadata about the contract and author | |
| macros | No | The macros to use for the contract. |