contracts-mcp
v0.8.1OpenZeppelin Contracts MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
solidity-erc20 Solidity ERC20
Make a fungible token per the ERC-20 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
callback | boolean | Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction. |
chainlinkAce | boolean | Chainlink ACE (Automated Compliance Engine) adds token policy enforcement through a separately deployed and configured policy engine (integration guide: https://docs.openzeppelin.com/chainlink-ccip-ac… |
crossChainBridging | Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are custom bridges on any chain, Chainlink CCIP with a separately configured BurnMintTokenPool (i… | |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
decimals | string | The number of decimals used to represent token amounts. Defaults to 18. |
flashmint | boolean | 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 | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
permit | boolean | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. |
premint | string | The number of tokens to premint for the deployer. |
premintChainId | string | The chain ID of the network on which to premint tokens. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
votes | Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |
solidity-erc721 Solidity ERC721
Make a non-fungible token per the ERC-721 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
baseUri | string | A base uri for the token |
burnable | boolean | Whether token holders will be able to destroy their tokens |
crossChainBridging | string | Whether to embed an ERC-7786 based bridge directly in the token contract, making it natively crosschain. Crosschain transfers with registered counterparts burn the token on the source chain and mint i… |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
enumerable | boolean | Whether to allow on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers. |
incremental | boolean | Whether new tokens will be automatically assigned an incremental id |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
uriStorage | boolean | Allows updating token URIs for individual token IDs |
votes | Whether to keep track of individual units for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps (defaulting to block number if not specified). |
solidity-erc1155 Solidity ERC1155
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
uri * | string | The location of the metadata for the token. Clients will replace any instance of {id} in this string with the tokenId. |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
crossChainBridging | string | Whether to embed an ERC-7786 based bridge directly in the token contract, making it natively crosschain. Crosschain transfers with registered counterparts burn the tokens on the source chain and mint… |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
supply | boolean | Whether to keep track of total supply of tokens |
updatableUri | boolean | Whether privileged accounts will be able to set a new URI for all token types |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… |
solidity-stablecoin Solidity Stablecoin
Make a stablecoin token that uses the ERC-20 standard. This contract type does not support upgradeability. 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
callback | boolean | Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction. |
chainlinkAce | boolean | Chainlink ACE (Automated Compliance Engine) adds token policy enforcement through a separately deployed and configured policy engine (integration guide: https://docs.openzeppelin.com/chainlink-ccip-ac… |
crossChainBridging | Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are custom bridges on any chain, Chainlink CCIP with a separately configured BurnMintTokenPool (i… | |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
decimals | string | The number of decimals used to represent token amounts. Defaults to 18. |
flashmint | boolean | Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction. |
freezable | boolean | Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change. |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
permit | boolean | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. |
premint | string | The number of tokens to premint for the deployer. |
premintChainId | string | The chain ID of the network on which to premint tokens. |
restrictions | 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. | |
upgradeable | boolean | Upgradeability is not available for Stablecoin or RWA. |
votes | Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |
solidity-rwa Solidity RWA
Make a real-world asset token that uses the ERC-20 standard. This contract type does not support upgradeability. 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
callback | boolean | Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction. |
chainlinkAce | boolean | Chainlink ACE (Automated Compliance Engine) adds token policy enforcement through a separately deployed and configured policy engine (integration guide: https://docs.openzeppelin.com/chainlink-ccip-ac… |
crossChainBridging | Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are custom bridges on any chain, Chainlink CCIP with a separately configured BurnMintTokenPool (i… | |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
decimals | string | The number of decimals used to represent token amounts. Defaults to 18. |
flashmint | boolean | Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction. |
freezable | boolean | Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change. |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
permit | boolean | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. |
premint | string | The number of tokens to premint for the deployer. |
premintChainId | string | The chain ID of the network on which to premint tokens. |
restrictions | 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. | |
upgradeable | boolean | Upgradeability is not available for Stablecoin or RWA. |
votes | Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |
solidity-account Solidity Account
Make an account contract that follows the ERC-4337 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the account contract |
ERC1155Holder | boolean | Whether to implement the `onERC1155Received` function to allow the account to receive ERC1155 tokens. |
ERC721Holder | boolean | Whether to implement the `onERC721Received` function to allow the account to receive ERC721 tokens. |
ERC7579Modules | Whether to implement the ERC-7579 compatibility to enable functionality on the account with modules. | |
batchedExecution | boolean | Whether to implement a minimal batching interface for the account to allow multiple operations to be executed in a single transaction following the ERC-7821 standard. |
info | object | Metadata about the contract and author |
signatureValidation | Whether to implement the ERC-1271 standard for validating signatures. This is useful for the account to verify signatures. | |
signer | Defines the signature verification algorithm used by the account to verify user operations. Options: - ECDSA: Standard Ethereum signature validation using secp256k1, validates signatures again… | |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… |
solidity-governor Solidity Governor
Make a contract to implement governance, such as for a DAO. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
delay * | string | The delay since proposal is created until voting starts, default is "1 day" |
name * | string | The name of the contract |
period * | string | The length of period during which people can cast their vote, default is "1 week" |
blockTime | number | The block time of the chain in seconds, default is 12 |
clockMode | The clock mode used by the voting token. For Governor, this must be chosen to match what the ERC20 or ERC721 voting token uses. | |
crossChainExecution | boolean | Whether passed proposals can relay execution to other chains through ERC-7786 gateways. Requires a CrosschainRemoteExecutor contract, controlled by this governor, deployed on each target chain. The ga… |
decimals | number | The number of decimals to use for the contract, default is 18 for ERC20Votes and 0 for ERC721Votes (because it does not apply to ERC721Votes) |
info | object | Metadata about the contract and author |
proposalThreshold | string | Minimum number of votes an account must have to create a proposal, default is 0. |
quorumAbsolute | string | The absolute quorum required, in cases of quorumMode equals absolute |
quorumMode | The type of quorum mode to use | |
quorumPercent | number | The percent required, in cases of quorumMode equals percent |
settings | boolean | Allow governance to update voting settings (delay, period, proposal threshold) |
storage | boolean | Enable storage of proposal details and enumerability of proposals |
timelock | The type of timelock to use | |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
votes | The type of voting to use |
solidity-custom Solidity Custom
Make a custom smart contract. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
access | 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 privileg… | |
info | object | Metadata about the contract and author |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… |
cairo-erc20 Cairo ERC20
Make a fungible token per the ERC-20 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | object | |
appName | string | Required when votes is enabled, for hashing and signing typed structured data. Name for domain separator implementing SNIP12Metadata trait. Prevents two applications from producing the same hash. |
appVersion | string | Required when votes is enabled, for hashing and signing typed structured data. Version for domain separator implementing SNIP12Metadata trait. Prevents two versions of the same application from produc… |
burnable | boolean | Whether token holders will be able to destroy their tokens |
decimals | string | The number of decimals to use for the contract. Defaults to 18. |
flashmint | object | Configuration object for the ERC20FlashMint extension (ERC-3156 flash loans). The extension is included only when `enabled` is true; the other fields tune the loan limit, fee, and fee destination. |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
premint | string | The number of tokens to premint for the deployer. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
votes | boolean | Whether to keep track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account. |
wrapper | boolean | Whether to include ERC20Wrapper functionality for depositing and withdrawing an underlying token. |
cairo-erc721 Cairo ERC721
Make a non-fungible token per the ERC-721 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | object | |
appName | string | Required when votes is enabled, for hashing and signing typed structured data. Name for domain separator implementing SNIP12Metadata trait. Prevents two applications from producing the same hash. |
appVersion | string | Required when votes is enabled, for hashing and signing typed structured data. Version for domain separator implementing SNIP12Metadata trait. Prevents two versions of the same application from produc… |
baseUri | string | A base uri for the non-fungible token. |
burnable | boolean | Whether token holders will be able to destroy their tokens |
consecutive | boolean | Enables gas-efficient batch minting of consecutive token IDs during construction (ERC-2309). The contract owner must call `mint_consecutive` from the constructor to issue the initial batch. Cannot be… |
enumerable | boolean | Whether to allow on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers. |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
royaltyInfo | object | Provides information for how much royalty is owed and to whom, based on a sale price. Follows ERC-2981 standard. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
uriStorage | boolean | Allows updating token URIs for individual token IDs. |
votes | boolean | Whether to keep track of individual units for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |
wrapper | boolean | Whether to include ERC721Wrapper functionality for wrapping an underlying ERC721. |
cairo-erc1155 Cairo ERC1155
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.
| Parameter | Type | Description |
|---|---|---|
baseUri * | string | The location of the metadata for the token. Clients will replace any instance of {id} in this string with the tokenId. |
name * | string | The name of the contract |
access | object | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
royaltyInfo | object | Provides information for how much royalty is owed and to whom, based on a sale price. Follows ERC-2981 standard. |
supply | boolean | Whether to keep track of total supply of tokens. |
updatableUri | boolean | Whether privileged accounts will be able to set a new URI for all token types. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
uriStorage | boolean | Allows updating token URIs for individual token IDs. |
cairo-erc6909 Cairo ERC6909
Make a minimal multi-token per the ERC-6909 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
access | object | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
contentUri | boolean | Whether to include Content URI extension for contract-level and per-token URI metadata. |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
metadata | boolean | Whether to include per-token metadata extension providing name, symbol, and decimals per token ID. |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
tokenSupply | boolean | Whether to keep track of total supply per token ID. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
cairo-account Cairo Account
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
type * | string | 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 | boolean | Whether to enable the account to declare other contract classes. |
deploy | boolean | Whether to enables the account to be counterfactually deployed. |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
outsideExecution | boolean | Whether to allow a protocol to submit transactions on behalf of the account, as long as it has the relevant signatures. |
pubkey | boolean | Whether to enables the account to change its own public key. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
cairo-multisig Cairo Multisig
Make a multi-signature smart contract, requiring a quorum of registered signers to approve and collectively execute transactions. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
quorum * | string | The minimal number of confirmations required by the Multisig to approve a transaction. |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
cairo-governor Cairo Governor
Make a contract to implement governance, such as for a DAO. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
delay * | string | The delay since proposal is created until voting starts, in readable date time format matching /^(\d+(?:\.\d+)?) +(second|minute|hour|day|week|month|year)s?$/, default is "1 day". |
name * | string | The name of the contract |
period * | string | The length of period during which people can cast their vote, in readable date time format matching /^(\d+(?:\.\d+)?) +(second|minute|hour|day|week|month|year)s?$/, default is "1 week". |
appName | string | Required when votes is enabled, for hashing and signing typed structured data. Name for domain separator implementing SNIP12Metadata trait. Prevents two applications from producing the same hash. |
appVersion | string | Required when votes is enabled, for hashing and signing typed structured data. Version for domain separator implementing SNIP12Metadata trait. Prevents two versions of the same application from produc… |
clockMode | string | The clock mode used by the voting token. For now, only timestamp mode where the token uses voting durations expressed as timestamps is supported. For Governor, this must be chosen to match what the ER… |
decimals | number | The number of decimals to use for the contract, default is 18 for ERC20Votes and 0 for ERC721Votes (because it does not apply to ERC721Votes). |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
proposalThreshold | string | Minimum number of votes an account must have to create a proposal, default is 0. |
quorumAbsolute | string | The absolute quorum required, in cases of quorumMode equals absolute. |
quorumMode | string | The type of quorum mode to use, either by percentage or absolute value. |
quorumPercent | number | The percent required, in cases of quorumMode equals percent. |
settings | boolean | Whether to allow governance to update voting settings (delay, period, proposal threshold). |
timelock | Whether to add a delay to actions taken by the Governor. Gives users time to exit the system if they disagree with governance decisions. If "openzeppelin", Module compatible with OpenZeppelin's Timelo… | |
upgradeable | boolean | Whether the smart contract is upgradeable. |
votes | string | The type of voting to use. Either erc20votes, meaning voting power with a votes-enabled ERC20 token. Either erc721votes, meaning voting power with a votes-enabled ERC721 token. Voters can entrust thei… |
cairo-vesting Cairo Vesting
Make a vesting smart contract that manages the gradual release of ERC-20 tokens to a designated beneficiary based on a predefined vesting schedule. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
cliffDuration * | string | The duration of the cliff period. Must be less than or equal to the total duration. In readable date time format matching /^(\d+(?:\.\d+)?) +(second|minute|hour|day|week|month|year)s?$/ |
duration * | string | The total duration of the vesting period. In readable date time format matching /^(\d+(?:\.\d+)?) +(second|minute|hour|day|week|month|year)s?$/ |
name * | string | The name of the contract |
schedule * | string | A vesting schedule implementation, tokens can either be vested gradually following a linear curve or with custom vesting schedule that requires the implementation of the VestingSchedule trait. |
startDate * | string | The timestamp marking the beginning of the vesting period. In HTML input datetime-local format, e.g. "2026-03-15T14:30". |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
cairo-custom Cairo Custom
Make a custom smart contract. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
access | object | |
info | object | Metadata about the contract and author |
macros | object | The macros to use for the contract. |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | boolean | Whether the smart contract is upgradeable. |
confidential-erc7984 Confidential ERC7984
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.
| Parameter | Type | Description |
|---|---|---|
contractURI * | string | The metadata URI for the token. Should follow the schema defined in [ERC-7572](https://eips.ethereum.org/EIPS/eip-7572). |
name * | string | The name of the contract |
networkConfig * | string | Specify the provider and network configuration to use for FHEVM contracts. |
symbol * | string | The short symbol for the token |
decimals | string | 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… |
info | object | Metadata about the contract and author |
premint | string | 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. |
votes | Whether to keep track of historical balances for voting in on-chain governance. Voting durations must be expressed as block numbers or timestamps. | |
wrappable | boolean | 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 wit… |
stellar-account Stellar Account
Make a smart account contract that authorizes operations through configurable signers and policies, for example a multisig with passkey, Ed25519 and delegated signers. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
delegatedSigners | boolean | Whether the account accepts delegated signers, meaning Stellar addresses whose signatures the host verifies. Enabled by default. |
ed25519Signers | boolean | Whether the account accepts raw Ed25519 public keys, verified by an Ed25519 verifier contract supplied at deployment. |
executionEntryPoint | boolean | Whether the account can call other contracts on its own behalf. Needed to manage contracts the account owns, such as its own policies, and enabled by default. |
info | object | Metadata about the contract and author |
policy | How authorization is decided. False requires every configured signer to sign (n-of-n). Simple threshold requires any m of the n signers (a standard multisig). Weighted threshold gives each signer a we… | |
upgradeable | boolean | Whether the account can be upgraded. The upgrade is authorized by the account itself through its context rules, not by an access control role. |
webauthnSigners | boolean | Whether the account accepts WebAuthn (passkey) keys, verified by a WebAuthn verifier contract supplied at deployment. |
stellar-fungible Stellar Fungible
Make a fungible token per the Fungible Token Standard, compatible with SEP-41, similar to ERC-20. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
cap | string | The maximum total supply of the token, in number of tokens. Leave empty for an uncapped token. Requires total supply tracking, which is then enabled automatically. Cannot be used with votes. |
decimals | string | The number of decimals used to represent token amounts. Defaults to 7. |
explicitImplementations | boolean | Whether the contract should use explicit trait implementations instead of using the default ones provided by the library. |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
premint | string | The number of tokens to premint for the deployer. |
totalSupply | boolean | Whether to track the total supply and expose it through a total_supply function. Every mint and burn then writes the same storage entry, which prevents them from executing in parallel. Cannot be used… |
upgradeable | boolean | Whether the contract can be upgraded. |
votes | boolean | Whether to enable vote checkpoints and delegation for governance. Cannot be used with total supply tracking or a cap. |
stellar-governor Stellar Governor
Make a governor contract for on-chain governance using token-based voting. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
access | 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 privileg… | |
explicitImplementations | boolean | Whether the contract should use explicit trait implementations instead of using the default ones provided by the library. |
info | object | Metadata about the contract and author |
proposalThreshold | string | Minimum voting power required for creating a proposal, default is 100. |
quorum | string | Minimum number of votes required for a proposal to pass, default is 500. |
timelock | boolean | Whether to add a timelock mechanism that enforces a delay between proposal queuing and execution. |
upgradeable | boolean | Whether the contract can be upgraded. |
version | string | The semantic version label returned by the governor contract. |
votingDelay | string | Number of ledgers between proposal creation and voting start (17,000 ledgers are approx. 1 day). |
votingPeriod | string | Number of ledgers during which voting remains open (120,000 ledgers are approx. 1 week). Must be greater than 0. |
stellar-stablecoin Stellar Stablecoin
Make a stablecoin that uses Fungible Token Standard, compatible with SEP-41. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
cap | string | The maximum total supply of the token, in number of tokens. Leave empty for an uncapped token. Requires total supply tracking, which is then enabled automatically. Cannot be used with votes. |
decimals | string | The number of decimals used to represent token amounts. Defaults to 7. |
explicitImplementations | boolean | Whether the contract should use explicit trait implementations instead of using the default ones provided by the library. |
info | object | Metadata about the contract and author |
limitations | Whether to restrict certain users from transferring tokens, either via allowing or blocking them. | |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
premint | string | The number of tokens to premint for the deployer. |
totalSupply | boolean | Whether to track the total supply and expose it through a total_supply function. Every mint and burn then writes the same storage entry, which prevents them from executing in parallel. Cannot be used… |
upgradeable | boolean | Whether the contract can be upgraded. |
votes | boolean | Whether to enable vote checkpoints and delegation for governance. Cannot be used with total supply tracking or a cap. |
stellar-non-fungible Stellar Non-Fungible
Make a non-fungible token per the Non-Fungible Token Standard, compatible with SEP-50, similar to ERC-721. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
consecutive | boolean | To batch mint NFTs instead of minting them individually (sequential minting is mandatory). |
defaultRoyaltyBasisPoints | string | The default royalty for the collection in basis points (100 = 1%, maximum 10000), paid to a receiver set at deployment. 0 sets no default royalty. |
enumerable | boolean | Whether the NFTs are enumerable (can be iterated over). |
explicitImplementations | boolean | Whether the contract should use explicit trait implementations instead of using the default ones provided by the library. |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
royalties | boolean | Whether to provide royalty information for sales of the NFTs, following ERC-2981. Privileged accounts can set the default royalty and per-token royalties. |
sequential | boolean | Whether the IDs of the minted NFTs will be sequential. |
tokenUri | string | The metadata URI returned by the token contract for every NFT. |
upgradeable | boolean | Whether the contract can be upgraded. |
votes | boolean | Whether to enable vote checkpoints and delegation for governance. |
stellar-vault Stellar Vault
Make a tokenized vault that issues Fungible Token shares for an underlying asset, similar to ERC-4626. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
decimalsOffset | string | Virtual decimals offset added to the underlying asset decimals to derive the vault share decimals, used to mitigate inflation (donation) attacks via virtual shares. With the default of 0, diluting a s… |
explicitImplementations | boolean | Whether the contract should use explicit trait implementations instead of using the default ones provided by the library. |
info | object | Metadata about the contract and author |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | boolean | Whether the contract can be upgraded. |
stylus-erc20 Stylus ERC20
Make a fungible token per the ERC-20 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
burnable | boolean | Whether token holders will be able to destroy their tokens |
flashmint | boolean | 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 | object | Metadata about the contract and author |
permit | boolean | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. |
stylus-erc721 Stylus ERC721
Make a non-fungible token per the ERC-721 standard. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
burnable | boolean | Whether token holders will be able to destroy their tokens |
enumerable | boolean | Whether to allow on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers. |
info | object | Metadata about the contract and author |
stylus-erc1155 Stylus ERC1155
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
burnable | boolean | Whether token holders will be able to destroy their tokens |
info | object | Metadata about the contract and author |
supply | boolean | Whether to keep track of total supply of tokens |
tron-trc20 TRON TRC20
Make a fungible token per the TRC-20 standard, targeting the TRON Virtual Machine. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
callback | boolean | Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction. |
chainlinkAce | boolean | External policy integration is not supported on TRON. |
crossChainBridging | Bridge mode: custom, ERC-7786 native, or Superchain. Availability depends on the selected network. | |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
decimals | string | The number of decimals used to represent token amounts. Defaults to 18. |
flashmint | boolean | 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 | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
permit | boolean | Whether without paying gas, token holders will be able to allow third parties to transfer from their account. |
premint | string | The number of tokens to premint for the deployer. |
premintChainId | string | The chain ID of the network on which to premint tokens. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
votes | Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps. |
tron-trc721 TRON TRC721
Make a non-fungible token per the TRC-721 standard, targeting the TRON Virtual Machine. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
symbol * | string | The short symbol for the token |
access | 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 privileg… | |
baseUri | string | A base uri for the token |
burnable | boolean | Whether token holders will be able to destroy their tokens |
crossChainBridging | string | Whether to embed an ERC-7786 based bridge directly in the token contract, making it natively crosschain. Crosschain transfers with registered counterparts burn the token on the source chain and mint i… |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
enumerable | boolean | Whether to allow on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers. |
incremental | boolean | Whether new tokens will be automatically assigned an incremental id |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
namespacePrefix | string | The prefix for ERC-7201 namespace identifiers. It should be derived from the project name or a unique naming convention specific to the project. Used only if the contract includes storage variables an… |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
uriStorage | boolean | Allows updating token URIs for individual token IDs |
votes | Whether to keep track of individual units for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps (defaulting to block number if not specified). |
tron-trc1155 TRON TRC1155
Make a multi-token contract per the TRC-1155 standard, targeting the TRON Virtual Machine. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
uri * | string | The location of the metadata for the token. Clients will replace any instance of {id} in this string with the tokenId. |
access | 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 privileg… | |
burnable | boolean | Whether token holders will be able to destroy their tokens |
crossChainBridging | string | Whether to embed an ERC-7786 based bridge directly in the token contract, making it natively crosschain. Crosschain transfers with registered counterparts burn the tokens on the source chain and mint… |
crossChainLinkAllowOverride | boolean | Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to "erc7786native". |
info | object | Metadata about the contract and author |
mintable | boolean | Whether privileged accounts will be able to create more supply or emit more tokens |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
supply | boolean | Whether to keep track of total supply of tokens |
updatableUri | boolean | Whether privileged accounts will be able to set a new URI for all token types |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… |
tron-governor TRON Governor
Make a contract to implement governance, such as for a DAO, targeting the TRON Virtual Machine. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
delay * | string | The delay since proposal is created until voting starts, default is "1 day" |
name * | string | The name of the contract |
period * | string | The length of period during which people can cast their vote, default is "1 week" |
blockTime | number | The block time of the chain in seconds, default is 3. |
clockMode | The clock mode used by the voting token. For Governor, this must be chosen to match what the ERC20 or ERC721 voting token uses. | |
crossChainExecution | boolean | Whether passed proposals can relay execution to other chains through ERC-7786 gateways. Requires a CrosschainRemoteExecutor contract, controlled by this governor, deployed on each target chain. The ga… |
decimals | number | The number of decimals to use for the contract, default is 18 for ERC20Votes and 0 for ERC721Votes (because it does not apply to ERC721Votes) |
info | object | Metadata about the contract and author |
proposalThreshold | string | Minimum number of votes an account must have to create a proposal, default is 0. |
quorumAbsolute | string | The absolute quorum required, in cases of quorumMode equals absolute |
quorumMode | The type of quorum mode to use | |
quorumPercent | number | The percent required, in cases of quorumMode equals percent |
settings | boolean | Allow governance to update voting settings (delay, period, proposal threshold) |
storage | boolean | Enable storage of proposal details and enumerability of proposals |
timelock | The type of timelock to use | |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… | |
votes | The type of voting to use |
tron-custom TRON Custom
Make a custom smart contract, targeting the TRON Virtual Machine. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the contract |
access | 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 privileg… | |
info | object | Metadata about the contract and author |
pausable | boolean | Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response. |
upgradeable | Whether the smart contract is upgradeable. Transparent uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with beacons. UUPS uses simpler proxy with… |
uniswap-hooks Uniswap Hooks
Make a Uniswap v4 hook contract using the OpenZeppelin Uniswap Hooks library. Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.