mobilestacks 0.1.24 → 0.1.26

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 (82) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +19 -16
  3. package/dist/cli/index.js +8 -8
  4. package/dist/cli/init.js +2 -2
  5. package/dist/config/{config-loading.d.ts → ConfigLoading.d.ts} +1 -1
  6. package/dist/config/ConfigLoading.d.ts.map +1 -0
  7. package/dist/core/{runtime-environment.d.ts → RuntimeEnvironment.d.ts} +1 -1
  8. package/dist/core/RuntimeEnvironment.d.ts.map +1 -0
  9. package/dist/core/{tasks-definitions.d.ts → TasksDefinitions.d.ts} +2 -2
  10. package/dist/core/TasksDefinitions.d.ts.map +1 -0
  11. package/dist/core/dsl.d.ts +2 -2
  12. package/dist/core/dsl.d.ts.map +1 -1
  13. package/dist/core/dsl.js +4 -4
  14. package/dist/core/extender.d.ts +1 -1
  15. package/dist/core/extender.d.ts.map +1 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3 -3
  19. package/dist/tasks/CallContractFunction.d.ts +2 -0
  20. package/dist/tasks/CallContractFunction.d.ts.map +1 -0
  21. package/dist/tasks/{call-contract-function.js → CallContractFunction.js} +1 -1
  22. package/dist/tasks/DeployContract.d.ts +2 -0
  23. package/dist/tasks/DeployContract.d.ts.map +1 -0
  24. package/dist/tasks/{deploy-contract.js → DeployContract.js} +1 -1
  25. package/dist/tasks/ExampleTask.d.ts +2 -0
  26. package/dist/tasks/ExampleTask.d.ts.map +1 -0
  27. package/dist/tasks/ExecuteContract.d.ts +2 -0
  28. package/dist/tasks/ExecuteContract.d.ts.map +1 -0
  29. package/dist/tasks/{execute-contract.js → ExecuteContract.js} +1 -1
  30. package/dist/tasks/FaucetRequest.d.ts +2 -0
  31. package/dist/tasks/FaucetRequest.d.ts.map +1 -0
  32. package/dist/tasks/{faucet-request.js → FaucetRequest.js} +1 -1
  33. package/dist/tasks/GetBalance.d.ts +2 -0
  34. package/dist/tasks/GetBalance.d.ts.map +1 -0
  35. package/dist/tasks/{get-balance.js → GetBalance.js} +1 -1
  36. package/dist/tasks/GetContractInfo.d.ts +2 -0
  37. package/dist/tasks/GetContractInfo.d.ts.map +1 -0
  38. package/dist/tasks/{get-contract-info.js → GetContractInfo.js} +1 -1
  39. package/dist/tasks/GetTxHistory.d.ts +2 -0
  40. package/dist/tasks/GetTxHistory.d.ts.map +1 -0
  41. package/dist/tasks/{get-tx-history.js → GetTxHistory.js} +1 -1
  42. package/dist/tasks/ListAccounts.d.ts +2 -0
  43. package/dist/tasks/ListAccounts.d.ts.map +1 -0
  44. package/dist/tasks/{list-accounts.js → ListAccounts.js} +1 -1
  45. package/dist/tasks/SendStx.d.ts +2 -0
  46. package/dist/tasks/SendStx.d.ts.map +1 -0
  47. package/dist/tasks/{send-stx.js → SendStx.js} +1 -1
  48. package/dist/tasks/VerifyContract.d.ts +2 -0
  49. package/dist/tasks/VerifyContract.d.ts.map +1 -0
  50. package/dist/tasks/{verify-contract.js → VerifyContract.js} +1 -1
  51. package/dist/tasks/utils.d.ts +1 -1
  52. package/dist/tasks/utils.d.ts.map +1 -1
  53. package/package.json +71 -71
  54. package/dist/config/config-loading.d.ts.map +0 -1
  55. package/dist/core/runtime-environment.d.ts.map +0 -1
  56. package/dist/core/tasks-definitions.d.ts.map +0 -1
  57. package/dist/tasks/call-contract-function.d.ts +0 -2
  58. package/dist/tasks/call-contract-function.d.ts.map +0 -1
  59. package/dist/tasks/deploy-contract.d.ts +0 -2
  60. package/dist/tasks/deploy-contract.d.ts.map +0 -1
  61. package/dist/tasks/example-task.d.ts +0 -2
  62. package/dist/tasks/example-task.d.ts.map +0 -1
  63. package/dist/tasks/execute-contract.d.ts +0 -2
  64. package/dist/tasks/execute-contract.d.ts.map +0 -1
  65. package/dist/tasks/faucet-request.d.ts +0 -2
  66. package/dist/tasks/faucet-request.d.ts.map +0 -1
  67. package/dist/tasks/get-balance.d.ts +0 -2
  68. package/dist/tasks/get-balance.d.ts.map +0 -1
  69. package/dist/tasks/get-contract-info.d.ts +0 -2
  70. package/dist/tasks/get-contract-info.d.ts.map +0 -1
  71. package/dist/tasks/get-tx-history.d.ts +0 -2
  72. package/dist/tasks/get-tx-history.d.ts.map +0 -1
  73. package/dist/tasks/list-accounts.d.ts +0 -2
  74. package/dist/tasks/list-accounts.d.ts.map +0 -1
  75. package/dist/tasks/send-stx.d.ts +0 -2
  76. package/dist/tasks/send-stx.d.ts.map +0 -1
  77. package/dist/tasks/verify-contract.d.ts +0 -2
  78. package/dist/tasks/verify-contract.d.ts.map +0 -1
  79. /package/dist/config/{config-loading.js → ConfigLoading.js} +0 -0
  80. /package/dist/core/{runtime-environment.js → RuntimeEnvironment.js} +0 -0
  81. /package/dist/core/{tasks-definitions.js → TasksDefinitions.js} +0 -0
  82. /package/dist/tasks/{example-task.js → ExampleTask.js} +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 mobilestacks contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mobilestacks contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # mobilestacks
2
2
 
3
+ [![npm version](https://badge.fury.io/js/mobilestacks.svg)](https://badge.fury.io/js/mobilestacks)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
3
6
  A Hardhat-style development framework for Stacks. Write, test, and deploy Clarity smart contracts with a task-based CLI, local Simnet testing, and a pluggable runtime.
4
7
 
5
8
  ## Install
@@ -41,10 +44,10 @@ Secrets can live in `.env`; they override config values automatically.
41
44
 
42
45
  ```bash
43
46
  npx mobilestacks # list all tasks
44
- npx mobilestacks deploy-contract # deploy a contract
45
- npx mobilestacks get-balance # check STX balance
46
- npx mobilestacks send-stx # send STX
47
- npx mobilestacks faucet-request # get testnet tokens
47
+ npx mobilestacks deploycontract # deploy a contract
48
+ npx mobilestacks getbalance # check STX balance
49
+ npx mobilestacks sendstx # send STX
50
+ npx mobilestacks faucetrequest # get testnet tokens
48
51
  ```
49
52
 
50
53
  Missing required params are prompted interactively. Run any task with `--help` for options.
@@ -53,15 +56,15 @@ Missing required params are prompted interactively. Run any task with `--help` f
53
56
 
54
57
  | Task | What it does |
55
58
  | ---- | ------------ |
56
- | `deploy-contract` | Deploy a `.clar` file to mainnet/testnet |
57
- | `send-stx` | Transfer STX to an address |
58
- | `get-balance` | Check STX balance for any address |
59
- | `faucet-request` | Request testnet STX from the faucet |
60
- | `list-accounts` | List derived wallet accounts |
61
- | `get-tx-history` | Fetch recent transactions |
62
- | `call-contract-function` | Call a read-only contract function |
63
- | `get-contract-info` | Fetch deployed contract metadata |
64
- | `verify-contract` | Diff on-chain source against a local file |
59
+ | `deploycontract` | Deploy a `.clar` file to mainnet/testnet |
60
+ | `sendstx` | Transfer STX to an address |
61
+ | `getbalance` | Check STX balance for any address |
62
+ | `faucetrequest` | Request testnet STX from the faucet |
63
+ | `listaccounts` | List derived wallet accounts |
64
+ | `gettxhistory` | Fetch recent transactions |
65
+ | `callcontractfunction` | Call a read-only contract function |
66
+ | `getcontractinfo` | Fetch deployed contract metadata |
67
+ | `verifycontract` | Diff on-chain source against a local file |
65
68
 
66
69
  ## Writing Tasks
67
70
 
@@ -83,14 +86,14 @@ Subtasks and workflows are also supported:
83
86
  ```ts
84
87
  import { subtask, runWorkflow } from 'mobilestacks';
85
88
 
86
- subtask('deploy:validate', 'Pre-deploy check', 'deploy-contract').setAction((args, env) => {
89
+ subtask('deploy:validate', 'Pre-deploy check', 'deploycontract').setAction((args, env) => {
87
90
  // validate deployment inputs
88
91
  });
89
92
 
90
93
  await runWorkflow(
91
94
  [
92
- { taskName: 'deploy-contract', args: { contractName: 'sample-contract' } },
93
- { taskName: 'verify-contract', args: { contractName: 'sample-contract' } },
95
+ { taskName: 'deploycontract', args: { contractName: 'sample-contract' } },
96
+ { taskName: 'verifycontract', args: { contractName: 'sample-contract' } },
94
97
  ],
95
98
  env,
96
99
  );
package/dist/cli/index.js CHANGED
@@ -9,9 +9,9 @@ const commander_1 = require("commander");
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const inquirer_1 = __importDefault(require("inquirer"));
11
11
  const path_1 = __importDefault(require("path"));
12
- const config_loading_1 = require("../config/config-loading");
13
- const runtime_environment_1 = require("../core/runtime-environment");
14
- const tasks_definitions_1 = require("../core/tasks-definitions");
12
+ const ConfigLoading_1 = require("../config/ConfigLoading");
13
+ const RuntimeEnvironment_1 = require("../core/RuntimeEnvironment");
14
+ const TasksDefinitions_1 = require("../core/TasksDefinitions");
15
15
  const init_1 = require("./init");
16
16
  const tasksDir = path_1.default.join(__dirname, '../tasks');
17
17
  fs_1.default.readdirSync(tasksDir)
@@ -77,7 +77,7 @@ program.action(() => {
77
77
  console.log(chalk_1.default.bold.blue('\nMobilestacks - Professional Task Runner for Stacks\n'));
78
78
  console.log(chalk_1.default.white('USAGE: ') + chalk_1.default.green('mobilestacks <task> [options]\n'));
79
79
  console.log(chalk_1.default.bold('Available tasks:'));
80
- tasks_definitions_1.TaskDefinitions.getInstance()
80
+ TasksDefinitions_1.TaskDefinitions.getInstance()
81
81
  .getAllTasks()
82
82
  .forEach((task) => {
83
83
  const params = task.params.map((param) => chalk_1.default.yellow(`--${param.name}`)).join(' ');
@@ -86,11 +86,11 @@ program.action(() => {
86
86
  });
87
87
  console.log(`\n${chalk_1.default.white('Use ')}${chalk_1.default.green('mobilestacks <task> --help')}${chalk_1.default.white(' for more info on a task.')}`);
88
88
  console.log(chalk_1.default.white('\nExample:'));
89
- console.log(` ${chalk_1.default.green('mobilestacks deploy-contract --contractName my-contract --file ./contracts/my-contract.clar --network testnet')}`);
89
+ console.log(` ${chalk_1.default.green('mobilestacks deploycontract --contractName my-contract --file ./contracts/my-contract.clar --network testnet')}`);
90
90
  console.log(chalk_1.default.white('\nDocs: ') + chalk_1.default.underline('https://github.com/Wizbisy/mobilestacks#readme'));
91
91
  program.help({ error: false });
92
92
  });
93
- tasks_definitions_1.TaskDefinitions.getInstance()
93
+ TasksDefinitions_1.TaskDefinitions.getInstance()
94
94
  .getAllTasks()
95
95
  .forEach((task) => {
96
96
  const cmd = program.command(task.name).description(task.description);
@@ -119,8 +119,8 @@ tasks_definitions_1.TaskDefinitions.getInstance()
119
119
  throw new Error(`Missing required parameter '${param.name}'.`);
120
120
  }
121
121
  });
122
- const config = (0, config_loading_1.loadConfig)();
123
- const env = new runtime_environment_1.RuntimeEnvironment(config);
122
+ const config = (0, ConfigLoading_1.loadConfig)();
123
+ const env = new RuntimeEnvironment_1.RuntimeEnvironment(config);
124
124
  await env.ready;
125
125
  const result = await task.action(opts, env);
126
126
  if (typeof result === 'object' && result !== null) {
package/dist/cli/init.js CHANGED
@@ -61,7 +61,7 @@ export default {
61
61
  const contractsDir = path_1.default.join(process.cwd(), 'contracts');
62
62
  const sampleContractPath = path_1.default.join(contractsDir, 'sample-contract.clar');
63
63
  const tasksDir = path_1.default.join(process.cwd(), 'src', 'tasks');
64
- const exampleTaskPath = path_1.default.join(tasksDir, 'example-task.ts');
64
+ const exampleTaskPath = path_1.default.join(tasksDir, 'ExampleTask.ts');
65
65
  const existingTargets = [configPath, sampleContractPath, exampleTaskPath].filter((target) => fs_1.default.existsSync(target));
66
66
  if (existingTargets.length > 0) {
67
67
  throw new Error(`Refusing to overwrite existing files:\n${existingTargets.join('\n')}`);
@@ -87,7 +87,7 @@ STACKS_TESTNET_URL=${answers.testnetUrl}
87
87
  console.log(' - mobilestacks.config.ts (reads secrets from env vars)');
88
88
  console.log(' - .env (store your secrets here)');
89
89
  console.log(' - contracts/sample-contract.clar');
90
- console.log(' - src/tasks/example-task.ts');
90
+ console.log(' - src/tasks/ExampleTask.ts');
91
91
  console.log('\nSECURITY WARNING:');
92
92
  console.log(' Your wallet secrets belong in the .env file, not in source code.');
93
93
  console.log(' - .env is already listed in .gitignore; never remove that entry.');
@@ -1,3 +1,3 @@
1
1
  import { MobilestacksConfig } from '../types/config';
2
2
  export declare function loadConfig(configPath?: string, cliOverrides?: Record<string, unknown>): MobilestacksConfig;
3
- //# sourceMappingURL=config-loading.d.ts.map
3
+ //# sourceMappingURL=ConfigLoading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigLoading.d.ts","sourceRoot":"","sources":["../../src/config/ConfigLoading.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAe/E,wBAAgB,UAAU,CACxB,UAAU,CAAC,EAAE,MAAM,EACnB,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACzC,kBAAkB,CA6BpB"}
@@ -16,4 +16,4 @@ export declare class RuntimeEnvironment {
16
16
  private initializeWallet;
17
17
  }
18
18
  export {};
19
- //# sourceMappingURL=runtime-environment.d.ts.map
19
+ //# sourceMappingURL=RuntimeEnvironment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuntimeEnvironment.d.ts","sourceRoot":"","sources":["../../src/core/RuntimeEnvironment.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAKpE,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,qBAAa,kBAAkB;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAmC;IACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;gBAEX,MAAM,EAAE,kBAAkB;YAqBxB,gBAAgB;CAqD/B"}
@@ -1,5 +1,5 @@
1
1
  import { ZodSchema } from 'zod';
2
- import { RuntimeEnvironment } from './runtime-environment';
2
+ import { RuntimeEnvironment } from './RuntimeEnvironment';
3
3
  export type TaskParamType = 'string' | 'number' | 'boolean';
4
4
  export type TaskAction = (args: Record<string, unknown>, env: RuntimeEnvironment) => unknown | Promise<unknown>;
5
5
  export interface TaskParam {
@@ -28,4 +28,4 @@ declare class TaskDefinitions {
28
28
  clear(): void;
29
29
  }
30
30
  export { TaskDefinitions };
31
- //# sourceMappingURL=tasks-definitions.d.ts.map
31
+ //# sourceMappingURL=TasksDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TasksDefinitions.d.ts","sourceRoot":"","sources":["../../src/core/TasksDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,GAAG,EAAE,kBAAkB,KACpB,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEhC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,kBAAkB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACtF;AAED,cAAM,eAAe;IACnB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAkB;IAC1C,OAAO,CAAC,MAAM,CAAwB;IAEtC,OAAO;WAEO,WAAW,IAAI,eAAe;IAOrC,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAUnC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIjD,WAAW,IAAI,cAAc,EAAE;IAI/B,KAAK,IAAI,IAAI;CAGrB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
- import { TaskAction, TaskDefinition, TaskParamType } from './tasks-definitions';
1
+ import { TaskAction, TaskDefinition, TaskParamType } from './TasksDefinitions';
2
2
  import { ZodSchema } from 'zod';
3
- import { RuntimeEnvironment } from './runtime-environment';
3
+ import { RuntimeEnvironment } from './RuntimeEnvironment';
4
4
  import { extendEnvironment } from './extender';
5
5
  type TaskParamOptions = {
6
6
  type?: TaskParamType;
@@ -1 +1 @@
1
- {"version":3,"file":"dsl.d.ts","sourceRoot":"","sources":["../../src/core/dsl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAa,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAY,SAAS,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,aAAa,CAAC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,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAUF,iBAAS,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;wBAGxC,MAAM,aAAa,MAAM,YAAY,gBAAgB;sBAWvD,UAAU;EAyB/B;AAED,iBAAS,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;wBAtCnD,MAAM,aAAa,MAAM,YAAY,gBAAgB;sBAWvD,UAAU;EA6B/B;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AAChF,MAAM,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;AAEtC,wBAAsB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,kBAAkB,iBAM5E;AAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/dist/core/dsl.js CHANGED
@@ -4,7 +4,7 @@ exports.extendEnvironment = void 0;
4
4
  exports.runWorkflow = runWorkflow;
5
5
  exports.task = task;
6
6
  exports.subtask = subtask;
7
- const tasks_definitions_1 = require("./tasks-definitions");
7
+ const TasksDefinitions_1 = require("./TasksDefinitions");
8
8
  const zod_1 = require("zod");
9
9
  const extender_1 = require("./extender");
10
10
  Object.defineProperty(exports, "extendEnvironment", { enumerable: true, get: function () { return extender_1.extendEnvironment; } });
@@ -22,7 +22,7 @@ function task(name, description, parent) {
22
22
  name: paramName,
23
23
  description: paramDesc,
24
24
  type: options?.type || 'string',
25
- required: options?.required !== false, // default true
25
+ required: options?.required !== false,
26
26
  defaultValue: options?.defaultValue,
27
27
  schema: options?.schema,
28
28
  });
@@ -48,7 +48,7 @@ function task(name, description, parent) {
48
48
  return action(args, env);
49
49
  },
50
50
  };
51
- tasks_definitions_1.TaskDefinitions.getInstance().addTask(def);
51
+ TasksDefinitions_1.TaskDefinitions.getInstance().addTask(def);
52
52
  return def;
53
53
  },
54
54
  };
@@ -58,7 +58,7 @@ function subtask(name, description, parentTaskName) {
58
58
  }
59
59
  async function runWorkflow(workflow, env) {
60
60
  for (const step of workflow) {
61
- const def = tasks_definitions_1.TaskDefinitions.getInstance().getTask(step.taskName);
61
+ const def = TasksDefinitions_1.TaskDefinitions.getInstance().getTask(step.taskName);
62
62
  if (!def)
63
63
  throw new Error(`Task not found: ${step.taskName}`);
64
64
  await def.action(step.args || {}, env);
@@ -1,4 +1,4 @@
1
- import { RuntimeEnvironment } from './runtime-environment';
1
+ import { RuntimeEnvironment } from './RuntimeEnvironment';
2
2
  export type ExtensionFunc = (env: RuntimeEnvironment) => void;
3
3
  export declare class Extender {
4
4
  private static _instance;
@@ -1 +1 @@
1
- {"version":3,"file":"extender.d.ts","sourceRoot":"","sources":["../../src/core/extender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAE9D,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAW;IACnC,OAAO,CAAC,WAAW,CAAuB;IAE1C,OAAO;WAEO,WAAW,IAAI,QAAQ;IAO9B,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAIvC,aAAa,IAAI,aAAa,EAAE;IAIhC,KAAK,IAAI,IAAI;CAGrB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAE3D"}
1
+ {"version":3,"file":"extender.d.ts","sourceRoot":"","sources":["../../src/core/extender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAE9D,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAW;IACnC,OAAO,CAAC,WAAW,CAAuB;IAE1C,OAAO;WAEO,WAAW,IAAI,QAAQ;IAO9B,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAIvC,aAAa,IAAI,aAAa,EAAE;IAIhC,KAAK,IAAI,IAAI;CAGrB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAE3D"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { task, subtask, extendEnvironment } from './core/dsl';
2
2
  export { Simnet } from './core/simnet';
3
- export { RuntimeEnvironment } from './core/runtime-environment';
4
- export * from './core/tasks-definitions';
3
+ export { RuntimeEnvironment } from './core/RuntimeEnvironment';
4
+ export * from './core/TasksDefinitions';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -21,6 +21,6 @@ Object.defineProperty(exports, "subtask", { enumerable: true, get: function () {
21
21
  Object.defineProperty(exports, "extendEnvironment", { enumerable: true, get: function () { return dsl_1.extendEnvironment; } });
22
22
  var simnet_1 = require("./core/simnet");
23
23
  Object.defineProperty(exports, "Simnet", { enumerable: true, get: function () { return simnet_1.Simnet; } });
24
- var runtime_environment_1 = require("./core/runtime-environment");
25
- Object.defineProperty(exports, "RuntimeEnvironment", { enumerable: true, get: function () { return runtime_environment_1.RuntimeEnvironment; } });
26
- __exportStar(require("./core/tasks-definitions"), exports);
24
+ var RuntimeEnvironment_1 = require("./core/RuntimeEnvironment");
25
+ Object.defineProperty(exports, "RuntimeEnvironment", { enumerable: true, get: function () { return RuntimeEnvironment_1.RuntimeEnvironment; } });
26
+ __exportStar(require("./core/TasksDefinitions"), exports);
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CallContractFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallContractFunction.d.ts","sourceRoot":"","sources":["../../src/tasks/CallContractFunction.ts"],"names":[],"mappings":""}
@@ -7,7 +7,7 @@ const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const transactions_1 = require("@stacks/transactions");
9
9
  const utils_1 = require("./utils");
10
- (0, dsl_1.task)('call-contract-function', 'Call a read-only function on a deployed Clarity contract')
10
+ (0, dsl_1.task)('callcontractfunction', 'Call a read-only function on a deployed Clarity contract')
11
11
  .addParam('contractAddress', 'Deployed contract address (STX...)', { type: 'string', required: true })
12
12
  .addParam('contractName', 'Contract name', { type: 'string', required: true })
13
13
  .addParam('functionName', 'Function name', { type: 'string', required: true })
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployContract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployContract.d.ts","sourceRoot":"","sources":["../../src/tasks/DeployContract.ts"],"names":[],"mappings":""}
@@ -7,7 +7,7 @@ const dsl_1 = require("../core/dsl");
7
7
  const transactions_1 = require("@stacks/transactions");
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  const utils_1 = require("./utils");
10
- (0, dsl_1.task)('deploy-contract', 'Deploy a Clarity smart contract to Stacks blockchain')
10
+ (0, dsl_1.task)('deploycontract', 'Deploy a Clarity smart contract to Stacks blockchain')
11
11
  .addParam('contractName', 'Name of the contract', { type: 'string', required: true })
12
12
  .addParam('file', 'Path to Clarity contract file', { type: 'string', required: true })
13
13
  .addParam('network', 'Network to deploy to (mainnet|testnet)', {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExampleTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleTask.d.ts","sourceRoot":"","sources":["../../src/tasks/ExampleTask.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExecuteContract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExecuteContract.d.ts","sourceRoot":"","sources":["../../src/tasks/ExecuteContract.ts"],"names":[],"mappings":""}
@@ -48,7 +48,7 @@ function parseArgToCV(arg) {
48
48
  return (0, transactions_1.standardPrincipalCV)(t);
49
49
  throw new Error(`Unsupported Clarity argument: ${arg}`);
50
50
  }
51
- (0, dsl_1.task)('execute-contract', 'Execute a state-modifying function on a Clarity contract')
51
+ (0, dsl_1.task)('executecontract', 'Execute a state-modifying function on a Clarity contract')
52
52
  .addParam('contractAddress', 'Deployed contract address (STX...)', { type: 'string', required: true })
53
53
  .addParam('contractName', 'Contract name', { type: 'string', required: true })
54
54
  .addParam('functionName', 'Function name', { type: 'string', required: true })
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FaucetRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FaucetRequest.d.ts","sourceRoot":"","sources":["../../src/tasks/FaucetRequest.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const utils_1 = require("./utils");
9
- (0, dsl_1.task)('faucet-request', 'Request STX from the testnet faucet')
9
+ (0, dsl_1.task)('faucetrequest', 'Request STX from the testnet faucet')
10
10
  .addParam('address', 'STX address to fund', { type: 'string', required: true })
11
11
  .setAction(async (args, env) => {
12
12
  if (env.config.defaultNetwork !== 'testnet') {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GetBalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetBalance.d.ts","sourceRoot":"","sources":["../../src/tasks/GetBalance.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const utils_1 = require("./utils");
9
- (0, dsl_1.task)('get-balance', 'Get STX balance for the configured wallet address or a provided address')
9
+ (0, dsl_1.task)('getbalance', 'Get STX balance for the configured wallet address or a provided address')
10
10
  .addParam('address', 'STX address to check (optional, defaults to wallet main address)', {
11
11
  type: 'string',
12
12
  required: false,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GetContractInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetContractInfo.d.ts","sourceRoot":"","sources":["../../src/tasks/GetContractInfo.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const utils_1 = require("./utils");
9
- (0, dsl_1.task)('get-contract-info', 'Get contract attributes and details from Stacks blockchain')
9
+ (0, dsl_1.task)('getcontractinfo', 'Get contract attributes and details from Stacks blockchain')
10
10
  .addParam('contractAddress', 'Deployed contract address (STX...)', { type: 'string', required: true })
11
11
  .addParam('contractName', 'Contract name', { type: 'string', required: true })
12
12
  .addParam('network', 'Network (mainnet|testnet)', {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=GetTxHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetTxHistory.d.ts","sourceRoot":"","sources":["../../src/tasks/GetTxHistory.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const utils_1 = require("./utils");
9
- (0, dsl_1.task)('get-tx-history', 'Get transaction history for the configured wallet address')
9
+ (0, dsl_1.task)('gettxhistory', 'Get transaction history for the configured wallet address')
10
10
  .addParam('limit', 'Number of transactions to fetch', { type: 'number', required: false, defaultValue: 10 })
11
11
  .addParam('network', 'Network (mainnet|testnet)', {
12
12
  type: 'string',
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ListAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListAccounts.d.ts","sourceRoot":"","sources":["../../src/tasks/ListAccounts.ts"],"names":[],"mappings":""}
@@ -4,7 +4,7 @@ const dsl_1 = require("../core/dsl");
4
4
  const wallet_sdk_1 = require("@stacks/wallet-sdk");
5
5
  const transactions_1 = require("@stacks/transactions");
6
6
  const utils_1 = require("./utils");
7
- (0, dsl_1.task)('list-accounts', 'List all accounts derived from the configured seed phrase')
7
+ (0, dsl_1.task)('listaccounts', 'List all accounts derived from the configured seed phrase')
8
8
  .addParam('network', 'Network (mainnet|testnet)', {
9
9
  type: 'string',
10
10
  required: false,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SendStx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendStx.d.ts","sourceRoot":"","sources":["../../src/tasks/SendStx.ts"],"names":[],"mappings":""}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const dsl_1 = require("../core/dsl");
4
4
  const transactions_1 = require("@stacks/transactions");
5
5
  const utils_1 = require("./utils");
6
- (0, dsl_1.task)('send-stx', 'Sends STX to an address')
6
+ (0, dsl_1.task)('sendstx', 'Sends STX to an address')
7
7
  .addParam('to', 'Recipient STX address', { type: 'string', required: true })
8
8
  .addParam('amount', 'Amount in STX (e.g. 10.5)', { type: 'number', required: true })
9
9
  .addParam('memo', 'Optional memo', { type: 'string', required: false, defaultValue: '' })
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VerifyContract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyContract.d.ts","sourceRoot":"","sources":["../../src/tasks/VerifyContract.ts"],"names":[],"mappings":""}
@@ -7,7 +7,7 @@ const dsl_1 = require("../core/dsl");
7
7
  const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const fs_1 = __importDefault(require("fs"));
9
9
  const utils_1 = require("./utils");
10
- (0, dsl_1.task)('verify-contract', 'Verify a deployed Clarity contract on the Stacks explorer')
10
+ (0, dsl_1.task)('verifycontract', 'Verify a deployed Clarity contract on the Stacks explorer')
11
11
  .addParam('contractAddress', 'Deployed contract address (STX...)', { type: 'string', required: true })
12
12
  .addParam('contractName', 'Contract name', { type: 'string', required: true })
13
13
  .addParam('source', 'Path to contract source file', { type: 'string', required: true })
@@ -1,6 +1,6 @@
1
1
  import { StacksNetwork } from '@stacks/network';
2
2
  import { MobilestacksConfig } from '../types/config';
3
- import { RuntimeEnvironment } from '../core/runtime-environment';
3
+ import { RuntimeEnvironment } from '../core/RuntimeEnvironment';
4
4
  export type SupportedNetworkName = 'mainnet' | 'testnet';
5
5
  export declare function getSupportedNetworkName(value: unknown): SupportedNetworkName;
6
6
  export declare function getNetworkUrl(config: MobilestacksConfig, networkName: SupportedNetworkName): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/tasks/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EA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AM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B,GAAG,OAAO,CAAC,CAAC,CAAC,CAQb"}
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
- {
2
- "name": "mobilestacks",
3
- "version": "0.1.24",
4
- "description": "Task Runner & CLI for the Stacks Blockchain",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "bin": {
8
- "mobilestacks": "dist/cli/index.js"
9
- },
10
- "files": [
11
- "dist/",
12
- "README.md",
13
- "LICENSE"
14
- ],
15
- "scripts": {
16
- "start": "node ./dist/cli/index.js",
17
- "prebuild": "node -e \"const fs=require('fs'); if(fs.existsSync('./dist')) fs.rmSync('./dist', {recursive:true, force:true});\"",
18
- "build": "tsc",
19
- "lint": "eslint src --ext .ts",
20
- "test": "vitest run --config vitest.config.mts",
21
- "setup:simnet": "node scripts/setup-simnet.mjs",
22
- "prepublishOnly": "npm run build && npm test"
23
- },
24
- "keywords": [
25
- "stacks",
26
- "blockchain",
27
- "clarity",
28
- "smart-contracts",
29
- "cli",
30
- "task-runner",
31
- "web3",
32
- "bitcoin"
33
- ],
34
- "author": "Wizbisy",
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/Wizbisy/mobilestacks.git"
39
- },
40
- "homepage": "https://github.com/Wizbisy/mobilestacks#readme",
41
- "bugs": {
42
- "url": "https://github.com/Wizbisy/mobilestacks/issues"
43
- },
44
- "engines": {
45
- "node": ">=18"
46
- },
47
- "devDependencies": {
48
- "@hirosystems/clarinet-sdk": "^3.8.1",
49
- "@types/inquirer": "^8.2.6",
50
- "@types/node-fetch": "^2.6.13",
51
- "@typescript-eslint/eslint-plugin": "^6.20.0",
52
- "@typescript-eslint/parser": "^6.20.0",
53
- "eslint": "^8.56.0",
54
- "eslint-config-prettier": "^10.1.8",
55
- "eslint-import-resolver-typescript": "^4.4.4",
56
- "eslint-plugin-import": "^2.32.0",
57
- "ts-node": "^10.9.1",
58
- "vitest": "^4.0.18"
59
- },
60
- "dependencies": {
61
- "@stacks/network": "latest",
62
- "@stacks/transactions": "^7.3.1",
63
- "@stacks/wallet-sdk": "latest",
64
- "chalk": "^4.1.2",
65
- "commander": "^11.0.0",
66
- "dotenv": "^17.3.1",
67
- "inquirer": "^8.2.7",
68
- "node-fetch": "^2.7.0",
69
- "zod": "^3.25.76"
70
- }
71
- }
1
+ {
2
+ "name": "mobilestacks",
3
+ "version": "0.1.26",
4
+ "description": "Task Runner & CLI for the Stacks Blockchain",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "mobilestacks": "dist/cli/index.js"
9
+ },
10
+ "files": [
11
+ "dist/",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "scripts": {
16
+ "start": "node ./dist/cli/index.js",
17
+ "prebuild": "node -e \"const fs=require('fs'); if(fs.existsSync('./dist')) fs.rmSync('./dist', {recursive:true, force:true});\"",
18
+ "build": "tsc",
19
+ "lint": "eslint src --ext .ts",
20
+ "test": "vitest run --config vitest.config.mts",
21
+ "setup:simnet": "node scripts/SetupSimnet.mjs",
22
+ "prepublishOnly": "npm run build && npm test"
23
+ },
24
+ "keywords": [
25
+ "stacks",
26
+ "blockchain",
27
+ "clarity",
28
+ "smart-contracts",
29
+ "cli",
30
+ "task-runner",
31
+ "web3",
32
+ "bitcoin"
33
+ ],
34
+ "author": "Wizbisy",
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/Wizbisy/mobilestacks.git"
39
+ },
40
+ "homepage": "https://github.com/Wizbisy/mobilestacks#readme",
41
+ "bugs": {
42
+ "url": "https://github.com/Wizbisy/mobilestacks/issues"
43
+ },
44
+ "engines": {
45
+ "node": ">=18"
46
+ },
47
+ "devDependencies": {
48
+ "@hirosystems/clarinet-sdk": "^3.8.1",
49
+ "@types/inquirer": "^8.2.6",
50
+ "@types/node-fetch": "^2.6.13",
51
+ "@typescript-eslint/eslint-plugin": "^6.20.0",
52
+ "@typescript-eslint/parser": "^6.20.0",
53
+ "eslint": "^8.56.0",
54
+ "eslint-config-prettier": "^10.1.8",
55
+ "eslint-import-resolver-typescript": "^4.4.4",
56
+ "eslint-plugin-import": "^2.32.0",
57
+ "ts-node": "^10.9.1",
58
+ "vitest": "^4.0.18"
59
+ },
60
+ "dependencies": {
61
+ "@stacks/network": "latest",
62
+ "@stacks/transactions": "^7.3.1",
63
+ "@stacks/wallet-sdk": "latest",
64
+ "chalk": "^4.1.2",
65
+ "commander": "^11.0.0",
66
+ "dotenv": "^17.3.1",
67
+ "inquirer": "^8.2.7",
68
+ "node-fetch": "^2.7.0",
69
+ "zod": "^3.25.76"
70
+ }
71
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-loading.d.ts","sourceRoot":"","sources":["../../src/config/config-loading.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAe/E,wBAAgB,UAAU,CACxB,UAAU,CAAC,EAAE,MAAM,EACnB,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACzC,kBAAkB,CA6BpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-environment.d.ts","sourceRoot":"","sources":["../../src/core/runtime-environment.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AAKpE,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,qBAAa,kBAAkB;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAmC;IACxD,MAAM,EAA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,CAAC,MAAM,CAAwB;IAEtC,OAAO;WAEO,WAAW,IAAI,eAAe;IAOrC,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAUnC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIjD,WAAW,IAAI,cAAc,EAAE;IAI/B,KAAK,IAAI,IAAI;CAGrB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=call-contract-function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"call-contract-function.d.ts","sourceRoot":"","sources":["../../src/tasks/call-contract-function.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=deploy-contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deploy-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/deploy-contract.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=example-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"example-task.d.ts","sourceRoot":"","sources":["../../src/tasks/example-task.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=execute-contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/execute-contract.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=faucet-request.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"faucet-request.d.ts","sourceRoot":"","sources":["../../src/tasks/faucet-request.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=get-balance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-balance.d.ts","sourceRoot":"","sources":["../../src/tasks/get-balance.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=get-contract-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-contract-info.d.ts","sourceRoot":"","sources":["../../src/tasks/get-contract-info.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=get-tx-history.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-tx-history.d.ts","sourceRoot":"","sources":["../../src/tasks/get-tx-history.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=list-accounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-accounts.d.ts","sourceRoot":"","sources":["../../src/tasks/list-accounts.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=send-stx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-stx.d.ts","sourceRoot":"","sources":["../../src/tasks/send-stx.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=verify-contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"verify-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/verify-contract.ts"],"names":[],"mappings":""}
File without changes