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.
- package/LICENSE +21 -21
- package/README.md +19 -16
- package/dist/cli/index.js +8 -8
- package/dist/cli/init.js +2 -2
- package/dist/config/{config-loading.d.ts → ConfigLoading.d.ts} +1 -1
- package/dist/config/ConfigLoading.d.ts.map +1 -0
- package/dist/core/{runtime-environment.d.ts → RuntimeEnvironment.d.ts} +1 -1
- package/dist/core/RuntimeEnvironment.d.ts.map +1 -0
- package/dist/core/{tasks-definitions.d.ts → TasksDefinitions.d.ts} +2 -2
- package/dist/core/TasksDefinitions.d.ts.map +1 -0
- package/dist/core/dsl.d.ts +2 -2
- package/dist/core/dsl.d.ts.map +1 -1
- package/dist/core/dsl.js +4 -4
- package/dist/core/extender.d.ts +1 -1
- package/dist/core/extender.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/tasks/CallContractFunction.d.ts +2 -0
- package/dist/tasks/CallContractFunction.d.ts.map +1 -0
- package/dist/tasks/{call-contract-function.js → CallContractFunction.js} +1 -1
- package/dist/tasks/DeployContract.d.ts +2 -0
- package/dist/tasks/DeployContract.d.ts.map +1 -0
- package/dist/tasks/{deploy-contract.js → DeployContract.js} +1 -1
- package/dist/tasks/ExampleTask.d.ts +2 -0
- package/dist/tasks/ExampleTask.d.ts.map +1 -0
- package/dist/tasks/ExecuteContract.d.ts +2 -0
- package/dist/tasks/ExecuteContract.d.ts.map +1 -0
- package/dist/tasks/{execute-contract.js → ExecuteContract.js} +1 -1
- package/dist/tasks/FaucetRequest.d.ts +2 -0
- package/dist/tasks/FaucetRequest.d.ts.map +1 -0
- package/dist/tasks/{faucet-request.js → FaucetRequest.js} +1 -1
- package/dist/tasks/GetBalance.d.ts +2 -0
- package/dist/tasks/GetBalance.d.ts.map +1 -0
- package/dist/tasks/{get-balance.js → GetBalance.js} +1 -1
- package/dist/tasks/GetContractInfo.d.ts +2 -0
- package/dist/tasks/GetContractInfo.d.ts.map +1 -0
- package/dist/tasks/{get-contract-info.js → GetContractInfo.js} +1 -1
- package/dist/tasks/GetTxHistory.d.ts +2 -0
- package/dist/tasks/GetTxHistory.d.ts.map +1 -0
- package/dist/tasks/{get-tx-history.js → GetTxHistory.js} +1 -1
- package/dist/tasks/ListAccounts.d.ts +2 -0
- package/dist/tasks/ListAccounts.d.ts.map +1 -0
- package/dist/tasks/{list-accounts.js → ListAccounts.js} +1 -1
- package/dist/tasks/SendStx.d.ts +2 -0
- package/dist/tasks/SendStx.d.ts.map +1 -0
- package/dist/tasks/{send-stx.js → SendStx.js} +1 -1
- package/dist/tasks/VerifyContract.d.ts +2 -0
- package/dist/tasks/VerifyContract.d.ts.map +1 -0
- package/dist/tasks/{verify-contract.js → VerifyContract.js} +1 -1
- package/dist/tasks/utils.d.ts +1 -1
- package/dist/tasks/utils.d.ts.map +1 -1
- package/package.json +71 -71
- package/dist/config/config-loading.d.ts.map +0 -1
- package/dist/core/runtime-environment.d.ts.map +0 -1
- package/dist/core/tasks-definitions.d.ts.map +0 -1
- package/dist/tasks/call-contract-function.d.ts +0 -2
- package/dist/tasks/call-contract-function.d.ts.map +0 -1
- package/dist/tasks/deploy-contract.d.ts +0 -2
- package/dist/tasks/deploy-contract.d.ts.map +0 -1
- package/dist/tasks/example-task.d.ts +0 -2
- package/dist/tasks/example-task.d.ts.map +0 -1
- package/dist/tasks/execute-contract.d.ts +0 -2
- package/dist/tasks/execute-contract.d.ts.map +0 -1
- package/dist/tasks/faucet-request.d.ts +0 -2
- package/dist/tasks/faucet-request.d.ts.map +0 -1
- package/dist/tasks/get-balance.d.ts +0 -2
- package/dist/tasks/get-balance.d.ts.map +0 -1
- package/dist/tasks/get-contract-info.d.ts +0 -2
- package/dist/tasks/get-contract-info.d.ts.map +0 -1
- package/dist/tasks/get-tx-history.d.ts +0 -2
- package/dist/tasks/get-tx-history.d.ts.map +0 -1
- package/dist/tasks/list-accounts.d.ts +0 -2
- package/dist/tasks/list-accounts.d.ts.map +0 -1
- package/dist/tasks/send-stx.d.ts +0 -2
- package/dist/tasks/send-stx.d.ts.map +0 -1
- package/dist/tasks/verify-contract.d.ts +0 -2
- package/dist/tasks/verify-contract.d.ts.map +0 -1
- /package/dist/config/{config-loading.js → ConfigLoading.js} +0 -0
- /package/dist/core/{runtime-environment.js → RuntimeEnvironment.js} +0 -0
- /package/dist/core/{tasks-definitions.js → TasksDefinitions.js} +0 -0
- /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
|
+
[](https://badge.fury.io/js/mobilestacks)
|
|
4
|
+
[](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
|
|
45
|
-
npx mobilestacks
|
|
46
|
-
npx mobilestacks
|
|
47
|
-
npx mobilestacks
|
|
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
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
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', '
|
|
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: '
|
|
93
|
-
{ taskName: '
|
|
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
|
|
13
|
-
const
|
|
14
|
-
const
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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,
|
|
123
|
-
const env = new
|
|
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, '
|
|
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/
|
|
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.');
|
|
@@ -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"}
|
|
@@ -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 './
|
|
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=
|
|
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"}
|
package/dist/core/dsl.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TaskAction, TaskDefinition, TaskParamType } from './
|
|
1
|
+
import { TaskAction, TaskDefinition, TaskParamType } from './TasksDefinitions';
|
|
2
2
|
import { ZodSchema } from 'zod';
|
|
3
|
-
import { RuntimeEnvironment } from './
|
|
3
|
+
import { RuntimeEnvironment } from './RuntimeEnvironment';
|
|
4
4
|
import { extendEnvironment } from './extender';
|
|
5
5
|
type TaskParamOptions = {
|
|
6
6
|
type?: TaskParamType;
|
package/dist/core/dsl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsl.d.ts","sourceRoot":"","sources":["../../src/core/dsl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAa,a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void 0;
|
|
|
4
4
|
exports.runWorkflow = runWorkflow;
|
|
5
5
|
exports.task = task;
|
|
6
6
|
exports.subtask = subtask;
|
|
7
|
-
const
|
|
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,
|
|
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
|
-
|
|
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 =
|
|
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);
|
package/dist/core/extender.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extender.d.ts","sourceRoot":"","sources":["../../src/core/extender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
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/
|
|
4
|
-
export * from './core/
|
|
3
|
+
export { RuntimeEnvironment } from './core/RuntimeEnvironment';
|
|
4
|
+
export * from './core/TasksDefinitions';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
|
25
|
-
Object.defineProperty(exports, "RuntimeEnvironment", { enumerable: true, get: function () { return
|
|
26
|
-
__exportStar(require("./core/
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleTask.d.ts","sourceRoot":"","sources":["../../src/tasks/ExampleTask.ts"],"names":[],"mappings":""}
|
|
@@ -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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 @@
|
|
|
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)('
|
|
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 })
|
package/dist/tasks/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StacksNetwork } from '@stacks/network';
|
|
2
2
|
import { MobilestacksConfig } from '../types/config';
|
|
3
|
-
import { RuntimeEnvironment } from '../core/
|
|
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,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO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AAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,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.
|
|
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/
|
|
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,EAAE,MAAM,CAAC,MAAM,EAAE,OAA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AAwB;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-contract-function.d.ts","sourceRoot":"","sources":["../../src/tasks/call-contract-function.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/deploy-contract.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example-task.d.ts","sourceRoot":"","sources":["../../src/tasks/example-task.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/execute-contract.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"faucet-request.d.ts","sourceRoot":"","sources":["../../src/tasks/faucet-request.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-balance.d.ts","sourceRoot":"","sources":["../../src/tasks/get-balance.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-contract-info.d.ts","sourceRoot":"","sources":["../../src/tasks/get-contract-info.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-tx-history.d.ts","sourceRoot":"","sources":["../../src/tasks/get-tx-history.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-accounts.d.ts","sourceRoot":"","sources":["../../src/tasks/list-accounts.ts"],"names":[],"mappings":""}
|
package/dist/tasks/send-stx.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-stx.d.ts","sourceRoot":"","sources":["../../src/tasks/send-stx.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify-contract.d.ts","sourceRoot":"","sources":["../../src/tasks/verify-contract.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|