@gala-chain/launchpad-mcp-server 1.2.3 → 1.2.4

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.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.transferTools = exports.transferTokenTool = exports.transferGalaTool = void 0;
7
7
  const response_formatter_js_1 = require("../../utils/response-formatter.js");
8
8
  const error_handler_js_1 = require("../../utils/error-handler.js");
9
+ const common_schemas_js_1 = require("../../schemas/common-schemas.js");
9
10
  // 1. Transfer GALA
10
11
  exports.transferGalaTool = {
11
12
  name: 'gala_launchpad_transfer_gala',
@@ -14,25 +15,12 @@ exports.transferGalaTool = {
14
15
  type: 'object',
15
16
  properties: {
16
17
  recipientAddress: {
17
- type: 'string',
18
- pattern: '^(0x[a-fA-F0-9]{40}|eth\\|[a-fA-F0-9]{40})$',
18
+ ...common_schemas_js_1.ADDRESS_SCHEMA,
19
19
  description: 'Recipient wallet address',
20
20
  },
21
- amount: {
22
- type: 'string',
23
- pattern: '^[0-9.]+$',
24
- description: 'Amount in standard decimal format',
25
- },
26
- uniqueKey: {
27
- type: 'string',
28
- pattern: '^galaconnect-operation-[a-z0-9-]+$',
29
- description: 'Optional idempotency key',
30
- },
31
- privateKey: {
32
- type: 'string',
33
- pattern: '^0x[a-fA-F0-9]{64}$',
34
- description: 'Optional private key override for this operation (format: "0x" + 64 hex characters). If provided, uses this wallet instead of the default MCP server wallet.',
35
- },
21
+ amount: common_schemas_js_1.DECIMAL_AMOUNT_SCHEMA,
22
+ uniqueKey: common_schemas_js_1.UNIQUE_KEY_SCHEMA,
23
+ privateKey: common_schemas_js_1.PRIVATE_KEY_SCHEMA,
36
24
  },
37
25
  required: ['recipientAddress', 'amount'],
38
26
  },
@@ -54,30 +42,13 @@ exports.transferTokenTool = {
54
42
  type: 'object',
55
43
  properties: {
56
44
  to: {
57
- type: 'string',
58
- pattern: '^(0x[a-fA-F0-9]{40}|eth\\|[a-fA-F0-9]{40})$',
45
+ ...common_schemas_js_1.ADDRESS_SCHEMA,
59
46
  description: 'Recipient wallet address',
60
47
  },
61
- tokenName: {
62
- type: 'string',
63
- pattern: '^[a-z0-9_-]{2,20}$',
64
- description: 'Token name',
65
- },
66
- amount: {
67
- type: 'string',
68
- pattern: '^[0-9]+$',
69
- description: 'Token amount',
70
- },
71
- uniqueKey: {
72
- type: 'string',
73
- pattern: '^galaconnect-operation-[a-z0-9-]+$',
74
- description: 'Optional idempotency key',
75
- },
76
- privateKey: {
77
- type: 'string',
78
- pattern: '^0x[a-fA-F0-9]{64}$',
79
- description: 'Optional private key override for this operation (format: "0x" + 64 hex characters). If provided, uses this wallet instead of the default MCP server wallet.',
80
- },
48
+ tokenName: common_schemas_js_1.TOKEN_NAME_SCHEMA,
49
+ amount: common_schemas_js_1.INTEGER_AMOUNT_SCHEMA,
50
+ uniqueKey: common_schemas_js_1.UNIQUE_KEY_SCHEMA,
51
+ privateKey: common_schemas_js_1.PRIVATE_KEY_SCHEMA,
81
52
  },
82
53
  required: ['to', 'tokenName', 'amount'],
83
54
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/transfers/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AAEjE,mBAAmB;AACN,QAAA,gBAAgB,GAAY;IACvC,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE,oCAAoC;IACjD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,6CAA6C;gBACtD,WAAW,EAAE,0BAA0B;aACxC;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mCAAmC;aACjD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,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EH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIlD,eAAO,MAAM,qBAAqB,EAAE,OAkBnC,CAAC"}
1
+ {"version":3,"file":"getUrlByTokenName.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/getUrlByTokenName.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKlD,eAAO,MAAM,qBAAqB,EAAE,OAiBnC,CAAC"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getUrlByTokenNameTool = void 0;
7
7
  const response_formatter_js_1 = require("../../utils/response-formatter.js");
8
8
  const error_handler_js_1 = require("../../utils/error-handler.js");
9
+ const common_schemas_js_1 = require("../../schemas/common-schemas.js");
9
10
  exports.getUrlByTokenNameTool = {
10
11
  name: 'gala_launchpad_get_url_by_token_name',
11
12
  description: 'Get the launchpad frontend URL for a specific token. Returns the complete URL for viewing/trading the token in the web interface.',
@@ -13,8 +14,7 @@ exports.getUrlByTokenNameTool = {
13
14
  type: 'object',
14
15
  properties: {
15
16
  tokenName: {
16
- type: 'string',
17
- pattern: '^[a-z0-9_-]{2,20}$',
17
+ ...common_schemas_js_1.TOKEN_NAME_SCHEMA,
18
18
  description: 'Token name to generate URL for',
19
19
  },
20
20
  },
@@ -1 +1 @@
1
- {"version":3,"file":"getUrlByTokenName.js","sourceRoot":"","sources":["../../../src/tools/utils/getUrlByTokenName.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AAEpD,QAAA,qBAAqB,GAAY;IAC5C,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EAAE,mIAAmI;IAChJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,gCAAgC;aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,GAAG,GAAG,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,IAAA,qCAAa,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"getUrlByTokenName.js","sourceRoot":"","sources":["../../../src/tools/utils/getUrlByTokenName.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AACjE,uEAAoE;AAEvD,QAAA,qBAAqB,GAAY;IAC5C,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EAAE,mIAAmI;IAChJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,GAAG,qCAAiB;gBACpB,WAAW,EAAE,gCAAgC;aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,GAAG,GAAG,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,IAAA,qCAAa,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "MCP server for Gala Launchpad SDK with 37 tools - AI agents can interact with Gala Launchpad",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -56,7 +56,7 @@
56
56
  "registry": "https://registry.npmjs.org/"
57
57
  },
58
58
  "dependencies": {
59
- "@gala-chain/launchpad-sdk": "^3.5.1",
59
+ "@gala-chain/launchpad-sdk": "^3.5.2",
60
60
  "@modelcontextprotocol/sdk": "^0.5.0"
61
61
  },
62
62
  "devDependencies": {