mobilestacks 0.1.3 → 0.1.4

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.
@@ -3,18 +3,16 @@ declare const _default: {
3
3
  mainnet: {
4
4
  url: string;
5
5
  name: string;
6
- explorerUrl: string;
7
- faucetUrl: null;
8
6
  };
9
7
  testnet: {
10
8
  url: string;
11
9
  name: string;
12
- explorerUrl: string;
13
- faucetUrl: string;
14
10
  };
15
11
  };
16
12
  defaultNetwork: string;
17
- wallet: {};
13
+ wallet: {
14
+ derivationPath: string;
15
+ };
18
16
  };
19
17
  export default _default;
20
18
  //# sourceMappingURL=mobilestacks.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobilestacks.config.d.ts","sourceRoot":"","sources":["../mobilestacks.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,wBAqBE"}
1
+ {"version":3,"file":"mobilestacks.config.d.ts","sourceRoot":"","sources":["../mobilestacks.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAWE"}
@@ -1,25 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Example mobilestacks.config.ts for testing
4
3
  exports.default = {
5
4
  networks: {
6
- mainnet: {
7
- url: "https://stacks-node-api.mainnet.stacks.co",
8
- name: "mainnet",
9
- explorerUrl: "https://explorer.stacks.co",
10
- faucetUrl: null
11
- },
12
- testnet: {
13
- url: "https://stacks-node-api.testnet.stacks.co",
14
- name: "testnet",
15
- explorerUrl: "https://explorer.stacks.co?chain=testnet",
16
- faucetUrl: "https://stacks-node-api.testnet.stacks.co/extended/v1/faucet/stx"
17
- }
5
+ mainnet: { url: 'https://stacks-node-api.mainnet.stacks.co', name: 'mainnet' },
6
+ testnet: { url: 'https://stacks-node-api.testnet.stacks.co', name: 'testnet' }
18
7
  },
19
- defaultNetwork: "testnet",
8
+ defaultNetwork: 'testnet',
20
9
  wallet: {
21
- // privateKey: "YOUR_PRIVATE_KEY_HERE",
22
- // seedPhrase: "your twelve word phrase here",
23
- // derivationPath: "m/44'/5757'/0'/0/0"
10
+ derivationPath: "m/44'/5757'/0'/0/0"
24
11
  }
25
12
  };
@@ -45,7 +45,7 @@ async function runInit() {
45
45
  default: "m/44'/5757'/0'/0/0",
46
46
  },
47
47
  ]);
48
- const config = `export default {\n networks: {\n mainnet: { url: '${answers.mainnetUrl}', name: 'mainnet' },\n testnet: { url: '${answers.testnetUrl}', name: 'testnet' }\n },\n defaultNetwork: 'testnet',\n wallet: {\n ${answers.privateKey ? `privateKey: '${answers.privateKey}',` : ''}\n ${answers.seedPhrase ? `seedPhrase: '${answers.seedPhrase}',` : ''}\n derivationPath: '${answers.derivationPath}'\n }\n};\n`;
48
+ const config = `export default {\n networks: {\n mainnet: { url: '${answers.mainnetUrl}', name: 'mainnet' },\n testnet: { url: '${answers.testnetUrl}', name: 'testnet' }\n },\n defaultNetwork: 'testnet',\n wallet: {\n ${answers.privateKey ? `privateKey: '${answers.privateKey}',` : ''}\n ${answers.seedPhrase ? `seedPhrase: '${answers.seedPhrase}',` : ''}\n derivationPath: "${answers.derivationPath}"\n }\n};\n`;
49
49
  fs_1.default.writeFileSync(path_1.default.join(process.cwd(), 'mobilestacks.config.ts'), config);
50
50
  // Scaffold example contract
51
51
  const contractsDir = path_1.default.join(process.cwd(), 'contracts');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilestacks",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Professional Task Runner & CLI for the Stacks Blockchain",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -66,6 +66,7 @@
66
66
  "commander": "^11.0.0",
67
67
  "dotenv": "^17.3.1",
68
68
  "inquirer": "^8.2.7",
69
+ "mobilestacks": "^0.1.3",
69
70
  "node-fetch": "^2.7.0",
70
71
  "ts-node": "^10.9.1",
71
72
  "zod": "^3.25.76"
package/src/cli/init.ts CHANGED
@@ -41,7 +41,7 @@ export async function runInit() {
41
41
  },
42
42
  ]);
43
43
 
44
- const config = `export default {\n networks: {\n mainnet: { url: '${answers.mainnetUrl}', name: 'mainnet' },\n testnet: { url: '${answers.testnetUrl}', name: 'testnet' }\n },\n defaultNetwork: 'testnet',\n wallet: {\n ${answers.privateKey ? `privateKey: '${answers.privateKey}',` : ''}\n ${answers.seedPhrase ? `seedPhrase: '${answers.seedPhrase}',` : ''}\n derivationPath: '${answers.derivationPath}'\n }\n};\n`;
44
+ const config = `export default {\n networks: {\n mainnet: { url: '${answers.mainnetUrl}', name: 'mainnet' },\n testnet: { url: '${answers.testnetUrl}', name: 'testnet' }\n },\n defaultNetwork: 'testnet',\n wallet: {\n ${answers.privateKey ? `privateKey: '${answers.privateKey}',` : ''}\n ${answers.seedPhrase ? `seedPhrase: '${answers.seedPhrase}',` : ''}\n derivationPath: "${answers.derivationPath}"\n }\n};\n`;
45
45
 
46
46
  fs.writeFileSync(path.join(process.cwd(), 'mobilestacks.config.ts'), config);
47
47
  // Scaffold example contract