cairo-custom
Generate custom smart contracts in Cairo using OpenZeppelin Contracts libraries. Define contract name, access control, upgradeability, and metadata without writing to disk.
Instructions
Make a custom smart contract.
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. | |
info | No | Metadata about the contract and author | |
name | Yes | The name of the contract | |
pausable | No | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. | |
upgradeable | No | Whether the smart contract is upgradeable. |