@yerofey/cryptowallet-cli 1.12.0 → 1.14.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 +33 -3
- package/cli.js +4 -0
- package/package.json +2 -1
- package/src/Method.js +25 -10
- package/src/options.js +1 -0
package/README.md
CHANGED
|
@@ -152,15 +152,45 @@ $ cw -l
|
|
|
152
152
|
- [x] v19.x ✅
|
|
153
153
|
- [x] v20.x ✅
|
|
154
154
|
|
|
155
|
-
*tested on Mac M1*
|
|
155
|
+
*tested on Ubuntu 22.04 & Mac M1*
|
|
156
156
|
|
|
157
157
|
## TODO
|
|
158
158
|
|
|
159
|
-
- [ ] Test if is working on Windows (should be, actually)
|
|
160
159
|
- [ ] SegWit Bech32 wallet address support for all Bitcoin forks
|
|
161
|
-
- [ ] More EVM compatible cryptos
|
|
162
160
|
- [ ] tests
|
|
163
161
|
|
|
162
|
+
## Contributing
|
|
163
|
+
|
|
164
|
+
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
|
|
165
|
+
|
|
166
|
+
1. Fork the repository and create a new branch.
|
|
167
|
+
2. Make your changes and ensure that the code is properly formatted.
|
|
168
|
+
3. Write tests to cover any new functionality.
|
|
169
|
+
4. Submit a pull request with a clear description of your changes.
|
|
170
|
+
|
|
171
|
+
By contributing to this project, you agree to abide by the [Code of Conduct](https://github.com/yerofey/cryptowallet-cli/blob/master/CODE_OF_CONDUCT.md).
|
|
172
|
+
|
|
173
|
+
Thank you for your interest in contributing!
|
|
174
|
+
|
|
175
|
+
## Support the Project
|
|
176
|
+
|
|
177
|
+
If you find this tool useful and would like to support its development, consider making a donation. Your support is greatly appreciated and helps me dedicate more time to maintain and improve this project.
|
|
178
|
+
|
|
179
|
+
**Donate Crypto:**
|
|
180
|
+
|
|
181
|
+
- Tether (USDT-TRC20): `TCW9eaRWjpivZvnZ5DwgbWxPRpoZNWbuPe`
|
|
182
|
+
- Bitcoin (BTC): `bc1qcwamquntxshqsjcra6vryftrfd9z57j02g3ywq`
|
|
183
|
+
- Ethereum (ETH): `0xe3e3ed78d9f8A935a9a0fCE2a7305F2f5DBabAD8`
|
|
184
|
+
- BNB (BEP20): `0xe3e3ed78d9f8A935a9a0fCE2a7305F2f5DBabAD8`
|
|
185
|
+
- BNB (BEP2): `bnb1gtxfz4kllltaeekw3edfd496gpa3ukpakvzncq`
|
|
186
|
+
- DOGE (DOGE): `DMAkWQKx1H6ESG3beDBssn5mAAZcwkrYVh`
|
|
187
|
+
|
|
188
|
+
**Other Donate Options:**
|
|
189
|
+
|
|
190
|
+
- [PayPal](https://paypal.me/Jerofej)
|
|
191
|
+
|
|
192
|
+
Thank you for your support!
|
|
193
|
+
|
|
164
194
|
## Author
|
|
165
195
|
|
|
166
196
|
[Yerofey S.](https://github.com/yerofey)
|
package/cli.js
CHANGED
|
@@ -19,6 +19,10 @@ import Method from './src/Method.js';
|
|
|
19
19
|
return new Method('version').init();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
if (options.donate) {
|
|
23
|
+
return new Method('donate').init();
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
const chain = options.chain.toUpperCase() || '';
|
|
23
27
|
if (supportedChains.includes(chain)) {
|
|
24
28
|
return new Method('wallet', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yerofey/cryptowallet-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Crypto wallet generator CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/yerofey/cryptowallet-cli",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"lint": "pnpm exec eslint src/*.js",
|
|
22
|
+
"postinstall": "cw --donate",
|
|
22
23
|
"test": "ava"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
package/src/Method.js
CHANGED
|
@@ -6,16 +6,8 @@ import { log, supportedChains, loadJson } from './utils.js';
|
|
|
6
6
|
import { generateMnemonicString } from './Wallet.js';
|
|
7
7
|
import CW from './CW.js';
|
|
8
8
|
|
|
9
|
-
const {
|
|
10
|
-
|
|
11
|
-
green,
|
|
12
|
-
blueBright,
|
|
13
|
-
greenBright,
|
|
14
|
-
yellow,
|
|
15
|
-
red,
|
|
16
|
-
magenta,
|
|
17
|
-
white,
|
|
18
|
-
} = chalk;
|
|
9
|
+
const { blue, green, blueBright, greenBright, yellow, red, magenta, white } =
|
|
10
|
+
chalk;
|
|
19
11
|
|
|
20
12
|
const pkg = await loadJson(
|
|
21
13
|
`${path.dirname(import.meta.url)}/../package.json`.replace('file://', '')
|
|
@@ -32,6 +24,7 @@ class Method {
|
|
|
32
24
|
_initializeMethods() {
|
|
33
25
|
return {
|
|
34
26
|
_: () => {},
|
|
27
|
+
donate: this._donate.bind(this),
|
|
35
28
|
list: this._list.bind(this),
|
|
36
29
|
mnemonic: this._mnemonic.bind(this),
|
|
37
30
|
version: this._version.bind(this),
|
|
@@ -380,6 +373,28 @@ class Method {
|
|
|
380
373
|
}
|
|
381
374
|
}
|
|
382
375
|
|
|
376
|
+
_donate() {
|
|
377
|
+
console.log(`
|
|
378
|
+
──────────────────────────────────────────────────────
|
|
379
|
+
Thank you for installing CW!
|
|
380
|
+
|
|
381
|
+
If you'd like to support this project, consider making
|
|
382
|
+
a donation. Your support is greatly appreciated!
|
|
383
|
+
|
|
384
|
+
Donate Crypto:
|
|
385
|
+
- USDT: TCW9eaRWjpivZvnZ5DwgbWxPRpoZNWbuPe
|
|
386
|
+
- BTC: bc1qcwamquntxshqsjcra6vryftrfd9z57j02g3ywq
|
|
387
|
+
- ETH: 0xe3e3ed78d9f8A935a9a0fCE2a7305F2f5DBabAD8
|
|
388
|
+
- DOGE: DMAkWQKx1H6ESG3beDBssn5mAAZcwkrYVh
|
|
389
|
+
|
|
390
|
+
Donate via PayPal:
|
|
391
|
+
- https://paypal.me/Jerofej
|
|
392
|
+
|
|
393
|
+
Thank you for your support!
|
|
394
|
+
──────────────────────────────────────────────────────
|
|
395
|
+
`);
|
|
396
|
+
}
|
|
397
|
+
|
|
383
398
|
async init() {
|
|
384
399
|
return (this.callMethods[this.name] || this.callMethods['_'])();
|
|
385
400
|
}
|
package/src/options.js
CHANGED