@openzeppelin/contracts-mcp 0.0.5

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 (169) hide show
  1. package/LICENSE +661 -0
  2. package/NOTICE +8 -0
  3. package/README.md +100 -0
  4. package/dist/cairo/schemas.d.ts +203 -0
  5. package/dist/cairo/schemas.d.ts.map +1 -0
  6. package/dist/cairo/schemas.js +132 -0
  7. package/dist/cairo/schemas.js.map +1 -0
  8. package/dist/cairo/tools/account.d.ts +3 -0
  9. package/dist/cairo/tools/account.d.ts.map +1 -0
  10. package/dist/cairo/tools/account.js +30 -0
  11. package/dist/cairo/tools/account.js.map +1 -0
  12. package/dist/cairo/tools/custom.d.ts +3 -0
  13. package/dist/cairo/tools/custom.d.ts.map +1 -0
  14. package/dist/cairo/tools/custom.js +27 -0
  15. package/dist/cairo/tools/custom.js.map +1 -0
  16. package/dist/cairo/tools/erc1155.d.ts +3 -0
  17. package/dist/cairo/tools/erc1155.d.ts.map +1 -0
  18. package/dist/cairo/tools/erc1155.js +32 -0
  19. package/dist/cairo/tools/erc1155.js.map +1 -0
  20. package/dist/cairo/tools/erc20.d.ts +3 -0
  21. package/dist/cairo/tools/erc20.d.ts.map +1 -0
  22. package/dist/cairo/tools/erc20.js +34 -0
  23. package/dist/cairo/tools/erc20.js.map +1 -0
  24. package/dist/cairo/tools/erc721.d.ts +3 -0
  25. package/dist/cairo/tools/erc721.d.ts.map +1 -0
  26. package/dist/cairo/tools/erc721.js +36 -0
  27. package/dist/cairo/tools/erc721.js.map +1 -0
  28. package/dist/cairo/tools/governor.d.ts +3 -0
  29. package/dist/cairo/tools/governor.d.ts.map +1 -0
  30. package/dist/cairo/tools/governor.js +38 -0
  31. package/dist/cairo/tools/governor.js.map +1 -0
  32. package/dist/cairo/tools/multisig.d.ts +3 -0
  33. package/dist/cairo/tools/multisig.d.ts.map +1 -0
  34. package/dist/cairo/tools/multisig.js +26 -0
  35. package/dist/cairo/tools/multisig.js.map +1 -0
  36. package/dist/cairo/tools/vesting.d.ts +3 -0
  37. package/dist/cairo/tools/vesting.d.ts.map +1 -0
  38. package/dist/cairo/tools/vesting.js +28 -0
  39. package/dist/cairo/tools/vesting.js.map +1 -0
  40. package/dist/cairo/tools.d.ts +3 -0
  41. package/dist/cairo/tools.d.ts.map +1 -0
  42. package/dist/cairo/tools.js +29 -0
  43. package/dist/cairo/tools.js.map +1 -0
  44. package/dist/index.d.ts +3 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +12 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/server.d.ts +3 -0
  49. package/dist/server.d.ts.map +1 -0
  50. package/dist/server.js +28 -0
  51. package/dist/server.js.map +1 -0
  52. package/dist/solidity/schemas.d.ts +203 -0
  53. package/dist/solidity/schemas.d.ts.map +1 -0
  54. package/dist/solidity/schemas.js +160 -0
  55. package/dist/solidity/schemas.js.map +1 -0
  56. package/dist/solidity/tools/account.d.ts +3 -0
  57. package/dist/solidity/tools/account.d.ts.map +1 -0
  58. package/dist/solidity/tools/account.js +30 -0
  59. package/dist/solidity/tools/account.js.map +1 -0
  60. package/dist/solidity/tools/custom.d.ts +3 -0
  61. package/dist/solidity/tools/custom.d.ts.map +1 -0
  62. package/dist/solidity/tools/custom.js +27 -0
  63. package/dist/solidity/tools/custom.js.map +1 -0
  64. package/dist/solidity/tools/erc1155.d.ts +3 -0
  65. package/dist/solidity/tools/erc1155.d.ts.map +1 -0
  66. package/dist/solidity/tools/erc1155.js +32 -0
  67. package/dist/solidity/tools/erc1155.js.map +1 -0
  68. package/dist/solidity/tools/erc20.d.ts +3 -0
  69. package/dist/solidity/tools/erc20.d.ts.map +1 -0
  70. package/dist/solidity/tools/erc20.js +37 -0
  71. package/dist/solidity/tools/erc20.js.map +1 -0
  72. package/dist/solidity/tools/erc721.d.ts +3 -0
  73. package/dist/solidity/tools/erc721.d.ts.map +1 -0
  74. package/dist/solidity/tools/erc721.js +35 -0
  75. package/dist/solidity/tools/erc721.js.map +1 -0
  76. package/dist/solidity/tools/governor.d.ts +3 -0
  77. package/dist/solidity/tools/governor.d.ts.map +1 -0
  78. package/dist/solidity/tools/governor.js +38 -0
  79. package/dist/solidity/tools/governor.js.map +1 -0
  80. package/dist/solidity/tools/rwa.d.ts +3 -0
  81. package/dist/solidity/tools/rwa.d.ts.map +1 -0
  82. package/dist/solidity/tools/rwa.js +38 -0
  83. package/dist/solidity/tools/rwa.js.map +1 -0
  84. package/dist/solidity/tools/stablecoin.d.ts +3 -0
  85. package/dist/solidity/tools/stablecoin.d.ts.map +1 -0
  86. package/dist/solidity/tools/stablecoin.js +38 -0
  87. package/dist/solidity/tools/stablecoin.js.map +1 -0
  88. package/dist/solidity/tools.d.ts +3 -0
  89. package/dist/solidity/tools.d.ts.map +1 -0
  90. package/dist/solidity/tools.js +29 -0
  91. package/dist/solidity/tools.js.map +1 -0
  92. package/dist/stellar/schemas.d.ts +79 -0
  93. package/dist/stellar/schemas.d.ts.map +1 -0
  94. package/dist/stellar/schemas.js +56 -0
  95. package/dist/stellar/schemas.js.map +1 -0
  96. package/dist/stellar/tools/fungible.d.ts +3 -0
  97. package/dist/stellar/tools/fungible.d.ts.map +1 -0
  98. package/dist/stellar/tools/fungible.js +31 -0
  99. package/dist/stellar/tools/fungible.js.map +1 -0
  100. package/dist/stellar/tools/non-fungible.d.ts +3 -0
  101. package/dist/stellar/tools/non-fungible.d.ts.map +1 -0
  102. package/dist/stellar/tools/non-fungible.js +32 -0
  103. package/dist/stellar/tools/non-fungible.js.map +1 -0
  104. package/dist/stellar/tools/stablecoin.d.ts +3 -0
  105. package/dist/stellar/tools/stablecoin.d.ts.map +1 -0
  106. package/dist/stellar/tools/stablecoin.js +32 -0
  107. package/dist/stellar/tools/stablecoin.js.map +1 -0
  108. package/dist/stellar/tools.d.ts +3 -0
  109. package/dist/stellar/tools.d.ts.map +1 -0
  110. package/dist/stellar/tools.js +19 -0
  111. package/dist/stellar/tools.js.map +1 -0
  112. package/dist/stylus/schemas.d.ts +60 -0
  113. package/dist/stylus/schemas.d.ts.map +1 -0
  114. package/dist/stylus/schemas.js +44 -0
  115. package/dist/stylus/schemas.js.map +1 -0
  116. package/dist/stylus/tools/erc1155.d.ts +3 -0
  117. package/dist/stylus/tools/erc1155.d.ts.map +1 -0
  118. package/dist/stylus/tools/erc1155.js +26 -0
  119. package/dist/stylus/tools/erc1155.js.map +1 -0
  120. package/dist/stylus/tools/erc20.d.ts +3 -0
  121. package/dist/stylus/tools/erc20.d.ts.map +1 -0
  122. package/dist/stylus/tools/erc20.js +27 -0
  123. package/dist/stylus/tools/erc20.js.map +1 -0
  124. package/dist/stylus/tools/erc721.d.ts +3 -0
  125. package/dist/stylus/tools/erc721.d.ts.map +1 -0
  126. package/dist/stylus/tools/erc721.js +26 -0
  127. package/dist/stylus/tools/erc721.js.map +1 -0
  128. package/dist/stylus/tools.d.ts +3 -0
  129. package/dist/stylus/tools.d.ts.map +1 -0
  130. package/dist/stylus/tools.js +19 -0
  131. package/dist/stylus/tools.js.map +1 -0
  132. package/dist/utils.d.ts +20 -0
  133. package/dist/utils.d.ts.map +1 -0
  134. package/dist/utils.js +61 -0
  135. package/dist/utils.js.map +1 -0
  136. package/package.json +40 -0
  137. package/src/cairo/schemas.ts +153 -0
  138. package/src/cairo/tools/account.ts +34 -0
  139. package/src/cairo/tools/custom.ts +31 -0
  140. package/src/cairo/tools/erc1155.ts +36 -0
  141. package/src/cairo/tools/erc20.ts +51 -0
  142. package/src/cairo/tools/erc721.ts +55 -0
  143. package/src/cairo/tools/governor.ts +59 -0
  144. package/src/cairo/tools/multisig.ts +30 -0
  145. package/src/cairo/tools/vesting.ts +32 -0
  146. package/src/cairo/tools.ts +34 -0
  147. package/src/index.ts +11 -0
  148. package/src/server.ts +30 -0
  149. package/src/solidity/schemas.ts +180 -0
  150. package/src/solidity/tools/account.ts +43 -0
  151. package/src/solidity/tools/custom.ts +31 -0
  152. package/src/solidity/tools/erc1155.ts +36 -0
  153. package/src/solidity/tools/erc20.ts +57 -0
  154. package/src/solidity/tools/erc721.ts +53 -0
  155. package/src/solidity/tools/governor.ts +59 -0
  156. package/src/solidity/tools/rwa.ts +59 -0
  157. package/src/solidity/tools/stablecoin.ts +59 -0
  158. package/src/solidity/tools.ts +34 -0
  159. package/src/stellar/schemas.ts +67 -0
  160. package/src/stellar/tools/fungible.ts +35 -0
  161. package/src/stellar/tools/non-fungible.ts +36 -0
  162. package/src/stellar/tools/stablecoin.ts +36 -0
  163. package/src/stellar/tools.ts +24 -0
  164. package/src/stylus/schemas.ts +54 -0
  165. package/src/stylus/tools/erc1155.ts +30 -0
  166. package/src/stylus/tools/erc20.ts +31 -0
  167. package/src/stylus/tools/erc721.ts +30 -0
  168. package/src/stylus/tools.ts +24 -0
  169. package/src/utils.ts +59 -0
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ export declare const commonSchema: {
3
+ readonly access: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>>;
4
+ readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
5
+ readonly info: z.ZodOptional<z.ZodObject<{
6
+ securityContact: z.ZodOptional<z.ZodString>;
7
+ license: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ securityContact?: string | undefined;
10
+ license?: string | undefined;
11
+ }, {
12
+ securityContact?: string | undefined;
13
+ license?: string | undefined;
14
+ }>>;
15
+ };
16
+ export declare const fungibleSchema: {
17
+ readonly access: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>>;
18
+ readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
19
+ readonly info: z.ZodOptional<z.ZodObject<{
20
+ securityContact: z.ZodOptional<z.ZodString>;
21
+ license: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ securityContact?: string | undefined;
24
+ license?: string | undefined;
25
+ }, {
26
+ securityContact?: string | undefined;
27
+ license?: string | undefined;
28
+ }>>;
29
+ readonly name: z.ZodString;
30
+ readonly symbol: z.ZodString;
31
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
32
+ readonly pausable: z.ZodOptional<z.ZodBoolean>;
33
+ readonly premint: z.ZodOptional<z.ZodString>;
34
+ readonly mintable: z.ZodOptional<z.ZodBoolean>;
35
+ };
36
+ export declare const stablecoinSchema: {
37
+ readonly limitations: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"allowlist">]>, z.ZodLiteral<"blocklist">]>>;
38
+ readonly access: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>>;
39
+ readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
40
+ readonly info: z.ZodOptional<z.ZodObject<{
41
+ securityContact: z.ZodOptional<z.ZodString>;
42
+ license: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ securityContact?: string | undefined;
45
+ license?: string | undefined;
46
+ }, {
47
+ securityContact?: string | undefined;
48
+ license?: string | undefined;
49
+ }>>;
50
+ readonly name: z.ZodString;
51
+ readonly symbol: z.ZodString;
52
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
53
+ readonly pausable: z.ZodOptional<z.ZodBoolean>;
54
+ readonly premint: z.ZodOptional<z.ZodString>;
55
+ readonly mintable: z.ZodOptional<z.ZodBoolean>;
56
+ };
57
+ export declare const nonFungibleSchema: {
58
+ readonly access: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"ownable">, z.ZodLiteral<"roles">]>>;
59
+ readonly upgradeable: z.ZodOptional<z.ZodBoolean>;
60
+ readonly info: z.ZodOptional<z.ZodObject<{
61
+ securityContact: z.ZodOptional<z.ZodString>;
62
+ license: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ securityContact?: string | undefined;
65
+ license?: string | undefined;
66
+ }, {
67
+ securityContact?: string | undefined;
68
+ license?: string | undefined;
69
+ }>>;
70
+ readonly name: z.ZodString;
71
+ readonly symbol: z.ZodString;
72
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
73
+ readonly enumerable: z.ZodOptional<z.ZodBoolean>;
74
+ readonly consecutive: z.ZodOptional<z.ZodBoolean>;
75
+ readonly pausable: z.ZodOptional<z.ZodBoolean>;
76
+ readonly mintable: z.ZodOptional<z.ZodBoolean>;
77
+ readonly sequential: z.ZodOptional<z.ZodBoolean>;
78
+ };
79
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/stellar/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAUS,CAAC;AAEnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAQO,CAAC;AAEnC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;CAQK,CAAC;AAEnC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAUI,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nonFungibleSchema = exports.stablecoinSchema = exports.fungibleSchema = exports.commonSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
6
+ /**
7
+ * Static type assertions to ensure schemas satisfy the Wizard API types. Not called at runtime.
8
+ */
9
+ function _typeAssertions() {
10
+ const _assertions = {
11
+ Fungible: zod_1.z.object(exports.fungibleSchema).parse({}),
12
+ Stablecoin: zod_1.z.object(exports.stablecoinSchema).parse({}),
13
+ NonFungible: zod_1.z.object(exports.nonFungibleSchema).parse({}),
14
+ };
15
+ }
16
+ exports.commonSchema = {
17
+ access: zod_1.z.literal('ownable').or(zod_1.z.literal('roles')).optional().describe(wizard_common_1.stellarCommonDescriptions.access),
18
+ upgradeable: zod_1.z.boolean().optional().describe(wizard_common_1.stellarCommonDescriptions.upgradeable),
19
+ info: zod_1.z
20
+ .object({
21
+ securityContact: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.securityContact),
22
+ license: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.license),
23
+ })
24
+ .optional()
25
+ .describe(wizard_common_1.infoDescriptions.info),
26
+ };
27
+ exports.fungibleSchema = {
28
+ name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
29
+ symbol: zod_1.z.string().describe(wizard_common_1.commonDescriptions.symbol),
30
+ burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
31
+ pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
32
+ premint: zod_1.z.string().optional().describe(wizard_common_1.stellarFungibleDescriptions.premint),
33
+ mintable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.mintable),
34
+ ...exports.commonSchema,
35
+ };
36
+ exports.stablecoinSchema = {
37
+ ...exports.fungibleSchema,
38
+ limitations: zod_1.z
39
+ .literal(false)
40
+ .or(zod_1.z.literal('allowlist'))
41
+ .or(zod_1.z.literal('blocklist'))
42
+ .optional()
43
+ .describe(wizard_common_1.stellarStablecoinDescriptions.limitations),
44
+ };
45
+ exports.nonFungibleSchema = {
46
+ name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
47
+ symbol: zod_1.z.string().describe(wizard_common_1.commonDescriptions.symbol),
48
+ burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
49
+ enumerable: zod_1.z.boolean().optional().describe(wizard_common_1.stellarNonFungibleDescriptions.enumerable),
50
+ consecutive: zod_1.z.boolean().optional().describe(wizard_common_1.stellarNonFungibleDescriptions.consecutive),
51
+ pausable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.pausable),
52
+ mintable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.mintable),
53
+ sequential: zod_1.z.boolean().optional().describe(wizard_common_1.stellarNonFungibleDescriptions.sequential),
54
+ ...exports.commonSchema,
55
+ };
56
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/stellar/schemas.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStellarFungible(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=fungible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA2BzE"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStellarFungible = registerStellarFungible;
4
+ const wizard_stellar_1 = require("@openzeppelin/wizard-stellar");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStellarFungible(server) {
9
+ return server.tool('stellar-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Fungible), schemas_1.fungibleSchema, async ({ name, symbol, burnable, pausable, premint, mintable, upgradeable, access, info }) => {
10
+ const opts = {
11
+ name,
12
+ symbol,
13
+ burnable,
14
+ pausable,
15
+ premint,
16
+ mintable,
17
+ upgradeable,
18
+ access,
19
+ info,
20
+ };
21
+ return {
22
+ content: [
23
+ {
24
+ type: 'text',
25
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stellar_1.fungible.print(opts)),
26
+ },
27
+ ],
28
+ };
29
+ });
30
+ }
31
+ //# sourceMappingURL=fungible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":";;AAOA,0DA2BC;AAhCD,iEAAwD;AACxD,uCAAyE;AACzE,wCAA4C;AAC5C,+DAA6D;AAE7D,SAAgB,uBAAuB,CAAC,MAAiB;IACvD,OAAO,MAAM,CAAC,IAAI,CAChB,kBAAkB,EAClB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,QAAQ,CAAC,EAC3C,wBAAc,EACd,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;QAC3F,MAAM,IAAI,GAAoB;YAC5B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACzD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStellarNonFungible(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=non-fungible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"non-fungible.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA4B5E"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStellarNonFungible = registerStellarNonFungible;
4
+ const wizard_stellar_1 = require("@openzeppelin/wizard-stellar");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStellarNonFungible(server) {
9
+ return server.tool('stellar-non-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.NonFungible), schemas_1.nonFungibleSchema, async ({ name, symbol, burnable, enumerable, consecutive, pausable, mintable, sequential, upgradeable, info }) => {
10
+ const opts = {
11
+ name,
12
+ symbol,
13
+ burnable,
14
+ enumerable,
15
+ consecutive,
16
+ pausable,
17
+ mintable,
18
+ sequential,
19
+ upgradeable,
20
+ info,
21
+ };
22
+ return {
23
+ content: [
24
+ {
25
+ type: 'text',
26
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stellar_1.nonFungible.print(opts)),
27
+ },
28
+ ],
29
+ };
30
+ });
31
+ }
32
+ //# sourceMappingURL=non-fungible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"non-fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/non-fungible.ts"],"names":[],"mappings":";;AAOA,gEA4BC;AAjCD,iEAA2D;AAC3D,uCAAyE;AACzE,wCAA+C;AAC/C,+DAA6D;AAE7D,SAAgB,0BAA0B,CAAC,MAAiB;IAC1D,OAAO,MAAM,CAAC,IAAI,CAChB,sBAAsB,EACtB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,WAAW,CAAC,EAC9C,2BAAiB,EACjB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE;QAC/G,MAAM,IAAI,GAAuB;YAC/B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,UAAU;YACV,WAAW;YACX,QAAQ;YACR,QAAQ;YACR,UAAU;YACV,WAAW;YACX,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,4BAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC5D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStellarStablecoin(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=stablecoin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stablecoin.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA4B3E"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStellarStablecoin = registerStellarStablecoin;
4
+ const wizard_stellar_1 = require("@openzeppelin/wizard-stellar");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStellarStablecoin(server) {
9
+ return server.tool('stellar-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Stablecoin), schemas_1.stablecoinSchema, async ({ name, symbol, burnable, pausable, premint, mintable, upgradeable, access, limitations, info }) => {
10
+ const opts = {
11
+ name,
12
+ symbol,
13
+ burnable,
14
+ pausable,
15
+ premint,
16
+ mintable,
17
+ upgradeable,
18
+ access,
19
+ limitations,
20
+ info,
21
+ };
22
+ return {
23
+ content: [
24
+ {
25
+ type: 'text',
26
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stellar_1.stablecoin.print(opts)),
27
+ },
28
+ ],
29
+ };
30
+ });
31
+ }
32
+ //# sourceMappingURL=stablecoin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,8DA4BC;AAjCD,iEAA0D;AAC1D,uCAAyE;AACzE,wCAA8C;AAC9C,+DAA6D;AAE7D,SAAgB,yBAAyB,CAAC,MAAiB;IACzD,OAAO,MAAM,CAAC,IAAI,CAChB,oBAAoB,EACpB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,UAAU,CAAC,EAC7C,0BAAgB,EAChB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE;QACxG,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,WAAW;YACX,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,2BAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC3D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStellarTools(server: McpServer): void;
3
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmBzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,QAIrD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStellarTools = registerStellarTools;
4
+ const fungible_js_1 = require("./tools/fungible.js");
5
+ const stablecoin_js_1 = require("./tools/stablecoin.js");
6
+ const non_fungible_js_1 = require("./tools/non-fungible.js");
7
+ function getRegisterFunctions(server) {
8
+ return {
9
+ Fungible: () => (0, fungible_js_1.registerStellarFungible)(server),
10
+ Stablecoin: () => (0, stablecoin_js_1.registerStellarStablecoin)(server),
11
+ NonFungible: () => (0, non_fungible_js_1.registerStellarNonFungible)(server),
12
+ };
13
+ }
14
+ function registerStellarTools(server) {
15
+ Object.values(getRegisterFunctions(server)).forEach(registerTool => {
16
+ registerTool(server);
17
+ });
18
+ }
19
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":";;AAmBA,oDAIC;AAtBD,qDAA8D;AAC9D,yDAAkE;AAClE,6DAAqE;AAQrE,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,OAAO;QACL,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,qCAAuB,EAAC,MAAM,CAAC;QAC/C,UAAU,EAAE,GAAG,EAAE,CAAC,IAAA,yCAAyB,EAAC,MAAM,CAAC;QACnD,WAAW,EAAE,GAAG,EAAE,CAAC,IAAA,4CAA0B,EAAC,MAAM,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACjE,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ export declare const commonSchema: {
3
+ readonly info: z.ZodOptional<z.ZodObject<{
4
+ securityContact: z.ZodOptional<z.ZodString>;
5
+ license: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ securityContact?: string | undefined;
8
+ license?: string | undefined;
9
+ }, {
10
+ securityContact?: string | undefined;
11
+ license?: string | undefined;
12
+ }>>;
13
+ };
14
+ export declare const erc20Schema: {
15
+ readonly info: z.ZodOptional<z.ZodObject<{
16
+ securityContact: z.ZodOptional<z.ZodString>;
17
+ license: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ securityContact?: string | undefined;
20
+ license?: string | undefined;
21
+ }, {
22
+ securityContact?: string | undefined;
23
+ license?: string | undefined;
24
+ }>>;
25
+ readonly name: z.ZodString;
26
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
27
+ readonly permit: z.ZodOptional<z.ZodBoolean>;
28
+ readonly flashmint: z.ZodOptional<z.ZodBoolean>;
29
+ };
30
+ export declare const erc721Schema: {
31
+ readonly info: z.ZodOptional<z.ZodObject<{
32
+ securityContact: z.ZodOptional<z.ZodString>;
33
+ license: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ securityContact?: string | undefined;
36
+ license?: string | undefined;
37
+ }, {
38
+ securityContact?: string | undefined;
39
+ license?: string | undefined;
40
+ }>>;
41
+ readonly name: z.ZodString;
42
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
43
+ readonly enumerable: z.ZodOptional<z.ZodBoolean>;
44
+ };
45
+ export declare const erc1155Schema: {
46
+ readonly info: z.ZodOptional<z.ZodObject<{
47
+ securityContact: z.ZodOptional<z.ZodString>;
48
+ license: z.ZodOptional<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ securityContact?: string | undefined;
51
+ license?: string | undefined;
52
+ }, {
53
+ securityContact?: string | undefined;
54
+ license?: string | undefined;
55
+ }>>;
56
+ readonly name: z.ZodString;
57
+ readonly burnable: z.ZodOptional<z.ZodBoolean>;
58
+ readonly supply: z.ZodOptional<z.ZodBoolean>;
59
+ };
60
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/stylus/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,YAAY;;;;;;;;;;;CAQS,CAAC;AAEnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAMU,CAAC;AAEnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAKS,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAKQ,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.erc1155Schema = exports.erc721Schema = exports.erc20Schema = exports.commonSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
6
+ /**
7
+ * Static type assertions to ensure schemas satisfy the Wizard API types. Not called at runtime.
8
+ */
9
+ function _typeAssertions() {
10
+ const _assertions = {
11
+ ERC20: zod_1.z.object(exports.erc20Schema).parse({}),
12
+ ERC721: zod_1.z.object(exports.erc721Schema).parse({}),
13
+ ERC1155: zod_1.z.object(exports.erc1155Schema).parse({}),
14
+ };
15
+ }
16
+ exports.commonSchema = {
17
+ info: zod_1.z
18
+ .object({
19
+ securityContact: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.securityContact),
20
+ license: zod_1.z.string().optional().describe(wizard_common_1.infoDescriptions.license),
21
+ })
22
+ .optional()
23
+ .describe(wizard_common_1.infoDescriptions.info),
24
+ };
25
+ exports.erc20Schema = {
26
+ name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
27
+ burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
28
+ permit: zod_1.z.boolean().optional().describe(wizard_common_1.stylusERC20Descriptions.permit),
29
+ flashmint: zod_1.z.boolean().optional().describe(wizard_common_1.stylusERC20Descriptions.flashmint),
30
+ ...exports.commonSchema,
31
+ };
32
+ exports.erc721Schema = {
33
+ name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
34
+ burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
35
+ enumerable: zod_1.z.boolean().optional().describe(wizard_common_1.stylusERC721Descriptions.enumerable),
36
+ ...exports.commonSchema,
37
+ };
38
+ exports.erc1155Schema = {
39
+ name: zod_1.z.string().describe(wizard_common_1.commonDescriptions.name),
40
+ burnable: zod_1.z.boolean().optional().describe(wizard_common_1.commonDescriptions.burnable),
41
+ supply: zod_1.z.boolean().optional().describe(wizard_common_1.stylusERC1155Descriptions.supply),
42
+ ...exports.commonSchema,
43
+ };
44
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/stylus/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+DAMqC;AAGrC;;GAEG;AACH,SAAS,eAAe;IACtB,MAAM,WAAW,GAEb;QACF,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,mBAAW,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QACtC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,qBAAa,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;KAC3C,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,OAAC;SACJ,MAAM,CAAC;QACN,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgB,CAAC,eAAe,CAAC;QACjF,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgB,CAAC,OAAO,CAAC;KAClE,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgB,CAAC,IAAI,CAAC;CACF,CAAC;AAEtB,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,IAAI,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,QAAQ,CAAC;IACtE,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuB,CAAC,MAAM,CAAC;IACvE,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuB,CAAC,SAAS,CAAC;IAC7E,GAAG,oBAAY;CACiB,CAAC;AAEtB,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,IAAI,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,QAAQ,CAAC;IACtE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwB,CAAC,UAAU,CAAC;IAChF,GAAG,oBAAY;CACiB,CAAC;AAEtB,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,IAAI,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkB,CAAC,QAAQ,CAAC;IACtE,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyB,CAAC,MAAM,CAAC;IACzE,GAAG,oBAAY;CACiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStylusERC1155(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=erc1155.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc1155.d.ts","sourceRoot":"","sources":["../../../src/stylus/tools/erc1155.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAsBvE"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStylusERC1155 = registerStylusERC1155;
4
+ const wizard_stylus_1 = require("@openzeppelin/wizard-stylus");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStylusERC1155(server) {
9
+ return server.tool('stylus-erc1155', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stylusPrompts.ERC1155), schemas_1.erc1155Schema, async ({ name, burnable, supply, info }) => {
10
+ const opts = {
11
+ name,
12
+ burnable,
13
+ supply,
14
+ info,
15
+ };
16
+ return {
17
+ content: [
18
+ {
19
+ type: 'text',
20
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stylus_1.erc1155.print(opts)),
21
+ },
22
+ ],
23
+ };
24
+ });
25
+ }
26
+ //# sourceMappingURL=erc1155.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc1155.js","sourceRoot":"","sources":["../../../src/stylus/tools/erc1155.ts"],"names":[],"mappings":";;AAOA,sDAsBC;AA3BD,+DAAsD;AACtD,uCAAyE;AACzE,wCAA2C;AAC3C,+DAA4D;AAE5D,SAAgB,qBAAqB,CAAC,MAAiB;IACrD,OAAO,MAAM,CAAC,IAAI,CAChB,gBAAgB,EAChB,IAAA,0BAAkB,EAAC,6BAAa,CAAC,OAAO,CAAC,EACzC,uBAAa,EACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;QACzC,MAAM,IAAI,GAAmB;YAC3B,IAAI;YACJ,QAAQ;YACR,MAAM;YACN,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACxD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStylusERC20(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=erc20.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/stylus/tools/erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAuBrE"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStylusERC20 = registerStylusERC20;
4
+ const wizard_stylus_1 = require("@openzeppelin/wizard-stylus");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStylusERC20(server) {
9
+ return server.tool('stylus-erc20', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stylusPrompts.ERC20), schemas_1.erc20Schema, async ({ name, burnable, permit, flashmint, info }) => {
10
+ const opts = {
11
+ name,
12
+ burnable,
13
+ permit,
14
+ flashmint,
15
+ info,
16
+ };
17
+ return {
18
+ content: [
19
+ {
20
+ type: 'text',
21
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stylus_1.erc20.print(opts)),
22
+ },
23
+ ],
24
+ };
25
+ });
26
+ }
27
+ //# sourceMappingURL=erc20.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../../src/stylus/tools/erc20.ts"],"names":[],"mappings":";;AAOA,kDAuBC;AA5BD,+DAAoD;AACpD,uCAAyE;AACzE,wCAAyC;AACzC,+DAA4D;AAE5D,SAAgB,mBAAmB,CAAC,MAAiB;IACnD,OAAO,MAAM,CAAC,IAAI,CAChB,cAAc,EACd,IAAA,0BAAkB,EAAC,6BAAa,CAAC,KAAK,CAAC,EACvC,qBAAW,EACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;QACpD,MAAM,IAAI,GAAiB;YACzB,IAAI;YACJ,QAAQ;YACR,MAAM;YACN,SAAS;YACT,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,qBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACtD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStylusERC721(server: McpServer): RegisteredTool;
3
+ //# sourceMappingURL=erc721.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc721.d.ts","sourceRoot":"","sources":["../../../src/stylus/tools/erc721.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAsBtE"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStylusERC721 = registerStylusERC721;
4
+ const wizard_stylus_1 = require("@openzeppelin/wizard-stylus");
5
+ const utils_1 = require("../../utils");
6
+ const schemas_1 = require("../schemas");
7
+ const wizard_common_1 = require("@openzeppelin/wizard-common");
8
+ function registerStylusERC721(server) {
9
+ return server.tool('stylus-erc721', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stylusPrompts.ERC721), schemas_1.erc721Schema, async ({ name, burnable, enumerable, info }) => {
10
+ const opts = {
11
+ name,
12
+ burnable,
13
+ enumerable,
14
+ info,
15
+ };
16
+ return {
17
+ content: [
18
+ {
19
+ type: 'text',
20
+ text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stylus_1.erc721.print(opts)),
21
+ },
22
+ ],
23
+ };
24
+ });
25
+ }
26
+ //# sourceMappingURL=erc721.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc721.js","sourceRoot":"","sources":["../../../src/stylus/tools/erc721.ts"],"names":[],"mappings":";;AAOA,oDAsBC;AA3BD,+DAAqD;AACrD,uCAAyE;AACzE,wCAA0C;AAC1C,+DAA4D;AAE5D,SAAgB,oBAAoB,CAAC,MAAiB;IACpD,OAAO,MAAM,CAAC,IAAI,CAChB,eAAe,EACf,IAAA,0BAAkB,EAAC,6BAAa,CAAC,MAAM,CAAC,EACxC,sBAAY,EACZ,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE;QAC7C,MAAM,IAAI,GAAkB;YAC1B,IAAI;YACJ,QAAQ;YACR,UAAU;YACV,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,sBAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACvD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export declare function registerStylusTools(server: McpServer): void;
3
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/stylus/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmBzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,QAIpD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStylusTools = registerStylusTools;
4
+ const erc20_1 = require("./tools/erc20");
5
+ const erc721_1 = require("./tools/erc721");
6
+ const erc1155_1 = require("./tools/erc1155");
7
+ function getRegisterFunctions(server) {
8
+ return {
9
+ ERC20: () => (0, erc20_1.registerStylusERC20)(server),
10
+ ERC721: () => (0, erc721_1.registerStylusERC721)(server),
11
+ ERC1155: () => (0, erc1155_1.registerStylusERC1155)(server),
12
+ };
13
+ }
14
+ function registerStylusTools(server) {
15
+ Object.values(getRegisterFunctions(server)).forEach(registerTool => {
16
+ registerTool(server);
17
+ });
18
+ }
19
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stylus/tools.ts"],"names":[],"mappings":";;AAmBA,kDAIC;AAtBD,yCAAoD;AACpD,2CAAsD;AACtD,6CAAwD;AAQxD,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,OAAO;QACL,KAAK,EAAE,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,MAAM,CAAC;QACxC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAA,6BAAoB,EAAC,MAAM,CAAC;QAC1C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAqB,EAAC,MAAM,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,MAAiB;IACnD,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACjE,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Prints the contract source code, wrapped in a Markdown code block with syntax highlighting as `solidity`.
3
+ * Or prints the error message if an error occurs.
4
+ */
5
+ export declare function safePrintSolidityCodeBlock(printFn: () => string): string;
6
+ /**
7
+ * Prints the contract source code, wrapped in a Markdown code block with syntax highlighting as `cairo`.
8
+ * Or prints the error message if an error occurs.
9
+ */
10
+ export declare function safePrintCairoCodeBlock(printFn: () => string): string;
11
+ /**
12
+ * Prints the contract source code, wrapped in a Markdown code block with syntax highlighting as `rust`.
13
+ * Or prints the error message if an error occurs.
14
+ */
15
+ export declare function safePrintRustCodeBlock(printFn: () => string): string;
16
+ /**
17
+ * Adds a description to the prompt that explains the return format of the tool.
18
+ */
19
+ export declare function makeDetailedPrompt(origPrompt: string): string;
20
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AA0BA;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,CAExE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,CAErE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAK7D"}