@pioneer-platform/pioneer-coins 9.2.19 → 9.2.21
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 +17 -83
- 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
|
+
networks: ['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
|
+
networks: ['bip122:000000000019d6689c085ae165831e93'],
|
|
98
89
|
script_type: "p2wpkh", //bech32
|
|
99
90
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
100
91
|
type: "zpub",
|
|
@@ -146,10 +137,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
146
137
|
curve: 'secp256k1',
|
|
147
138
|
script_type: "mayachain",
|
|
148
139
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
149
|
-
|
|
150
|
-
symbol: 'CACAO',
|
|
151
|
-
symbolSwapKit: 'CACAO',
|
|
152
|
-
network: 'cosmos:mayachain-mainnet-v1',
|
|
140
|
+
networks: ['cosmos:mayachain-mainnet-v1'],
|
|
153
141
|
};
|
|
154
142
|
if (isTestnet) {
|
|
155
143
|
entry.testnet = true;
|
|
@@ -165,10 +153,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
165
153
|
curve: 'secp256k1',
|
|
166
154
|
script_type: "thorchain",
|
|
167
155
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
168
|
-
|
|
169
|
-
symbol: 'RUNE',
|
|
170
|
-
symbolSwapKit: 'RUNE',
|
|
171
|
-
network: 'cosmos:thorchain-mainnet-v1',
|
|
156
|
+
networks: ['cosmos:thorchain-mainnet-v1'],
|
|
172
157
|
};
|
|
173
158
|
if (isTestnet) {
|
|
174
159
|
entry.testnet = true;
|
|
@@ -183,11 +168,8 @@ function getPaths(blockchains, isTestnet) {
|
|
|
183
168
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 931, 0x80000000 + 0, 0, 0],
|
|
184
169
|
curve: 'secp256k1',
|
|
185
170
|
script_type: "secret",
|
|
186
|
-
showDisplay: false,
|
|
187
|
-
|
|
188
|
-
symbol: 'SCRT',
|
|
189
|
-
symbolSwapKit: 'SCRT',
|
|
190
|
-
network: 'cosmos:secret-mainnet-v1',
|
|
171
|
+
showDisplay: false,
|
|
172
|
+
networks: ['cosmos:secret-mainnet-v1'],
|
|
191
173
|
};
|
|
192
174
|
if (isTestnet) {
|
|
193
175
|
entry.testnet = true;
|
|
@@ -203,11 +185,8 @@ function getPaths(blockchains, isTestnet) {
|
|
|
203
185
|
addressNList: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
204
186
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
205
187
|
curve: 'secp256k1',
|
|
206
|
-
showDisplay: false,
|
|
207
|
-
|
|
208
|
-
symbol: 'ATOM',
|
|
209
|
-
symbolSwapKit: 'GAIA',
|
|
210
|
-
network: 'cosmos:cosmoshub-4',
|
|
188
|
+
showDisplay: false,
|
|
189
|
+
networks: ['cosmos:cosmoshub-4'],
|
|
211
190
|
};
|
|
212
191
|
if (isTestnet) {
|
|
213
192
|
entry.testnet = true;
|
|
@@ -224,30 +203,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
224
203
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 118, 0x80000000 + 0, 0, 0],
|
|
225
204
|
curve: 'secp256k1',
|
|
226
205
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
227
|
-
|
|
228
|
-
symbol: 'OSMO',
|
|
229
|
-
symbolSwapKit: 'OSMO',
|
|
230
|
-
network: 'cosmos:osmosis-1',
|
|
231
|
-
};
|
|
232
|
-
if (isTestnet) {
|
|
233
|
-
entry.testnet = true;
|
|
234
|
-
}
|
|
235
|
-
output.push(entry);
|
|
236
|
-
}
|
|
237
|
-
if (blockchains.indexOf('binance:bnb-beacon-chain') >= 0) {
|
|
238
|
-
var entry = {
|
|
239
|
-
note: "Binance default path",
|
|
240
|
-
type: "address",
|
|
241
|
-
script_type: "binance",
|
|
242
|
-
available_scripts_types: ['binance'],
|
|
243
|
-
addressNList: [0x80000000 + 44, 0x80000000 + 714, 0x80000000 + 0, 0, 0],
|
|
244
|
-
addressNListMaster: [0x80000000 + 44, 0x80000000 + 714, 0x80000000 + 0, 0, 0],
|
|
245
|
-
curve: 'secp256k1',
|
|
246
|
-
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
247
|
-
blockchain: 'binance',
|
|
248
|
-
symbol: 'BNB',
|
|
249
|
-
symbolSwapKit: 'BNB',
|
|
250
|
-
network: 'binance:bnb-beacon-chain',
|
|
206
|
+
networks: ['cosmos:osmosis-1'],
|
|
251
207
|
};
|
|
252
208
|
if (isTestnet) {
|
|
253
209
|
entry.testnet = true;
|
|
@@ -264,10 +220,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
264
220
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 145, 0x80000000 + 0, 0, 0],
|
|
265
221
|
curve: 'secp256k1',
|
|
266
222
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
267
|
-
|
|
268
|
-
symbol: 'BCH',
|
|
269
|
-
symbolSwapKit: 'BCH',
|
|
270
|
-
network: 'bip122:000000000000000000651ef99cb9fcbe',
|
|
223
|
+
networks: ['bip122:000000000000000000651ef99cb9fcbe'],
|
|
271
224
|
};
|
|
272
225
|
if (isTestnet) {
|
|
273
226
|
entry.testnet = true;
|
|
@@ -284,10 +237,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
284
237
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 2, 0x80000000 + 0, 0, 0],
|
|
285
238
|
curve: 'secp256k1',
|
|
286
239
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
287
|
-
|
|
288
|
-
symbol: 'LTC',
|
|
289
|
-
symbolSwapKit: 'LTC',
|
|
290
|
-
network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
|
|
240
|
+
networks: ['bip122:12a765e31ffd4059bada1e25190f6e98'],
|
|
291
241
|
};
|
|
292
242
|
if (isTestnet) {
|
|
293
243
|
entry.testnet = true;
|
|
@@ -296,10 +246,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
296
246
|
//bech32 bip84
|
|
297
247
|
output.push({
|
|
298
248
|
note: "Litecoin account Native Segwit (Bech32)",
|
|
299
|
-
|
|
300
|
-
symbol: 'LTC',
|
|
301
|
-
symbolSwapKit: 'LTC',
|
|
302
|
-
network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
|
|
249
|
+
networks: ['bip122:12a765e31ffd4059bada1e25190f6e98'],
|
|
303
250
|
script_type: "p2wpkh", //bech32
|
|
304
251
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
305
252
|
type: "zpub",
|
|
@@ -320,10 +267,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
320
267
|
addressNListMaster: [0x80000000 + 44, 0x80000000 + 3, 0x80000000 + 0, 0, 0],
|
|
321
268
|
curve: 'secp256k1',
|
|
322
269
|
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
323
|
-
|
|
324
|
-
symbol: 'DOGE',
|
|
325
|
-
symbolSwapKit: 'DOGE',
|
|
326
|
-
network: 'bip122:00000000001a91e3dace36e2be3bf030',
|
|
270
|
+
networks: ['bip122:00000000001a91e3dace36e2be3bf030'],
|
|
327
271
|
};
|
|
328
272
|
if (isTestnet) {
|
|
329
273
|
entry.testnet = true;
|
|
@@ -334,11 +278,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
334
278
|
var entry = {
|
|
335
279
|
note: "Default dash path",
|
|
336
280
|
type: "xpub",
|
|
337
|
-
|
|
338
|
-
symbol: 'DASH',
|
|
339
|
-
symbolSwapKit: 'DASH',
|
|
340
|
-
network: 'bip122:000007d91d1254d60e2dd1ae58038307',
|
|
341
|
-
blockchain: 'dash',
|
|
281
|
+
networks: ['bip122:000007d91d1254d60e2dd1ae58038307'],
|
|
342
282
|
script_type: "p2pkh",
|
|
343
283
|
available_scripts_types: ['p2pkh'],
|
|
344
284
|
addressNList: [0x80000000 + 44, 0x80000000 + 5, 0x80000000 + 0],
|
|
@@ -352,10 +292,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
352
292
|
var entry = {
|
|
353
293
|
note: "Default ripple path",
|
|
354
294
|
type: "address",
|
|
355
|
-
|
|
356
|
-
symbol: 'XRP',
|
|
357
|
-
symbolSwapKit: 'XRP',
|
|
358
|
-
network: 'ripple:4109C6F2045FC7EFF4CDE8F9905D19C2',
|
|
295
|
+
networks: ['ripple:4109C6F2045FC7EFF4CDE8F9905D19C2'],
|
|
359
296
|
blockchain: 'ripple',
|
|
360
297
|
script_type: "p2pkh",
|
|
361
298
|
available_scripts_types: ['p2pkh'],
|
|
@@ -370,10 +307,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
370
307
|
var entry = {
|
|
371
308
|
note: "Default zcash path",
|
|
372
309
|
type: "address",
|
|
373
|
-
|
|
374
|
-
symbol: 'ZEC',
|
|
375
|
-
symbolSwapKit: 'ZEC',
|
|
376
|
-
network: 'bip122:0000000000196a45',
|
|
310
|
+
networks: ['bip122:0000000000196a45'],
|
|
377
311
|
blockchain: 'zcash',
|
|
378
312
|
script_type: "p2pkh",
|
|
379
313
|
available_scripts_types: ['p2pkh'],
|