@openzeppelin/contracts-mcp 0.5.8 → 0.5.10
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.
- package/dist/confidential/tools/erc7984.d.ts.map +1 -1
- package/dist/confidential/tools/erc7984.js +2 -1
- package/dist/confidential/tools/erc7984.js.map +1 -1
- package/dist/solidity/tools/erc20.d.ts.map +1 -1
- package/dist/solidity/tools/erc20.js +2 -1
- package/dist/solidity/tools/erc20.js.map +1 -1
- package/dist/solidity/tools/rwa.d.ts.map +1 -1
- package/dist/solidity/tools/rwa.js +2 -1
- package/dist/solidity/tools/rwa.js.map +1 -1
- package/dist/solidity/tools/stablecoin.d.ts.map +1 -1
- package/dist/solidity/tools/stablecoin.js +2 -1
- package/dist/solidity/tools/stablecoin.js.map +1 -1
- package/dist/stellar/tools/fungible.d.ts.map +1 -1
- package/dist/stellar/tools/fungible.js +2 -1
- package/dist/stellar/tools/fungible.js.map +1 -1
- package/dist/stellar/tools/stablecoin.d.ts.map +1 -1
- package/dist/stellar/tools/stablecoin.js +2 -1
- package/dist/stellar/tools/stablecoin.js.map +1 -1
- package/dist/stellar/tools/vault.d.ts +3 -0
- package/dist/stellar/tools/vault.d.ts.map +1 -0
- package/dist/stellar/tools/vault.js +30 -0
- package/dist/stellar/tools/vault.js.map +1 -0
- package/dist/stellar/tools.d.ts.map +1 -1
- package/dist/stellar/tools.js +2 -0
- package/dist/stellar/tools.js.map +1 -1
- package/package.json +5 -5
- package/src/confidential/tools/erc7984.ts +2 -1
- package/src/solidity/tools/erc20.ts +2 -0
- package/src/solidity/tools/rwa.ts +2 -0
- package/src/solidity/tools/stablecoin.ts +2 -0
- package/src/stellar/tools/fungible.ts +2 -0
- package/src/stellar/tools/stablecoin.ts +2 -0
- package/src/stellar/tools/vault.ts +34 -0
- package/src/stellar/tools.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc7984.d.ts","sourceRoot":"","sources":["../../../src/confidential/tools/erc7984.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"erc7984.d.ts","sourceRoot":"","sources":["../../../src/confidential/tools/erc7984.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA2B7E"}
|
|
@@ -6,11 +6,12 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerConfidentialERC7984(server) {
|
|
9
|
-
return server.tool('erc7984', (0, utils_1.makeDetailedPrompt)(wizard_common_1.confidentialPrompts.ERC7984), schemas_1.confidentialERC7984Schema, async ({ name, symbol, contractURI, premint, networkConfig, wrappable, votes, info }) => {
|
|
9
|
+
return server.tool('erc7984', (0, utils_1.makeDetailedPrompt)(wizard_common_1.confidentialPrompts.ERC7984), schemas_1.confidentialERC7984Schema, async ({ name, symbol, contractURI, decimals, premint, networkConfig, wrappable, votes, info }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
13
|
contractURI,
|
|
14
|
+
decimals,
|
|
14
15
|
premint,
|
|
15
16
|
networkConfig,
|
|
16
17
|
wrappable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc7984.js","sourceRoot":"","sources":["../../../src/confidential/tools/erc7984.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"erc7984.js","sourceRoot":"","sources":["../../../src/confidential/tools/erc7984.ts"],"names":[],"mappings":";;AAOA,kEA2BC;AAhCD,2EAA4D;AAC5D,uCAA6E;AAC7E,iEAAgF;AAChF,+DAAkE;AAElE,SAAgB,2BAA2B,CAAC,MAAiB;IAC3D,OAAO,MAAM,CAAC,IAAI,CAChB,SAAS,EACT,IAAA,0BAAkB,EAAC,mCAAmB,CAAC,OAAO,CAAC,EAC/C,mCAAyB,EACzB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QAChG,MAAM,IAAI,GAAmB;YAC3B,IAAI;YACJ,MAAM;YACN,WAAW;YACX,QAAQ;YACR,OAAO;YACP,aAAa;YACb,SAAS;YACT,KAAK;YACL,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,kCAA0B,EAAC,GAAG,EAAE,CAAC,6BAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC5D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAqDvE"}
|
|
@@ -6,10 +6,11 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerSolidityERC20(server) {
|
|
9
|
-
return server.tool('solidity-erc20', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.ERC20), schemas_1.solidityERC20Schema, async ({ name, symbol, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, upgradeable, info, }) => {
|
|
9
|
+
return server.tool('solidity-erc20', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.ERC20), schemas_1.solidityERC20Schema, async ({ name, symbol, decimals, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, upgradeable, info, }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
|
+
decimals,
|
|
13
14
|
burnable,
|
|
14
15
|
pausable,
|
|
15
16
|
premint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../../src/solidity/tools/erc20.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../../src/solidity/tools/erc20.ts"],"names":[],"mappings":";;AAOA,sDAqDC;AA1DD,iDAA6C;AAC7C,uCAA6E;AAC7E,iEAA0E;AAC1E,+DAA8D;AAE9D,SAAgB,qBAAqB,CAAC,MAAiB;IACrD,OAAO,MAAM,CAAC,IAAI,CAChB,gBAAgB,EAChB,IAAA,0BAAkB,EAAC,+BAAe,CAAC,KAAK,CAAC,EACzC,6BAAmB,EACnB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,2BAA2B,EAC3B,MAAM,EACN,WAAW,EACX,IAAI,GACL,EAAE,EAAE;QACH,MAAM,IAAI,GAAiB;YACzB,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,cAAc;YACd,QAAQ;YACR,QAAQ;YACR,MAAM;YACN,KAAK;YACL,SAAS;YACT,kBAAkB;YAClB,2BAA2B;YAC3B,MAAM;YACN,WAAW;YACX,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,kCAA0B,EAAC,GAAG,EAAE,CAAC,cAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC1D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rwa.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/rwa.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"rwa.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/rwa.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,oEAuDpD"}
|
|
@@ -6,10 +6,11 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerSolidityRWA(server) {
|
|
9
|
-
return server.tool('solidity-rwa', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.RWA), schemas_1.solidityRWASchema, async ({ name, symbol, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, info, restrictions, freezable, }) => {
|
|
9
|
+
return server.tool('solidity-rwa', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.RWA), schemas_1.solidityRWASchema, async ({ name, symbol, decimals, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, info, restrictions, freezable, }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
|
+
decimals,
|
|
13
14
|
burnable,
|
|
14
15
|
pausable,
|
|
15
16
|
premint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rwa.js","sourceRoot":"","sources":["../../../src/solidity/tools/rwa.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"rwa.js","sourceRoot":"","sources":["../../../src/solidity/tools/rwa.ts"],"names":[],"mappings":";;AAOA,kDAuDC;AA5DD,iDAAsD;AACtD,uCAA6E;AAC7E,iEAAwE;AACxE,+DAA8D;AAE9D,SAAgB,mBAAmB,CAAC,MAAiB;IACnD,OAAO,MAAM,CAAC,IAAI,CAChB,cAAc,EACd,IAAA,0BAAkB,EAAC,+BAAe,CAAC,GAAG,CAAC,EACvC,2BAAiB,EACjB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,2BAA2B,EAC3B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,SAAS,GACV,EAAE,EAAE;QACH,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,cAAc;YACd,QAAQ;YACR,QAAQ;YACR,MAAM;YACN,KAAK;YACL,SAAS;YACT,kBAAkB;YAClB,2BAA2B;YAC3B,MAAM;YACN,IAAI;YACJ,YAAY;YACZ,SAAS;SACV,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,kCAA0B,EAAC,GAAG,EAAE,CAAC,uBAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACnE;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stablecoin.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/stablecoin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"stablecoin.d.ts","sourceRoot":"","sources":["../../../src/solidity/tools/stablecoin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAuD5E"}
|
|
@@ -6,10 +6,11 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerSolidityStablecoin(server) {
|
|
9
|
-
return server.tool('solidity-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.Stablecoin), schemas_1.solidityStablecoinSchema, async ({ name, symbol, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, info, restrictions, freezable, }) => {
|
|
9
|
+
return server.tool('solidity-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.solidityPrompts.Stablecoin), schemas_1.solidityStablecoinSchema, async ({ name, symbol, decimals, burnable, pausable, premint, premintChainId, mintable, callback, permit, votes, flashmint, crossChainBridging, crossChainLinkAllowOverride, access, info, restrictions, freezable, }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
|
+
decimals,
|
|
13
14
|
burnable,
|
|
14
15
|
pausable,
|
|
15
16
|
premint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/solidity/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/solidity/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,gEAuDC;AA5DD,iDAAkD;AAClD,uCAA6E;AAC7E,iEAA+E;AAC/E,+DAA8D;AAE9D,SAAgB,0BAA0B,CAAC,MAAiB;IAC1D,OAAO,MAAM,CAAC,IAAI,CAChB,qBAAqB,EACrB,IAAA,0BAAkB,EAAC,+BAAe,CAAC,UAAU,CAAC,EAC9C,kCAAwB,EACxB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,2BAA2B,EAC3B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,SAAS,GACV,EAAE,EAAE;QACH,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,cAAc;YACd,QAAQ;YACR,QAAQ;YACR,MAAM;YACN,KAAK;YACL,SAAS;YACT,kBAAkB;YAClB,2BAA2B;YAC3B,MAAM;YACN,IAAI;YACJ,YAAY;YACZ,SAAS;SACV,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,kCAA0B,EAAC,GAAG,EAAE,CAAC,mBAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC/D;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +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,
|
|
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,CA2CzE"}
|
|
@@ -6,10 +6,11 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerStellarFungible(server) {
|
|
9
|
-
return server.tool('stellar-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Fungible), schemas_1.stellarFungibleSchema, async ({ name, symbol, burnable, votes, pausable, premint, mintable, upgradeable, access, info, explicitImplementations, }) => {
|
|
9
|
+
return server.tool('stellar-fungible', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Fungible), schemas_1.stellarFungibleSchema, async ({ name, symbol, decimals, burnable, votes, pausable, premint, mintable, upgradeable, access, info, explicitImplementations, }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
|
+
decimals,
|
|
13
14
|
burnable,
|
|
14
15
|
votes,
|
|
15
16
|
pausable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"fungible.js","sourceRoot":"","sources":["../../../src/stellar/tools/fungible.ts"],"names":[],"mappings":";;AAOA,0DA2CC;AAhDD,iEAAwD;AACxD,uCAAyE;AACzE,iEAA4E;AAC5E,+DAA6D;AAE7D,SAAgB,uBAAuB,CAAC,MAAiB;IACvD,OAAO,MAAM,CAAC,IAAI,CAChB,kBAAkB,EAClB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,QAAQ,CAAC,EAC3C,+BAAqB,EACrB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,IAAI,EACJ,uBAAuB,GACxB,EAAE,EAAE;QACH,MAAM,IAAI,GAAoB;YAC5B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,KAAK;YACL,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,IAAI;YACJ,uBAAuB;SACxB,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"}
|
|
@@ -1 +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,
|
|
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,CA6C3E"}
|
|
@@ -6,10 +6,11 @@ const utils_1 = require("../../utils");
|
|
|
6
6
|
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
7
|
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
8
|
function registerStellarStablecoin(server) {
|
|
9
|
-
return server.tool('stellar-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Stablecoin), schemas_1.stellarStablecoinSchema, async ({ name, symbol, burnable, votes, pausable, premint, mintable, upgradeable, access, limitations, explicitImplementations, info, }) => {
|
|
9
|
+
return server.tool('stellar-stablecoin', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Stablecoin), schemas_1.stellarStablecoinSchema, async ({ name, symbol, decimals, burnable, votes, pausable, premint, mintable, upgradeable, access, limitations, explicitImplementations, info, }) => {
|
|
10
10
|
const opts = {
|
|
11
11
|
name,
|
|
12
12
|
symbol,
|
|
13
|
+
decimals,
|
|
13
14
|
burnable,
|
|
14
15
|
votes,
|
|
15
16
|
pausable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"stablecoin.js","sourceRoot":"","sources":["../../../src/stellar/tools/stablecoin.ts"],"names":[],"mappings":";;AAOA,8DA6CC;AAlDD,iEAA0D;AAC1D,uCAAyE;AACzE,iEAA8E;AAC9E,+DAA6D;AAE7D,SAAgB,yBAAyB,CAAC,MAAiB;IACzD,OAAO,MAAM,CAAC,IAAI,CAChB,oBAAoB,EACpB,IAAA,0BAAkB,EAAC,8BAAc,CAAC,UAAU,CAAC,EAC7C,iCAAuB,EACvB,KAAK,EAAE,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAM,EACN,WAAW,EACX,uBAAuB,EACvB,IAAI,GACL,EAAE,EAAE;QACH,MAAM,IAAI,GAAsB;YAC9B,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,KAAK;YACL,QAAQ;YACR,OAAO;YACP,QAAQ;YACR,WAAW;YACX,MAAM;YACN,WAAW;YACX,uBAAuB;YACvB,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 @@
|
|
|
1
|
+
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../src/stellar/tools/vault.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOzF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CA0BtE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerStellarVault = registerStellarVault;
|
|
4
|
+
const wizard_stellar_1 = require("@openzeppelin/wizard-stellar");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
const schemas_1 = require("@openzeppelin/wizard-common/schemas");
|
|
7
|
+
const wizard_common_1 = require("@openzeppelin/wizard-common");
|
|
8
|
+
function registerStellarVault(server) {
|
|
9
|
+
return server.tool('stellar-vault', (0, utils_1.makeDetailedPrompt)(wizard_common_1.stellarPrompts.Vault), schemas_1.stellarVaultSchema, async ({ name, symbol, decimalsOffset, pausable, upgradeable, access, explicitImplementations, info }) => {
|
|
10
|
+
const opts = {
|
|
11
|
+
name,
|
|
12
|
+
symbol,
|
|
13
|
+
decimalsOffset,
|
|
14
|
+
pausable,
|
|
15
|
+
upgradeable,
|
|
16
|
+
access,
|
|
17
|
+
explicitImplementations,
|
|
18
|
+
info,
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
content: [
|
|
22
|
+
{
|
|
23
|
+
type: 'text',
|
|
24
|
+
text: (0, utils_1.safePrintRustCodeBlock)(() => wizard_stellar_1.vault.print(opts)),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=vault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.js","sourceRoot":"","sources":["../../../src/stellar/tools/vault.ts"],"names":[],"mappings":";;AAOA,oDA0BC;AA/BD,iEAAqD;AACrD,uCAAyE;AACzE,iEAAyE;AACzE,+DAA6D;AAE7D,SAAgB,oBAAoB,CAAC,MAAiB;IACpD,OAAO,MAAM,CAAC,IAAI,CAChB,eAAe,EACf,IAAA,0BAAkB,EAAC,8BAAc,CAAC,KAAK,CAAC,EACxC,4BAAkB,EAClB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,uBAAuB,EAAE,IAAI,EAAE,EAAE,EAAE;QACvG,MAAM,IAAI,GAAiB;YACzB,IAAI;YACJ,MAAM;YACN,cAAc;YACd,QAAQ;YACR,WAAW;YACX,MAAM;YACN,uBAAuB;YACvB,IAAI;SACL,CAAC;QACF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAA,8BAAsB,EAAC,GAAG,EAAE,CAAC,sBAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBACtD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAuBzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,QAIrD"}
|
package/dist/stellar/tools.js
CHANGED
|
@@ -5,12 +5,14 @@ const fungible_js_1 = require("./tools/fungible.js");
|
|
|
5
5
|
const governor_js_1 = require("./tools/governor.js");
|
|
6
6
|
const stablecoin_js_1 = require("./tools/stablecoin.js");
|
|
7
7
|
const non_fungible_js_1 = require("./tools/non-fungible.js");
|
|
8
|
+
const vault_js_1 = require("./tools/vault.js");
|
|
8
9
|
function getRegisterFunctions(server) {
|
|
9
10
|
return {
|
|
10
11
|
Fungible: () => (0, fungible_js_1.registerStellarFungible)(server),
|
|
11
12
|
Governor: () => (0, governor_js_1.registerStellarGovernor)(server),
|
|
12
13
|
Stablecoin: () => (0, stablecoin_js_1.registerStellarStablecoin)(server),
|
|
13
14
|
NonFungible: () => (0, non_fungible_js_1.registerStellarNonFungible)(server),
|
|
15
|
+
Vault: () => (0, vault_js_1.registerStellarVault)(server),
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
function registerStellarTools(server) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/stellar/tools.ts"],"names":[],"mappings":";;AAuBA,oDAIC;AA1BD,qDAA8D;AAC9D,qDAA8D;AAC9D,yDAAkE;AAClE,6DAAqE;AACrE,+CAAwD;AAQxD,SAAS,oBAAoB,CAAC,MAAiB;IAC7C,OAAO;QACL,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,qCAAuB,EAAC,MAAM,CAAC;QAC/C,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;QACrD,KAAK,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAoB,EAAC,MAAM,CAAC;KAC1C,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openzeppelin/contracts-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"description": "OpenZeppelin Contracts MCP Server",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": "https://github.com/OpenZeppelin/contracts-wizard",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
27
|
-
"@openzeppelin/wizard-common": "^0.5.
|
|
28
|
-
"@openzeppelin/wizard": "^0.10.
|
|
27
|
+
"@openzeppelin/wizard-common": "^0.5.3",
|
|
28
|
+
"@openzeppelin/wizard": "^0.10.10",
|
|
29
29
|
"@openzeppelin/wizard-stylus": "^0.3.0",
|
|
30
|
-
"@openzeppelin/wizard-stellar": "^0.6.
|
|
30
|
+
"@openzeppelin/wizard-stellar": "^0.6.3",
|
|
31
31
|
"@openzeppelin/wizard-cairo": "^3.0.0",
|
|
32
|
-
"@openzeppelin/wizard-confidential": "^0.1.
|
|
32
|
+
"@openzeppelin/wizard-confidential": "^0.1.2",
|
|
33
33
|
"@openzeppelin/wizard-uniswap-hooks": "^0.1.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -10,11 +10,12 @@ export function registerConfidentialERC7984(server: McpServer): RegisteredTool {
|
|
|
10
10
|
'erc7984',
|
|
11
11
|
makeDetailedPrompt(confidentialPrompts.ERC7984),
|
|
12
12
|
confidentialERC7984Schema,
|
|
13
|
-
async ({ name, symbol, contractURI, premint, networkConfig, wrappable, votes, info }) => {
|
|
13
|
+
async ({ name, symbol, contractURI, decimals, premint, networkConfig, wrappable, votes, info }) => {
|
|
14
14
|
const opts: ERC7984Options = {
|
|
15
15
|
name,
|
|
16
16
|
symbol,
|
|
17
17
|
contractURI,
|
|
18
|
+
decimals,
|
|
18
19
|
premint,
|
|
19
20
|
networkConfig,
|
|
20
21
|
wrappable,
|
|
@@ -13,6 +13,7 @@ export function registerSolidityERC20(server: McpServer): RegisteredTool {
|
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
16
|
+
decimals,
|
|
16
17
|
burnable,
|
|
17
18
|
pausable,
|
|
18
19
|
premint,
|
|
@@ -31,6 +32,7 @@ export function registerSolidityERC20(server: McpServer): RegisteredTool {
|
|
|
31
32
|
const opts: ERC20Options = {
|
|
32
33
|
name,
|
|
33
34
|
symbol,
|
|
35
|
+
decimals,
|
|
34
36
|
burnable,
|
|
35
37
|
pausable,
|
|
36
38
|
premint,
|
|
@@ -13,6 +13,7 @@ export function registerSolidityRWA(server: McpServer) {
|
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
16
|
+
decimals,
|
|
16
17
|
burnable,
|
|
17
18
|
pausable,
|
|
18
19
|
premint,
|
|
@@ -32,6 +33,7 @@ export function registerSolidityRWA(server: McpServer) {
|
|
|
32
33
|
const opts: StablecoinOptions = {
|
|
33
34
|
name,
|
|
34
35
|
symbol,
|
|
36
|
+
decimals,
|
|
35
37
|
burnable,
|
|
36
38
|
pausable,
|
|
37
39
|
premint,
|
|
@@ -13,6 +13,7 @@ export function registerSolidityStablecoin(server: McpServer): RegisteredTool {
|
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
16
|
+
decimals,
|
|
16
17
|
burnable,
|
|
17
18
|
pausable,
|
|
18
19
|
premint,
|
|
@@ -32,6 +33,7 @@ export function registerSolidityStablecoin(server: McpServer): RegisteredTool {
|
|
|
32
33
|
const opts: StablecoinOptions = {
|
|
33
34
|
name,
|
|
34
35
|
symbol,
|
|
36
|
+
decimals,
|
|
35
37
|
burnable,
|
|
36
38
|
pausable,
|
|
37
39
|
premint,
|
|
@@ -13,6 +13,7 @@ export function registerStellarFungible(server: McpServer): RegisteredTool {
|
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
16
|
+
decimals,
|
|
16
17
|
burnable,
|
|
17
18
|
votes,
|
|
18
19
|
pausable,
|
|
@@ -26,6 +27,7 @@ export function registerStellarFungible(server: McpServer): RegisteredTool {
|
|
|
26
27
|
const opts: FungibleOptions = {
|
|
27
28
|
name,
|
|
28
29
|
symbol,
|
|
30
|
+
decimals,
|
|
29
31
|
burnable,
|
|
30
32
|
votes,
|
|
31
33
|
pausable,
|
|
@@ -13,6 +13,7 @@ export function registerStellarStablecoin(server: McpServer): RegisteredTool {
|
|
|
13
13
|
async ({
|
|
14
14
|
name,
|
|
15
15
|
symbol,
|
|
16
|
+
decimals,
|
|
16
17
|
burnable,
|
|
17
18
|
votes,
|
|
18
19
|
pausable,
|
|
@@ -27,6 +28,7 @@ export function registerStellarStablecoin(server: McpServer): RegisteredTool {
|
|
|
27
28
|
const opts: StablecoinOptions = {
|
|
28
29
|
name,
|
|
29
30
|
symbol,
|
|
31
|
+
decimals,
|
|
30
32
|
burnable,
|
|
31
33
|
votes,
|
|
32
34
|
pausable,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import type { VaultOptions } from '@openzeppelin/wizard-stellar';
|
|
3
|
+
import { vault } from '@openzeppelin/wizard-stellar';
|
|
4
|
+
import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils';
|
|
5
|
+
import { stellarVaultSchema } from '@openzeppelin/wizard-common/schemas';
|
|
6
|
+
import { stellarPrompts } from '@openzeppelin/wizard-common';
|
|
7
|
+
|
|
8
|
+
export function registerStellarVault(server: McpServer): RegisteredTool {
|
|
9
|
+
return server.tool(
|
|
10
|
+
'stellar-vault',
|
|
11
|
+
makeDetailedPrompt(stellarPrompts.Vault),
|
|
12
|
+
stellarVaultSchema,
|
|
13
|
+
async ({ name, symbol, decimalsOffset, pausable, upgradeable, access, explicitImplementations, info }) => {
|
|
14
|
+
const opts: VaultOptions = {
|
|
15
|
+
name,
|
|
16
|
+
symbol,
|
|
17
|
+
decimalsOffset,
|
|
18
|
+
pausable,
|
|
19
|
+
upgradeable,
|
|
20
|
+
access,
|
|
21
|
+
explicitImplementations,
|
|
22
|
+
info,
|
|
23
|
+
};
|
|
24
|
+
return {
|
|
25
|
+
content: [
|
|
26
|
+
{
|
|
27
|
+
type: 'text',
|
|
28
|
+
text: safePrintRustCodeBlock(() => vault.print(opts)),
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
}
|
package/src/stellar/tools.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { registerStellarFungible } from './tools/fungible.js';
|
|
|
3
3
|
import { registerStellarGovernor } from './tools/governor.js';
|
|
4
4
|
import { registerStellarStablecoin } from './tools/stablecoin.js';
|
|
5
5
|
import { registerStellarNonFungible } from './tools/non-fungible.js';
|
|
6
|
+
import { registerStellarVault } from './tools/vault.js';
|
|
6
7
|
import type { KindedOptions } from '@openzeppelin/wizard-stellar';
|
|
7
8
|
import type { RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
9
|
|
|
@@ -16,6 +17,7 @@ function getRegisterFunctions(server: McpServer): StellarToolRegisterFunctions {
|
|
|
16
17
|
Governor: () => registerStellarGovernor(server),
|
|
17
18
|
Stablecoin: () => registerStellarStablecoin(server),
|
|
18
19
|
NonFungible: () => registerStellarNonFungible(server),
|
|
20
|
+
Vault: () => registerStellarVault(server),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
|