cairo-account
Generate a custom account contract for validating and executing transactions on Starknet or Ethereum, with configurable features like declaring contracts, upgradeability, and counterfactual deployment.
Instructions
Make a custom smart contract that represents an account that can be deployed and interacted with other contracts, and can be extended to implement custom logic. An account is a special type of contract that is used to validate and execute transactions.
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 | |
| type | Yes | Type of signature used for signature checking by the Account contract, Starknet account uses the STARK curve, Ethereum-flavored account uses the Secp256k1 curve. | |
| declare | No | Whether to enable the account to declare other contract classes. | |
| deploy | No | Whether to enables the account to be counterfactually deployed. | |
| pubkey | No | Whether to enables the account to change its own public key. | |
| outsideExecution | No | Whether to allow a protocol to submit transactions on behalf of the account, as long as it has the relevant signatures. | |
| 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. |