@pioneer-platform/pioneer-coins 9.0.0 → 9.0.1

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 +20 -5
  2. package/package.json +1 -1
package/lib/paths.js CHANGED
@@ -14,6 +14,7 @@ function getPaths(blockchains, isTestnet) {
14
14
  blockchain: 'bitcoin',
15
15
  testnet: true,
16
16
  symbol: 'BTC',
17
+ symbolSwapKit: 'BTC',
17
18
  network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
18
19
  script_type: "p2wpkh",
19
20
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
@@ -30,6 +31,7 @@ function getPaths(blockchains, isTestnet) {
30
31
  note: "Bitcoin account 0",
31
32
  blockchain: 'bitcoin',
32
33
  symbol: 'BTC',
34
+ symbolSwapKit: 'BTC',
33
35
  network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
34
36
  script_type: "p2pkh",
35
37
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
@@ -45,6 +47,7 @@ function getPaths(blockchains, isTestnet) {
45
47
  note: "Bitcoin account Native Segwit (Bech32)",
46
48
  blockchain: 'bitcoin',
47
49
  symbol: 'BTC',
50
+ symbolSwapKit: 'BTC',
48
51
  network: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
49
52
  script_type: "p2wpkh",
50
53
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
@@ -56,11 +59,12 @@ function getPaths(blockchains, isTestnet) {
56
59
  });
57
60
  }
58
61
  }
59
- if (blockchains.indexOf('eip155:1/slip44:118') >= 0) {
62
+ if (blockchains.indexOf('eip155:1/slip44:60') >= 0) {
60
63
  var entry = {
61
64
  note: " ETH primary (default)",
62
65
  symbol: 'ETH',
63
- network: 'eip155:1/slip44:118',
66
+ symbolSwapKit: 'ETH',
67
+ network: 'eip155:1/slip44:60',
64
68
  script_type: "ethereum",
65
69
  available_scripts_types: ['ethereum'],
66
70
  type: "address",
@@ -78,6 +82,7 @@ function getPaths(blockchains, isTestnet) {
78
82
  var entry = {
79
83
  note: " AVAX primary (default)",
80
84
  symbol: 'AVAX',
85
+ symbolSwapKit: 'AVAX',
81
86
  network: 'eip155:43114/slip44:60',
82
87
  script_type: "avalanche",
83
88
  available_scripts_types: ['avalanche'],
@@ -92,7 +97,7 @@ function getPaths(blockchains, isTestnet) {
92
97
  entry.testnet = true;
93
98
  output.push(entry);
94
99
  }
95
- if (blockchains.indexOf('cosmos:thorchain-mainnet-v1/slip44:931\'') >= 0) {
100
+ if (blockchains.indexOf('cosmos:thorchain-mainnet-v1/slip44:931') >= 0) {
96
101
  var entry = {
97
102
  note: " Default RUNE path ",
98
103
  type: "address",
@@ -103,6 +108,7 @@ function getPaths(blockchains, isTestnet) {
103
108
  showDisplay: false,
104
109
  blockchain: 'thorchain',
105
110
  symbol: 'RUNE',
111
+ symbolSwapKit: 'RUNE',
106
112
  network: 'cosmos:thorchain-mainnet-v1/slip44:931',
107
113
  };
108
114
  if (isTestnet) {
@@ -117,10 +123,11 @@ function getPaths(blockchains, isTestnet) {
117
123
  addressNList: [0x80000000 + 44, 0x80000000 + 931, 0x80000000 + 0, 0, 0],
118
124
  addressNListMaster: [0x80000000 + 44, 0x80000000 + 931, 0x80000000 + 0, 0, 0],
119
125
  curve: 'secp256k1',
120
- script_type: "thorchain",
126
+ script_type: "secret",
121
127
  showDisplay: false,
122
- blockchain: 'thorchain',
128
+ blockchain: 'secret',
123
129
  symbol: 'SCRT',
130
+ symbolSwapKit: 'SCRT',
124
131
  network: 'cosmos:secret-mainnet-v1/slip44:118',
125
132
  };
126
133
  if (isTestnet) {
@@ -140,6 +147,7 @@ function getPaths(blockchains, isTestnet) {
140
147
  showDisplay: false,
141
148
  blockchain: 'cosmos',
142
149
  symbol: 'ATOM',
150
+ symbolSwapKit: 'GAIA',
143
151
  network: 'cosmos:cosmoshub-4/slip44:118',
144
152
  };
145
153
  if (isTestnet) {
@@ -159,6 +167,7 @@ function getPaths(blockchains, isTestnet) {
159
167
  showDisplay: false,
160
168
  blockchain: 'osmosis',
161
169
  symbol: 'OSMO',
170
+ symbolSwapKit: 'OSMO',
162
171
  network: 'cosmos:osmosis-1/slip44:118',
163
172
  };
164
173
  if (isTestnet) {
@@ -178,6 +187,7 @@ function getPaths(blockchains, isTestnet) {
178
187
  showDisplay: false,
179
188
  blockchain: 'binance',
180
189
  symbol: 'BNB',
190
+ symbolSwapKit: 'BNB',
181
191
  network: 'binance:bnb-beacon-chain/slip44:118',
182
192
  };
183
193
  if (isTestnet) {
@@ -197,6 +207,7 @@ function getPaths(blockchains, isTestnet) {
197
207
  showDisplay: false,
198
208
  blockchain: 'bitcoincash',
199
209
  symbol: 'BCH',
210
+ symbolSwapKit: 'BCH',
200
211
  network: 'bip122:000000000000000000651ef99cb9fcbe/slip44:145',
201
212
  };
202
213
  if (isTestnet) {
@@ -216,6 +227,7 @@ function getPaths(blockchains, isTestnet) {
216
227
  showDisplay: false,
217
228
  blockchain: 'litecoin',
218
229
  symbol: 'LTC',
230
+ symbolSwapKit: 'LTC',
219
231
  network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
220
232
  };
221
233
  if (isTestnet) {
@@ -227,6 +239,7 @@ function getPaths(blockchains, isTestnet) {
227
239
  note: "Litecoin account Native Segwit (Bech32)",
228
240
  blockchain: 'litecoin',
229
241
  symbol: 'LTC',
242
+ symbolSwapKit: 'LTC',
230
243
  network: 'bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2',
231
244
  script_type: "p2wpkh",
232
245
  available_scripts_types: ['p2pkh', 'p2sh', 'p2wpkh', 'p2sh-p2wpkh'],
@@ -250,6 +263,7 @@ function getPaths(blockchains, isTestnet) {
250
263
  showDisplay: false,
251
264
  blockchain: 'dogecoin',
252
265
  symbol: 'DOGE',
266
+ symbolSwapKit: 'DOGE',
253
267
  network: 'bip122:00000000001a91e3dace36e2be3bf030/slip44:3',
254
268
  };
255
269
  if (isTestnet) {
@@ -263,6 +277,7 @@ function getPaths(blockchains, isTestnet) {
263
277
  type: "xpub",
264
278
  coin: 'Dash',
265
279
  symbol: 'DASH',
280
+ symbolSwapKit: 'DASH',
266
281
  network: 'bip122:dash-hash/slip44:5',
267
282
  blockchain: 'dash',
268
283
  script_type: "p2pkh",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-coins",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {