mobilestacks 0.1.18 → 0.1.20

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.
@@ -44,7 +44,11 @@ function containsSecret(obj) {
44
44
  }
45
45
  // Mask any address fields if present
46
46
  if (result && result.txid) {
47
- result.txid = maskAddress(result.txid);
47
+ const resObj = result;
48
+ resObj.explorerUrl = network === 'mainnet'
49
+ ? `https://explorer.hiro.so/txid/${result.txid}`
50
+ : `https://explorer.hiro.so/txid/${result.txid}?chain=testnet`;
51
+ resObj.txid = maskAddress(result.txid);
48
52
  }
49
53
  return result;
50
54
  });
@@ -63,7 +63,11 @@ function containsSecret(obj) {
63
63
  console.warn('[mobilestacks] Warning: Output may contain sensitive data.');
64
64
  }
65
65
  if (result && result.txid) {
66
- result.txid = maskAddress(result.txid);
66
+ const resObj = result;
67
+ resObj.explorerUrl = networkName === 'mainnet'
68
+ ? `https://explorer.hiro.so/txid/${result.txid}`
69
+ : `https://explorer.hiro.so/txid/${result.txid}?chain=testnet`;
70
+ resObj.txid = maskAddress(result.txid);
67
71
  }
68
72
  // Broadcast transaction returns txid or error details
69
73
  return result;
@@ -17,7 +17,6 @@ function containsSecret(obj) {
17
17
  const wallet = await (0, wallet_sdk_1.generateWallet)({ secretKey: env.config.wallet.seedPhrase, password: '' });
18
18
  const result = wallet.accounts.map((a) => {
19
19
  const account = a;
20
- // Actually Wallet SDK stxPrivateKey is standard 32-byte hex.
21
20
  const address = (0, transactions_1.getAddressFromPrivateKey)(account.stxPrivateKey, networkName === 'mainnet' ? 'mainnet' : 'testnet');
22
21
  return {
23
22
  address,
@@ -44,7 +44,11 @@ function containsSecret(obj) {
44
44
  }
45
45
  // Mask any address fields if present
46
46
  if (result && result.txid) {
47
- result.txid = maskAddress(result.txid);
47
+ const resObj = result;
48
+ resObj.explorerUrl = networkName === 'mainnet'
49
+ ? `https://explorer.hiro.so/txid/${result.txid}`
50
+ : `https://explorer.hiro.so/txid/${result.txid}?chain=testnet`;
51
+ resObj.txid = maskAddress(result.txid);
48
52
  }
49
53
  return result;
50
54
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobilestacks",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Professional Task Runner & CLI for the Stacks Blockchain",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",