@pioneer-platform/pioneer-coins 8.1.89 → 9.0.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/lib/coins.d.ts +2 -0
- package/lib/coins.js +2 -0
- package/lib/paths.js +28 -28
- package/package.json +1 -1
package/lib/coins.d.ts
CHANGED
package/lib/coins.js
CHANGED
package/lib/paths.js
CHANGED
|
@@ -7,14 +7,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
7
7
|
var output = [];
|
|
8
8
|
if (!blockchains)
|
|
9
9
|
blockchains = [];
|
|
10
|
-
if (blockchains.indexOf('
|
|
10
|
+
if (blockchains.indexOf('bip122:000000000019d6689c085ae165831e93/slip44:0') >= 0) {
|
|
11
11
|
if (isTestnet) {
|
|
12
12
|
output.push({
|
|
13
13
|
note: "Bitcoin testnet account 0",
|
|
14
14
|
blockchain: 'bitcoin',
|
|
15
15
|
testnet: true,
|
|
16
16
|
symbol: 'BTC',
|
|
17
|
-
network: '
|
|
17
|
+
network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
|
|
18
18
|
script_type: "p2wpkh",
|
|
19
19
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
20
20
|
type: "zpub",
|
|
@@ -30,7 +30,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
30
30
|
note: "Bitcoin account 0",
|
|
31
31
|
blockchain: 'bitcoin',
|
|
32
32
|
symbol: 'BTC',
|
|
33
|
-
network: '
|
|
33
|
+
network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
|
|
34
34
|
script_type: "p2pkh",
|
|
35
35
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
36
36
|
type: "xpub",
|
|
@@ -45,7 +45,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
45
45
|
note: "Bitcoin account Native Segwit (Bech32)",
|
|
46
46
|
blockchain: 'bitcoin',
|
|
47
47
|
symbol: 'BTC',
|
|
48
|
-
network: '
|
|
48
|
+
network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
|
|
49
49
|
script_type: "p2wpkh",
|
|
50
50
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
51
51
|
type: "zpub",
|
|
@@ -56,11 +56,11 @@ function getPaths(blockchains, isTestnet) {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
if (blockchains.indexOf('
|
|
59
|
+
if (blockchains.indexOf('eip155:1/slip44:118') >= 0) {
|
|
60
60
|
var entry = {
|
|
61
61
|
note: " ETH primary (default)",
|
|
62
62
|
symbol: 'ETH',
|
|
63
|
-
network: '
|
|
63
|
+
network: 'eip155:1/slip44:118',
|
|
64
64
|
script_type: "ethereum",
|
|
65
65
|
available_scripts_types: ['ethereum'],
|
|
66
66
|
type: "address",
|
|
@@ -74,11 +74,11 @@ function getPaths(blockchains, isTestnet) {
|
|
|
74
74
|
entry.testnet = true;
|
|
75
75
|
output.push(entry);
|
|
76
76
|
}
|
|
77
|
-
if (blockchains.indexOf('
|
|
77
|
+
if (blockchains.indexOf('eip155:43114/slip44:60') >= 0) {
|
|
78
78
|
var entry = {
|
|
79
79
|
note: " AVAX primary (default)",
|
|
80
80
|
symbol: 'AVAX',
|
|
81
|
-
network: '
|
|
81
|
+
network: 'eip155:43114/slip44:60',
|
|
82
82
|
script_type: "avalanche",
|
|
83
83
|
available_scripts_types: ['avalanche'],
|
|
84
84
|
type: "address",
|
|
@@ -92,7 +92,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
92
92
|
entry.testnet = true;
|
|
93
93
|
output.push(entry);
|
|
94
94
|
}
|
|
95
|
-
if (blockchains.indexOf('thorchain') >= 0) {
|
|
95
|
+
if (blockchains.indexOf('cosmos:thorchain-mainnet-v1/slip44:931\'') >= 0) {
|
|
96
96
|
var entry = {
|
|
97
97
|
note: " Default RUNE path ",
|
|
98
98
|
type: "address",
|
|
@@ -103,14 +103,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
103
103
|
showDisplay: false,
|
|
104
104
|
blockchain: 'thorchain',
|
|
105
105
|
symbol: 'RUNE',
|
|
106
|
-
network: '
|
|
106
|
+
network: 'cosmos:thorchain-mainnet-v1/slip44:931',
|
|
107
107
|
};
|
|
108
108
|
if (isTestnet) {
|
|
109
109
|
entry.testnet = true;
|
|
110
110
|
}
|
|
111
111
|
output.push(entry);
|
|
112
112
|
}
|
|
113
|
-
if (blockchains.indexOf('secret') >= 0) {
|
|
113
|
+
if (blockchains.indexOf('cosmos:secret-mainnet-v1/slip44:118') >= 0) {
|
|
114
114
|
var entry = {
|
|
115
115
|
note: " Default Secret path ",
|
|
116
116
|
type: "address",
|
|
@@ -120,15 +120,15 @@ function getPaths(blockchains, isTestnet) {
|
|
|
120
120
|
script_type: "thorchain",
|
|
121
121
|
showDisplay: false,
|
|
122
122
|
blockchain: 'thorchain',
|
|
123
|
-
symbol: '
|
|
124
|
-
network: '
|
|
123
|
+
symbol: 'SCRT',
|
|
124
|
+
network: 'cosmos:secret-mainnet-v1/slip44:118',
|
|
125
125
|
};
|
|
126
126
|
if (isTestnet) {
|
|
127
127
|
entry.testnet = true;
|
|
128
128
|
}
|
|
129
129
|
output.push(entry);
|
|
130
130
|
}
|
|
131
|
-
if (blockchains.indexOf('cosmos') >= 0) {
|
|
131
|
+
if (blockchains.indexOf('cosmos:cosmoshub-4/slip44:118') >= 0) {
|
|
132
132
|
var entry = {
|
|
133
133
|
note: " Default ATOM path ",
|
|
134
134
|
type: "address",
|
|
@@ -140,14 +140,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
140
140
|
showDisplay: false,
|
|
141
141
|
blockchain: 'cosmos',
|
|
142
142
|
symbol: 'ATOM',
|
|
143
|
-
network: '
|
|
143
|
+
network: 'cosmos:cosmoshub-4/slip44:118',
|
|
144
144
|
};
|
|
145
145
|
if (isTestnet) {
|
|
146
146
|
entry.testnet = true;
|
|
147
147
|
}
|
|
148
148
|
output.push(entry);
|
|
149
149
|
}
|
|
150
|
-
if (blockchains.indexOf('osmosis') >= 0) {
|
|
150
|
+
if (blockchains.indexOf('cosmos:osmosis-1/slip44:118') >= 0) {
|
|
151
151
|
var entry = {
|
|
152
152
|
note: " Default OSMO path ",
|
|
153
153
|
type: "address",
|
|
@@ -159,14 +159,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
159
159
|
showDisplay: false,
|
|
160
160
|
blockchain: 'osmosis',
|
|
161
161
|
symbol: 'OSMO',
|
|
162
|
-
network: '
|
|
162
|
+
network: 'cosmos:osmosis-1/slip44:118',
|
|
163
163
|
};
|
|
164
164
|
if (isTestnet) {
|
|
165
165
|
entry.testnet = true;
|
|
166
166
|
}
|
|
167
167
|
output.push(entry);
|
|
168
168
|
}
|
|
169
|
-
if (blockchains.indexOf('binance') >= 0) {
|
|
169
|
+
if (blockchains.indexOf('binance:bnb-beacon-chain/slip44:118') >= 0) {
|
|
170
170
|
var entry = {
|
|
171
171
|
note: "Binance default path",
|
|
172
172
|
type: "address",
|
|
@@ -178,14 +178,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
178
178
|
showDisplay: false,
|
|
179
179
|
blockchain: 'binance',
|
|
180
180
|
symbol: 'BNB',
|
|
181
|
-
network: '
|
|
181
|
+
network: 'binance:bnb-beacon-chain/slip44:118',
|
|
182
182
|
};
|
|
183
183
|
if (isTestnet) {
|
|
184
184
|
entry.testnet = true;
|
|
185
185
|
}
|
|
186
186
|
output.push(entry);
|
|
187
187
|
}
|
|
188
|
-
if (blockchains.indexOf('
|
|
188
|
+
if (blockchains.indexOf('bip122:000000000000000000651ef99cb9fcbe/slip44:145') >= 0) {
|
|
189
189
|
var entry = {
|
|
190
190
|
note: "Bitcoin Cash Default path",
|
|
191
191
|
type: "xpub",
|
|
@@ -197,14 +197,14 @@ function getPaths(blockchains, isTestnet) {
|
|
|
197
197
|
showDisplay: false,
|
|
198
198
|
blockchain: 'bitcoincash',
|
|
199
199
|
symbol: 'BCH',
|
|
200
|
-
network: '
|
|
200
|
+
network: 'bip122:000000000000000000651ef99cb9fcbe/slip44:145',
|
|
201
201
|
};
|
|
202
202
|
if (isTestnet) {
|
|
203
203
|
entry.testnet = true;
|
|
204
204
|
}
|
|
205
205
|
output.push(entry);
|
|
206
206
|
}
|
|
207
|
-
if (blockchains.indexOf('
|
|
207
|
+
if (blockchains.indexOf('bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2') >= 0) {
|
|
208
208
|
var entry = {
|
|
209
209
|
note: "Litecoin Default path",
|
|
210
210
|
type: "xpub",
|
|
@@ -216,7 +216,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
216
216
|
showDisplay: false,
|
|
217
217
|
blockchain: 'litecoin',
|
|
218
218
|
symbol: 'LTC',
|
|
219
|
-
network: '
|
|
219
|
+
network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
|
|
220
220
|
};
|
|
221
221
|
if (isTestnet) {
|
|
222
222
|
entry.testnet = true;
|
|
@@ -227,7 +227,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
227
227
|
note: "Litecoin account Native Segwit (Bech32)",
|
|
228
228
|
blockchain: 'litecoin',
|
|
229
229
|
symbol: 'LTC',
|
|
230
|
-
network: '
|
|
230
|
+
network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
|
|
231
231
|
script_type: "p2wpkh",
|
|
232
232
|
available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
|
|
233
233
|
type: "zpub",
|
|
@@ -238,7 +238,7 @@ function getPaths(blockchains, isTestnet) {
|
|
|
238
238
|
});
|
|
239
239
|
output.push(entry);
|
|
240
240
|
}
|
|
241
|
-
if (blockchains.indexOf('
|
|
241
|
+
if (blockchains.indexOf('bip122:00000000001a91e3dace36e2be3bf030/slip44:3') >= 0) {
|
|
242
242
|
var entry = {
|
|
243
243
|
note: "Dogecoin Default path",
|
|
244
244
|
type: "xpub",
|
|
@@ -250,20 +250,20 @@ function getPaths(blockchains, isTestnet) {
|
|
|
250
250
|
showDisplay: false,
|
|
251
251
|
blockchain: 'dogecoin',
|
|
252
252
|
symbol: 'DOGE',
|
|
253
|
-
network: '
|
|
253
|
+
network: 'bip122:00000000001a91e3dace36e2be3bf030/slip44:3',
|
|
254
254
|
};
|
|
255
255
|
if (isTestnet) {
|
|
256
256
|
entry.testnet = true;
|
|
257
257
|
}
|
|
258
258
|
output.push(entry);
|
|
259
259
|
}
|
|
260
|
-
if (blockchains.indexOf('dash') >= 0) {
|
|
260
|
+
if (blockchains.indexOf('bip122:dash-hash/slip44:5') >= 0) {
|
|
261
261
|
var entry = {
|
|
262
262
|
note: "Default dash path",
|
|
263
263
|
type: "xpub",
|
|
264
264
|
coin: 'Dash',
|
|
265
265
|
symbol: 'DASH',
|
|
266
|
-
network: '
|
|
266
|
+
network: 'bip122:dash-hash/slip44:5',
|
|
267
267
|
blockchain: 'dash',
|
|
268
268
|
script_type: "p2pkh",
|
|
269
269
|
available_scripts_types: ['p2pkh'],
|