Skip to content

Commit

Permalink
Update supported blockchains and tickers
Browse files Browse the repository at this point in the history
  • Loading branch information
yerofey committed Feb 6, 2024
1 parent ca7a6f9 commit 50122e3
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 12 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,16 @@ $ cw -l

*don't use mnemonic from the examples, it's just an example, generate your own mnemonic string!*

## Blockchains supported
## Blockchains & tickers supported

- `EVM` (Ethereum, Polygon, Arbitrum, Optimism, L2/L3, etc.)
- `BTC` (Bitcoin) [legacy, segwit, bech32]
- `ETH` (Ethereum)
- `BNB` (Binance Coin) [BEP2, BEP20, ERC20]
- `BSC` (Binance Smart Chain)
- `ARB` (Arbitrum)
- `OP` (Optimism)
- `MATIC` (Polygon)
- `SOL` (Solana)
- `TON` (The Open Network)
- `DOGE` (Dogecoin) [legacy, segwit, bech32]
Expand All @@ -137,8 +142,9 @@ $ cw -l
- `BLK` (BlackCoin)
- `VIA` (Viacoin)
- `NBT` (NIX Bridge Token)
- `PLS` (PulseChain)

*all other cryptos that are tokens in the ecosystems like Ethereum, Binance Smart Chain or Polygon and others (EVM compatible) are supported too, you just need to create ERC wallet (that is set by default)*
*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.)*

## Options

Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import Method from './src/Method.js';
return new Method('donate').init();
}

const chain = options.chain.toUpperCase() || 'ERC';
const chain = options.chain.toUpperCase() || 'EVM';
if (supportedChains.includes(chain)) {
return new Method('wallet', {
chain,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yerofey/cryptowallet-cli",
"version": "1.23.2",
"version": "1.24.0",
"description": "Crypto wallet generator CLI tool",
"type": "module",
"homepage": "https://github.com/yerofey/cryptowallet-cli",
Expand Down
10 changes: 5 additions & 5 deletions src/Method.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Method {
}

async _list() {
log(`🔠 All supported blockchains:\n`);
log(`🔠 All supported chains & tickers:\n`);
let cryptos = {};
for (const val of supportedChains) {
// eslint-disable-next-line no-undef
Expand All @@ -59,7 +59,7 @@ class Method {
);

let title = data.title || '';
if (title == '' || val == 'ERC') {
if (title == '' || val == 'EVM') {
continue;
}
cryptos[blue(val)] = title;
Expand All @@ -71,7 +71,7 @@ class Method {
})
);
log();
log(`ℹ️ Use flag "-c TICKER" to select specific blockchain`);
log(`ℹ️ Use flag "-c TICKER" to select specific chain or ticker`);
}

_mnemonic() {
Expand Down Expand Up @@ -520,7 +520,7 @@ class Method {
if (cw.row.network == 'EVM' || false) {
log(
yellow(
'🆒 You can use this wallet in Ethereum, Binance Smart Chain, Polygon and many others networks (EVM compatible)'
'🆒 You can use this wallet for Ethereum, BSC, Polygon, Arbitrum, Optimism and any other L2/L3 chain (EVM compatible)'
)
);
}
Expand All @@ -546,7 +546,7 @@ class Method {

let appsString = appsArray.join(', ');
if (cw.row.apps || false) {
appsString += ' and many other wallet apps';
appsString += ' and any other wallet app (either using mnemonic or private key)';
}
log(greenBright('ℹ️ You can import this wallet into ' + appsString));
}
Expand Down
2 changes: 1 addition & 1 deletion src/chains/ERC.json → src/chains/ARB.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "ERC-like",
"title": "Arbitrum",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
Expand Down
8 changes: 8 additions & 0 deletions src/chains/BSC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "Binance Smart Chain",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
"apps": ["metamask", "trustwallet"],
"flags": ["m", "n", "p", "s"]
}
8 changes: 8 additions & 0 deletions src/chains/EVM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "EVM",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
"apps": ["metamask", "trustwallet"],
"flags": ["m", "n", "p", "s"]
}
8 changes: 8 additions & 0 deletions src/chains/MATIC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "Polygon",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
"apps": ["metamask", "trustwallet"],
"flags": ["m", "n", "p", "s"]
}
8 changes: 8 additions & 0 deletions src/chains/OP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "Optimism",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
"apps": ["metamask", "trustwallet"],
"flags": ["m", "n", "p", "s"]
}
8 changes: 8 additions & 0 deletions src/chains/PLS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title": "PulseChain",
"network": "EVM",
"startsWith": "0x",
"prefixTest": "[0-9a-fA-F]",
"apps": ["metamask", "trustwallet"],
"flags": ["m", "n", "p", "s"]
}
4 changes: 2 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { program } from 'commander';


program.option('-b, --chain <ticker>', 'Wallet for specific blockchain', 'ERC');
program.option('-c, --chain <ticker>', 'Wallet for specific blockchain', 'ERC');
program.option('-b, --chain <ticker>', 'Wallet for specific blockchain', 'EVM');
program.option('-c, --chain <ticker>', 'Wallet for specific blockchain', 'EVM');
program.option('-C, --copy', 'Copy the result to the clipboard');
program.option(
'-D, --csv [filename]',
Expand Down

0 comments on commit 50122e3

Please sign in to comment.