@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.
Files changed (67) hide show
  1. package/build/tools/getBlockLatestAccepted.d.ts +2 -9
  2. package/build/tools/getBlockLatestAccepted.js +1 -1
  3. package/build/tools/getBlockLatestAccepted.js.map +1 -1
  4. package/build/tools/getBlockNumber.d.ts +2 -9
  5. package/build/tools/getBlockNumber.js +1 -1
  6. package/build/tools/getBlockNumber.js.map +1 -1
  7. package/build/tools/getBlockStateUpdate.d.ts +2 -9
  8. package/build/tools/getBlockStateUpdate.js +1 -1
  9. package/build/tools/getBlockStateUpdate.js.map +1 -1
  10. package/build/tools/getBlockTransactionCount.d.ts +2 -9
  11. package/build/tools/getBlockTransactionCount.js +1 -1
  12. package/build/tools/getBlockTransactionCount.js.map +1 -1
  13. package/build/tools/getBlockTransactionsTraces.d.ts +2 -9
  14. package/build/tools/getBlockTransactionsTraces.js +1 -1
  15. package/build/tools/getBlockTransactionsTraces.js.map +1 -1
  16. package/build/tools/getBlockWithReceipts.d.ts +2 -9
  17. package/build/tools/getBlockWithReceipts.js +1 -1
  18. package/build/tools/getBlockWithReceipts.js.map +1 -1
  19. package/build/tools/getBlockWithTxHashes.d.ts +2 -9
  20. package/build/tools/getBlockWithTxHashes.js +1 -1
  21. package/build/tools/getBlockWithTxHashes.js.map +1 -1
  22. package/build/tools/getBlockWithTxs.d.ts +2 -9
  23. package/build/tools/getBlockWithTxs.js +1 -1
  24. package/build/tools/getBlockWithTxs.js.map +1 -1
  25. package/build/tools/getChainId.d.ts +2 -9
  26. package/build/tools/getChainId.js +1 -1
  27. package/build/tools/getChainId.js.map +1 -1
  28. package/build/tools/getClass.d.ts +2 -9
  29. package/build/tools/getClass.js +1 -1
  30. package/build/tools/getClass.js.map +1 -1
  31. package/build/tools/getClassAt.d.ts +2 -9
  32. package/build/tools/getClassAt.js +1 -1
  33. package/build/tools/getClassAt.js.map +1 -1
  34. package/build/tools/getClassHash.d.ts +2 -9
  35. package/build/tools/getClassHash.js +1 -1
  36. package/build/tools/getClassHash.js.map +1 -1
  37. package/build/tools/getClassHashAt.d.ts +2 -9
  38. package/build/tools/getClassHashAt.js +1 -1
  39. package/build/tools/getClassHashAt.js.map +1 -1
  40. package/build/tools/getNonceForAddress.d.ts +2 -9
  41. package/build/tools/getNonceForAddress.js +1 -1
  42. package/build/tools/getNonceForAddress.js.map +1 -1
  43. package/build/tools/getSpecVersion.d.ts +2 -9
  44. package/build/tools/getSpecVersion.js +1 -1
  45. package/build/tools/getSpecVersion.js.map +1 -1
  46. package/build/tools/getStorageAt.d.ts +2 -9
  47. package/build/tools/getStorageAt.js +1 -1
  48. package/build/tools/getStorageAt.js.map +1 -1
  49. package/build/tools/getSyncingStats.d.ts +2 -9
  50. package/build/tools/getSyncingStats.js +1 -1
  51. package/build/tools/getSyncingStats.js.map +1 -1
  52. package/build/tools/getTransactionByBlockIdAndIndex.d.ts +2 -9
  53. package/build/tools/getTransactionByBlockIdAndIndex.js +1 -1
  54. package/build/tools/getTransactionByBlockIdAndIndex.js.map +1 -1
  55. package/build/tools/getTransactionByHash.d.ts +2 -9
  56. package/build/tools/getTransactionByHash.js +1 -1
  57. package/build/tools/getTransactionByHash.js.map +1 -1
  58. package/build/tools/getTransactionReceipt.d.ts +2 -9
  59. package/build/tools/getTransactionReceipt.js +1 -1
  60. package/build/tools/getTransactionReceipt.js.map +1 -1
  61. package/build/tools/getTransactionStatus.d.ts +2 -9
  62. package/build/tools/getTransactionStatus.js +1 -1
  63. package/build/tools/getTransactionStatus.js.map +1 -1
  64. package/build/tools/getTransactionTrace.d.ts +2 -9
  65. package/build/tools/getTransactionTrace.js +1 -1
  66. package/build/tools/getTransactionTrace.js.map +1 -1
  67. package/package.json +5 -5
@@ -1,10 +1,3 @@
1
1
  import { RpcProvider } from 'starknet';
2
- export declare const getBlockLatestAccepted: (provider: RpcProvider) => Promise<{
3
- status: string;
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":"AAEA,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EAAE,QAAqB,EAAE,EAAE;IACpE,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,sBAAsB,EAAE,CAAC;QAEnE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,kBAAkB,EAAE,kBAAyB;SAC9C,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
+ {"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
- export declare const getBlockNumber: (provider: RpcProvider) => Promise<{
3
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getBlockNumber = async (provider) => {
3
3
  const blockNumber = await provider.getBlockNumber();
4
4
  return {
5
5
  status: 'success',
6
- blockNumber,
6
+ data: { blockNumber },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockNumber.js","sourceRoot":"","sources":["../../src/tools/getBlockNumber.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,QAAqB,EAAE,EAAE;IAC5D,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;QAEpD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,WAAW;SACZ,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
+ {"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>;
@@ -3,7 +3,7 @@ export const getBlockStateUpdate = async (provider, params) => {
3
3
  const blockStateUpdate = await provider.getStateUpdate(params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- blockStateUpdate,
6
+ data: { blockStateUpdate },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockStateUpdate.js","sourceRoot":"","sources":["../../src/tools/getBlockStateUpdate.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAqB,EACrB,MAA2B,EAC3B,EAAE;IACF,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,gBAAgB;SACjB,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
+ {"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
- export declare const getBlockTransactionCount: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<{
5
- status: string;
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":"AAIA,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,QAAqB,EACrB,MAAqC,EACrC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,qBAAqB,GAAG,MAAM,QAAQ,CAAC,wBAAwB,CACnE,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,qBAAqB;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
+ {"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":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,QAAqB,EACrB,MAA2B,EAC3B,EAAE;IACF,IAAI,CAAC;QACH,MAAM,uBAAuB,GAAG,MAAM,QAAQ,CAAC,0BAA0B,CACvE,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,uBAAuB,EAAE,uBAA8B;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
+ {"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
- export declare const getBlockWithReceipts: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<{
5
- status: string;
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":"AAIA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAqC,EACrC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,iBAAiB,EAAE,iBAAwB;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
+ {"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
- export declare const getBlockWithTxHashes: (provider: RpcProvider, params: z.infer<typeof blockIdSchema>) => Promise<{
5
- status: string;
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":"AAIA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAqC,EACrC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,OAAO,CACf,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,iBAAiB,EAAE,iBAAwB;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
+ {"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>;
@@ -3,7 +3,7 @@ export const getBlockWithTxs = async (provider, params) => {
3
3
  const blockWithTxs = await provider.getBlockWithTxs(params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- blockWithTxs: blockWithTxs,
6
+ data: { blockWithTxs: blockWithTxs },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockWithTxs.js","sourceRoot":"","sources":["../../src/tools/getBlockWithTxs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,QAAqB,EACrB,MAA2B,EAC3B,EAAE;IACF,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEpE,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,YAAmB;SAClC,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
+ {"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
- export declare const getChainId: (provider: RpcProvider) => Promise<{
3
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getChainId = async (provider) => {
3
3
  const chainId = await provider.getChainId();
4
4
  return {
5
5
  status: 'success',
6
- chainId,
6
+ data: { chainId },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getChainId.js","sourceRoot":"","sources":["../../src/tools/getChainId.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,QAAqB,EAAE,EAAE;IACxD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC;QAE5C,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,OAAO;SACR,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
+ {"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
- export declare const getClass: (provider: RpcProvider, params: z.infer<typeof blockIdAndContractAddressSchema>) => Promise<{
5
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getClass = async (provider, params) => {
3
3
  const contractClass = await provider.getClass(params.classHash, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- contractClass,
6
+ data: { contractClass },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getClass.js","sourceRoot":"","sources":["../../src/tools/getClass.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAC3B,QAAqB,EACrB,MAAuD,EACvD,EAAE;IACF,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,aAAa;SACd,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
+ {"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
- export declare const getClassAt: (provider: RpcProvider, params: z.infer<typeof getClassAtSchema>) => Promise<{
5
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getClassAt = async (provider, params) => {
3
3
  const contractClass = await provider.getClassAt(params.contractAddress, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- contractClass,
6
+ data: { contractClass },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getClassAt.js","sourceRoot":"","sources":["../../src/tools/getClassAt.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAC7B,QAAqB,EACrB,MAAwC,EACxC,EAAE;IACF,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,aAAa;SACd,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
+ {"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>;
@@ -3,7 +3,7 @@ export const getClassHash = async (provider, params) => {
3
3
  const classHash = await provider.getClassHashAt(params.contractAddress, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- classHash,
6
+ data: { classHash },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getClassHash.js","sourceRoot":"","sources":["../../src/tools/getClassHash.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,QAAqB,EACrB,MAAqD,EACrD,EAAE;IACF,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,SAAS;SACV,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
+ {"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
- export declare const getClassHashAt: (provider: RpcProvider, params: z.infer<typeof getClassHashAtSchema>) => Promise<{
5
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getClassHashAt = async (provider, params) => {
3
3
  const classHash = await provider.getClassHashAt(params.contractAddress, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- classHash,
6
+ data: { classHash },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getClassHashAt.js","sourceRoot":"","sources":["../../src/tools/getClassHashAt.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,QAAqB,EACrB,MAA4C,EAC5C,EAAE;IACF,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,SAAS;SACV,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
+ {"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>;
@@ -3,7 +3,7 @@ export const getNonceForAddress = async (provider, params) => {
3
3
  const nonce = await provider.getNonceForAddress(params.contractAddress, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- nonce,
6
+ data: { nonce },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getNonceForAddress.js","sourceRoot":"","sources":["../../src/tools/getNonceForAddress.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,QAAqB,EACrB,MAAqD,EACrD,EAAE;IACF,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,KAAK;SACN,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
+ {"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
- export declare const getSpecVersion: (provider: RpcProvider) => Promise<{
3
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getSpecVersion = async (provider) => {
3
3
  const specVersion = await provider.getSpecVersion();
4
4
  return {
5
5
  status: 'success',
6
- specVersion,
6
+ data: { specVersion },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getSpecVersion.js","sourceRoot":"","sources":["../../src/tools/getSpecVersion.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,QAAqB,EAAE,EAAE;IAC5D,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;QAEpD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,WAAW;SACZ,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
+ {"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
- export declare const getStorageAt: (provider: RpcProvider, params: z.infer<typeof getStorageAtSchema>) => Promise<{
5
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getStorageAt = async (provider, params) => {
3
3
  const storageValue = await provider.getStorageAt(params.contractAddress, params.key, params.blockId);
4
4
  return {
5
5
  status: 'success',
6
- storageValue,
6
+ data: { storageValue },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getStorageAt.js","sourceRoot":"","sources":["../../src/tools/getStorageAt.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,QAAqB,EACrB,MAA0C,EAC1C,EAAE;IACF,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,YAAY;SACb,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
+ {"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
- export declare const getSyncingStats: (provider: RpcProvider) => Promise<{
3
- status: string;
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>;
@@ -3,7 +3,7 @@ export const getSyncingStats = async (provider) => {
3
3
  const syncingStats = await provider.getSyncingStats();
4
4
  return {
5
5
  status: 'success',
6
- syncingStats: syncingStats,
6
+ data: { syncingStats: syncingStats },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getSyncingStats.js","sourceRoot":"","sources":["../../src/tools/getSyncingStats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,QAAqB,EAAE,EAAE;IAC7D,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,eAAe,EAAE,CAAC;QAEtD,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,YAAmB;SAClC,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
+ {"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":"AAEA,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAClD,QAAqB,EACrB,MAA0C,EAC1C,EAAE;IACF,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,WAAW,EAAE,WAAkB;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
+ {"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":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAAmC,EACnC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CACrD,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,WAAkB;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
+ {"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":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,QAAqB,EACrB,MAAmC,EACnC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,qBAAqB,CAC7D,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,kBAAkB;SACnB,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
+ {"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
- export declare const getTransactionStatus: (provider: RpcProvider, params: z.infer<typeof transactionHashSchema>) => Promise<{
5
- status: string;
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":"AAIA,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAqB,EACrB,MAA6C,EAC7C,EAAE;IACF,IAAI,CAAC;QACH,MAAM,iBAAiB,GAAG,MAAM,QAAQ,CAAC,oBAAoB,CAC3D,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,iBAAiB,EAAE,iBAAwB;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
+ {"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>;
@@ -3,7 +3,7 @@ export const getTransactionTrace = async (provider, params) => {
3
3
  const transactionTrace = await provider.getTransactionTrace(params.transactionHash);
4
4
  return {
5
5
  status: 'success',
6
- transactionTrace,
6
+ data: { transactionTrace },
7
7
  };
8
8
  }
9
9
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"getTransactionTrace.js","sourceRoot":"","sources":["../../src/tools/getTransactionTrace.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,QAAqB,EACrB,MAAmC,EACnC,EAAE;IACF,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CACzD,MAAM,CAAC,eAAe,CACvB,CAAC;QAEF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,gBAAgB;SACjB,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
+ {"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.4",
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.2",
19
+ "@kasarlabs/ask-starknet-core": "0.1.3",
20
20
  "@langchain/core": "^0.3.42",
21
- "@modelcontextprotocol/sdk": "^1.11.2",
21
+ "@modelcontextprotocol/sdk": "1.22.0",
22
22
  "dotenv": "^16.4.7",
23
- "starknet": "^7.6.4",
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": "967038b13c313def17911c88d85601cb208b8cd6"
42
+ "gitHead": "bfb4d4b055bbfa15b8e745d414adf52ac5e158fb"
43
43
  }