@ton/mcp 0.1.12 → 0.1.15-alpha.0
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/README.md +214 -21
- package/dist/cli.js +25578 -29501
- package/dist/contracts/agentic_wallet/AgenticWallet.source.d.ts +11 -0
- package/dist/contracts/agentic_wallet/AgenticWallet.source.d.ts.map +1 -0
- package/dist/contracts/agentic_wallet/AgenticWalletAdapter.d.ts +62 -0
- package/dist/contracts/agentic_wallet/AgenticWalletAdapter.d.ts.map +1 -0
- package/dist/contracts/agentic_wallet/actions.d.ts.map +1 -0
- package/dist/contracts/agentic_wallet/index.d.ts +10 -0
- package/dist/contracts/agentic_wallet/index.d.ts.map +1 -0
- package/dist/factory.d.ts +13 -34
- package/dist/factory.d.ts.map +1 -1
- package/dist/http-mode.d.ts +25 -0
- package/dist/http-mode.d.ts.map +1 -0
- package/dist/index.cjs +99349 -103146
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99346 -103147
- package/dist/registry/config.d.ts +202 -0
- package/dist/registry/config.d.ts.map +1 -0
- package/dist/runtime/wallet-runtime.d.ts +35 -0
- package/dist/runtime/wallet-runtime.d.ts.map +1 -0
- package/dist/serverless.cjs +18653 -22450
- package/dist/serverless.d.ts.map +1 -1
- package/dist/serverless.js +18654 -22451
- package/dist/services/AgenticOnboardingService.d.ts +51 -0
- package/dist/services/AgenticOnboardingService.d.ts.map +1 -0
- package/dist/services/AgenticSetupSessionManager.d.ts +82 -0
- package/dist/services/AgenticSetupSessionManager.d.ts.map +1 -0
- package/dist/services/KeyManager.d.ts +4 -3
- package/dist/services/KeyManager.d.ts.map +1 -1
- package/dist/services/McpWalletService.d.ts +75 -2
- package/dist/services/McpWalletService.d.ts.map +1 -1
- package/dist/services/WalletRegistryService.d.ts +99 -0
- package/dist/services/WalletRegistryService.d.ts.map +1 -0
- package/dist/tools/address-tools.d.ts +119 -0
- package/dist/tools/address-tools.d.ts.map +1 -0
- package/dist/tools/agentic-onboarding-tools.d.ts +120 -0
- package/dist/tools/agentic-onboarding-tools.d.ts.map +1 -0
- package/dist/tools/agentic-tools.d.ts +71 -0
- package/dist/tools/agentic-tools.d.ts.map +1 -0
- package/dist/tools/dns-tools.d.ts.map +1 -1
- package/dist/tools/index.d.ts +5 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/nft-tools.d.ts.map +1 -1
- package/dist/tools/sanitize.d.ts +44 -0
- package/dist/tools/sanitize.d.ts.map +1 -0
- package/dist/tools/transaction-tools.d.ts +31 -0
- package/dist/tools/transaction-tools.d.ts.map +1 -0
- package/dist/tools/transfer-tools.d.ts +8 -8
- package/dist/tools/transfer-tools.d.ts.map +1 -1
- package/dist/tools/wallet-management-tools.d.ts +249 -0
- package/dist/tools/wallet-management-tools.d.ts.map +1 -0
- package/dist/types/config.d.ts +4 -3
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/contacts.d.ts +2 -1
- package/dist/types/contacts.d.ts.map +1 -1
- package/dist/utils/address.d.ts +15 -0
- package/dist/utils/address.d.ts.map +1 -0
- package/dist/utils/agentic.d.ts +61 -0
- package/dist/utils/agentic.d.ts.map +1 -0
- package/dist/utils/math.d.ts +9 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/private-key.d.ts +14 -0
- package/dist/utils/private-key.d.ts.map +1 -0
- package/dist/utils/ton-client.d.ts +14 -0
- package/dist/utils/ton-client.d.ts.map +1 -0
- package/llms.txt +151 -6
- package/package.json +3 -3
- package/skills/SKILL.md +63 -8
- package/dist/contracts/w5_ownable/WalletOwnable.d.ts +0 -87
- package/dist/contracts/w5_ownable/WalletOwnable.d.ts.map +0 -1
- package/dist/contracts/w5_ownable/WalletOwnable.source.d.ts +0 -11
- package/dist/contracts/w5_ownable/WalletOwnable.source.d.ts.map +0 -1
- package/dist/contracts/w5_ownable/WalletOwnableAdapter.d.ts +0 -111
- package/dist/contracts/w5_ownable/WalletOwnableAdapter.d.ts.map +0 -1
- package/dist/contracts/w5_ownable/actions.d.ts.map +0 -1
- package/dist/contracts/w5_ownable/index.d.ts +0 -12
- package/dist/contracts/w5_ownable/index.d.ts.map +0 -1
- /package/dist/contracts/{w5_ownable → agentic_wallet}/actions.d.ts +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import type { AgenticOnboardingService } from '../services/AgenticOnboardingService.js';
|
|
10
|
+
import type { ToolResponse } from './types.js';
|
|
11
|
+
declare const startAgenticRootWalletSetupSchema: z.ZodObject<{
|
|
12
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
source: z.ZodOptional<z.ZodString>;
|
|
15
|
+
collectionAddress: z.ZodOptional<z.ZodString>;
|
|
16
|
+
tonDeposit: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
19
|
+
source?: string | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
collectionAddress?: string | undefined;
|
|
22
|
+
tonDeposit?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
25
|
+
source?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
collectionAddress?: string | undefined;
|
|
28
|
+
tonDeposit?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
declare const setupIdSchema: z.ZodObject<{
|
|
31
|
+
setupId: z.ZodString;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
setupId: string;
|
|
34
|
+
}, {
|
|
35
|
+
setupId: string;
|
|
36
|
+
}>;
|
|
37
|
+
declare const completeAgenticRootWalletSetupSchema: z.ZodObject<{
|
|
38
|
+
setupId: z.ZodString;
|
|
39
|
+
walletAddress: z.ZodOptional<z.ZodString>;
|
|
40
|
+
ownerAddress: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
setupId: string;
|
|
43
|
+
ownerAddress?: string | undefined;
|
|
44
|
+
walletAddress?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
setupId: string;
|
|
47
|
+
ownerAddress?: string | undefined;
|
|
48
|
+
walletAddress?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export declare function createMcpAgenticOnboardingTools(onboarding: AgenticOnboardingService): {
|
|
51
|
+
start_agentic_root_wallet_setup: {
|
|
52
|
+
description: string;
|
|
53
|
+
inputSchema: z.ZodObject<{
|
|
54
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
55
|
+
name: z.ZodOptional<z.ZodString>;
|
|
56
|
+
source: z.ZodOptional<z.ZodString>;
|
|
57
|
+
collectionAddress: z.ZodOptional<z.ZodString>;
|
|
58
|
+
tonDeposit: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
61
|
+
source?: string | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
collectionAddress?: string | undefined;
|
|
64
|
+
tonDeposit?: string | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
67
|
+
source?: string | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
collectionAddress?: string | undefined;
|
|
70
|
+
tonDeposit?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
handler: (args: z.infer<typeof startAgenticRootWalletSetupSchema>) => Promise<ToolResponse>;
|
|
73
|
+
};
|
|
74
|
+
list_pending_agentic_root_wallet_setups: {
|
|
75
|
+
description: string;
|
|
76
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
77
|
+
handler: () => Promise<ToolResponse>;
|
|
78
|
+
};
|
|
79
|
+
get_agentic_root_wallet_setup: {
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: z.ZodObject<{
|
|
82
|
+
setupId: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
setupId: string;
|
|
85
|
+
}, {
|
|
86
|
+
setupId: string;
|
|
87
|
+
}>;
|
|
88
|
+
handler: (args: z.infer<typeof setupIdSchema>) => Promise<ToolResponse>;
|
|
89
|
+
};
|
|
90
|
+
complete_agentic_root_wallet_setup: {
|
|
91
|
+
description: string;
|
|
92
|
+
inputSchema: z.ZodObject<{
|
|
93
|
+
setupId: z.ZodString;
|
|
94
|
+
walletAddress: z.ZodOptional<z.ZodString>;
|
|
95
|
+
ownerAddress: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
setupId: string;
|
|
98
|
+
ownerAddress?: string | undefined;
|
|
99
|
+
walletAddress?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
setupId: string;
|
|
102
|
+
ownerAddress?: string | undefined;
|
|
103
|
+
walletAddress?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
handler: (args: z.infer<typeof completeAgenticRootWalletSetupSchema>) => Promise<ToolResponse>;
|
|
106
|
+
};
|
|
107
|
+
cancel_agentic_root_wallet_setup: {
|
|
108
|
+
description: string;
|
|
109
|
+
inputSchema: z.ZodObject<{
|
|
110
|
+
setupId: z.ZodString;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
setupId: string;
|
|
113
|
+
}, {
|
|
114
|
+
setupId: string;
|
|
115
|
+
}>;
|
|
116
|
+
handler: (args: z.infer<typeof setupIdSchema>) => Promise<ToolResponse>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export {};
|
|
120
|
+
//# sourceMappingURL=agentic-onboarding-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-onboarding-tools.d.ts","sourceRoot":"","sources":["../../src/tools/agentic-onboarding-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAOxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgC/C,QAAA,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;EAEjB,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;EAIxC,CAAC;AAEH,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;wBAMlD,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;uBAgB5E,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAgBlB,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;wBAcrD,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAgB5E,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAUtF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import type { McpWalletService } from '../services/McpWalletService.js';
|
|
10
|
+
import type { ToolResponse } from './types.js';
|
|
11
|
+
export declare const deployAgenticSubwalletSchema: z.ZodObject<{
|
|
12
|
+
operatorPublicKey: z.ZodString;
|
|
13
|
+
metadata: z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.objectOutputType<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "strip">, z.objectInputType<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
}, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "strip">>;
|
|
20
|
+
amountTon: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
operatorPublicKey: string;
|
|
23
|
+
metadata: {
|
|
24
|
+
name: string;
|
|
25
|
+
} & {
|
|
26
|
+
[k: string]: string | number | boolean;
|
|
27
|
+
};
|
|
28
|
+
amountTon?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
operatorPublicKey: string;
|
|
31
|
+
metadata: {
|
|
32
|
+
name: string;
|
|
33
|
+
} & {
|
|
34
|
+
[k: string]: string | number | boolean;
|
|
35
|
+
};
|
|
36
|
+
amountTon?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export declare function createMcpAgenticTools(service: McpWalletService): {
|
|
39
|
+
deploy_agentic_subwallet: {
|
|
40
|
+
description: string;
|
|
41
|
+
inputSchema: z.ZodObject<{
|
|
42
|
+
operatorPublicKey: z.ZodString;
|
|
43
|
+
metadata: z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.objectOutputType<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
}, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "strip">, z.objectInputType<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
}, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "strip">>;
|
|
50
|
+
amountTon: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
operatorPublicKey: string;
|
|
53
|
+
metadata: {
|
|
54
|
+
name: string;
|
|
55
|
+
} & {
|
|
56
|
+
[k: string]: string | number | boolean;
|
|
57
|
+
};
|
|
58
|
+
amountTon?: string | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
operatorPublicKey: string;
|
|
61
|
+
metadata: {
|
|
62
|
+
name: string;
|
|
63
|
+
} & {
|
|
64
|
+
[k: string]: string | number | boolean;
|
|
65
|
+
};
|
|
66
|
+
amountTon?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
handler: (args: z.infer<typeof deployAgenticSubwalletSchema>) => Promise<ToolResponse>;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=agentic-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentic-tools.d.ts","sourceRoot":"","sources":["../../src/tools/agentic-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU/C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;EAOvC,CAAC;AAEH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAM7B,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAuErG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dns-tools.d.ts","sourceRoot":"","sources":["../../src/tools/dns-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,gBAAgB;;;;;;
|
|
1
|
+
{"version":3,"file":"dns-tools.d.ts","sourceRoot":"","sources":["../../src/tools/dns-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,gBAAgB;;;;;;EAO3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;wBAMzB,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAuDxD,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAqD7F"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -10,4 +10,9 @@ export { createMcpTransferTools } from './transfer-tools.js';
|
|
|
10
10
|
export { createMcpSwapTools } from './swap-tools.js';
|
|
11
11
|
export { createMcpKnownJettonsTools, KNOWN_JETTONS } from './known-jettons-tools.js';
|
|
12
12
|
export { createMcpNftTools } from './nft-tools.js';
|
|
13
|
+
export { createMcpTransactionTools } from './transaction-tools.js';
|
|
14
|
+
export { createMcpAgenticTools } from './agentic-tools.js';
|
|
15
|
+
export { createMcpAddressTools } from './address-tools.js';
|
|
16
|
+
export { createMcpWalletManagementTools } from './wallet-management-tools.js';
|
|
17
|
+
export { createMcpAgenticOnboardingTools } from './agentic-onboarding-tools.js';
|
|
13
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nft-tools.d.ts","sourceRoot":"","sources":["../../src/tools/nft-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;EAEvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;wBAMzB,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAiDrD,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"nft-tools.d.ts","sourceRoot":"","sources":["../../src/tools/nft-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;EAEvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;wBAMzB,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAiDrD,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;wBAkEpD,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAwCtF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { ConfigNetwork, PendingAgenticDeployment, PendingAgenticKeyRotation, StoredAgenticWallet, StoredStandardWallet, StoredWallet } from '../registry/config.js';
|
|
9
|
+
import type { AgenticRootWalletSetupStatus } from '../services/AgenticOnboardingService.js';
|
|
10
|
+
export type PublicStandardWallet = Omit<StoredStandardWallet, 'mnemonic' | 'private_key'> & {
|
|
11
|
+
has_mnemonic: boolean;
|
|
12
|
+
has_private_key: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type PublicAgenticWallet = Omit<StoredAgenticWallet, 'operator_private_key'> & {
|
|
15
|
+
has_operator_private_key: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type PublicStoredWallet = PublicStandardWallet | PublicAgenticWallet;
|
|
18
|
+
export interface PublicNetworkConfig {
|
|
19
|
+
has_toncenter_api_key: boolean;
|
|
20
|
+
agentic_collection_address?: string;
|
|
21
|
+
}
|
|
22
|
+
export type PublicPendingAgenticDeployment = Omit<PendingAgenticDeployment, 'operator_private_key'> & {
|
|
23
|
+
has_operator_private_key: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type PublicPendingAgenticKeyRotation = Omit<PendingAgenticKeyRotation, 'operator_private_key'> & {
|
|
26
|
+
has_operator_private_key: boolean;
|
|
27
|
+
};
|
|
28
|
+
export interface PublicAgenticRootWalletSetupStatus extends Omit<AgenticRootWalletSetupStatus, 'pendingDeployment'> {
|
|
29
|
+
pendingDeployment: PublicPendingAgenticDeployment;
|
|
30
|
+
}
|
|
31
|
+
export declare function sanitizeStoredWallet(wallet: StoredWallet | null): PublicStoredWallet | null;
|
|
32
|
+
export declare function sanitizeStoredWallets(wallets: StoredWallet[]): PublicStoredWallet[];
|
|
33
|
+
export declare const sanitizeWallet: typeof sanitizeStoredWallet;
|
|
34
|
+
export declare const sanitizeWallets: typeof sanitizeStoredWallets;
|
|
35
|
+
export declare function sanitizeNetworkConfig(config: ConfigNetwork): PublicNetworkConfig;
|
|
36
|
+
export declare function sanitizePendingAgenticDeployment(deployment: PendingAgenticDeployment): PublicPendingAgenticDeployment;
|
|
37
|
+
export declare function sanitizePendingAgenticDeployments(deployments: PendingAgenticDeployment[]): PublicPendingAgenticDeployment[];
|
|
38
|
+
export declare function sanitizePendingAgenticKeyRotation(rotation: PendingAgenticKeyRotation): PublicPendingAgenticKeyRotation;
|
|
39
|
+
export declare function sanitizePendingAgenticKeyRotations(rotations: PendingAgenticKeyRotation[]): PublicPendingAgenticKeyRotation[];
|
|
40
|
+
export declare function sanitizeAgenticRootWalletSetupStatus(setup: AgenticRootWalletSetupStatus | null): PublicAgenticRootWalletSetupStatus | null;
|
|
41
|
+
export declare function sanitizeAgenticRootWalletSetupStatuses(setups: AgenticRootWalletSetupStatus[]): PublicAgenticRootWalletSetupStatus[];
|
|
42
|
+
export declare const sanitizeRootWalletSetup: typeof sanitizeAgenticRootWalletSetupStatus;
|
|
43
|
+
export declare const sanitizeRootWalletSetups: typeof sanitizeAgenticRootWalletSetupStatuses;
|
|
44
|
+
//# sourceMappingURL=sanitize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/tools/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACR,aAAa,EACb,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAE5F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,aAAa,CAAC,GAAG;IACxF,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG;IAClF,wBAAwB,EAAE,OAAO,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAE5E,MAAM,WAAW,mBAAmB;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,GAAG;IAClG,wBAAwB,EAAE,OAAO,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,GAAG;IACpG,wBAAwB,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,MAAM,WAAW,kCAAmC,SAAQ,IAAI,CAAC,4BAA4B,EAAE,mBAAmB,CAAC;IAC/G,iBAAiB,EAAE,8BAA8B,CAAC;CACrD;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,kBAAkB,GAAG,IAAI,CAmB3F;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,CAInF;AAED,eAAO,MAAM,cAAc,6BAAuB,CAAC;AACnD,eAAO,MAAM,eAAe,8BAAwB,CAAC;AAErD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,aAAa,GAAG,mBAAmB,CAKhF;AAED,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,wBAAwB,GAAG,8BAA8B,CAMrH;AAED,wBAAgB,iCAAiC,CAC7C,WAAW,EAAE,wBAAwB,EAAE,GACxC,8BAA8B,EAAE,CAElC;AAED,wBAAgB,iCAAiC,CAC7C,QAAQ,EAAE,yBAAyB,GACpC,+BAA+B,CAMjC;AAED,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,yBAAyB,EAAE,GACvC,+BAA+B,EAAE,CAEnC;AAED,wBAAgB,oCAAoC,CAChD,KAAK,EAAE,4BAA4B,GAAG,IAAI,GAC3C,kCAAkC,GAAG,IAAI,CAS3C;AAED,wBAAgB,sCAAsC,CAClD,MAAM,EAAE,4BAA4B,EAAE,GACvC,kCAAkC,EAAE,CAItC;AAED,eAAO,MAAM,uBAAuB,6CAAuC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,+CAAyC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import type { McpWalletService } from '../services/McpWalletService.js';
|
|
10
|
+
import type { ToolResponse } from './types.js';
|
|
11
|
+
export declare const getTransactionStatusSchema: z.ZodObject<{
|
|
12
|
+
normalizedHash: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
normalizedHash: string;
|
|
15
|
+
}, {
|
|
16
|
+
normalizedHash: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function createMcpTransactionTools(service: McpWalletService): {
|
|
19
|
+
get_transaction_status: {
|
|
20
|
+
description: string;
|
|
21
|
+
inputSchema: z.ZodObject<{
|
|
22
|
+
normalizedHash: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
normalizedHash: string;
|
|
25
|
+
}, {
|
|
26
|
+
normalizedHash: string;
|
|
27
|
+
}>;
|
|
28
|
+
handler: (args: z.infer<typeof getTransactionStatusSchema>) => Promise<ToolResponse>;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=transaction-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-tools.d.ts","sourceRoot":"","sources":["../../src/tools/transaction-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAC;AAEH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;wBAMjC,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EA6BnG"}
|
|
@@ -46,13 +46,13 @@ export declare const sendRawTransactionSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
address: string;
|
|
48
48
|
amount: string;
|
|
49
|
-
stateInit?: string | undefined;
|
|
50
49
|
payload?: string | undefined;
|
|
50
|
+
stateInit?: string | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
address: string;
|
|
53
53
|
amount: string;
|
|
54
|
-
stateInit?: string | undefined;
|
|
55
54
|
payload?: string | undefined;
|
|
55
|
+
stateInit?: string | undefined;
|
|
56
56
|
}>, "many">;
|
|
57
57
|
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
58
58
|
fromAddress: z.ZodOptional<z.ZodString>;
|
|
@@ -60,8 +60,8 @@ export declare const sendRawTransactionSchema: z.ZodObject<{
|
|
|
60
60
|
messages: {
|
|
61
61
|
address: string;
|
|
62
62
|
amount: string;
|
|
63
|
-
stateInit?: string | undefined;
|
|
64
63
|
payload?: string | undefined;
|
|
64
|
+
stateInit?: string | undefined;
|
|
65
65
|
}[];
|
|
66
66
|
validUntil?: number | undefined;
|
|
67
67
|
fromAddress?: string | undefined;
|
|
@@ -69,8 +69,8 @@ export declare const sendRawTransactionSchema: z.ZodObject<{
|
|
|
69
69
|
messages: {
|
|
70
70
|
address: string;
|
|
71
71
|
amount: string;
|
|
72
|
-
stateInit?: string | undefined;
|
|
73
72
|
payload?: string | undefined;
|
|
73
|
+
stateInit?: string | undefined;
|
|
74
74
|
}[];
|
|
75
75
|
validUntil?: number | undefined;
|
|
76
76
|
fromAddress?: string | undefined;
|
|
@@ -124,13 +124,13 @@ export declare function createMcpTransferTools(service: McpWalletService): {
|
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
address: string;
|
|
126
126
|
amount: string;
|
|
127
|
-
stateInit?: string | undefined;
|
|
128
127
|
payload?: string | undefined;
|
|
128
|
+
stateInit?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
address: string;
|
|
131
131
|
amount: string;
|
|
132
|
-
stateInit?: string | undefined;
|
|
133
132
|
payload?: string | undefined;
|
|
133
|
+
stateInit?: string | undefined;
|
|
134
134
|
}>, "many">;
|
|
135
135
|
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
136
136
|
fromAddress: z.ZodOptional<z.ZodString>;
|
|
@@ -138,8 +138,8 @@ export declare function createMcpTransferTools(service: McpWalletService): {
|
|
|
138
138
|
messages: {
|
|
139
139
|
address: string;
|
|
140
140
|
amount: string;
|
|
141
|
-
stateInit?: string | undefined;
|
|
142
141
|
payload?: string | undefined;
|
|
142
|
+
stateInit?: string | undefined;
|
|
143
143
|
}[];
|
|
144
144
|
validUntil?: number | undefined;
|
|
145
145
|
fromAddress?: string | undefined;
|
|
@@ -147,8 +147,8 @@ export declare function createMcpTransferTools(service: McpWalletService): {
|
|
|
147
147
|
messages: {
|
|
148
148
|
address: string;
|
|
149
149
|
amount: string;
|
|
150
|
-
stateInit?: string | undefined;
|
|
151
150
|
payload?: string | undefined;
|
|
151
|
+
stateInit?: string | undefined;
|
|
152
152
|
}[];
|
|
153
153
|
validUntil?: number | undefined;
|
|
154
154
|
fromAddress?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-tools.d.ts","sourceRoot":"","sources":["../../src/tools/transfer-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transfer-tools.d.ts","sourceRoot":"","sources":["../../src/tools/transfer-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;wBAM9B,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;wBAiDrD,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2FxD,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAiDjG"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import type { WalletRegistryService } from '../services/WalletRegistryService.js';
|
|
10
|
+
import type { ToolResponse } from './types.js';
|
|
11
|
+
declare const setNetworkConfigSchema: z.ZodObject<{
|
|
12
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
13
|
+
toncenterApiKey: z.ZodOptional<z.ZodString>;
|
|
14
|
+
agenticCollectionAddress: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
network: "mainnet" | "testnet";
|
|
17
|
+
toncenterApiKey?: string | undefined;
|
|
18
|
+
agenticCollectionAddress?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
network: "mainnet" | "testnet";
|
|
21
|
+
toncenterApiKey?: string | undefined;
|
|
22
|
+
agenticCollectionAddress?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
declare const setActiveWalletSchema: z.ZodObject<{
|
|
25
|
+
walletSelector: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
walletSelector: string;
|
|
28
|
+
}, {
|
|
29
|
+
walletSelector: string;
|
|
30
|
+
}>;
|
|
31
|
+
declare const removeWalletSchema: z.ZodObject<{
|
|
32
|
+
walletSelector: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
walletSelector: string;
|
|
35
|
+
}, {
|
|
36
|
+
walletSelector: string;
|
|
37
|
+
}>;
|
|
38
|
+
declare const validateAgenticWalletSchema: z.ZodObject<{
|
|
39
|
+
address: z.ZodString;
|
|
40
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
41
|
+
collectionAddress: z.ZodOptional<z.ZodString>;
|
|
42
|
+
ownerAddress: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
address: string;
|
|
45
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
46
|
+
ownerAddress?: string | undefined;
|
|
47
|
+
collectionAddress?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
address: string;
|
|
50
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
51
|
+
ownerAddress?: string | undefined;
|
|
52
|
+
collectionAddress?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
declare const listAgenticWalletsByOwnerSchema: z.ZodObject<{
|
|
55
|
+
ownerAddress: z.ZodString;
|
|
56
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
ownerAddress: string;
|
|
59
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
ownerAddress: string;
|
|
62
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
declare const importAgenticWalletSchema: z.ZodObject<{
|
|
65
|
+
address: z.ZodString;
|
|
66
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
67
|
+
name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
address: string;
|
|
70
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
71
|
+
name?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
address: string;
|
|
74
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
declare const rotateOperatorKeySchema: z.ZodObject<{
|
|
78
|
+
walletSelector: z.ZodOptional<z.ZodString>;
|
|
79
|
+
operatorPrivateKey: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
walletSelector?: string | undefined;
|
|
82
|
+
operatorPrivateKey?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
walletSelector?: string | undefined;
|
|
85
|
+
operatorPrivateKey?: string | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
declare const pendingOperatorKeyRotationSchema: z.ZodObject<{
|
|
88
|
+
rotationId: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
rotationId: string;
|
|
91
|
+
}, {
|
|
92
|
+
rotationId: string;
|
|
93
|
+
}>;
|
|
94
|
+
export declare function createMcpWalletManagementTools(registry: WalletRegistryService): {
|
|
95
|
+
list_wallets: {
|
|
96
|
+
description: string;
|
|
97
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
98
|
+
handler: () => Promise<ToolResponse>;
|
|
99
|
+
};
|
|
100
|
+
get_current_wallet: {
|
|
101
|
+
description: string;
|
|
102
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
103
|
+
handler: () => Promise<ToolResponse>;
|
|
104
|
+
};
|
|
105
|
+
set_active_wallet: {
|
|
106
|
+
description: string;
|
|
107
|
+
inputSchema: z.ZodObject<{
|
|
108
|
+
walletSelector: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
walletSelector: string;
|
|
111
|
+
}, {
|
|
112
|
+
walletSelector: string;
|
|
113
|
+
}>;
|
|
114
|
+
handler: (args: z.infer<typeof setActiveWalletSchema>) => Promise<ToolResponse>;
|
|
115
|
+
};
|
|
116
|
+
remove_wallet: {
|
|
117
|
+
description: string;
|
|
118
|
+
inputSchema: z.ZodObject<{
|
|
119
|
+
walletSelector: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
walletSelector: string;
|
|
122
|
+
}, {
|
|
123
|
+
walletSelector: string;
|
|
124
|
+
}>;
|
|
125
|
+
handler: (args: z.infer<typeof removeWalletSchema>) => Promise<ToolResponse>;
|
|
126
|
+
};
|
|
127
|
+
set_network_config: {
|
|
128
|
+
description: string;
|
|
129
|
+
inputSchema: z.ZodObject<{
|
|
130
|
+
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
131
|
+
toncenterApiKey: z.ZodOptional<z.ZodString>;
|
|
132
|
+
agenticCollectionAddress: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
network: "mainnet" | "testnet";
|
|
135
|
+
toncenterApiKey?: string | undefined;
|
|
136
|
+
agenticCollectionAddress?: string | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
network: "mainnet" | "testnet";
|
|
139
|
+
toncenterApiKey?: string | undefined;
|
|
140
|
+
agenticCollectionAddress?: string | undefined;
|
|
141
|
+
}>;
|
|
142
|
+
handler: (args: z.infer<typeof setNetworkConfigSchema>) => Promise<ToolResponse>;
|
|
143
|
+
};
|
|
144
|
+
validate_agentic_wallet: {
|
|
145
|
+
description: string;
|
|
146
|
+
inputSchema: z.ZodObject<{
|
|
147
|
+
address: z.ZodString;
|
|
148
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
149
|
+
collectionAddress: z.ZodOptional<z.ZodString>;
|
|
150
|
+
ownerAddress: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
address: string;
|
|
153
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
154
|
+
ownerAddress?: string | undefined;
|
|
155
|
+
collectionAddress?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
address: string;
|
|
158
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
159
|
+
ownerAddress?: string | undefined;
|
|
160
|
+
collectionAddress?: string | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
handler: (args: z.infer<typeof validateAgenticWalletSchema>) => Promise<ToolResponse>;
|
|
163
|
+
};
|
|
164
|
+
list_agentic_wallets_by_owner: {
|
|
165
|
+
description: string;
|
|
166
|
+
inputSchema: z.ZodObject<{
|
|
167
|
+
ownerAddress: z.ZodString;
|
|
168
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
ownerAddress: string;
|
|
171
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
ownerAddress: string;
|
|
174
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
handler: (args: z.infer<typeof listAgenticWalletsByOwnerSchema>) => Promise<ToolResponse>;
|
|
177
|
+
};
|
|
178
|
+
import_agentic_wallet: {
|
|
179
|
+
description: string;
|
|
180
|
+
inputSchema: z.ZodObject<{
|
|
181
|
+
address: z.ZodString;
|
|
182
|
+
network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
|
|
183
|
+
name: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
address: string;
|
|
186
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
address: string;
|
|
190
|
+
network?: "mainnet" | "testnet" | undefined;
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
}>;
|
|
193
|
+
handler: (args: z.infer<typeof importAgenticWalletSchema>) => Promise<ToolResponse>;
|
|
194
|
+
};
|
|
195
|
+
rotate_operator_key: {
|
|
196
|
+
description: string;
|
|
197
|
+
inputSchema: z.ZodObject<{
|
|
198
|
+
walletSelector: z.ZodOptional<z.ZodString>;
|
|
199
|
+
operatorPrivateKey: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
walletSelector?: string | undefined;
|
|
202
|
+
operatorPrivateKey?: string | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
walletSelector?: string | undefined;
|
|
205
|
+
operatorPrivateKey?: string | undefined;
|
|
206
|
+
}>;
|
|
207
|
+
handler: (args: z.infer<typeof rotateOperatorKeySchema>) => Promise<ToolResponse>;
|
|
208
|
+
};
|
|
209
|
+
list_pending_operator_key_rotations: {
|
|
210
|
+
description: string;
|
|
211
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
212
|
+
handler: () => Promise<ToolResponse>;
|
|
213
|
+
};
|
|
214
|
+
get_pending_operator_key_rotation: {
|
|
215
|
+
description: string;
|
|
216
|
+
inputSchema: z.ZodObject<{
|
|
217
|
+
rotationId: z.ZodString;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
rotationId: string;
|
|
220
|
+
}, {
|
|
221
|
+
rotationId: string;
|
|
222
|
+
}>;
|
|
223
|
+
handler: (args: z.infer<typeof pendingOperatorKeyRotationSchema>) => Promise<ToolResponse>;
|
|
224
|
+
};
|
|
225
|
+
complete_rotate_operator_key: {
|
|
226
|
+
description: string;
|
|
227
|
+
inputSchema: z.ZodObject<{
|
|
228
|
+
rotationId: z.ZodString;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
rotationId: string;
|
|
231
|
+
}, {
|
|
232
|
+
rotationId: string;
|
|
233
|
+
}>;
|
|
234
|
+
handler: (args: z.infer<typeof pendingOperatorKeyRotationSchema>) => Promise<ToolResponse>;
|
|
235
|
+
};
|
|
236
|
+
cancel_rotate_operator_key: {
|
|
237
|
+
description: string;
|
|
238
|
+
inputSchema: z.ZodObject<{
|
|
239
|
+
rotationId: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
rotationId: string;
|
|
242
|
+
}, {
|
|
243
|
+
rotationId: string;
|
|
244
|
+
}>;
|
|
245
|
+
handler: (args: z.infer<typeof pendingOperatorKeyRotationSchema>) => Promise<ToolResponse>;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
export {};
|
|
249
|
+
//# sourceMappingURL=wallet-management-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-management-tools.d.ts","sourceRoot":"","sources":["../../src/tools/wallet-management-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AASlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAoC/C,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;;;;EAEzB,CAAC;AAEH,QAAA,MAAM,kBAAkB;;;;;;EAEtB,CAAC;AAEH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH,QAAA,MAAM,+BAA+B;;;;;;;;;EAGnC,CAAC;AAEH,QAAA,MAAM,yBAAyB;;;;;;;;;;;;EAI7B,CAAC;AAEH,QAAA,MAAM,uBAAuB;;;;;;;;;EAM3B,CAAC;AAEH,QAAA,MAAM,gCAAgC;;;;;;EAEpC,CAAC;AAEH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,qBAAqB;;;;uBAK/C,OAAO,CAAC,YAAY,CAAC;;;;;uBAkBrB,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAalB,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAa7D,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;wBA6B1D,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;wBAqB9D,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;wBAanE,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;wBAmBvE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;wBAiBjE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;uBAiBlE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAgBlB,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAgBxE,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;wBAiBxE,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;;EAUzG"}
|