@pioneer-platform/pioneer-coins 9.2.18 → 9.2.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.
- package/lib/paths.js +18 -89
- package/package.json +1 -1
package/lib/paths.js
CHANGED
|
@@ -57,11 +57,8 @@ function getPaths(blockchains, isTestnet) {
|
|
|
57
57
|
if (isTestnet) {
|
|
58
58
|
output.push({
|
|
59
59
|
note: "Bitcoin testnet account 0",
|
|
60
|
-
blockchain: 'bitcoin',
|
|
61
60
|
testnet: true,
|
|
62
|
-
|
|
63
|
-
symbolSwapKit: 'BTC',
|
|
64
|
-
network: 'bip122:000000000019d6689c085ae165831e93',
|
|
61
|
+
networks: ['bip122:000000000019d6689c085ae165831e93'],
|
|
65
62
|
script_type: "p2wpkh", //bech32
|
|
66
63
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
67
64
|
type: "zpub",
|
|
@@ -75,10 +72,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
75
72
|
//legacy bip44
|
|
76
73
|
output.push({
|
|
77
74
|
note: "Bitcoin account 0",
|
|
78
|
-
|
|
79
|
-
symbol: 'BTC',
|
|
80
|
-
symbolSwapKit: 'BTC',
|
|
81
|
-
network: 'bip122:000000000019d6689c085ae165831e93',
|
|
75
|
+
network: ['bip122:000000000019d6689c085ae165831e93'],
|
|
82
76
|
script_type: "p2pkh",
|
|
83
77
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
84
78
|
type: "xpub",
|
|
@@ -91,10 +85,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
91
85
|
//bech32 bip84
|
|
92
86
|
output.push({
|
|
93
87
|
note: "Bitcoin account Native Segwit (Bech32)",
|
|
94
|
-
|
|
95
|
-
symbol: 'BTC',
|
|
96
|
-
symbolSwapKit: 'BTC',
|
|
97
|
-
network: 'bip122:000000000019d6689c085ae165831e93',
|
|
88
|
+
network: ['bip122:000000000019d6689c085ae165831e93'],
|
|
98
89
|
script_type: "p2wpkh", //bech32
|
|
99
90
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
100
91
|
type: "zpub",
|
|
@@ -108,17 +99,12 @@ function getPaths(blockchains, isTestnet) {
|
|
|
108
99
|
if (blockchains.some(function (blockchain) { return blockchain.includes('eip155:'); })) {
|
|
109
100
|
var entry = {
|
|
110
101
|
note: " ETH primary (default)",
|
|
111
|
-
|
|
112
|
-
symbolSwapKit: 'ETH',
|
|
113
|
-
network: 'eip155:1',
|
|
114
|
-
script_type: "ethereum",
|
|
115
|
-
available_scripts_types: ['ethereum'],
|
|
102
|
+
networks: ['eip155:1', 'eip155:*'],
|
|
116
103
|
type: "address",
|
|
117
104
|
addressNList: [0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0],
|
|
118
105
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0, 0],
|
|
119
106
|
curve: 'secp256k1',
|
|
120
107
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
121
|
-
blockchain: 'ethereum'
|
|
122
108
|
};
|
|
123
109
|
if (isTestnet)
|
|
124
110
|
entry.testnet = true;
|
|
@@ -151,10 +137,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
151
137
|
curve: 'secp256k1',
|
|
152
138
|
script_type: "mayachain",
|
|
153
139
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
154
|
-
|
|
155
|
-
symbol: 'CACAO',
|
|
156
|
-
symbolSwapKit: 'CACAO',
|
|
157
|
-
network: 'cosmos:mayachain-mainnet-v1',
|
|
140
|
+
networks: ['cosmos:mayachain-mainnet-v1'],
|
|
158
141
|
};
|
|
159
142
|
if (isTestnet) {
|
|
160
143
|
entry.testnet = true;
|
|
@@ -170,10 +153,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
170
153
|
curve: 'secp256k1',
|
|
171
154
|
script_type: "thorchain",
|
|
172
155
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
173
|
-
|
|
174
|
-
symbol: 'RUNE',
|
|
175
|
-
symbolSwapKit: 'RUNE',
|
|
176
|
-
network: 'cosmos:thorchain-mainnet-v1',
|
|
156
|
+
networks: ['cosmos:thorchain-mainnet-v1'],
|
|
177
157
|
};
|
|
178
158
|
if (isTestnet) {
|
|
179
159
|
entry.testnet = true;
|
|
@@ -188,11 +168,8 @@ function getPaths(blockchains, isTestnet) {
|
|
|
188
168
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 931, 0x80000000 + 0, 0, 0],
|
|
189
169
|
curve: 'secp256k1',
|
|
190
170
|
script_type: "secret",
|
|
191
|
-
showDisplay: false,
|
|
192
|
-
|
|
193
|
-
symbol: 'SCRT',
|
|
194
|
-
symbolSwapKit: 'SCRT',
|
|
195
|
-
network: 'cosmos:secret-mainnet-v1',
|
|
171
|
+
showDisplay: false,
|
|
172
|
+
networks: ['cosmos:secret-mainnet-v1'],
|
|
196
173
|
};
|
|
197
174
|
if (isTestnet) {
|
|
198
175
|
entry.testnet = true;
|
|
@@ -208,11 +185,8 @@ function getPaths(blockchains, isTestnet) {
|
|
|
208
185
|
addressNList: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
209
186
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
210
187
|
curve: 'secp256k1',
|
|
211
|
-
showDisplay: false,
|
|
212
|
-
|
|
213
|
-
symbol: 'ATOM',
|
|
214
|
-
symbolSwapKit: 'GAIA',
|
|
215
|
-
network: 'cosmos:cosmoshub-4',
|
|
188
|
+
showDisplay: false,
|
|
189
|
+
networks: ['cosmos:cosmoshub-4'],
|
|
216
190
|
};
|
|
217
191
|
if (isTestnet) {
|
|
218
192
|
entry.testnet = true;
|
|
@@ -229,30 +203,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
229
203
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
230
204
|
curve: 'secp256k1',
|
|
231
205
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
232
|
-
|
|
233
|
-
symbol: 'OSMO',
|
|
234
|
-
symbolSwapKit: 'OSMO',
|
|
235
|
-
network: 'cosmos:osmosis-1',
|
|
236
|
-
};
|
|
237
|
-
if (isTestnet) {
|
|
238
|
-
entry.testnet = true;
|
|
239
|
-
}
|
|
240
|
-
output.push(entry);
|
|
241
|
-
}
|
|
242
|
-
if (blockchains.indexOf('binance:bnb-beacon-chain') >= 0) {
|
|
243
|
-
var entry = {
|
|
244
|
-
note: "Binance default path",
|
|
245
|
-
type: "address",
|
|
246
|
-
script_type: "binance",
|
|
247
|
-
available_scripts_types: ['binance'],
|
|
248
|
-
addressNList: [0x80000000 + 44, 0x80000000 + 714, 0x80000000 + 0, 0, 0],
|
|
249
|
-
addressNListMaster: [0x80000000 + 44, 0x80000000 + 714, 0x80000000 + 0, 0, 0],
|
|
250
|
-
curve: 'secp256k1',
|
|
251
|
-
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
252
|
-
blockchain: 'binance',
|
|
253
|
-
symbol: 'BNB',
|
|
254
|
-
symbolSwapKit: 'BNB',
|
|
255
|
-
network: 'binance:bnb-beacon-chain',
|
|
206
|
+
network: ['cosmos:osmosis-1'],
|
|
256
207
|
};
|
|
257
208
|
if (isTestnet) {
|
|
258
209
|
entry.testnet = true;
|
|
@@ -269,10 +220,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
269
220
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 145, 0x80000000 + 0, 0, 0],
|
|
270
221
|
curve: 'secp256k1',
|
|
271
222
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
272
|
-
|
|
273
|
-
symbol: 'BCH',
|
|
274
|
-
symbolSwapKit: 'BCH',
|
|
275
|
-
network: 'bip122:000000000000000000651ef99cb9fcbe',
|
|
223
|
+
networks: ['bip122:000000000000000000651ef99cb9fcbe'],
|
|
276
224
|
};
|
|
277
225
|
if (isTestnet) {
|
|
278
226
|
entry.testnet = true;
|
|
@@ -289,10 +237,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
289
237
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 2, 0x80000000 + 0, 0, 0],
|
|
290
238
|
curve: 'secp256k1',
|
|
291
239
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
292
|
-
|
|
293
|
-
symbol: 'LTC',
|
|
294
|
-
symbolSwapKit: 'LTC',
|
|
295
|
-
network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
|
|
240
|
+
networks: ['bip122:12a765e31ffd4059bada1e25190f6e98'],
|
|
296
241
|
};
|
|
297
242
|
if (isTestnet) {
|
|
298
243
|
entry.testnet = true;
|
|
@@ -301,10 +246,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
301
246
|
//bech32 bip84
|
|
302
247
|
output.push({
|
|
303
248
|
note: "Litecoin account Native Segwit (Bech32)",
|
|
304
|
-
|
|
305
|
-
symbol: 'LTC',
|
|
306
|
-
symbolSwapKit: 'LTC',
|
|
307
|
-
network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
|
|
249
|
+
network: ['bip122:12a765e31ffd4059bada1e25190f6e98'],
|
|
308
250
|
script_type: "p2wpkh", //bech32
|
|
309
251
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
310
252
|
type: "zpub",
|
|
@@ -325,10 +267,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
325
267
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 3, 0x80000000 + 0, 0, 0],
|
|
326
268
|
curve: 'secp256k1',
|
|
327
269
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
328
|
-
|
|
329
|
-
symbol: 'DOGE',
|
|
330
|
-
symbolSwapKit: 'DOGE',
|
|
331
|
-
network: 'bip122:00000000001a91e3dace36e2be3bf030',
|
|
270
|
+
networks: ['bip122:00000000001a91e3dace36e2be3bf030'],
|
|
332
271
|
};
|
|
333
272
|
if (isTestnet) {
|
|
334
273
|
entry.testnet = true;
|
|
@@ -339,11 +278,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
339
278
|
var entry = {
|
|
340
279
|
note: "Default dash path",
|
|
341
280
|
type: "xpub",
|
|
342
|
-
|
|
343
|
-
symbol: 'DASH',
|
|
344
|
-
symbolSwapKit: 'DASH',
|
|
345
|
-
network: 'bip122:000007d91d1254d60e2dd1ae58038307',
|
|
346
|
-
blockchain: 'dash',
|
|
281
|
+
networks: ['bip122:000007d91d1254d60e2dd1ae58038307'],
|
|
347
282
|
script_type: "p2pkh",
|
|
348
283
|
available_scripts_types: ['p2pkh'],
|
|
349
284
|
addressNList: [0x80000000 + 44, 0x80000000 + 5, 0x80000000 + 0],
|
|
@@ -357,10 +292,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
357
292
|
var entry = {
|
|
358
293
|
note: "Default ripple path",
|
|
359
294
|
type: "address",
|
|
360
|
-
|
|
361
|
-
symbol: 'XRP',
|
|
362
|
-
symbolSwapKit: 'XRP',
|
|
363
|
-
network: 'ripple:4109C6F2045FC7EFF4CDE8F9905D19C2',
|
|
295
|
+
networks: ['ripple:4109C6F2045FC7EFF4CDE8F9905D19C2'],
|
|
364
296
|
blockchain: 'ripple',
|
|
365
297
|
script_type: "p2pkh",
|
|
366
298
|
available_scripts_types: ['p2pkh'],
|
|
@@ -375,10 +307,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
375
307
|
var entry = {
|
|
376
308
|
note: "Default zcash path",
|
|
377
309
|
type: "address",
|
|
378
|
-
|
|
379
|
-
symbol: 'ZEC',
|
|
380
|
-
symbolSwapKit: 'ZEC',
|
|
381
|
-
network: 'bip122:0000000000196a45',
|
|
310
|
+
network: ['bip122:0000000000196a45'],
|
|
382
311
|
blockchain: 'zcash',
|
|
383
312
|
script_type: "p2pkh",
|
|
384
313
|
available_scripts_types: ['p2pkh'],
|