Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 142 additions & 4 deletions slip44.json
Original file line number Diff line number Diff line change
Expand Up @@ -5627,6 +5627,30 @@
"symbol": "",
"name": "Nostr"
},
"1238": {
"index": "1238",
"hex": "0x800004d6",
"symbol": "",
"name": "SSH"
},
"1239": {
"index": "1239",
"hex": "0x800004d7",
"symbol": "",
"name": "OpenPGP"
},
"1240": {
"index": "1240",
"hex": "0x800004d8",
"symbol": "",
"name": "X.509"
},
"1241": {
"index": "1241",
"hex": "0x800004d9",
"symbol": "",
"name": "WireGuard"
},
"1280": {
"index": "1280",
"hex": "0x80000500",
Expand Down Expand Up @@ -5675,6 +5699,12 @@
"symbol": "GAEL",
"name": "Gaelium"
},
"1331": {
"index": "1331",
"hex": "0x80000533",
"symbol": "NACKL",
"name": "Acki Nacki"
},
"1337": {
"index": "1337",
"hex": "0x80000539",
Expand Down Expand Up @@ -5723,6 +5753,12 @@
"symbol": "DNR",
"name": "Dinero"
},
"1448": {
"index": "1448",
"hex": "0x800005a8",
"symbol": "DIN",
"name": "Dinero v7"
},
"1510": {
"index": "1510",
"hex": "0x800005e6",
Expand Down Expand Up @@ -5879,6 +5915,12 @@
"symbol": "CUBE",
"name": "Cube Chain Native Token"
},
"1842": {
"index": "1842",
"hex": "0x80000732",
"symbol": "LIF",
"name": "Lifcoin"
},
"1888": {
"index": "1888",
"hex": "0x80000760",
Expand Down Expand Up @@ -6509,6 +6551,12 @@
"symbol": "YEE",
"name": "YeeCo"
},
"4134": {
"index": "4134",
"hex": "0x80001026",
"symbol": "DMD",
"name": "DebitMyData"
},
"4218": {
"index": "4218",
"hex": "0x8000107a",
Expand All @@ -6529,7 +6577,7 @@
},
"4298": {
"index": "4298",
"hex": "0x800010CA",
"hex": "0x800010ca",
"symbol": "LOCA",
"name": "Loca"
},
Expand Down Expand Up @@ -6587,6 +6635,12 @@
"symbol": "SBC",
"name": "Senior Blockchain"
},
"5042": {
"index": "5042",
"hex": "0x800013b2",
"symbol": "USDC",
"name": "Arc"
},
"5248": {
"index": "5248",
"hex": "0x80001480",
Expand Down Expand Up @@ -6725,6 +6779,12 @@
"symbol": "ZETA",
"name": "ZetaChain"
},
"7007": {
"index": "7007",
"hex": "0x80001b5f",
"symbol": "SVRN7",
"name": "Web 7.0 Sovrona"
},
"7027": {
"index": "7027",
"hex": "0x80001b73",
Expand Down Expand Up @@ -6839,6 +6899,12 @@
"symbol": "HANEUL",
"name": "Haneul"
},
"8327": {
"index": "8327",
"hex": "0x80002087",
"symbol": "RXB",
"name": "Record X-core Blockchain"
},
"8339": {
"index": "8339",
"hex": "0x80002093",
Expand Down Expand Up @@ -6875,6 +6941,12 @@
"symbol": "ALPH",
"name": "Alph Network"
},
"8800": {
"index": "8800",
"hex": "0x80002260",
"symbol": "AIIR",
"name": "BitAiir"
},
"8866": {
"index": "8866",
"hex": "0x800022a2",
Expand Down Expand Up @@ -6971,12 +7043,24 @@
"symbol": "SATOX",
"name": "Satoxcoin"
},
"9333": {
"index": "9333",
"hex": "0x80002475",
"symbol": "B3C",
"name": "B3Chain"
},
"9345": {
"index": "9345",
"hex": "0x80002481",
"symbol": "WEIL",
"name": "Weilliptic"
},
"9508": {
"index": "9508",
"hex": "0x80002524",
"symbol": "VARTA",
"name": "Monetarium"
},
"9555": {
"index": "9555",
"hex": "0x80002553",
Expand Down Expand Up @@ -7127,6 +7211,12 @@
"symbol": "WAX",
"name": "Worldwide Asset Exchange"
},
"14159": {
"index": "14159",
"hex": "0x8000374f",
"symbol": "FBC",
"name": "Fistbump"
},
"15845": {
"index": "15845",
"hex": "0x80003de5",
Expand Down Expand Up @@ -7181,6 +7271,12 @@
"symbol": "ML",
"name": "Mintlayer"
},
"19999": {
"index": "19999",
"hex": "0x80004e1f",
"symbol": "CS",
"name": "Cloud Service"
},
"20036": {
"index": "20036",
"hex": "0x80004e44",
Expand Down Expand Up @@ -7241,6 +7337,12 @@
"symbol": "G1",
"name": "Ğ1"
},
"28465": {
"index": "28465",
"hex": "0x80006f31",
"symbol": "BTCC",
"name": "Bitcoin-Classic"
},
"29223": {
"index": "29223",
"hex": "0x80007227",
Expand Down Expand Up @@ -7345,7 +7447,7 @@
},
"61888": {
"index": "61888",
"hex": "0x8000f200",
"hex": "0x8000f1c0",
"symbol": "MORM",
"name": "Morpheum"
},
Expand All @@ -7355,6 +7457,12 @@
"symbol": "KETH",
"name": "Krypton World"
},
"68291": {
"index": "68291",
"hex": "0x80010ac3",
"symbol": "CERA",
"name": "CERA"
},
"69420": {
"index": "69420",
"hex": "0x80010f2c",
Expand Down Expand Up @@ -7439,6 +7547,12 @@
"symbol": "WBT",
"name": "WhiteBIT Coin"
},
"140586": {
"index": "140586",
"hex": "0x8002252a",
"symbol": "BEX",
"name": "BEXChain"
},
"161803": {
"index": "161803",
"hex": "0x8002780b",
Expand Down Expand Up @@ -7537,7 +7651,7 @@
},
"696365": {
"index": "696365",
"hex": "0x800b3206",
"hex": "0x800aa02d",
"symbol": "ICE",
"name": "Ice Network"
},
Expand Down Expand Up @@ -7613,6 +7727,12 @@
"symbol": "EPK",
"name": "EPIK Protocol"
},
"4151811": {
"index": "4151811",
"hex": "0x803f5a03",
"symbol": "DORK",
"name": "Dorkcoin"
},
"4353123": {
"index": "4353123",
"hex": "0x80426c63",
Expand Down Expand Up @@ -7741,7 +7861,7 @@
},
"10000118": {
"index": "10000118",
"hex": "0x805d30b6",
"hex": "0x809896f6",
"symbol": "OSMO",
"name": "Osmosis"
},
Expand Down Expand Up @@ -7775,6 +7895,12 @@
"symbol": "NLK",
"name": "NuLinkCoin"
},
"20260424": {
"index": "20260424",
"hex": "0x81352648",
"symbol": "SOLEN",
"name": "Solen"
},
"22000118": {
"index": "22000118",
"hex": "0x814fb1f6",
Expand Down Expand Up @@ -7907,6 +8033,12 @@
"symbol": "AME",
"name": "AME Chain"
},
"1414421071": {
"index": "1414421071",
"hex": "0xd44e5a4f",
"symbol": "TNZO",
"name": "Tenzro"
},
"1869902945": {
"index": "1869902945",
"hex": "0xef747461",
Expand All @@ -7918,5 +8050,11 @@
"hex": "0xef747462",
"symbol": "CTA",
"name": "Crypterra"
},
"1869902947": {
"index": "1869902947",
"hex": "0xef747463",
"symbol": "SOST",
"name": "Sovereign Stock Token"
}
}
17 changes: 12 additions & 5 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ const slip44Content = fs.readFileSync(rawSlip44Path, 'utf8');
const entries = {};
for (const line of slip44Content.split('\n')) {
const segments = line.split('|').slice(1);
if (
segments.length >= 4 &&
/^\|\s*\d+\s*\|\s*0x[a-z0-9]+\s*\|\s.+\|\s.+\|?$/iu.test(line)
) {
if (segments.length >= 3 && /^\|\s*\d+\s*\|\s.+\|\s.+\|?$/iu.test(line)) {
const [index, symbol, name] = segments.map((seg) => seg.trim());

// eslint-disable-next-line no-bitwise
const coinType = (index | 0x80000000) >>> 0;

// eslint-disable-next-line id-denylist
const [index, hex, symbol, name] = segments.map((seg) => seg.trim());
const hex = `0x${coinType.toString(16)}`;

// Ignore empty entries
if (symbol === '' && name === '') {
continue;
}

// Ignore reserved entries
if (symbol === '---' && name === 'reserved') {
Expand Down
Loading
Loading