@kasarlabs/starknet-rpc-mcp 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/tools/getBlockLatestAccepted.d.ts +2 -9
- package/build/tools/getBlockLatestAccepted.js +1 -1
- package/build/tools/getBlockLatestAccepted.js.map +1 -1
- package/build/tools/getBlockNumber.d.ts +2 -9
- package/build/tools/getBlockNumber.js +1 -1
- package/build/tools/getBlockNumber.js.map +1 -1
- package/build/tools/getBlockStateUpdate.d.ts +2 -9
- package/build/tools/getBlockStateUpdate.js +1 -1
- package/build/tools/getBlockStateUpdate.js.map +1 -1
- package/build/tools/getBlockTransactionCount.d.ts +2 -9
- package/build/tools/getBlockTransactionCount.js +1 -1
- package/build/tools/getBlockTransactionCount.js.map +1 -1
- package/build/tools/getBlockTransactionsTraces.d.ts +2 -9
- package/build/tools/getBlockTransactionsTraces.js +1 -1
- package/build/tools/getBlockTransactionsTraces.js.map +1 -1
- package/build/tools/getBlockWithReceipts.d.ts +2 -9
- package/build/tools/getBlockWithReceipts.js +1 -1
- package/build/tools/getBlockWithReceipts.js.map +1 -1
- package/build/tools/getBlockWithTxHashes.d.ts +2 -9
- package/build/tools/getBlockWithTxHashes.js +1 -1
- package/build/tools/getBlockWithTxHashes.js.map +1 -1
- package/build/tools/getBlockWithTxs.d.ts +2 -9
- package/build/tools/getBlockWithTxs.js +1 -1
- package/build/tools/getBlockWithTxs.js.map +1 -1
- package/build/tools/getChainId.d.ts +2 -9
- package/build/tools/getChainId.js +1 -1
- package/build/tools/getChainId.js.map +1 -1
- package/build/tools/getClass.d.ts +2 -9
- package/build/tools/getClass.js +1 -1
- package/build/tools/getClass.js.map +1 -1
- package/build/tools/getClassAt.d.ts +2 -9
- package/build/tools/getClassAt.js +1 -1
- package/build/tools/getClassAt.js.map +1 -1
- package/build/tools/getClassHash.d.ts +2 -9
- package/build/tools/getClassHash.js +1 -1
- package/build/tools/getClassHash.js.map +1 -1
- package/build/tools/getClassHashAt.d.ts +2 -9
- package/build/tools/getClassHashAt.js +1 -1
- package/build/tools/getClassHashAt.js.map +1 -1
- package/build/tools/getNonceForAddress.d.ts +2 -9
- package/build/tools/getNonceForAddress.js +1 -1
- package/build/tools/getNonceForAddress.js.map +1 -1
- package/build/tools/getSpecVersion.d.ts +2 -9
- package/build/tools/getSpecVersion.js +1 -1
- package/build/tools/getSpecVersion.js.map +1 -1
- package/build/tools/getStorageAt.d.ts +2 -9
- package/build/tools/getStorageAt.js +1 -1
- package/build/tools/getStorageAt.js.map +1 -1
- package/build/tools/getSyncingStats.d.ts +2 -9
- package/build/tools/getSyncingStats.js +1 -1
- package/build/tools/getSyncingStats.js.map +1 -1
- package/build/tools/getTransactionByBlockIdAndIndex.d.ts +2 -9
- package/build/tools/getTransactionByBlockIdAndIndex.js +1 -1
- package/build/tools/getTransactionByBlockIdAndIndex.js.map +1 -1
- package/build/tools/getTransactionByHash.d.ts +2 -9
- package/build/tools/getTransactionByHash.js +1 -1
- package/build/tools/getTransactionByHash.js.map +1 -1
- package/build/tools/getTransactionReceipt.d.ts +2 -9
- package/build/tools/getTransactionReceipt.js +1 -1
- package/build/tools/getTransactionReceipt.js.map +1 -1
- package/build/tools/getTransactionStatus.d.ts +2 -9
- package/build/tools/getTransactionStatus.js +1 -1
- package/build/tools/getTransactionStatus.js.map +1 -1
- package/build/tools/getTransactionTrace.d.ts +2 -9
- package/build/tools/getTransactionTrace.js +1 -1
- package/build/tools/getTransactionTrace.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
blockHashAndNumber: any;
|
|
5
|
-
error?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
status: string;
|
|
8
|
-
error: string;
|
|
9
|
-
blockHashAndNumber?: undefined;
|
|
10
|
-
}>;
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const getBlockLatestAccepted: (provider: RpcProvider) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getBlockLatestAccepted = async (provider) => {
|
|
|
3
3
|
const blockHashAndNumber = await provider.getBlockLatestAccepted();
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
blockHashAndNumber: blockHashAndNumber,
|
|
6
|
+
data: { blockHashAndNumber: blockHashAndNumber },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockLatestAccepted.js","sourceRoot":"","sources":["../../src/tools/getBlockLatestAccepted.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockLatestAccepted.js","sourceRoot":"","sources":["../../src/tools/getBlockLatestAccepted.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,QAAqB,EACA,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,sBAAsB,EAAE,CAAC;QAEnE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,kBAAkB,EAAE,kBAAyB,EAAE;SACxD,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"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
blockNumber: number;
|
|
5
|
-
error?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
status: string;
|
|
8
|
-
error: string;
|
|
9
|
-
blockNumber?: undefined;
|
|
10
|
-
}>;
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const getBlockNumber: (provider: RpcProvider) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockNumber.js","sourceRoot":"","sources":["../../src/tools/getBlockNumber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockNumber.js","sourceRoot":"","sources":["../../src/tools/getBlockNumber.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,QAAqB,EACA,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;QAEpD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE;SACtB,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getBlockStateUpdate: (provider: RpcProvider, params: {
|
|
3
4
|
blockId: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
blockStateUpdate: import("starknet").StateUpdateResponse;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockStateUpdate?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockStateUpdate.js","sourceRoot":"","sources":["../../src/tools/getBlockStateUpdate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockStateUpdate.js","sourceRoot":"","sources":["../../src/tools/getBlockStateUpdate.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAqB,EACrB,MAA2B,EACN,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,gBAAgB,EAAE;SAC3B,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { blockIdSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blockTransactionCount: number;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockTransactionCount?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getBlockTransactionCount: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getBlockTransactionCount = async (provider, params) => {
|
|
|
3
3
|
const blockTransactionCount = await provider.getBlockTransactionCount(params.blockId);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
blockTransactionCount,
|
|
6
|
+
data: { blockTransactionCount },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockTransactionCount.js","sourceRoot":"","sources":["../../src/tools/getBlockTransactionCount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockTransactionCount.js","sourceRoot":"","sources":["../../src/tools/getBlockTransactionCount.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,QAAqB,EACrB,MAAqC,EAChB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,qBAAqB,GAAG,MAAM,QAAQ,CAAC,wBAAwB,CACnE,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,qBAAqB,EAAE;SAChC,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getBlockTransactionsTraces: (provider: RpcProvider, params: {
|
|
3
4
|
blockId: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
blockTransactionsTraces: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockTransactionsTraces?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getBlockTransactionsTraces = async (provider, params) => {
|
|
|
3
3
|
const blockTransactionsTraces = await provider.getBlockTransactionsTraces(params.blockId);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
blockTransactionsTraces: blockTransactionsTraces,
|
|
6
|
+
data: { blockTransactionsTraces: blockTransactionsTraces },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockTransactionsTraces.js","sourceRoot":"","sources":["../../src/tools/getBlockTransactionsTraces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockTransactionsTraces.js","sourceRoot":"","sources":["../../src/tools/getBlockTransactionsTraces.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,QAAqB,EACrB,MAA2B,EACN,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,uBAAuB,GAAG,MAAM,QAAQ,CAAC,0BAA0B,CACvE,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,uBAAuB,EAAE,uBAA8B,EAAE;SAClE,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { blockIdSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blockWithReceipts: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockWithReceipts?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getBlockWithReceipts: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getBlockWithReceipts = async (provider, params) => {
|
|
|
3
3
|
const blockWithReceipts = await provider.getBlockWithReceipts(params.blockId);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
blockWithReceipts: blockWithReceipts,
|
|
6
|
+
data: { blockWithReceipts: blockWithReceipts },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockWithReceipts.js","sourceRoot":"","sources":["../../src/tools/getBlockWithReceipts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockWithReceipts.js","sourceRoot":"","sources":["../../src/tools/getBlockWithReceipts.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAqC,EAChB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,iBAAiB,EAAE,iBAAwB,EAAE;SACtD,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { blockIdSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blockWithTxHashes: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockWithTxHashes?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getBlockWithTxHashes: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getBlockWithTxHashes = async (provider, params) => {
|
|
|
3
3
|
const blockWithTxHashes = await provider.getBlockWithTxHashes(params.blockId);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
blockWithTxHashes: blockWithTxHashes,
|
|
6
|
+
data: { blockWithTxHashes: blockWithTxHashes },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockWithTxHashes.js","sourceRoot":"","sources":["../../src/tools/getBlockWithTxHashes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockWithTxHashes.js","sourceRoot":"","sources":["../../src/tools/getBlockWithTxHashes.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAqC,EAChB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,iBAAiB,EAAE,iBAAwB,EAAE;SACtD,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getBlockWithTxs: (provider: RpcProvider, params: {
|
|
3
4
|
blockId: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
blockWithTxs: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
blockWithTxs?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBlockWithTxs.js","sourceRoot":"","sources":["../../src/tools/getBlockWithTxs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBlockWithTxs.js","sourceRoot":"","sources":["../../src/tools/getBlockWithTxs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,QAAqB,EACrB,MAA2B,EACN,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEpE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,YAAY,EAAE,YAAmB,EAAE;SAC5C,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"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
chainId: "0x534e5f4d41494e" | "0x534e5f5345504f4c4941";
|
|
5
|
-
error?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
status: string;
|
|
8
|
-
error: string;
|
|
9
|
-
chainId?: undefined;
|
|
10
|
-
}>;
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const getChainId: (provider: RpcProvider) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainId.js","sourceRoot":"","sources":["../../src/tools/getChainId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getChainId.js","sourceRoot":"","sources":["../../src/tools/getChainId.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAC7B,QAAqB,EACA,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC;QAE5C,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,OAAO,EAAE;SAClB,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { blockIdAndContractAddressSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
contractClass: import("starknet").LegacyContractClass | Omit<import("starknet").CompiledSierra, "sierra_program_debug_info">;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
contractClass?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getClass: (provider: RpcProvider, params: z.infer<typeof blockIdAndContractAddressSchema>) => Promise<toolResult>;
|
package/build/tools/getClass.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClass.js","sourceRoot":"","sources":["../../src/tools/getClass.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getClass.js","sourceRoot":"","sources":["../../src/tools/getClass.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAC3B,QAAqB,EACrB,MAAuD,EAClC,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAC3C,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,aAAa,EAAE;SACxB,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { getClassAtSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
contractClass: import("starknet").LegacyContractClass | Omit<import("starknet").CompiledSierra, "sierra_program_debug_info">;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
contractClass?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getClassAt: (provider: RpcProvider, params: z.infer<typeof getClassAtSchema>) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClassAt.js","sourceRoot":"","sources":["../../src/tools/getClassAt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getClassAt.js","sourceRoot":"","sources":["../../src/tools/getClassAt.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAC7B,QAAqB,EACrB,MAAwC,EACnB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,UAAU,CAC7C,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,aAAa,EAAE;SACxB,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"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getClassHash: (provider: RpcProvider, params: {
|
|
3
4
|
contractAddress: string;
|
|
4
5
|
blockId?: string;
|
|
5
|
-
}) => Promise<
|
|
6
|
-
status: string;
|
|
7
|
-
classHash: string;
|
|
8
|
-
error?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
status: string;
|
|
11
|
-
error: string;
|
|
12
|
-
classHash?: undefined;
|
|
13
|
-
}>;
|
|
6
|
+
}) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClassHash.js","sourceRoot":"","sources":["../../src/tools/getClassHash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getClassHash.js","sourceRoot":"","sources":["../../src/tools/getClassHash.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,QAAqB,EACrB,MAAqD,EAChC,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,cAAc,CAC7C,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,SAAS,EAAE;SACpB,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { getClassHashAtSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
classHash: string;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
classHash?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getClassHashAt: (provider: RpcProvider, params: z.infer<typeof getClassHashAtSchema>) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClassHashAt.js","sourceRoot":"","sources":["../../src/tools/getClassHashAt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getClassHashAt.js","sourceRoot":"","sources":["../../src/tools/getClassHashAt.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,QAAqB,EACrB,MAA4C,EACvB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,cAAc,CAC7C,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,SAAS,EAAE;SACpB,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"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getNonceForAddress: (provider: RpcProvider, params: {
|
|
3
4
|
contractAddress: string;
|
|
4
5
|
blockId?: string;
|
|
5
|
-
}) => Promise<
|
|
6
|
-
status: string;
|
|
7
|
-
nonce: string;
|
|
8
|
-
error?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
status: string;
|
|
11
|
-
error: string;
|
|
12
|
-
nonce?: undefined;
|
|
13
|
-
}>;
|
|
6
|
+
}) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNonceForAddress.js","sourceRoot":"","sources":["../../src/tools/getNonceForAddress.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getNonceForAddress.js","sourceRoot":"","sources":["../../src/tools/getNonceForAddress.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,QAAqB,EACrB,MAAqD,EAChC,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,kBAAkB,CAC7C,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,KAAK,EAAE;SAChB,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"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
specVersion: string;
|
|
5
|
-
error?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
status: string;
|
|
8
|
-
error: string;
|
|
9
|
-
specVersion?: undefined;
|
|
10
|
-
}>;
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const getSpecVersion: (provider: RpcProvider) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSpecVersion.js","sourceRoot":"","sources":["../../src/tools/getSpecVersion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSpecVersion.js","sourceRoot":"","sources":["../../src/tools/getSpecVersion.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,QAAqB,EACA,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;QAEpD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE;SACtB,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { getStorageAtSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
storageValue: string;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
storageValue?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getStorageAt: (provider: RpcProvider, params: z.infer<typeof getStorageAtSchema>) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStorageAt.js","sourceRoot":"","sources":["../../src/tools/getStorageAt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getStorageAt.js","sourceRoot":"","sources":["../../src/tools/getStorageAt.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,QAAqB,EACrB,MAA0C,EACrB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,YAAY,CAC9C,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,GAAG,EACV,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,YAAY,EAAE;SACvB,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"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
syncingStats: any;
|
|
5
|
-
error?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
status: string;
|
|
8
|
-
error: string;
|
|
9
|
-
syncingStats?: undefined;
|
|
10
|
-
}>;
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
3
|
+
export declare const getSyncingStats: (provider: RpcProvider) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSyncingStats.js","sourceRoot":"","sources":["../../src/tools/getSyncingStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSyncingStats.js","sourceRoot":"","sources":["../../src/tools/getSyncingStats.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,QAAqB,EACA,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,eAAe,EAAE,CAAC;QAEtD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,YAAY,EAAE,YAAmB,EAAE;SAC5C,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"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getTransactionByBlockIdAndIndex: (provider: RpcProvider, params: {
|
|
3
4
|
blockId: string;
|
|
4
5
|
index: number;
|
|
5
|
-
}) => Promise<
|
|
6
|
-
status: string;
|
|
7
|
-
transaction: any;
|
|
8
|
-
error?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
status: string;
|
|
11
|
-
error: string;
|
|
12
|
-
transaction?: undefined;
|
|
13
|
-
}>;
|
|
6
|
+
}) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getTransactionByBlockIdAndIndex = async (provider, params) => {
|
|
|
3
3
|
const transaction = await provider.getTransactionByBlockIdAndIndex(params.blockId, params.index);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
transaction: transaction,
|
|
6
|
+
data: { transaction: transaction },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionByBlockIdAndIndex.js","sourceRoot":"","sources":["../../src/tools/getTransactionByBlockIdAndIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionByBlockIdAndIndex.js","sourceRoot":"","sources":["../../src/tools/getTransactionByBlockIdAndIndex.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAClD,QAAqB,EACrB,MAA0C,EACrB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,+BAA+B,CAChE,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,KAAK,CACb,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,WAAkB,EAAE;SAC1C,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getTransactionByHash: (provider: RpcProvider, params: {
|
|
3
4
|
transactionHash: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
transaction: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
transaction?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getTransactionByHash = async (provider, params) => {
|
|
|
3
3
|
const transaction = await provider.getTransactionByHash(params.transactionHash);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
transaction: transaction,
|
|
6
|
+
data: { transaction: transaction },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionByHash.js","sourceRoot":"","sources":["../../src/tools/getTransactionByHash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionByHash.js","sourceRoot":"","sources":["../../src/tools/getTransactionByHash.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAmC,EACd,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CACrD,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,WAAW,EAAE,WAAkB,EAAE;SAC1C,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getTransactionReceipt: (provider: RpcProvider, params: {
|
|
3
4
|
transactionHash: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
transactionReceipt: import("starknet").GetTransactionReceiptResponse<keyof import("starknet").TransactionStatusReceiptSets>;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
transactionReceipt?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getTransactionReceipt = async (provider, params) => {
|
|
|
3
3
|
const transactionReceipt = await provider.getTransactionReceipt(params.transactionHash);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
transactionReceipt,
|
|
6
|
+
data: { transactionReceipt },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionReceipt.js","sourceRoot":"","sources":["../../src/tools/getTransactionReceipt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionReceipt.js","sourceRoot":"","sources":["../../src/tools/getTransactionReceipt.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,QAAqB,EACrB,MAAmC,EACd,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,qBAAqB,CAC7D,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,kBAAkB,EAAE;SAC7B,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
2
|
import { transactionHashSchema } from '../schemas/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
transactionStatus: any;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
transactionStatus?: undefined;
|
|
12
|
-
}>;
|
|
4
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
5
|
+
export declare const getTransactionStatus: (provider: RpcProvider, params: z.infer<typeof transactionHashSchema>) => Promise<toolResult>;
|
|
@@ -3,7 +3,7 @@ export const getTransactionStatus = async (provider, params) => {
|
|
|
3
3
|
const transactionStatus = await provider.getTransactionStatus(params.transactionHash);
|
|
4
4
|
return {
|
|
5
5
|
status: 'success',
|
|
6
|
-
transactionStatus: transactionStatus,
|
|
6
|
+
data: { transactionStatus: transactionStatus },
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionStatus.js","sourceRoot":"","sources":["../../src/tools/getTransactionStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionStatus.js","sourceRoot":"","sources":["../../src/tools/getTransactionStatus.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAA6C,EACxB,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,iBAAiB,EAAE,iBAAwB,EAAE;SACtD,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"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { RpcProvider } from 'starknet';
|
|
2
|
+
import { toolResult } from '@kasarlabs/ask-starknet-core';
|
|
2
3
|
export declare const getTransactionTrace: (provider: RpcProvider, params: {
|
|
3
4
|
transactionHash: string;
|
|
4
|
-
}) => Promise<
|
|
5
|
-
status: string;
|
|
6
|
-
transactionTrace: import("starknet").TRANSACTION_TRACE;
|
|
7
|
-
error?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
status: string;
|
|
10
|
-
error: string;
|
|
11
|
-
transactionTrace?: undefined;
|
|
12
|
-
}>;
|
|
5
|
+
}) => Promise<toolResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionTrace.js","sourceRoot":"","sources":["../../src/tools/getTransactionTrace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionTrace.js","sourceRoot":"","sources":["../../src/tools/getTransactionTrace.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAqB,EACrB,MAAmC,EACd,EAAE;IACvB,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CACzD,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,EAAE,gBAAgB,EAAE;SAC3B,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/starknet-rpc-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"build"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@kasarlabs/ask-starknet-core": "0.1.
|
|
19
|
+
"@kasarlabs/ask-starknet-core": "0.1.3",
|
|
20
20
|
"@langchain/core": "^0.3.42",
|
|
21
|
-
"@modelcontextprotocol/sdk": "
|
|
21
|
+
"@modelcontextprotocol/sdk": "1.22.0",
|
|
22
22
|
"dotenv": "^16.4.7",
|
|
23
|
-
"starknet": "
|
|
23
|
+
"starknet": "8.6.0",
|
|
24
24
|
"winston": "^3.17.0",
|
|
25
25
|
"zod": "^3.24.2"
|
|
26
26
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "bfb4d4b055bbfa15b8e745d414adf52ac5e158fb"
|
|
43
43
|
}
|