edge-currency-plugins 3.7.0 → 3.8.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/android/src/main/assets/edge-currency-plugins/edge-currency-plugins.js +47 -46
- package/lib/common/utxobased/info/all.js +3 -0
- package/lib/common/utxobased/info/ecash.js +95 -0
- package/lib/src/common/utxobased/info/all.d.ts +1 -0
- package/lib/src/common/utxobased/info/ecash.d.ts +3 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ var _dash = require('./dash'); _createNamedExportFrom(_dash, 'dash', 'info');
|
|
|
11
11
|
var _digibyte = require('./digibyte'); _createNamedExportFrom(_digibyte, 'digibyte', 'info');
|
|
12
12
|
var _dogecoin = require('./dogecoin'); _createNamedExportFrom(_dogecoin, 'dogecoin', 'info');
|
|
13
13
|
var _eboost = require('./eboost'); _createNamedExportFrom(_eboost, 'eboost', 'info');
|
|
14
|
+
var _ecash = require('./ecash'); _createNamedExportFrom(_ecash, 'ecash', 'info');
|
|
14
15
|
var _feathercoin = require('./feathercoin'); _createNamedExportFrom(_feathercoin, 'feathercoin', 'info');
|
|
15
16
|
var _groestlcoin = require('./groestlcoin'); _createNamedExportFrom(_groestlcoin, 'groestlcoin', 'info');
|
|
16
17
|
var _litecoin = require('./litecoin'); _createNamedExportFrom(_litecoin, 'litecoin', 'info');
|
|
@@ -44,6 +45,7 @@ var _zcoin = require('./zcoin'); _createNamedExportFrom(_zcoin, 'zcoin', 'info')
|
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
48
|
+
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
const all = [
|
|
@@ -60,6 +62,7 @@ var _zcoin = require('./zcoin'); _createNamedExportFrom(_zcoin, 'zcoin', 'info')
|
|
|
60
62
|
_digibyte.info,
|
|
61
63
|
_dogecoin.info,
|
|
62
64
|
_eboost.info,
|
|
65
|
+
_ecash.info,
|
|
63
66
|
_feathercoin.info,
|
|
64
67
|
_groestlcoin.info,
|
|
65
68
|
_litecoin.info,
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _altcoinjs = require('altcoin-js');
|
|
2
|
+
var _cleaners = require('cleaners');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _commonInfo = require('./commonInfo');
|
|
12
|
+
|
|
13
|
+
const currencyInfo = {
|
|
14
|
+
assetDisplayName: 'eCash',
|
|
15
|
+
chainDisplayName: 'eCash',
|
|
16
|
+
currencyCode: 'XEC',
|
|
17
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
18
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
19
|
+
pluginId: 'ecash',
|
|
20
|
+
walletType: 'wallet:ecash',
|
|
21
|
+
|
|
22
|
+
// Explorers:
|
|
23
|
+
blockExplorer: 'https://blockchair.com/ecash/block/%s',
|
|
24
|
+
addressExplorer: 'https://explorer.e.cash/address/ecash:%s',
|
|
25
|
+
transactionExplorer: 'https://explorer.e.cash/tx/%s',
|
|
26
|
+
|
|
27
|
+
denominations: [
|
|
28
|
+
{ name: 'XEC', multiplier: '100', symbol: 'e' },
|
|
29
|
+
{ name: 'sats', multiplier: '1', symbol: 's' }
|
|
30
|
+
],
|
|
31
|
+
// Deprecated:
|
|
32
|
+
..._commonInfo.legacyMemoInfo,
|
|
33
|
+
defaultSettings: {
|
|
34
|
+
customFeeSettings: ['satPerByte'],
|
|
35
|
+
blockbookServers: ['wss://blockbook.fabien.cash/websocket'],
|
|
36
|
+
enableCustomServers: false
|
|
37
|
+
},
|
|
38
|
+
displayName: 'eCash',
|
|
39
|
+
metaTokens: []
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const engineInfo = {
|
|
43
|
+
serverConfigs: [
|
|
44
|
+
{
|
|
45
|
+
type: 'blockbook-nownode',
|
|
46
|
+
uris: ['https://xec-blockbook.nownodes.io']
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
formats: ['bip44', 'bip32'],
|
|
50
|
+
gapLimit: 10,
|
|
51
|
+
feeUpdateInterval: 60000,
|
|
52
|
+
defaultFeeInfo: {
|
|
53
|
+
lowFeeFudgeFactor: '1',
|
|
54
|
+
standardFeeLowFudgeFactor: '1',
|
|
55
|
+
standardFeeHighFudgeFactor: '1',
|
|
56
|
+
highFeeFudgeFactor: '1',
|
|
57
|
+
|
|
58
|
+
highFee: '20',
|
|
59
|
+
lowFee: '1',
|
|
60
|
+
standardFeeLow: '2',
|
|
61
|
+
standardFeeHigh: '20',
|
|
62
|
+
standardFeeLowAmount: '400000000',
|
|
63
|
+
standardFeeHighAmount: '650000000',
|
|
64
|
+
maximumFeeRate: _maximumFeeRateCalculator.maximumFeeRateCalculator.call(void 0, currencyInfo, 0.00003)
|
|
65
|
+
},
|
|
66
|
+
asBlockbookAddress: _cleaners.asCodec.call(void 0,
|
|
67
|
+
raw => {
|
|
68
|
+
return _cleaners.asString.call(void 0, raw).split(':')[1]
|
|
69
|
+
},
|
|
70
|
+
address => `ecash:${address}`
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const coinInfo = {
|
|
75
|
+
name: 'ecash',
|
|
76
|
+
segwit: false,
|
|
77
|
+
sighash: _altcoinjs.Psbt.BCH_SIGHASH_ALL,
|
|
78
|
+
coinType: 899,
|
|
79
|
+
|
|
80
|
+
prefixes: {
|
|
81
|
+
messagePrefix: ['\x18Bitcoin Signed Message::\n'],
|
|
82
|
+
wif: [0x80],
|
|
83
|
+
legacyXPriv: [0x0488ade4],
|
|
84
|
+
legacyXPub: [0x0488b21e],
|
|
85
|
+
pubkeyHash: [0x00],
|
|
86
|
+
scriptHash: [0x05],
|
|
87
|
+
cashaddr: ['ecash']
|
|
88
|
+
}
|
|
89
|
+
}; exports.coinInfo = coinInfo
|
|
90
|
+
|
|
91
|
+
const info = {
|
|
92
|
+
currencyInfo,
|
|
93
|
+
engineInfo,
|
|
94
|
+
coinInfo: exports.coinInfo
|
|
95
|
+
}; exports.info = info
|
|
@@ -11,6 +11,7 @@ export { info as dash } from './dash';
|
|
|
11
11
|
export { info as digibyte } from './digibyte';
|
|
12
12
|
export { info as dogecoin } from './dogecoin';
|
|
13
13
|
export { info as eboost } from './eboost';
|
|
14
|
+
export { info as ecash } from './ecash';
|
|
14
15
|
export { info as feathercoin } from './feathercoin';
|
|
15
16
|
export { info as groestlcoin } from './groestlcoin';
|
|
16
17
|
export { info as litecoin } from './litecoin';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"homepage": "https://edge.app/",
|
|
6
6
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|