@kasarlabs/transaction-mcp 0.1.4 → 0.1.6
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/build/lib/utils/outputSimulateTransaction.d.ts +2 -3
- package/build/lib/utils/outputSimulateTransaction.js +6 -7
- package/build/lib/utils/outputSimulateTransaction.js.map +1 -1
- package/build/schemas/index.d.ts +4 -4
- package/build/tools/simulateTransaction.d.ts +5 -105
- package/build/tools/simulateTransaction.js +16 -8
- package/build/tools/simulateTransaction.js.map +1 -1
- package/package.json +12 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const TransactionReponseFormat: (transactionResponse:
|
|
1
|
+
import { SimulateTransactionOverheadResponse } from 'starknet';
|
|
2
|
+
export declare const TransactionReponseFormat: (transactionResponse: SimulateTransactionOverheadResponse) => Array<{
|
|
3
3
|
transaction_number: number;
|
|
4
4
|
fee_estimation: {
|
|
5
5
|
title: string;
|
|
@@ -15,5 +15,4 @@ export declare const TransactionReponseFormat: (transactionResponse: SimulateTra
|
|
|
15
15
|
max_price_per_unit: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
suggested_max_fee: string;
|
|
19
18
|
}>;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
export const TransactionReponseFormat = (transactionResponse) => {
|
|
2
2
|
const transactionDetails = transactionResponse.map((transaction, index) => {
|
|
3
|
-
const
|
|
3
|
+
const overall_fee = transaction.overall_fee.toString();
|
|
4
4
|
const resourceBounds = transaction.resourceBounds;
|
|
5
5
|
return {
|
|
6
6
|
transaction_number: index + 1,
|
|
7
7
|
fee_estimation: {
|
|
8
8
|
title: 'Fee Estimation Breakdown',
|
|
9
9
|
details: {
|
|
10
|
-
|
|
10
|
+
overall_fee: overall_fee,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
resource_bounds: {
|
|
14
14
|
l1_gas: {
|
|
15
|
-
max_amount: resourceBounds.l1_gas.max_amount,
|
|
16
|
-
max_price_per_unit: resourceBounds.l1_gas.max_price_per_unit,
|
|
15
|
+
max_amount: resourceBounds.l1_gas.max_amount.toString(),
|
|
16
|
+
max_price_per_unit: resourceBounds.l1_gas.max_price_per_unit.toString(),
|
|
17
17
|
},
|
|
18
18
|
l2_gas: {
|
|
19
|
-
max_amount: resourceBounds.l2_gas.max_amount,
|
|
20
|
-
max_price_per_unit: resourceBounds.l2_gas.max_price_per_unit,
|
|
19
|
+
max_amount: resourceBounds.l2_gas.max_amount.toString(),
|
|
20
|
+
max_price_per_unit: resourceBounds.l2_gas.max_price_per_unit.toString(),
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
-
suggested_max_fee: transaction.suggestedMaxFee.toString(),
|
|
24
23
|
};
|
|
25
24
|
});
|
|
26
25
|
return transactionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputSimulateTransaction.js","sourceRoot":"","sources":["../../../src/lib/utils/outputSimulateTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"outputSimulateTransaction.js","sourceRoot":"","sources":["../../../src/lib/utils/outputSimulateTransaction.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,mBAAwD,EAiBvD,EAAE;IACH,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QACxE,MAAM,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QACvD,MAAM,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;QAElD,OAAO;YACL,kBAAkB,EAAE,KAAK,GAAG,CAAC;YAE7B,cAAc,EAAE;gBACd,KAAK,EAAE,0BAA0B;gBACjC,OAAO,EAAE;oBACP,WAAW,EAAE,WAAW;iBACzB;aACF;YAED,eAAe,EAAE;gBACf,MAAM,EAAE;oBACN,UAAU,EAAE,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE;oBACvD,kBAAkB,EAChB,cAAc,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE;iBACtD;gBACD,MAAM,EAAE;oBACN,UAAU,EAAE,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE;oBACvD,kBAAkB,EAChB,cAAc,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE;iBACtD;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
|
package/build/schemas/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const declareContractSchema: z.ZodObject<{
|
|
|
4
4
|
classHash: z.ZodOptional<z.ZodString>;
|
|
5
5
|
compiledClassHash: z.ZodOptional<z.ZodString>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
compiledClassHash?: string | undefined;
|
|
7
8
|
classHash?: string | undefined;
|
|
8
9
|
contract?: any;
|
|
9
|
-
compiledClassHash?: string | undefined;
|
|
10
10
|
}, {
|
|
11
|
+
compiledClassHash?: string | undefined;
|
|
11
12
|
classHash?: string | undefined;
|
|
12
13
|
contract?: any;
|
|
13
|
-
compiledClassHash?: string | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const simulateInvokeTransactionSchema: z.ZodObject<{
|
|
16
16
|
accountAddress: z.ZodString;
|
|
@@ -159,7 +159,6 @@ export declare const simulateDeclareTransactionSchema: z.ZodObject<{
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
accountAddress: string;
|
|
161
161
|
contract: string;
|
|
162
|
-
classHash?: string | undefined;
|
|
163
162
|
casm?: {
|
|
164
163
|
entry_points_by_type: {
|
|
165
164
|
CONSTRUCTOR: any[];
|
|
@@ -172,10 +171,10 @@ export declare const simulateDeclareTransactionSchema: z.ZodObject<{
|
|
|
172
171
|
hints: Record<string, any>;
|
|
173
172
|
} | undefined;
|
|
174
173
|
compiledClassHash?: string | undefined;
|
|
174
|
+
classHash?: string | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
accountAddress: string;
|
|
177
177
|
contract: string;
|
|
178
|
-
classHash?: string | undefined;
|
|
179
178
|
casm?: {
|
|
180
179
|
entry_points_by_type: {
|
|
181
180
|
CONSTRUCTOR: any[];
|
|
@@ -188,6 +187,7 @@ export declare const simulateDeclareTransactionSchema: z.ZodObject<{
|
|
|
188
187
|
hints: Record<string, any>;
|
|
189
188
|
} | undefined;
|
|
190
189
|
compiledClassHash?: string | undefined;
|
|
190
|
+
classHash?: string | undefined;
|
|
191
191
|
}>;
|
|
192
192
|
export declare const estimateAccountDeployFeeSchema: z.ZodObject<{
|
|
193
193
|
accountAddress: z.ZodString;
|
|
@@ -1,106 +1,6 @@
|
|
|
1
1
|
import { SimulateDeployTransactionAccountParams, SimulateInvokeTransactionParams, SimulateDeployTransactionParams, SimulateDeclareTransactionAccountParams } from '../lib/types/simulateTransactionTypes.js';
|
|
2
|
-
import { onchainWrite } from '@kasarlabs/ask-starknet-core';
|
|
3
|
-
export declare const simulateInvokeTransaction: (env: onchainWrite, params: SimulateInvokeTransactionParams) => Promise<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fee_estimation: {
|
|
8
|
-
title: string;
|
|
9
|
-
details: any;
|
|
10
|
-
};
|
|
11
|
-
resource_bounds: {
|
|
12
|
-
l1_gas: {
|
|
13
|
-
max_amount: string;
|
|
14
|
-
max_price_per_unit: string;
|
|
15
|
-
};
|
|
16
|
-
l2_gas: {
|
|
17
|
-
max_amount: string;
|
|
18
|
-
max_price_per_unit: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
suggested_max_fee: string;
|
|
22
|
-
}[];
|
|
23
|
-
error?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
status: string;
|
|
26
|
-
error: string;
|
|
27
|
-
transaction_output?: undefined;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const simulateDeployAccountTransaction: (env: onchainWrite, params: SimulateDeployTransactionAccountParams) => Promise<{
|
|
30
|
-
status: string;
|
|
31
|
-
transaction_output: {
|
|
32
|
-
transaction_number: number;
|
|
33
|
-
fee_estimation: {
|
|
34
|
-
title: string;
|
|
35
|
-
details: any;
|
|
36
|
-
};
|
|
37
|
-
resource_bounds: {
|
|
38
|
-
l1_gas: {
|
|
39
|
-
max_amount: string;
|
|
40
|
-
max_price_per_unit: string;
|
|
41
|
-
};
|
|
42
|
-
l2_gas: {
|
|
43
|
-
max_amount: string;
|
|
44
|
-
max_price_per_unit: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
suggested_max_fee: string;
|
|
48
|
-
}[];
|
|
49
|
-
error?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
status: string;
|
|
52
|
-
error: string;
|
|
53
|
-
transaction_output?: undefined;
|
|
54
|
-
}>;
|
|
55
|
-
export declare const simulateDeployTransaction: (env: onchainWrite, params: SimulateDeployTransactionParams) => Promise<{
|
|
56
|
-
status: string;
|
|
57
|
-
transaction_output: {
|
|
58
|
-
transaction_number: number;
|
|
59
|
-
fee_estimation: {
|
|
60
|
-
title: string;
|
|
61
|
-
details: any;
|
|
62
|
-
};
|
|
63
|
-
resource_bounds: {
|
|
64
|
-
l1_gas: {
|
|
65
|
-
max_amount: string;
|
|
66
|
-
max_price_per_unit: string;
|
|
67
|
-
};
|
|
68
|
-
l2_gas: {
|
|
69
|
-
max_amount: string;
|
|
70
|
-
max_price_per_unit: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
suggested_max_fee: string;
|
|
74
|
-
}[];
|
|
75
|
-
error?: undefined;
|
|
76
|
-
} | {
|
|
77
|
-
status: string;
|
|
78
|
-
error: string;
|
|
79
|
-
transaction_output?: undefined;
|
|
80
|
-
}>;
|
|
81
|
-
export declare const simulateDeclareTransaction: (env: onchainWrite, params: SimulateDeclareTransactionAccountParams) => Promise<{
|
|
82
|
-
status: string;
|
|
83
|
-
transaction_output: {
|
|
84
|
-
transaction_number: number;
|
|
85
|
-
fee_estimation: {
|
|
86
|
-
title: string;
|
|
87
|
-
details: any;
|
|
88
|
-
};
|
|
89
|
-
resource_bounds: {
|
|
90
|
-
l1_gas: {
|
|
91
|
-
max_amount: string;
|
|
92
|
-
max_price_per_unit: string;
|
|
93
|
-
};
|
|
94
|
-
l2_gas: {
|
|
95
|
-
max_amount: string;
|
|
96
|
-
max_price_per_unit: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
suggested_max_fee: string;
|
|
100
|
-
}[];
|
|
101
|
-
error?: undefined;
|
|
102
|
-
} | {
|
|
103
|
-
status: string;
|
|
104
|
-
error: string;
|
|
105
|
-
transaction_output?: undefined;
|
|
106
|
-
}>;
|
|
2
|
+
import { onchainWrite, toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const simulateInvokeTransaction: (env: onchainWrite, params: SimulateInvokeTransactionParams) => Promise<toolResult>;
|
|
4
|
+
export declare const simulateDeployAccountTransaction: (env: onchainWrite, params: SimulateDeployTransactionAccountParams) => Promise<toolResult>;
|
|
5
|
+
export declare const simulateDeployTransaction: (env: onchainWrite, params: SimulateDeployTransactionParams) => Promise<toolResult>;
|
|
6
|
+
export declare const simulateDeclareTransaction: (env: onchainWrite, params: SimulateDeclareTransactionAccountParams) => Promise<toolResult>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TransactionType } from 'starknet';
|
|
2
2
|
import { TransactionReponseFormat } from '../lib/utils/outputSimulateTransaction.js';
|
|
3
|
-
import { DEFAULT_NONCE } from '../lib/constant/index.js';
|
|
4
3
|
export const simulateInvokeTransaction = async (env, params) => {
|
|
5
4
|
try {
|
|
6
5
|
const account = env.account;
|
|
@@ -18,7 +17,9 @@ export const simulateInvokeTransaction = async (env, params) => {
|
|
|
18
17
|
const transaction_output = TransactionReponseFormat(simulate_transaction);
|
|
19
18
|
return {
|
|
20
19
|
status: 'success',
|
|
21
|
-
|
|
20
|
+
data: {
|
|
21
|
+
transaction_output: transaction_output,
|
|
22
|
+
},
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
catch (error) {
|
|
@@ -42,13 +43,13 @@ export const simulateDeployAccountTransaction = async (env, params) => {
|
|
|
42
43
|
},
|
|
43
44
|
};
|
|
44
45
|
});
|
|
45
|
-
const simulate_transaction = await account.simulateTransaction(invocations
|
|
46
|
-
nonce: DEFAULT_NONCE,
|
|
47
|
-
});
|
|
46
|
+
const simulate_transaction = await account.simulateTransaction(invocations);
|
|
48
47
|
const transaction_output = TransactionReponseFormat(simulate_transaction);
|
|
49
48
|
return {
|
|
50
49
|
status: 'success',
|
|
51
|
-
|
|
50
|
+
data: {
|
|
51
|
+
transaction_output: transaction_output,
|
|
52
|
+
},
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
catch (error) {
|
|
@@ -76,7 +77,9 @@ export const simulateDeployTransaction = async (env, params) => {
|
|
|
76
77
|
const transaction_output = TransactionReponseFormat(simulate_transaction);
|
|
77
78
|
return {
|
|
78
79
|
status: 'success',
|
|
79
|
-
|
|
80
|
+
data: {
|
|
81
|
+
transaction_output: transaction_output,
|
|
82
|
+
},
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
85
|
catch (error) {
|
|
@@ -89,6 +92,9 @@ export const simulateDeployTransaction = async (env, params) => {
|
|
|
89
92
|
export const simulateDeclareTransaction = async (env, params) => {
|
|
90
93
|
try {
|
|
91
94
|
const account = env.account;
|
|
95
|
+
if (!params.compiledClassHash) {
|
|
96
|
+
throw new Error('compiledClassHash is required for declare transaction');
|
|
97
|
+
}
|
|
92
98
|
const invocations = [
|
|
93
99
|
{
|
|
94
100
|
type: TransactionType.DECLARE,
|
|
@@ -104,7 +110,9 @@ export const simulateDeclareTransaction = async (env, params) => {
|
|
|
104
110
|
const transaction_output = TransactionReponseFormat(simulate_transaction);
|
|
105
111
|
return {
|
|
106
112
|
status: 'success',
|
|
107
|
-
|
|
113
|
+
data: {
|
|
114
|
+
transaction_output: transaction_output,
|
|
115
|
+
},
|
|
108
116
|
};
|
|
109
117
|
}
|
|
110
118
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulateTransaction.js","sourceRoot":"","sources":["../../src/tools/simulateTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,eAAe,EAAE,MAAM,UAAU,CAAC;AAYpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"simulateTransaction.js","sourceRoot":"","sources":["../../src/tools/simulateTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,eAAe,EAAE,MAAM,UAAU,CAAC;AAYpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAUrF,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,EAC5C,GAAiB,EACjB,MAAuC,EAClB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAE5B,MAAM,WAAW,GAAwB,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YACvE,OAAO;gBACL,IAAI,EAAE,eAAe,CAAC,MAAM;gBAC5B,OAAO,EAAE;oBACP,eAAe,EAAE,OAAO,CAAC,eAAe;oBACxC,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,QAAQ,EAAE,OAAO,CAAC,QAAoB;iBACvC;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAE5E,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;QAE1E,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE;gBACJ,kBAAkB,EAAE,kBAAkB;aACvC;SACF,CAAC;IACJ,CAAC;IAAC,OAA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BACP,QAAQ,EAAE,MAAM,CAAC,QAAQ;oBACzB,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;oBACjB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;iBAC5C;aACF;SACF,CAAC;QAEF,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAC5E,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;QAE1E,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE;gBACJ,kBAAkB,EAAE,kBAAkB;aACvC;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;SAChE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kasarlabs/transaction-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,22 +10,28 @@
|
|
|
10
10
|
"build": "tsc && chmod 755 build/index.js",
|
|
11
11
|
"clean": "rm -rf build",
|
|
12
12
|
"clean:all": "rm -rf build node_modules",
|
|
13
|
-
"start": "node build/index.js"
|
|
13
|
+
"start": "node build/index.js",
|
|
14
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
15
|
+
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules jest __tests__/e2e"
|
|
14
16
|
},
|
|
15
17
|
"files": [
|
|
16
18
|
"build"
|
|
17
19
|
],
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@kasarlabs/ask-starknet-core": "0.1.
|
|
21
|
+
"@kasarlabs/ask-starknet-core": "0.1.4",
|
|
20
22
|
"@langchain/core": "^0.3.42",
|
|
21
|
-
"@modelcontextprotocol/sdk": "
|
|
23
|
+
"@modelcontextprotocol/sdk": "1.22.0",
|
|
22
24
|
"dotenv": "^16.4.7",
|
|
23
|
-
"starknet": "
|
|
25
|
+
"starknet": "~8.9.0",
|
|
24
26
|
"winston": "^3.17.0",
|
|
25
27
|
"zod": "^3.24.2"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
30
|
+
"@jest/globals": "^29.7.0",
|
|
31
|
+
"@types/jest": "^29.5.12",
|
|
28
32
|
"@types/node": "^22.13.10",
|
|
33
|
+
"jest": "^29.7.0",
|
|
34
|
+
"ts-jest": "^29.1.2",
|
|
29
35
|
"typescript": "^5.8.2"
|
|
30
36
|
},
|
|
31
37
|
"keywords": [
|
|
@@ -39,5 +45,5 @@
|
|
|
39
45
|
"publishConfig": {
|
|
40
46
|
"access": "public"
|
|
41
47
|
},
|
|
42
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0799e2b085e950e5d102822d71a6b122290e8c38"
|
|
43
49
|
}
|