@pioneer-platform/pioneer-coins 9.0.1 → 9.0.2

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.
Files changed (2) hide show
  1. package/lib/paths.js +27 -27
  2. package/package.json +1 -1
package/lib/paths.js CHANGED
@@ -7,7 +7,7 @@ function getPaths(blockchains, isTestnet) {
7
7
  var output = [];
8
8
  if (!blockchains)
9
9
  blockchains = [];
10
- if (blockchains.indexOf('bip122:000000000019d6689c085ae165831e93/slip44:0') >= 0) {
10
+ if (blockchains.indexOf('bip122:000000000019d6689c085ae165831e93') >= 0) {
11
11
  if (isTestnet) {
12
12
  output.push({
13
13
  note: "Bitcoin testnet account 0",
@@ -15,7 +15,7 @@ function getPaths(blockchains, isTestnet) {
15
15
  testnet: true,
16
16
  symbol: 'BTC',
17
17
  symbolSwapKit: 'BTC',
18
- network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
18
+ network: 'bip122:000000000019d6689c085ae165831e93',
19
19
  script_type: "p2wpkh",
20
20
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
21
21
  type: "zpub",
@@ -32,7 +32,7 @@ function getPaths(blockchains, isTestnet) {
32
32
  blockchain: 'bitcoin',
33
33
  symbol: 'BTC',
34
34
  symbolSwapKit: 'BTC',
35
- network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
35
+ network: 'bip122:000000000019d6689c085ae165831e93',
36
36
  script_type: "p2pkh",
37
37
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
38
38
  type: "xpub",
@@ -48,7 +48,7 @@ function getPaths(blockchains, isTestnet) {
48
48
  blockchain: 'bitcoin',
49
49
  symbol: 'BTC',
50
50
  symbolSwapKit: 'BTC',
51
- network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
51
+ network: 'bip122:000000000019d6689c085ae165831e93',
52
52
  script_type: "p2wpkh",
53
53
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
54
54
  type: "zpub",
@@ -59,12 +59,12 @@ function getPaths(blockchains, isTestnet) {
59
59
  });
60
60
  }
61
61
  }
62
- if (blockchains.indexOf('eip155:1/slip44:60') >= 0) {
62
+ if (blockchains.indexOf('eip155:1') >= 0) {
63
63
  var entry = {
64
64
  note: " ETH primary (default)",
65
65
  symbol: 'ETH',
66
66
  symbolSwapKit: 'ETH',
67
- network: 'eip155:1/slip44:60',
67
+ network: 'eip155:1',
68
68
  script_type: "ethereum",
69
69
  available_scripts_types: ['ethereum'],
70
70
  type: "address",
@@ -78,12 +78,12 @@ function getPaths(blockchains, isTestnet) {
78
78
  entry.testnet = true;
79
79
  output.push(entry);
80
80
  }
81
- if (blockchains.indexOf('eip155:43114/slip44:60') >= 0) {
81
+ if (blockchains.indexOf('eip155:43114') >= 0) {
82
82
  var entry = {
83
83
  note: " AVAX primary (default)",
84
84
  symbol: 'AVAX',
85
85
  symbolSwapKit: 'AVAX',
86
- network: 'eip155:43114/slip44:60',
86
+ network: 'eip155:43114',
87
87
  script_type: "avalanche",
88
88
  available_scripts_types: ['avalanche'],
89
89
  type: "address",
@@ -97,7 +97,7 @@ function getPaths(blockchains, isTestnet) {
97
97
  entry.testnet = true;
98
98
  output.push(entry);
99
99
  }
100
- if (blockchains.indexOf('cosmos:thorchain-mainnet-v1/slip44:931') >= 0) {
100
+ if (blockchains.indexOf('cosmos:thorchain-mainnet-v1') >= 0) {
101
101
  var entry = {
102
102
  note: " Default RUNE path ",
103
103
  type: "address",
@@ -109,14 +109,14 @@ function getPaths(blockchains, isTestnet) {
109
109
  blockchain: 'thorchain',
110
110
  symbol: 'RUNE',
111
111
  symbolSwapKit: 'RUNE',
112
- network: 'cosmos:thorchain-mainnet-v1/slip44:931',
112
+ network: 'cosmos:thorchain-mainnet-v1',
113
113
  };
114
114
  if (isTestnet) {
115
115
  entry.testnet = true;
116
116
  }
117
117
  output.push(entry);
118
118
  }
119
- if (blockchains.indexOf('cosmos:secret-mainnet-v1/slip44:118') >= 0) {
119
+ if (blockchains.indexOf('cosmos:secret-mainnet-v1') >= 0) {
120
120
  var entry = {
121
121
  note: " Default Secret path ",
122
122
  type: "address",
@@ -128,14 +128,14 @@ function getPaths(blockchains, isTestnet) {
128
128
  blockchain: 'secret',
129
129
  symbol: 'SCRT',
130
130
  symbolSwapKit: 'SCRT',
131
- network: 'cosmos:secret-mainnet-v1/slip44:118',
131
+ network: 'cosmos:secret-mainnet-v1',
132
132
  };
133
133
  if (isTestnet) {
134
134
  entry.testnet = true;
135
135
  }
136
136
  output.push(entry);
137
137
  }
138
- if (blockchains.indexOf('cosmos:cosmoshub-4/slip44:118') >= 0) {
138
+ if (blockchains.indexOf('cosmos:cosmoshub-4') >= 0) {
139
139
  var entry = {
140
140
  note: " Default ATOM path ",
141
141
  type: "address",
@@ -148,14 +148,14 @@ function getPaths(blockchains, isTestnet) {
148
148
  blockchain: 'cosmos',
149
149
  symbol: 'ATOM',
150
150
  symbolSwapKit: 'GAIA',
151
- network: 'cosmos:cosmoshub-4/slip44:118',
151
+ network: 'cosmos:cosmoshub-4',
152
152
  };
153
153
  if (isTestnet) {
154
154
  entry.testnet = true;
155
155
  }
156
156
  output.push(entry);
157
157
  }
158
- if (blockchains.indexOf('cosmos:osmosis-1/slip44:118') >= 0) {
158
+ if (blockchains.indexOf('cosmos:osmosis-1') >= 0) {
159
159
  var entry = {
160
160
  note: " Default OSMO path ",
161
161
  type: "address",
@@ -168,14 +168,14 @@ function getPaths(blockchains, isTestnet) {
168
168
  blockchain: 'osmosis',
169
169
  symbol: 'OSMO',
170
170
  symbolSwapKit: 'OSMO',
171
- network: 'cosmos:osmosis-1/slip44:118',
171
+ network: 'cosmos:osmosis-1',
172
172
  };
173
173
  if (isTestnet) {
174
174
  entry.testnet = true;
175
175
  }
176
176
  output.push(entry);
177
177
  }
178
- if (blockchains.indexOf('binance:bnb-beacon-chain/slip44:118') >= 0) {
178
+ if (blockchains.indexOf('binance:bnb-beacon-chain') >= 0) {
179
179
  var entry = {
180
180
  note: "Binance default path",
181
181
  type: "address",
@@ -188,14 +188,14 @@ function getPaths(blockchains, isTestnet) {
188
188
  blockchain: 'binance',
189
189
  symbol: 'BNB',
190
190
  symbolSwapKit: 'BNB',
191
- network: 'binance:bnb-beacon-chain/slip44:118',
191
+ network: 'binance:bnb-beacon-chain',
192
192
  };
193
193
  if (isTestnet) {
194
194
  entry.testnet = true;
195
195
  }
196
196
  output.push(entry);
197
197
  }
198
- if (blockchains.indexOf('bip122:000000000000000000651ef99cb9fcbe/slip44:145') >= 0) {
198
+ if (blockchains.indexOf('bip122:000000000000000000651ef99cb9fcbe') >= 0) {
199
199
  var entry = {
200
200
  note: "Bitcoin Cash Default path",
201
201
  type: "xpub",
@@ -208,14 +208,14 @@ function getPaths(blockchains, isTestnet) {
208
208
  blockchain: 'bitcoincash',
209
209
  symbol: 'BCH',
210
210
  symbolSwapKit: 'BCH',
211
- network: 'bip122:000000000000000000651ef99cb9fcbe/slip44:145',
211
+ network: 'bip122:000000000000000000651ef99cb9fcbe',
212
212
  };
213
213
  if (isTestnet) {
214
214
  entry.testnet = true;
215
215
  }
216
216
  output.push(entry);
217
217
  }
218
- if (blockchains.indexOf('bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2') >= 0) {
218
+ if (blockchains.indexOf('bip122:12a765e31ffd4059bada1e25190f6e98') >= 0) {
219
219
  var entry = {
220
220
  note: "Litecoin Default path",
221
221
  type: "xpub",
@@ -228,7 +228,7 @@ function getPaths(blockchains, isTestnet) {
228
228
  blockchain: 'litecoin',
229
229
  symbol: 'LTC',
230
230
  symbolSwapKit: 'LTC',
231
- network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
231
+ network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
232
232
  };
233
233
  if (isTestnet) {
234
234
  entry.testnet = true;
@@ -240,7 +240,7 @@ function getPaths(blockchains, isTestnet) {
240
240
  blockchain: 'litecoin',
241
241
  symbol: 'LTC',
242
242
  symbolSwapKit: 'LTC',
243
- network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
243
+ network: 'bip122:12a765e31ffd4059bada1e25190f6e98',
244
244
  script_type: "p2wpkh",
245
245
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
246
246
  type: "zpub",
@@ -251,7 +251,7 @@ function getPaths(blockchains, isTestnet) {
251
251
  });
252
252
  output.push(entry);
253
253
  }
254
- if (blockchains.indexOf('bip122:00000000001a91e3dace36e2be3bf030/slip44:3') >= 0) {
254
+ if (blockchains.indexOf('bip122:00000000001a91e3dace36e2be3bf030') >= 0) {
255
255
  var entry = {
256
256
  note: "Dogecoin Default path",
257
257
  type: "xpub",
@@ -264,21 +264,21 @@ function getPaths(blockchains, isTestnet) {
264
264
  blockchain: 'dogecoin',
265
265
  symbol: 'DOGE',
266
266
  symbolSwapKit: 'DOGE',
267
- network: 'bip122:00000000001a91e3dace36e2be3bf030/slip44:3',
267
+ network: 'bip122:00000000001a91e3dace36e2be3bf030',
268
268
  };
269
269
  if (isTestnet) {
270
270
  entry.testnet = true;
271
271
  }
272
272
  output.push(entry);
273
273
  }
274
- if (blockchains.indexOf('bip122:dash-hash/slip44:5') >= 0) {
274
+ if (blockchains.indexOf('bip122:dash-hash') >= 0) {
275
275
  var entry = {
276
276
  note: "Default dash path",
277
277
  type: "xpub",
278
278
  coin: 'Dash',
279
279
  symbol: 'DASH',
280
280
  symbolSwapKit: 'DASH',
281
- network: 'bip122:dash-hash/slip44:5',
281
+ network: 'bip122:dash-hash',
282
282
  blockchain: 'dash',
283
283
  script_type: "p2pkh",
284
284
  available_scripts_types: ['p2pkh'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-coins",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {