edge-currency-plugins 2.6.0 → 2.6.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.
- package/lib/common/utxobased/db/Processor.js +60 -26
- package/lib/common/utxobased/info/badcoin.js +16 -19
- package/lib/common/utxobased/info/bitcoin.js +21 -24
- package/lib/common/utxobased/info/bitcoincash.js +21 -24
- package/lib/common/utxobased/info/bitcoincashtestnet.js +20 -15
- package/lib/common/utxobased/info/bitcoingold.js +16 -19
- package/lib/common/utxobased/info/bitcoingoldtestnet.js +16 -11
- package/lib/common/utxobased/info/bitcoinsv.js +20 -23
- package/lib/common/utxobased/info/bitcointestnet.js +21 -24
- package/lib/common/utxobased/info/commonInfo.js +20 -11
- package/lib/common/utxobased/info/dash.js +17 -20
- package/lib/common/utxobased/info/digibyte.js +16 -19
- package/lib/common/utxobased/info/dogecoin.js +17 -20
- package/lib/common/utxobased/info/eboost.js +16 -19
- package/lib/common/utxobased/info/feathercoin.js +19 -22
- package/lib/common/utxobased/info/groestlcoin.js +18 -21
- package/lib/common/utxobased/info/litecoin.js +21 -24
- package/lib/common/utxobased/info/qtum.js +16 -19
- package/lib/common/utxobased/info/ravencoin.js +16 -19
- package/lib/common/utxobased/info/smartcash.js +16 -19
- package/lib/common/utxobased/info/ufo.js +16 -19
- package/lib/common/utxobased/info/vertcoin.js +16 -19
- package/lib/common/utxobased/info/zcoin.js +19 -22
- package/lib/src/common/utxobased/info/commonInfo.d.ts +4 -2
- package/package.json +3 -3
|
@@ -2,19 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
var _commonInfo = require('./commonInfo');
|
|
6
10
|
|
|
7
11
|
const currencyInfo = {
|
|
8
|
-
pluginId: 'vertcoin',
|
|
9
|
-
walletType: 'wallet:vertcoin',
|
|
10
12
|
currencyCode: 'VTC',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
11
14
|
displayName: 'Vertcoin',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
|
+
pluginId: 'vertcoin',
|
|
17
|
+
walletType: 'wallet:vertcoin',
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
addressExplorer: 'https://insight.vertcoin.org/address/%s',
|
|
21
|
+
blockExplorer: 'https://insight.vertcoin.org/block/%s',
|
|
22
|
+
transactionExplorer: 'https://insight.vertcoin.org/tx/%s',
|
|
23
|
+
|
|
12
24
|
denominations: [
|
|
13
25
|
{ name: 'VTC', multiplier: '100000000', symbol: 'V' },
|
|
14
26
|
{ name: 'mVTC', multiplier: '100000', symbol: 'mV' }
|
|
15
27
|
],
|
|
16
28
|
|
|
17
|
-
//
|
|
29
|
+
// Deprecated:
|
|
30
|
+
..._commonInfo.legacyMemoInfo,
|
|
18
31
|
defaultSettings: {
|
|
19
32
|
customFeeSettings: ['satPerByte'],
|
|
20
33
|
blockbookServers: [
|
|
@@ -26,22 +39,6 @@ const currencyInfo = {
|
|
|
26
39
|
],
|
|
27
40
|
enableCustomServers: false
|
|
28
41
|
},
|
|
29
|
-
customFeeTemplate: [
|
|
30
|
-
{
|
|
31
|
-
type: 'nativeAmount',
|
|
32
|
-
key: 'satPerByte',
|
|
33
|
-
displayName: 'Satoshis Per Byte',
|
|
34
|
-
displayMultiplier: '0'
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
..._commonInfo.memoInfo,
|
|
38
|
-
|
|
39
|
-
// Explorers:
|
|
40
|
-
addressExplorer: 'https://insight.vertcoin.org/address/%s',
|
|
41
|
-
blockExplorer: 'https://insight.vertcoin.org/block/%s',
|
|
42
|
-
transactionExplorer: 'https://insight.vertcoin.org/tx/%s',
|
|
43
|
-
|
|
44
|
-
// Deprecated:
|
|
45
42
|
metaTokens: []
|
|
46
43
|
}
|
|
47
44
|
|
|
@@ -3,33 +3,19 @@
|
|
|
3
3
|
var _constants = require('../../constants');
|
|
4
4
|
|
|
5
5
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
6
10
|
var _commonInfo = require('./commonInfo');
|
|
7
11
|
|
|
8
12
|
const currencyInfo = {
|
|
13
|
+
currencyCode: 'FIRO',
|
|
14
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
|
+
displayName: 'Firo',
|
|
16
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
9
17
|
pluginId: 'zcoin',
|
|
10
18
|
walletType: 'wallet:zcoin',
|
|
11
|
-
displayName: 'Firo',
|
|
12
|
-
currencyCode: 'FIRO',
|
|
13
|
-
denominations: [
|
|
14
|
-
{ name: 'FIRO', multiplier: '100000000', symbol: 'ƒ' },
|
|
15
|
-
{ name: 'mFIRO', multiplier: '100000', symbol: 'mƒ' }
|
|
16
|
-
],
|
|
17
|
-
|
|
18
|
-
// Configuration options:
|
|
19
|
-
defaultSettings: {
|
|
20
|
-
customFeeSettings: ['satPerByte'],
|
|
21
|
-
blockbookServers: ['wss://blockbook.firo.org'],
|
|
22
|
-
enableCustomServers: false
|
|
23
|
-
},
|
|
24
|
-
customFeeTemplate: [
|
|
25
|
-
{
|
|
26
|
-
type: 'nativeAmount',
|
|
27
|
-
key: 'satPerByte',
|
|
28
|
-
displayName: 'Satoshis Per Byte',
|
|
29
|
-
displayMultiplier: '0'
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
..._commonInfo.memoInfo,
|
|
33
19
|
|
|
34
20
|
// Explorers:
|
|
35
21
|
addressExplorer: 'https://insight.zcoin.io/address/%s',
|
|
@@ -40,7 +26,18 @@ var _commonInfo = require('./commonInfo');
|
|
|
40
26
|
symbolImage: `${_constants.IMAGE_SERVER_URL}/zcoin-logo-solo-64.png`,
|
|
41
27
|
symbolImageDarkMono: `${_constants.IMAGE_SERVER_URL}/zcoin-logo-solo-64.png`,
|
|
42
28
|
|
|
29
|
+
denominations: [
|
|
30
|
+
{ name: 'FIRO', multiplier: '100000000', symbol: 'ƒ' },
|
|
31
|
+
{ name: 'mFIRO', multiplier: '100000', symbol: 'mƒ' }
|
|
32
|
+
],
|
|
33
|
+
|
|
43
34
|
// Deprecated:
|
|
35
|
+
..._commonInfo.legacyMemoInfo,
|
|
36
|
+
defaultSettings: {
|
|
37
|
+
customFeeSettings: ['satPerByte'],
|
|
38
|
+
blockbookServers: ['wss://blockbook.firo.org'],
|
|
39
|
+
enableCustomServers: false
|
|
40
|
+
},
|
|
44
41
|
metaTokens: []
|
|
45
42
|
}; exports.currencyInfo = currencyInfo
|
|
46
43
|
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { EdgeCurrencyInfo } from 'edge-core-js/types';
|
|
2
|
-
export declare const
|
|
1
|
+
import { EdgeCurrencyInfo, EdgeMemoOption } from 'edge-core-js/types';
|
|
2
|
+
export declare const utxoCustomFeeTemplate: EdgeCurrencyInfo['customFeeTemplate'];
|
|
3
|
+
export declare const utxoMemoOptions: EdgeMemoOption[];
|
|
4
|
+
export declare const legacyMemoInfo: Partial<EdgeCurrencyInfo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@bitcoin-js/tiny-secp256k1-asmjs": "^2.2.3",
|
|
37
37
|
"altcoin-js": "^1.0.0",
|
|
38
38
|
"async-mutex": "^0.2.6",
|
|
39
|
-
"baselet": "^0.
|
|
39
|
+
"baselet": "^0.3.0",
|
|
40
40
|
"biggystring": "^4.1.3",
|
|
41
41
|
"bip32": "^2.0.5",
|
|
42
42
|
"bip32grs": "^2.0.5",
|
|
@@ -107,4 +107,4 @@
|
|
|
107
107
|
"typescript": "^4.1.2",
|
|
108
108
|
"wif": "^2.0.6"
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
}
|