@yerofey/cryptowallet-cli 1.23.2 â 1.25.0
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/README.md +8 -2
- package/cli.js +1 -1
- package/package.json +7 -5
- package/src/Method.js +5 -5
- package/src/chains/{ERC.json â ARB.json} +1 -1
- package/src/chains/BSC.json +8 -0
- package/src/chains/EVM.json +8 -0
- package/src/chains/MATIC.json +8 -0
- package/src/chains/OP.json +8 -0
- package/src/chains/PLS.json +8 -0
- package/src/options.js +2 -3
package/README.md
CHANGED
|
@@ -109,11 +109,16 @@ $ cw -l
|
|
|
109
109
|
|
|
110
110
|
*don't use mnemonic from the examples, it's just an example, generate your own mnemonic string!*
|
|
111
111
|
|
|
112
|
-
## Blockchains supported
|
|
112
|
+
## Blockchains & tickers supported
|
|
113
113
|
|
|
114
|
+
- `EVM` (Ethereum, Polygon, Arbitrum, Optimism, L2/L3, etc.)
|
|
114
115
|
- `BTC` (Bitcoin) [legacy, segwit, bech32]
|
|
115
116
|
- `ETH` (Ethereum)
|
|
116
117
|
- `BNB` (Binance Coin) [BEP2, BEP20, ERC20]
|
|
118
|
+
- `BSC` (Binance Smart Chain)
|
|
119
|
+
- `ARB` (Arbitrum)
|
|
120
|
+
- `OP` (Optimism)
|
|
121
|
+
- `MATIC` (Polygon)
|
|
117
122
|
- `SOL` (Solana)
|
|
118
123
|
- `TON` (The Open Network)
|
|
119
124
|
- `DOGE` (Dogecoin) [legacy, segwit, bech32]
|
|
@@ -137,8 +142,9 @@ $ cw -l
|
|
|
137
142
|
- `BLK` (BlackCoin)
|
|
138
143
|
- `VIA` (Viacoin)
|
|
139
144
|
- `NBT` (NIX Bridge Token)
|
|
145
|
+
- `PLS` (PulseChain)
|
|
140
146
|
|
|
141
|
-
*all other cryptos that are tokens in the ecosystems like Ethereum, Binance Smart Chain or Polygon and others
|
|
147
|
+
*all other cryptos that are tokens in the ecosystems like Ethereum, Binance Smart Chain or Polygon and others chains are supported as well (L2/L3, etc.)*
|
|
142
148
|
|
|
143
149
|
## Options
|
|
144
150
|
|
package/cli.js
CHANGED
|
@@ -29,7 +29,7 @@ import Method from './src/Method.js';
|
|
|
29
29
|
return new Method('donate').init();
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
const chain = options.chain.toUpperCase() || '
|
|
32
|
+
const chain = options.chain.toUpperCase() || 'EVM';
|
|
33
33
|
if (supportedChains.includes(chain)) {
|
|
34
34
|
return new Method('wallet', {
|
|
35
35
|
chain,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yerofey/cryptowallet-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "Crypto wallet generator CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/yerofey/cryptowallet-cli",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"lint": "pnpm exec eslint src/*.js",
|
|
52
|
-
"test": "ava"
|
|
52
|
+
"test": "ava",
|
|
53
|
+
"update": "ncu -u && pnpm install"
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
55
56
|
"cli.js",
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
"coininfo": "5.2.1",
|
|
119
120
|
"coinkey": "3.0.0",
|
|
120
121
|
"columnify": "1.6.0",
|
|
121
|
-
"commander": "
|
|
122
|
+
"commander": "12.0.0",
|
|
122
123
|
"csv-writer": "^1.6.0",
|
|
123
124
|
"dotenv": "^16.4.1",
|
|
124
125
|
"ed25519-hd-key": "^1.3.0",
|
|
@@ -130,7 +131,8 @@
|
|
|
130
131
|
"tronweb": "5.3.1"
|
|
131
132
|
},
|
|
132
133
|
"devDependencies": {
|
|
133
|
-
"ava": "^
|
|
134
|
-
"eslint": "^8.
|
|
134
|
+
"ava": "^6.1.1",
|
|
135
|
+
"eslint": "^8.56.0",
|
|
136
|
+
"npm-check-updates": "^16.14.14"
|
|
135
137
|
}
|
|
136
138
|
}
|
package/src/Method.js
CHANGED
|
@@ -47,7 +47,7 @@ class Method {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
async _list() {
|
|
50
|
-
log(`đ All supported
|
|
50
|
+
log(`đ All supported chains & tickers:\n`);
|
|
51
51
|
let cryptos = {};
|
|
52
52
|
for (const val of supportedChains) {
|
|
53
53
|
// eslint-disable-next-line no-undef
|
|
@@ -59,7 +59,7 @@ class Method {
|
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
let title = data.title || '';
|
|
62
|
-
if (title == '' || val == '
|
|
62
|
+
if (title == '' || val == 'EVM') {
|
|
63
63
|
continue;
|
|
64
64
|
}
|
|
65
65
|
cryptos[blue(val)] = title;
|
|
@@ -71,7 +71,7 @@ class Method {
|
|
|
71
71
|
})
|
|
72
72
|
);
|
|
73
73
|
log();
|
|
74
|
-
log(`âšī¸ Use flag "-c TICKER" to select specific
|
|
74
|
+
log(`âšī¸ Use flag "-c TICKER" to select specific chain or ticker`);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
_mnemonic() {
|
|
@@ -520,7 +520,7 @@ class Method {
|
|
|
520
520
|
if (cw.row.network == 'EVM' || false) {
|
|
521
521
|
log(
|
|
522
522
|
yellow(
|
|
523
|
-
'đ You can use this wallet
|
|
523
|
+
'đ You can use this wallet for Ethereum, BSC, Polygon, Arbitrum, Optimism and any other L2/L3 chain (EVM compatible)'
|
|
524
524
|
)
|
|
525
525
|
);
|
|
526
526
|
}
|
|
@@ -546,7 +546,7 @@ class Method {
|
|
|
546
546
|
|
|
547
547
|
let appsString = appsArray.join(', ');
|
|
548
548
|
if (cw.row.apps || false) {
|
|
549
|
-
appsString += ' and
|
|
549
|
+
appsString += ' and any other wallet app (either using mnemonic or private key)';
|
|
550
550
|
}
|
|
551
551
|
log(greenBright('âšī¸ You can import this wallet into ' + appsString));
|
|
552
552
|
}
|
package/src/options.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { program } from 'commander';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
program.option('-
|
|
5
|
-
program.option('-c, --chain <ticker>', 'Wallet for specific blockchain', 'ERC');
|
|
3
|
+
program.option('-b <ticker>', 'Wallet for specific blockchain', 'EVM');
|
|
4
|
+
program.option('-c, --chain <ticker>', 'Wallet for specific blockchain', 'EVM');
|
|
6
5
|
program.option('-C, --copy', 'Copy the result to the clipboard');
|
|
7
6
|
program.option(
|
|
8
7
|
'-D, --csv [filename]',
|