@openzeppelin/contracts-mcp 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cairo/tools/account.js +2 -2
  2. package/dist/cairo/tools/account.js.map +1 -1
  3. package/dist/cairo/tools/custom.js +2 -2
  4. package/dist/cairo/tools/custom.js.map +1 -1
  5. package/dist/cairo/tools/erc1155.js +2 -2
  6. package/dist/cairo/tools/erc1155.js.map +1 -1
  7. package/dist/cairo/tools/erc20.js +2 -2
  8. package/dist/cairo/tools/erc20.js.map +1 -1
  9. package/dist/cairo/tools/erc721.js +2 -2
  10. package/dist/cairo/tools/erc721.js.map +1 -1
  11. package/dist/cairo/tools/governor.js +2 -2
  12. package/dist/cairo/tools/governor.js.map +1 -1
  13. package/dist/cairo/tools/multisig.js +2 -2
  14. package/dist/cairo/tools/multisig.js.map +1 -1
  15. package/dist/cairo/tools/vesting.js +2 -2
  16. package/dist/cairo/tools/vesting.js.map +1 -1
  17. package/dist/confidential/tools/erc7984.js +2 -2
  18. package/dist/confidential/tools/erc7984.js.map +1 -1
  19. package/dist/solidity/tools/account.js +2 -2
  20. package/dist/solidity/tools/account.js.map +1 -1
  21. package/dist/solidity/tools/custom.js +2 -2
  22. package/dist/solidity/tools/custom.js.map +1 -1
  23. package/dist/solidity/tools/erc1155.js +2 -2
  24. package/dist/solidity/tools/erc1155.js.map +1 -1
  25. package/dist/solidity/tools/erc20.js +2 -2
  26. package/dist/solidity/tools/erc20.js.map +1 -1
  27. package/dist/solidity/tools/erc721.js +2 -2
  28. package/dist/solidity/tools/erc721.js.map +1 -1
  29. package/dist/solidity/tools/governor.js +2 -2
  30. package/dist/solidity/tools/governor.js.map +1 -1
  31. package/dist/solidity/tools/rwa.js +2 -2
  32. package/dist/solidity/tools/rwa.js.map +1 -1
  33. package/dist/solidity/tools/stablecoin.js +2 -2
  34. package/dist/solidity/tools/stablecoin.js.map +1 -1
  35. package/dist/stellar/tools/fungible.js +2 -2
  36. package/dist/stellar/tools/fungible.js.map +1 -1
  37. package/dist/stellar/tools/non-fungible.js +2 -2
  38. package/dist/stellar/tools/non-fungible.js.map +1 -1
  39. package/dist/stellar/tools/stablecoin.js +2 -2
  40. package/dist/stellar/tools/stablecoin.js.map +1 -1
  41. package/dist/stylus/tools/erc1155.js +2 -2
  42. package/dist/stylus/tools/erc1155.js.map +1 -1
  43. package/dist/stylus/tools/erc20.js +2 -2
  44. package/dist/stylus/tools/erc20.js.map +1 -1
  45. package/dist/stylus/tools/erc721.js +2 -2
  46. package/dist/stylus/tools/erc721.js.map +1 -1
  47. package/dist/uniswap-hooks/tools/hooks.js +2 -2
  48. package/dist/uniswap-hooks/tools/hooks.js.map +1 -1
  49. package/package.json +5 -5
  50. package/src/cairo/tools/account.ts +2 -2
  51. package/src/cairo/tools/custom.ts +2 -2
  52. package/src/cairo/tools/erc1155.ts +2 -2
  53. package/src/cairo/tools/erc20.ts +2 -2
  54. package/src/cairo/tools/erc721.ts +2 -2
  55. package/src/cairo/tools/governor.ts +2 -2
  56. package/src/cairo/tools/multisig.ts +2 -2
  57. package/src/cairo/tools/vesting.ts +2 -2
  58. package/src/confidential/tools/erc7984.ts +2 -2
  59. package/src/solidity/tools/account.ts +2 -2
  60. package/src/solidity/tools/custom.ts +2 -2
  61. package/src/solidity/tools/erc1155.ts +2 -2
  62. package/src/solidity/tools/erc20.ts +2 -2
  63. package/src/solidity/tools/erc721.ts +2 -2
  64. package/src/solidity/tools/governor.ts +2 -2
  65. package/src/solidity/tools/rwa.ts +2 -2
  66. package/src/solidity/tools/stablecoin.ts +2 -2
  67. package/src/stellar/tools/fungible.ts +2 -2
  68. package/src/stellar/tools/non-fungible.ts +2 -2
  69. package/src/stellar/tools/stablecoin.ts +2 -2
  70. package/src/stylus/tools/erc1155.ts +2 -2
  71. package/src/stylus/tools/erc20.ts +2 -2
  72. package/src/stylus/tools/erc721.ts +2 -2
  73. package/src/uniswap-hooks/tools/hooks.ts +2 -2
  74. package/dist/cairo/schemas.d.ts +0 -200
  75. package/dist/cairo/schemas.d.ts.map +0 -1
  76. package/dist/cairo/schemas.js +0 -153
  77. package/dist/cairo/schemas.js.map +0 -1
  78. package/dist/confidential/schemas.d.ts +0 -21
  79. package/dist/confidential/schemas.d.ts.map +0 -1
  80. package/dist/confidential/schemas.js +0 -33
  81. package/dist/confidential/schemas.js.map +0 -1
  82. package/dist/solidity/schemas.d.ts +0 -157
  83. package/dist/solidity/schemas.d.ts.map +0 -1
  84. package/dist/solidity/schemas.js +0 -166
  85. package/dist/solidity/schemas.js.map +0 -1
  86. package/dist/stellar/schemas.d.ts +0 -60
  87. package/dist/stellar/schemas.d.ts.map +0 -1
  88. package/dist/stellar/schemas.js +0 -58
  89. package/dist/stellar/schemas.js.map +0 -1
  90. package/dist/stylus/schemas.d.ts +0 -36
  91. package/dist/stylus/schemas.d.ts.map +0 -1
  92. package/dist/stylus/schemas.js +0 -44
  93. package/dist/stylus/schemas.js.map +0 -1
  94. package/dist/uniswap-hooks/schemas.d.ts +0 -67
  95. package/dist/uniswap-hooks/schemas.d.ts.map +0 -1
  96. package/dist/uniswap-hooks/schemas.js +0 -78
  97. package/dist/uniswap-hooks/schemas.js.map +0 -1
  98. package/src/cairo/schemas.ts +0 -176
  99. package/src/confidential/schemas.ts +0 -35
  100. package/src/solidity/schemas.ts +0 -186
  101. package/src/stellar/schemas.ts +0 -69
  102. package/src/stylus/schemas.ts +0 -54
  103. package/src/uniswap-hooks/schemas.ts +0 -92
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { AccountOptions } from '@openzeppelin/wizard-cairo';
3
3
  import { account } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { accountSchema } from '../schemas';
5
+ import { cairoAccountSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoAccount(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-account',
11
11
  makeDetailedPrompt(cairoPrompts.Account),
12
- accountSchema,
12
+ cairoAccountSchema,
13
13
  async ({ name, type, declare, deploy, pubkey, outsideExecution, upgradeable, info, macros }) => {
14
14
  const opts: AccountOptions = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { CustomOptions } from '@openzeppelin/wizard-cairo';
3
3
  import { custom } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { customSchema } from '../schemas';
5
+ import { cairoCustomSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoCustom(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-custom',
11
11
  makeDetailedPrompt(cairoPrompts.Custom),
12
- customSchema,
12
+ cairoCustomSchema,
13
13
  async ({ name, pausable, access, upgradeable, info, macros }) => {
14
14
  const opts: CustomOptions = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC1155Options } from '@openzeppelin/wizard-cairo';
3
3
  import { erc1155 } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc1155Schema } from '../schemas';
5
+ import { cairoERC1155Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoERC1155(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-erc1155',
11
11
  makeDetailedPrompt(cairoPrompts.ERC1155),
12
- erc1155Schema,
12
+ cairoERC1155Schema,
13
13
  async ({
14
14
  name,
15
15
  baseUri,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC20Options } from '@openzeppelin/wizard-cairo';
3
3
  import { erc20 } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc20Schema } from '../schemas';
5
+ import { cairoERC20Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoERC20(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-erc20',
11
11
  makeDetailedPrompt(cairoPrompts.ERC20),
12
- erc20Schema,
12
+ cairoERC20Schema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC721Options } from '@openzeppelin/wizard-cairo';
3
3
  import { erc721 } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc721Schema } from '../schemas';
5
+ import { cairoERC721Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoERC721(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-erc721',
11
11
  makeDetailedPrompt(cairoPrompts.ERC721),
12
- erc721Schema,
12
+ cairoERC721Schema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { GovernorOptions } from '@openzeppelin/wizard-cairo';
3
3
  import { governor } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { governorSchema } from '../schemas';
5
+ import { cairoGovernorSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoGovernor(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-governor',
11
11
  makeDetailedPrompt(cairoPrompts.Governor),
12
- governorSchema,
12
+ cairoGovernorSchema,
13
13
  async ({
14
14
  name,
15
15
  delay,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { MultisigOptions } from '@openzeppelin/wizard-cairo';
3
3
  import { multisig } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { multisigSchema } from '../schemas';
5
+ import { cairoMultisigSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoMultisig(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-multisig',
11
11
  makeDetailedPrompt(cairoPrompts.Multisig),
12
- multisigSchema,
12
+ cairoMultisigSchema,
13
13
  async ({ name, quorum, upgradeable, info, macros }) => {
14
14
  const opts: MultisigOptions = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { VestingOptions } from '@openzeppelin/wizard-cairo';
3
3
  import { vesting } from '@openzeppelin/wizard-cairo';
4
4
  import { safePrintCairoCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { vestingSchema } from '../schemas';
5
+ import { cairoVestingSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { cairoPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerCairoVesting(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'cairo-vesting',
11
11
  makeDetailedPrompt(cairoPrompts.Vesting),
12
- vestingSchema,
12
+ cairoVestingSchema,
13
13
  async ({ name, startDate, duration, cliffDuration, schedule, info, macros }) => {
14
14
  const opts: VestingOptions = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC7984Options } from '@openzeppelin/wizard-confidential';
3
3
  import { erc7984 } from '@openzeppelin/wizard-confidential';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc7984Schema } from '../schemas';
5
+ import { confidentialERC7984Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { confidentialPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerConfidentialERC7984(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'erc7984',
11
11
  makeDetailedPrompt(confidentialPrompts.ERC7984),
12
- erc7984Schema,
12
+ confidentialERC7984Schema,
13
13
  async ({ name, symbol, contractURI, premint, networkConfig, wrappable, votes, info }) => {
14
14
  const opts: ERC7984Options = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { AccountOptions } from '@openzeppelin/wizard';
3
3
  import { account } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { accountSchema } from '../schemas';
5
+ import { solidityAccountSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityAccount(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-account',
11
11
  makeDetailedPrompt(solidityPrompts.Account),
12
- accountSchema,
12
+ solidityAccountSchema,
13
13
  async ({
14
14
  name,
15
15
  signatureValidation,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { CustomOptions } from '@openzeppelin/wizard';
3
3
  import { custom } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { customSchema } from '../schemas';
5
+ import { solidityCustomSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityCustom(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-custom',
11
11
  makeDetailedPrompt(solidityPrompts.Custom),
12
- customSchema,
12
+ solidityCustomSchema,
13
13
  async ({ name, pausable, access, upgradeable, info }) => {
14
14
  const opts: CustomOptions = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC1155Options } from '@openzeppelin/wizard';
3
3
  import { erc1155 } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc1155Schema } from '../schemas';
5
+ import { solidityERC1155Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityERC1155(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-erc1155',
11
11
  makeDetailedPrompt(solidityPrompts.ERC1155),
12
- erc1155Schema,
12
+ solidityERC1155Schema,
13
13
  async ({ name, uri, burnable, pausable, mintable, supply, updatableUri, access, upgradeable, info }) => {
14
14
  const opts: ERC1155Options = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC20Options } from '@openzeppelin/wizard';
3
3
  import { erc20 } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc20Schema } from '../schemas';
5
+ import { solidityERC20Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityERC20(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-erc20',
11
11
  makeDetailedPrompt(solidityPrompts.ERC20),
12
- erc20Schema,
12
+ solidityERC20Schema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC721Options } from '@openzeppelin/wizard';
3
3
  import { erc721 } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc721Schema } from '../schemas';
5
+ import { solidityERC721Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityERC721(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-erc721',
11
11
  makeDetailedPrompt(solidityPrompts.ERC721),
12
- erc721Schema,
12
+ solidityERC721Schema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { GovernorOptions } from '@openzeppelin/wizard';
3
3
  import { governor } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { governorSchema } from '../schemas';
5
+ import { solidityGovernorSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityGovernor(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-governor',
11
11
  makeDetailedPrompt(solidityPrompts.Governor),
12
- governorSchema,
12
+ solidityGovernorSchema,
13
13
  async ({
14
14
  name,
15
15
  delay,
@@ -2,14 +2,14 @@ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import type { StablecoinOptions } from '@openzeppelin/wizard';
3
3
  import { realWorldAsset } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { rwaSchema } from '../schemas';
5
+ import { solidityRWASchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityRWA(server: McpServer) {
9
9
  return server.tool(
10
10
  'solidity-rwa',
11
11
  makeDetailedPrompt(solidityPrompts.RWA),
12
- rwaSchema,
12
+ solidityRWASchema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { StablecoinOptions } from '@openzeppelin/wizard';
3
3
  import { stablecoin } from '@openzeppelin/wizard';
4
4
  import { safePrintSolidityCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { stablecoinSchema } from '../schemas';
5
+ import { solidityStablecoinSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { solidityPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerSolidityStablecoin(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'solidity-stablecoin',
11
11
  makeDetailedPrompt(solidityPrompts.Stablecoin),
12
- stablecoinSchema,
12
+ solidityStablecoinSchema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { FungibleOptions } from '@openzeppelin/wizard-stellar';
3
3
  import { fungible } from '@openzeppelin/wizard-stellar';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { fungibleSchema } from '../schemas';
5
+ import { stellarFungibleSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stellarPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStellarFungible(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stellar-fungible',
11
11
  makeDetailedPrompt(stellarPrompts.Fungible),
12
- fungibleSchema,
12
+ stellarFungibleSchema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { NonFungibleOptions } from '@openzeppelin/wizard-stellar';
3
3
  import { nonFungible } from '@openzeppelin/wizard-stellar';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { nonFungibleSchema } from '../schemas';
5
+ import { stellarNonFungibleSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stellarPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStellarNonFungible(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stellar-non-fungible',
11
11
  makeDetailedPrompt(stellarPrompts.NonFungible),
12
- nonFungibleSchema,
12
+ stellarNonFungibleSchema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { StablecoinOptions } from '@openzeppelin/wizard-stellar';
3
3
  import { stablecoin } from '@openzeppelin/wizard-stellar';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { stablecoinSchema } from '../schemas';
5
+ import { stellarStablecoinSchema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stellarPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStellarStablecoin(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stellar-stablecoin',
11
11
  makeDetailedPrompt(stellarPrompts.Stablecoin),
12
- stablecoinSchema,
12
+ stellarStablecoinSchema,
13
13
  async ({
14
14
  name,
15
15
  symbol,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC1155Options } from '@openzeppelin/wizard-stylus';
3
3
  import { erc1155 } from '@openzeppelin/wizard-stylus';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc1155Schema } from '../schemas';
5
+ import { stylusERC1155Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stylusPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStylusERC1155(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stylus-erc1155',
11
11
  makeDetailedPrompt(stylusPrompts.ERC1155),
12
- erc1155Schema,
12
+ stylusERC1155Schema,
13
13
  async ({ name, burnable, supply, info }) => {
14
14
  const opts: ERC1155Options = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC20Options } from '@openzeppelin/wizard-stylus';
3
3
  import { erc20 } from '@openzeppelin/wizard-stylus';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc20Schema } from '../schemas';
5
+ import { stylusERC20Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stylusPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStylusERC20(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stylus-erc20',
11
11
  makeDetailedPrompt(stylusPrompts.ERC20),
12
- erc20Schema,
12
+ stylusERC20Schema,
13
13
  async ({ name, burnable, permit, flashmint, info }) => {
14
14
  const opts: ERC20Options = {
15
15
  name,
@@ -2,14 +2,14 @@ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server
2
2
  import type { ERC721Options } from '@openzeppelin/wizard-stylus';
3
3
  import { erc721 } from '@openzeppelin/wizard-stylus';
4
4
  import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
5
- import { erc721Schema } from '../schemas';
5
+ import { stylusERC721Schema } from '@openzeppelin/wizard-common/schemas';
6
6
  import { stylusPrompts } from '@openzeppelin/wizard-common';
7
7
 
8
8
  export function registerStylusERC721(server: McpServer): RegisteredTool {
9
9
  return server.tool(
10
10
  'stylus-erc721',
11
11
  makeDetailedPrompt(stylusPrompts.ERC721),
12
- erc721Schema,
12
+ stylusERC721Schema,
13
13
  async ({ name, burnable, enumerable, info }) => {
14
14
  const opts: ERC721Options = {
15
15
  name,
@@ -1,6 +1,6 @@
1
1
  import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { hooks, type HooksOptions } from '@openzeppelin/wizard-uniswap-hooks';
3
- import { hooksSchema } from '../schemas';
3
+ import { uniswapHooksHooksSchema } from '@openzeppelin/wizard-common/schemas';
4
4
  import { makeDetailedPrompt, safePrintSolidityCodeBlock } from '../../utils';
5
5
  import { uniswapHooksPrompts } from '@openzeppelin/wizard-common';
6
6
 
@@ -8,7 +8,7 @@ export function registerUniswapHooks(server: McpServer): RegisteredTool {
8
8
  return server.tool(
9
9
  'uniswap-hooks',
10
10
  makeDetailedPrompt(uniswapHooksPrompts.Hooks),
11
- hooksSchema,
11
+ uniswapHooksHooksSchema,
12
12
  async ({
13
13
  hook,
14
14
  name,
@@ -1,200 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const commonSchema: {
3
- readonly access: z.ZodObject<{
4
- type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
5
- darInitialDelay: z.ZodString;
6
- darDefaultDelayIncrease: z.ZodString;
7
- darMaxTransferDelay: z.ZodString;
8
- }, z.core.$strip>;
9
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
10
- readonly info: z.ZodOptional<z.ZodObject<{
11
- securityContact: z.ZodOptional<z.ZodString>;
12
- license: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>>;
14
- readonly macros: z.ZodOptional<z.ZodObject<{
15
- withComponents: z.ZodBoolean;
16
- }, z.core.$strip>>;
17
- };
18
- export declare const erc20Schema: {
19
- readonly access: z.ZodObject<{
20
- type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
21
- darInitialDelay: z.ZodString;
22
- darDefaultDelayIncrease: z.ZodString;
23
- darMaxTransferDelay: z.ZodString;
24
- }, z.core.$strip>;
25
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
26
- readonly info: z.ZodOptional<z.ZodObject<{
27
- securityContact: z.ZodOptional<z.ZodString>;
28
- license: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>>;
30
- readonly macros: z.ZodOptional<z.ZodObject<{
31
- withComponents: z.ZodBoolean;
32
- }, z.core.$strip>>;
33
- readonly name: z.ZodString;
34
- readonly symbol: z.ZodString;
35
- readonly decimals: z.ZodOptional<z.ZodString>;
36
- readonly burnable: z.ZodOptional<z.ZodBoolean>;
37
- readonly pausable: z.ZodOptional<z.ZodBoolean>;
38
- readonly premint: z.ZodOptional<z.ZodString>;
39
- readonly mintable: z.ZodOptional<z.ZodBoolean>;
40
- readonly votes: z.ZodOptional<z.ZodBoolean>;
41
- readonly appName: z.ZodOptional<z.ZodString>;
42
- readonly appVersion: z.ZodOptional<z.ZodString>;
43
- };
44
- export declare const erc721Schema: {
45
- readonly access: z.ZodObject<{
46
- type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
47
- darInitialDelay: z.ZodString;
48
- darDefaultDelayIncrease: z.ZodString;
49
- darMaxTransferDelay: z.ZodString;
50
- }, z.core.$strip>;
51
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
52
- readonly info: z.ZodOptional<z.ZodObject<{
53
- securityContact: z.ZodOptional<z.ZodString>;
54
- license: z.ZodOptional<z.ZodString>;
55
- }, z.core.$strip>>;
56
- readonly macros: z.ZodOptional<z.ZodObject<{
57
- withComponents: z.ZodBoolean;
58
- }, z.core.$strip>>;
59
- readonly name: z.ZodString;
60
- readonly symbol: z.ZodString;
61
- readonly baseUri: z.ZodOptional<z.ZodString>;
62
- readonly burnable: z.ZodOptional<z.ZodBoolean>;
63
- readonly pausable: z.ZodOptional<z.ZodBoolean>;
64
- readonly mintable: z.ZodOptional<z.ZodBoolean>;
65
- readonly enumerable: z.ZodOptional<z.ZodBoolean>;
66
- readonly votes: z.ZodOptional<z.ZodBoolean>;
67
- readonly royaltyInfo: z.ZodOptional<z.ZodObject<{
68
- enabled: z.ZodBoolean;
69
- defaultRoyaltyFraction: z.ZodString;
70
- feeDenominator: z.ZodString;
71
- }, z.core.$strip>>;
72
- readonly appName: z.ZodOptional<z.ZodString>;
73
- readonly appVersion: z.ZodOptional<z.ZodString>;
74
- };
75
- export declare const erc1155Schema: {
76
- readonly access: z.ZodObject<{
77
- type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
78
- darInitialDelay: z.ZodString;
79
- darDefaultDelayIncrease: z.ZodString;
80
- darMaxTransferDelay: z.ZodString;
81
- }, z.core.$strip>;
82
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
83
- readonly info: z.ZodOptional<z.ZodObject<{
84
- securityContact: z.ZodOptional<z.ZodString>;
85
- license: z.ZodOptional<z.ZodString>;
86
- }, z.core.$strip>>;
87
- readonly macros: z.ZodOptional<z.ZodObject<{
88
- withComponents: z.ZodBoolean;
89
- }, z.core.$strip>>;
90
- readonly name: z.ZodString;
91
- readonly baseUri: z.ZodString;
92
- readonly burnable: z.ZodOptional<z.ZodBoolean>;
93
- readonly pausable: z.ZodOptional<z.ZodBoolean>;
94
- readonly mintable: z.ZodOptional<z.ZodBoolean>;
95
- readonly updatableUri: z.ZodOptional<z.ZodBoolean>;
96
- readonly royaltyInfo: z.ZodOptional<z.ZodObject<{
97
- enabled: z.ZodBoolean;
98
- defaultRoyaltyFraction: z.ZodString;
99
- feeDenominator: z.ZodString;
100
- }, z.core.$strip>>;
101
- };
102
- export declare const accountSchema: {
103
- readonly name: z.ZodString;
104
- readonly type: z.ZodEnum<{
105
- stark: "stark";
106
- eth: "eth";
107
- }>;
108
- readonly declare: z.ZodOptional<z.ZodBoolean>;
109
- readonly deploy: z.ZodOptional<z.ZodBoolean>;
110
- readonly pubkey: z.ZodOptional<z.ZodBoolean>;
111
- readonly outsideExecution: z.ZodOptional<z.ZodBoolean>;
112
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
113
- readonly info: z.ZodOptional<z.ZodObject<{
114
- securityContact: z.ZodOptional<z.ZodString>;
115
- license: z.ZodOptional<z.ZodString>;
116
- }, z.core.$strip>>;
117
- readonly macros: z.ZodOptional<z.ZodObject<{
118
- withComponents: z.ZodBoolean;
119
- }, z.core.$strip>>;
120
- };
121
- export declare const multisigSchema: {
122
- readonly name: z.ZodString;
123
- readonly quorum: z.ZodString;
124
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
125
- readonly info: z.ZodOptional<z.ZodObject<{
126
- securityContact: z.ZodOptional<z.ZodString>;
127
- license: z.ZodOptional<z.ZodString>;
128
- }, z.core.$strip>>;
129
- readonly macros: z.ZodOptional<z.ZodObject<{
130
- withComponents: z.ZodBoolean;
131
- }, z.core.$strip>>;
132
- };
133
- export declare const governorSchema: {
134
- readonly name: z.ZodString;
135
- readonly delay: z.ZodString;
136
- readonly period: z.ZodString;
137
- readonly votes: z.ZodOptional<z.ZodEnum<{
138
- erc20votes: "erc20votes";
139
- erc721votes: "erc721votes";
140
- }>>;
141
- readonly clockMode: z.ZodOptional<z.ZodEnum<{
142
- timestamp: "timestamp";
143
- }>>;
144
- readonly timelock: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<"openzeppelin">]>>;
145
- readonly decimals: z.ZodOptional<z.ZodNumber>;
146
- readonly proposalThreshold: z.ZodOptional<z.ZodString>;
147
- readonly quorumMode: z.ZodOptional<z.ZodEnum<{
148
- percent: "percent";
149
- absolute: "absolute";
150
- }>>;
151
- readonly quorumPercent: z.ZodOptional<z.ZodNumber>;
152
- readonly quorumAbsolute: z.ZodOptional<z.ZodString>;
153
- readonly settings: z.ZodOptional<z.ZodBoolean>;
154
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
155
- readonly appName: z.ZodOptional<z.ZodString>;
156
- readonly appVersion: z.ZodOptional<z.ZodString>;
157
- readonly info: z.ZodOptional<z.ZodObject<{
158
- securityContact: z.ZodOptional<z.ZodString>;
159
- license: z.ZodOptional<z.ZodString>;
160
- }, z.core.$strip>>;
161
- readonly macros: z.ZodOptional<z.ZodObject<{
162
- withComponents: z.ZodBoolean;
163
- }, z.core.$strip>>;
164
- };
165
- export declare const vestingSchema: {
166
- readonly name: z.ZodString;
167
- readonly startDate: z.ZodString;
168
- readonly duration: z.ZodString;
169
- readonly cliffDuration: z.ZodString;
170
- readonly schedule: z.ZodEnum<{
171
- custom: "custom";
172
- linear: "linear";
173
- }>;
174
- readonly info: z.ZodOptional<z.ZodObject<{
175
- securityContact: z.ZodOptional<z.ZodString>;
176
- license: z.ZodOptional<z.ZodString>;
177
- }, z.core.$strip>>;
178
- readonly macros: z.ZodOptional<z.ZodObject<{
179
- withComponents: z.ZodBoolean;
180
- }, z.core.$strip>>;
181
- };
182
- export declare const customSchema: {
183
- readonly access: z.ZodObject<{
184
- type: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>, z.ZodLiteral<"roles-dar">]>, z.ZodLiteral<false>]>;
185
- darInitialDelay: z.ZodString;
186
- darDefaultDelayIncrease: z.ZodString;
187
- darMaxTransferDelay: z.ZodString;
188
- }, z.core.$strip>;
189
- readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
190
- readonly info: z.ZodOptional<z.ZodObject<{
191
- securityContact: z.ZodOptional<z.ZodString>;
192
- license: z.ZodOptional<z.ZodString>;
193
- }, z.core.$strip>>;
194
- readonly macros: z.ZodOptional<z.ZodObject<{
195
- withComponents: z.ZodBoolean;
196
- }, z.core.$strip>>;
197
- readonly name: z.ZodString;
198
- readonly pausable: z.ZodOptional<z.ZodBoolean>;
199
- };
200
- //# sourceMappingURL=schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/cairo/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoCxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CA0BS,CAAC;AAEnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAYU,CAAC;AAEnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBS,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBQ,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAUQ,CAAC;AAEnC,eAAO,MAAM,cAAc;;;;;;;;;;;CAMO,CAAC;AAEnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBO,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAQQ,CAAC;AAEnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAIS,CAAC"}