OpenZeppelin Solidity Contracts MCP Server
Генерация смарт-контрактов на Solidity по проверенным шаблонам OpenZeppelin
Добавьте сервер в «Мои MCP» — получите адрес подключения для Claude и ChatGPT.
Добавить в «Мои MCP»Нужно войти или зарегистрироваться — вернём на эту страницу.
Описание
Сервер OpenZeppelin генерирует исходный код смарт-контрактов на Solidity на основе библиотеки OpenZeppelin Contracts — стандарта для токенов и DAO. Код возвращается в ответе, на диск и в сеть ничего не отправляется. Инструменты: - solidity-erc20 — взаимозаменяемый токен (ERC-20); - solidity-erc721 и solidity-erc1155 — NFT-токены; - solidity-stablecoin и solidity-rwa — стейблкоин и токен реального актива (экспериментальные, не прошли аудит); - solidity-account — смарт-аккаунт по ERC-4337; - solidity-governor — контракт голосования для DAO; - solidity-custom — произвольный контракт. Кому полезен: блокчейн-разработчикам, которым нужен проверенный каркас контракта. Пример вопроса: — «Сгенерируй ERC-20 токен с возможностью паузы и сжигания» Ключ не нужен. Перед развёртыванием в сети код нужно проверить.
Инструменты · 8
из ответа tools/list
Solidity Account
solidity-account
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.
solidity-account(info?: object, name: string, signer?: any, upgradeable?: any, ERC721Holder?: boolean, ERC1155Holder?: boolean, ERC7579Modules?: any, batchedExecution?: boolean, signatureValidation?: any)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the account contract"
},
"signer": {
"anyOf": [
{
"anyOf": [
{
"anyOf": [
{
"anyOf": [
{
"anyOf": [
{
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "ECDSA"
}
]
},
{
"type": "string",
"const": "EIP7702"
}
]
},
{
"type": "string",
"const": "Multisig"
}
]
},
{
"type": "string",
"const": "MultisigWeighted"
}
]
},
{
"type": "string",
"const": "P256"
}
]
},
{
"type": "string",
"const": "RSA"
}
]
},
{
"type": "string",
"const": "WebAuthn"
}
],
"description": "Defines the signature verification algorithm used by the account to verify user operations. Options:\n - ECDSA: Standard Ethereum signature validation using secp256k1, validates signatures against a specified owner address\n - EIP7702: Special ECDSA validation using account's own address as signer, enables EOAs to delegate execution rights\n - Multisig: ERC-7913 multisignature requiring minimum number of signatures from authorized signers\n - MultisigWeighted: ERC-7913 weighted multisignature where signers have different voting weights\n - P256: NIST P-256 curve (secp256r1) validation for integration with Passkeys and HSMs\n - RSA: RSA PKCS#1 v1.5 signature validation (RFC8017) for PKI systems and HSMs\n - WebAuthn: Web Authentication (WebAuthn) assertion validation for integration with Passkeys and HSMs on top of P256"
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
},
"ERC721Holder": {
"type": "boolean",
"description": "Whether to implement the `onERC721Received` function to allow the account to receive ERC721 tokens."
},
"ERC1155Holder": {
"type": "boolean",
"description": "Whether to implement the `onERC1155Received` function to allow the account to receive ERC1155 tokens."
},
"ERC7579Modules": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "AccountERC7579"
}
]
},
{
"type": "string",
"const": "AccountERC7579Hooked"
}
],
"description": "Whether to implement the ERC-7579 compatibility to enable functionality on the account with modules."
},
"batchedExecution": {
"type": "boolean",
"description": "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."
},
"signatureValidation": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "ERC1271"
}
]
},
{
"type": "string",
"const": "ERC7739"
}
],
"description": "Whether to implement the ERC-1271 standard for validating signatures. This is useful for the account to verify signatures."
}
}
}
Solidity Custom
solidity-custom
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.
solidity-custom(info?: object, name: string, access?: any, pausable?: boolean, upgradeable?: any)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
}
}
}
Solidity ERC1155
solidity-erc1155
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.
solidity-erc1155(uri: string, info?: object, name: string, access?: any, supply?: boolean, burnable?: boolean, mintable?: boolean, pausable?: boolean, upgradeable?: any, updatableUri?: boolean, crossChainBridging?: string, crossChainLinkAllowOverride?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"uri"
],
"properties": {
"uri": {
"type": "string",
"description": "The location of the metadata for the token. Clients will replace any instance of {id} in this string with the tokenId."
},
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"supply": {
"type": "boolean",
"description": "Whether to keep track of total supply of tokens"
},
"burnable": {
"type": "boolean",
"description": "Whether token holders will be able to destroy their tokens"
},
"mintable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to create more supply or emit more tokens"
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
},
"updatableUri": {
"type": "boolean",
"description": "Whether privileged accounts will be able to set a new URI for all token types"
},
"crossChainBridging": {
"type": "string",
"const": "erc7786native",
"description": "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 them on the destination chain."
},
"crossChainLinkAllowOverride": {
"type": "boolean",
"description": "Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to \"erc7786native\"."
}
}
}
Solidity ERC20
solidity-erc20
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.
solidity-erc20(info?: object, name: string, votes?: any, access?: any, permit?: boolean, symbol: string, premint?: string, burnable?: boolean, callback?: boolean, decimals?: string, mintable?: boolean, pausable?: boolean, flashmint?: boolean, upgradeable?: any, premintChainId?: string, namespacePrefix?: string, crossChainBridging?: any, crossChainLinkAllowOverride?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"symbol"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"votes": {
"anyOf": [
{
"type": "string",
"const": "blocknumber"
},
{
"type": "string",
"const": "timestamp"
}
],
"description": "Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps."
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"permit": {
"type": "boolean",
"description": "Whether without paying gas, token holders will be able to allow third parties to transfer from their account."
},
"symbol": {
"type": "string",
"description": "The short symbol for the token"
},
"premint": {
"type": "string",
"description": "The number of tokens to premint for the deployer."
},
"burnable": {
"type": "boolean",
"description": "Whether token holders will be able to destroy their tokens"
},
"callback": {
"type": "boolean",
"description": "Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction."
},
"decimals": {
"type": "string",
"description": "The number of decimals used to represent token amounts. Defaults to 18."
},
"mintable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to create more supply or emit more tokens"
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"flashmint": {
"type": "boolean",
"description": "Whether to include built-in flash loans to allow lending tokens without requiring collateral as long as they're returned in the same transaction."
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
},
"premintChainId": {
"type": "string",
"description": "The chain ID of the network on which to premint tokens."
},
"namespacePrefix": {
"type": "string",
"description": "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 and upgradeability is enabled. Default is \"myProject\"."
},
"crossChainBridging": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "custom"
},
{
"type": "string",
"const": "erc7786native"
}
]
},
{
"type": "string",
"const": "superchain"
}
],
"description": "Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are to use custom bridges on any chain, to embed an ERC-7786 based bridge directly in the token contract, or to use the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. 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."
},
"crossChainLinkAllowOverride": {
"type": "boolean",
"description": "Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to \"erc7786native\"."
}
}
}
Solidity ERC721
solidity-erc721
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.
solidity-erc721(info?: object, name: string, votes?: any, access?: any, symbol: string, baseUri?: string, burnable?: boolean, mintable?: boolean, pausable?: boolean, enumerable?: boolean, uriStorage?: boolean, incremental?: boolean, upgradeable?: any, namespacePrefix?: string, crossChainBridging?: string, crossChainLinkAllowOverride?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"symbol"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"votes": {
"anyOf": [
{
"type": "string",
"const": "blocknumber"
},
{
"type": "string",
"const": "timestamp"
}
],
"description": "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)."
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"symbol": {
"type": "string",
"description": "The short symbol for the token"
},
"baseUri": {
"type": "string",
"description": "A base uri for the token"
},
"burnable": {
"type": "boolean",
"description": "Whether token holders will be able to destroy their tokens"
},
"mintable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to create more supply or emit more tokens"
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"enumerable": {
"type": "boolean",
"description": "Whether to allow on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers."
},
"uriStorage": {
"type": "boolean",
"description": "Allows updating token URIs for individual token IDs"
},
"incremental": {
"type": "boolean",
"description": "Whether new tokens will be automatically assigned an incremental id"
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
},
"namespacePrefix": {
"type": "string",
"description": "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 and upgradeability is enabled. Default is \"myProject\"."
},
"crossChainBridging": {
"type": "string",
"const": "erc7786native",
"description": "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 it on the destination chain. If also using incremental token ids, mint only on a single chain and link counterparts without minting, otherwise colliding ids can strand bridged tokens."
},
"crossChainLinkAllowOverride": {
"type": "boolean",
"description": "Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to \"erc7786native\"."
}
}
}
Solidity Governor
solidity-governor
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.
solidity-governor(info?: object, name: string, delay: string, votes?: any, period: string, storage?: boolean, decimals?: number, settings?: boolean, timelock?: any, blockTime?: number, clockMode?: any, quorumMode?: any, upgradeable?: any, quorumPercent?: number, quorumAbsolute?: string, proposalThreshold?: string, crossChainExecution?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"delay",
"period"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"delay": {
"type": "string",
"description": "The delay since proposal is created until voting starts, default is \"1 day\""
},
"votes": {
"anyOf": [
{
"type": "string",
"const": "erc20votes"
},
{
"type": "string",
"const": "erc721votes"
}
],
"description": "The type of voting to use"
},
"period": {
"type": "string",
"description": "The length of period during which people can cast their vote, default is \"1 week\""
},
"storage": {
"type": "boolean",
"description": "Enable storage of proposal details and enumerability of proposals"
},
"decimals": {
"type": "number",
"description": "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)"
},
"settings": {
"type": "boolean",
"description": "Allow governance to update voting settings (delay, period, proposal threshold)"
},
"timelock": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "openzeppelin"
}
]
},
{
"type": "string",
"const": "compound"
}
],
"description": "The type of timelock to use"
},
"blockTime": {
"type": "number",
"description": "The block time of the chain in seconds, default is 12"
},
"clockMode": {
"anyOf": [
{
"type": "string",
"const": "blocknumber"
},
{
"type": "string",
"const": "timestamp"
}
],
"description": "The clock mode used by the voting token. For Governor, this must be chosen to match what the ERC20 or ERC721 voting token uses."
},
"quorumMode": {
"anyOf": [
{
"type": "string",
"const": "percent"
},
{
"type": "string",
"const": "absolute"
}
],
"description": "The type of quorum mode to use"
},
"upgradeable": {
"anyOf": [
{
"type": "string",
"const": "transparent"
},
{
"type": "string",
"const": "uups"
}
],
"description": "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 less overhead, requires including extra code in your contract. Allows flexibility for authorizing upgrades."
},
"quorumPercent": {
"type": "number",
"description": "The percent required, in cases of quorumMode equals percent"
},
"quorumAbsolute": {
"type": "string",
"description": "The absolute quorum required, in cases of quorumMode equals absolute"
},
"proposalThreshold": {
"type": "string",
"description": "Minimum number of votes an account must have to create a proposal, default is 0."
},
"crossChainExecution": {
"type": "boolean",
"description": "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 gateway and executor are chosen per proposal as arguments to the relayCrosschain function."
}
}
}
Solidity RWA
solidity-rwa
Solidity RWA
solidity-rwa 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.
solidity-rwa(info?: object, name: string, votes?: any, access?: any, permit?: boolean, symbol: string, premint?: string, burnable?: boolean, callback?: boolean, decimals?: string, mintable?: boolean, pausable?: boolean, flashmint?: boolean, freezable?: boolean, restrictions?: any, premintChainId?: string, namespacePrefix?: string, crossChainBridging?: any, crossChainLinkAllowOverride?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"symbol"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"votes": {
"anyOf": [
{
"type": "string",
"const": "blocknumber"
},
{
"type": "string",
"const": "timestamp"
}
],
"description": "Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps."
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"permit": {
"type": "boolean",
"description": "Whether without paying gas, token holders will be able to allow third parties to transfer from their account."
},
"symbol": {
"type": "string",
"description": "The short symbol for the token"
},
"premint": {
"type": "string",
"description": "The number of tokens to premint for the deployer."
},
"burnable": {
"type": "boolean",
"description": "Whether token holders will be able to destroy their tokens"
},
"callback": {
"type": "boolean",
"description": "Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction."
},
"decimals": {
"type": "string",
"description": "The number of decimals used to represent token amounts. Defaults to 18."
},
"mintable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to create more supply or emit more tokens"
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"flashmint": {
"type": "boolean",
"description": "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": {
"type": "boolean",
"description": "Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change."
},
"restrictions": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "allowlist"
}
]
},
{
"type": "string",
"const": "blocklist"
}
],
"description": "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."
},
"premintChainId": {
"type": "string",
"description": "The chain ID of the network on which to premint tokens."
},
"namespacePrefix": {
"type": "string",
"description": "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 and upgradeability is enabled. Default is \"myProject\"."
},
"crossChainBridging": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "custom"
},
{
"type": "string",
"const": "erc7786native"
}
]
},
{
"type": "string",
"const": "superchain"
}
],
"description": "Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are to use custom bridges on any chain, to embed an ERC-7786 based bridge directly in the token contract, or to use the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. 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."
},
"crossChainLinkAllowOverride": {
"type": "boolean",
"description": "Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to \"erc7786native\"."
}
}
}
Solidity Stablecoin
solidity-stablecoin
Solidity Stablecoin
solidity-stablecoin Make a stablecoin 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.
solidity-stablecoin(info?: object, name: string, votes?: any, access?: any, permit?: boolean, symbol: string, premint?: string, burnable?: boolean, callback?: boolean, decimals?: string, mintable?: boolean, pausable?: boolean, flashmint?: boolean, freezable?: boolean, restrictions?: any, premintChainId?: string, namespacePrefix?: string, crossChainBridging?: any, crossChainLinkAllowOverride?: boolean)
// inputSchema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"symbol"
],
"properties": {
"info": {
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "The license used by the contract, default is \"MIT\""
},
"securityContact": {
"type": "string",
"description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified."
}
},
"description": "Metadata about the contract and author"
},
"name": {
"type": "string",
"description": "The name of the contract"
},
"votes": {
"anyOf": [
{
"type": "string",
"const": "blocknumber"
},
{
"type": "string",
"const": "timestamp"
}
],
"description": "Whether to keep track of historical balances for voting in on-chain governance. Voting durations can be expressed as block numbers or timestamps."
},
"access": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "ownable"
},
{
"type": "string",
"const": "roles"
}
]
},
{
"type": "string",
"const": "managed"
}
],
"description": "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."
},
"permit": {
"type": "boolean",
"description": "Whether without paying gas, token holders will be able to allow third parties to transfer from their account."
},
"symbol": {
"type": "string",
"description": "The short symbol for the token"
},
"premint": {
"type": "string",
"description": "The number of tokens to premint for the deployer."
},
"burnable": {
"type": "boolean",
"description": "Whether token holders will be able to destroy their tokens"
},
"callback": {
"type": "boolean",
"description": "Whether to include support for code execution after transfers and approvals on recipient contracts in a single transaction."
},
"decimals": {
"type": "string",
"description": "The number of decimals used to represent token amounts. Defaults to 18."
},
"mintable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to create more supply or emit more tokens"
},
"pausable": {
"type": "boolean",
"description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response."
},
"flashmint": {
"type": "boolean",
"description": "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": {
"type": "boolean",
"description": "Whether authorized accounts can freeze and unfreeze accounts for regulatory or security purposes. This feature is experimental, not audited and is subject to change."
},
"restrictions": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"const": "allowlist"
}
]
},
{
"type": "string",
"const": "blocklist"
}
],
"description": "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."
},
"premintChainId": {
"type": "string",
"description": "The chain ID of the network on which to premint tokens."
},
"namespacePrefix": {
"type": "string",
"description": "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 and upgradeability is enabled. Default is \"myProject\"."
},
"crossChainBridging": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "custom"
},
{
"type": "string",
"const": "erc7786native"
}
]
},
{
"type": "string",
"const": "superchain"
}
],
"description": "Whether to allow authorized bridge contracts to mint and burn tokens for crosschain transfers. Options are to use custom bridges on any chain, to embed an ERC-7786 based bridge directly in the token contract, or to use the SuperchainERC20 standard with the predeployed SuperchainTokenBridge. 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."
},
"crossChainLinkAllowOverride": {
"type": "boolean",
"description": "Whether to allow replacing a crosschain link that has already been registered. Only used if crossChainBridging is set to \"erc7786native\"."
}
}
}
Вопросы, новые серверы, обсуждение MCP
t.me/rusmcp · t.me/RusMcp_bot