edge-currency-plugins 3.4.5 → 3.5.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.
- package/android/src/main/assets/edge-currency-plugins/edge-currency-plugins.js +50 -48
- package/lib/common/plugin/CurrencyPlugin.js +23 -11
- package/lib/common/plugin/EngineEmitter.js +27 -3
- package/lib/common/plugin/PluginState.js +31 -38
- package/lib/common/plugin/ServerScores.js +7 -0
- package/lib/common/plugin/types.js +5 -3
- package/lib/common/utxobased/db/Models/TransactionData.js +6 -0
- package/lib/common/utxobased/engine/UtxoEngine.js +55 -35
- package/lib/common/utxobased/engine/UtxoEngineProcessor.js +91 -43
- package/lib/common/utxobased/info/badcoin.js +3 -1
- package/lib/common/utxobased/info/bitcoin.js +3 -1
- package/lib/common/utxobased/info/bitcoincash.js +3 -1
- package/lib/common/utxobased/info/bitcoincashtestnet.js +3 -1
- package/lib/common/utxobased/info/bitcoingold.js +3 -1
- package/lib/common/utxobased/info/bitcoingoldtestnet.js +3 -1
- package/lib/common/utxobased/info/bitcoinsv.js +3 -1
- package/lib/common/utxobased/info/bitcointestnet.js +3 -1
- package/lib/common/utxobased/info/dash.js +3 -1
- package/lib/common/utxobased/info/digibyte.js +3 -1
- package/lib/common/utxobased/info/dogecoin.js +3 -1
- package/lib/common/utxobased/info/eboost.js +3 -1
- package/lib/common/utxobased/info/feathercoin.js +3 -1
- package/lib/common/utxobased/info/groestlcoin.js +3 -1
- package/lib/common/utxobased/info/litecoin.js +3 -1
- package/lib/common/utxobased/info/qtum.js +3 -1
- package/lib/common/utxobased/info/ravencoin.js +3 -1
- package/lib/common/utxobased/info/smartcash.js +3 -1
- package/lib/common/utxobased/info/ufo.js +3 -1
- package/lib/common/utxobased/info/vertcoin.js +3 -1
- package/lib/common/utxobased/info/zcoin.js +4 -2
- package/lib/common/utxobased/network/blockbookApi.js +1 -1
- package/lib/src/common/plugin/EngineEmitter.d.ts +6 -3
- package/lib/src/common/plugin/PluginState.d.ts +7 -4
- package/lib/src/common/plugin/ServerScores.d.ts +1 -0
- package/lib/src/common/plugin/types.d.ts +8 -4
- package/lib/src/common/utxobased/engine/UtxoEngineProcessor.d.ts +6 -10
- package/package.json +2 -2
- package/lib/bch.js +0 -15
- package/lib/bsv.js +0 -15
- package/lib/btc.js +0 -15
- package/lib/firo.js +0 -15
- package/lib/ftc.js +0 -15
- package/lib/ltc.js +0 -15
- package/lib/src/bch.d.ts +0 -3
- package/lib/src/bsv.d.ts +0 -3
- package/lib/src/btc.d.ts +0 -3
- package/lib/src/firo.d.ts +0 -3
- package/lib/src/ftc.d.ts +0 -3
- package/lib/src/ltc.d.ts +0 -3
- package/lib/src/tbch.d.ts +0 -3
- package/lib/src/tbtc.d.ts +0 -3
- package/lib/src/tbtg.d.ts +0 -3
- package/lib/tbch.js +0 -15
- package/lib/tbtc.js +0 -15
- package/lib/tbtg.js +0 -15
|
@@ -83,22 +83,25 @@ var _utils3 = require('./utils');
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
+
|
|
86
87
|
|
|
87
88
|
|
|
88
89
|
function makeUtxoEngineProcessor(
|
|
89
90
|
config
|
|
90
91
|
) {
|
|
91
92
|
const {
|
|
93
|
+
dataLayer,
|
|
92
94
|
initOptions,
|
|
93
95
|
io,
|
|
94
|
-
|
|
96
|
+
emitter,
|
|
97
|
+
engineOptions,
|
|
95
98
|
pluginState,
|
|
96
99
|
pluginInfo,
|
|
97
|
-
|
|
100
|
+
seenTxCheckpoint,
|
|
98
101
|
walletInfo,
|
|
99
102
|
walletTools
|
|
100
103
|
} = config
|
|
101
|
-
const {
|
|
104
|
+
const { log } = engineOptions
|
|
102
105
|
|
|
103
106
|
const { walletFormats } = walletInfo.keys
|
|
104
107
|
|
|
@@ -169,6 +172,27 @@ var _utils3 = require('./utils');
|
|
|
169
172
|
}
|
|
170
173
|
}
|
|
171
174
|
|
|
175
|
+
const updateSeenTxCheckpoint = () => {
|
|
176
|
+
// Only update the seenTxCheckpoint if the wallet is fully synced.
|
|
177
|
+
// This ensure that initial syncs without a defined seenTxCheckpoint,
|
|
178
|
+
// will not incorrectly update the seenTxCheckpoint in the middle of an
|
|
179
|
+
// initial sync.
|
|
180
|
+
if (processedPercent < 1) return
|
|
181
|
+
|
|
182
|
+
const seenTxCheckpoint = common.seenTxCheckpoint()
|
|
183
|
+
const seenTxBlockHeight =
|
|
184
|
+
seenTxCheckpoint != null ? parseInt(seenTxCheckpoint) : undefined
|
|
185
|
+
|
|
186
|
+
// Update the seenTxCheckpoint
|
|
187
|
+
if (
|
|
188
|
+
seenTxBlockHeight == null ||
|
|
189
|
+
common.maxSeenTxBlockHeight > seenTxBlockHeight
|
|
190
|
+
) {
|
|
191
|
+
const newSeenTxCheckpoint = common.maxSeenTxBlockHeight.toString()
|
|
192
|
+
common.emitter.emit(_EngineEmitter.EngineEvent.SEEN_TX_CHECKPOINT, newSeenTxCheckpoint)
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
172
196
|
const lock = new (0, _awaitlock2.default)()
|
|
173
197
|
|
|
174
198
|
const serverStates = _ServerStates.makeServerStates.call(void 0, {
|
|
@@ -188,8 +212,11 @@ var _utils3 = require('./utils');
|
|
|
188
212
|
emitter,
|
|
189
213
|
taskCache,
|
|
190
214
|
updateProgressRatio,
|
|
215
|
+
updateSeenTxCheckpoint,
|
|
191
216
|
io,
|
|
192
217
|
log,
|
|
218
|
+
maxSeenTxBlockHeight: 0,
|
|
219
|
+
seenTxCheckpoint,
|
|
193
220
|
serverStates,
|
|
194
221
|
walletFormats,
|
|
195
222
|
lock
|
|
@@ -211,12 +238,16 @@ var _utils3 = require('./utils');
|
|
|
211
238
|
emitter.on(
|
|
212
239
|
_EngineEmitter.EngineEvent.BLOCK_HEIGHT_CHANGED,
|
|
213
240
|
async (_uri, _blockHeight) => {
|
|
241
|
+
// Add all unconfirmed transactions to the cache to check if these
|
|
242
|
+
// transactions have been confirmed:
|
|
214
243
|
const txs = await dataLayer.fetchTransactions({
|
|
215
244
|
blockHeight: 0
|
|
216
245
|
})
|
|
217
246
|
for (const tx of txs) {
|
|
218
247
|
if (tx == null) continue
|
|
219
|
-
taskCache.transactionUpdateCache[tx.txid] = {
|
|
248
|
+
taskCache.transactionUpdateCache[tx.txid] = {
|
|
249
|
+
processing: false
|
|
250
|
+
}
|
|
220
251
|
}
|
|
221
252
|
}
|
|
222
253
|
)
|
|
@@ -649,6 +680,9 @@ const internalGetFreshAddress = async (
|
|
|
649
680
|
|
|
650
681
|
|
|
651
682
|
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
652
686
|
|
|
653
687
|
|
|
654
688
|
|
|
@@ -764,26 +798,6 @@ const addToAddressForTransactionsCache = async (
|
|
|
764
798
|
}
|
|
765
799
|
}
|
|
766
800
|
|
|
767
|
-
const transactionChanged = async (args
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
) => {
|
|
775
|
-
const { dataLayer, emitter, pluginInfo, tx, walletTools, walletId } = args
|
|
776
|
-
emitter.emit(_EngineEmitter.EngineEvent.TRANSACTIONS_CHANGED, [
|
|
777
|
-
await _TransactionData.toEdgeTransaction.call(void 0, {
|
|
778
|
-
walletId,
|
|
779
|
-
tx,
|
|
780
|
-
walletTools,
|
|
781
|
-
dataLayer,
|
|
782
|
-
pluginInfo
|
|
783
|
-
})
|
|
784
|
-
])
|
|
785
|
-
}; exports.transactionChanged = transactionChanged
|
|
786
|
-
|
|
787
801
|
/**
|
|
788
802
|
* Some currencies require an additional blockbook payload 'getTransactionSpecific' in order
|
|
789
803
|
* to provide all relevant transaction data. Since this is currency-specific, we can limit
|
|
@@ -975,7 +989,7 @@ const needsTxSpecific = (common) => {
|
|
|
975
989
|
hasProcessedAtLeastOnce = true
|
|
976
990
|
cacheItem.processing = true
|
|
977
991
|
_utils.removeItem.call(void 0, transactionUpdateCache, txId)
|
|
978
|
-
yield*
|
|
992
|
+
yield* processCheckTransactionConfirmation(common, {
|
|
979
993
|
serverState,
|
|
980
994
|
serverUri,
|
|
981
995
|
txId
|
|
@@ -1046,14 +1060,16 @@ async function* processTransactionsSpecificUpdate(
|
|
|
1046
1060
|
tx
|
|
1047
1061
|
})
|
|
1048
1062
|
|
|
1049
|
-
await
|
|
1050
|
-
walletId: common.walletInfo.id,
|
|
1051
|
-
emitter: common.emitter,
|
|
1052
|
-
walletTools: common.walletTools,
|
|
1063
|
+
const edgeTx = await _TransactionData.toEdgeTransaction.call(void 0, {
|
|
1053
1064
|
dataLayer: common.dataLayer,
|
|
1054
1065
|
pluginInfo: common.pluginInfo,
|
|
1055
|
-
tx: processedTx
|
|
1066
|
+
tx: processedTx,
|
|
1067
|
+
walletId: common.walletInfo.id,
|
|
1068
|
+
walletTools: common.walletTools
|
|
1056
1069
|
})
|
|
1070
|
+
common.emitter.emit(_EngineEmitter.EngineEvent.TRANSACTIONS, [
|
|
1071
|
+
{ isNew: false, transaction: edgeTx }
|
|
1072
|
+
])
|
|
1057
1073
|
|
|
1058
1074
|
// Add the txid to the server cache
|
|
1059
1075
|
serverState.txids.add(txId)
|
|
@@ -1070,10 +1086,12 @@ async function* processTransactionsSpecificUpdate(
|
|
|
1070
1086
|
}
|
|
1071
1087
|
|
|
1072
1088
|
/**
|
|
1073
|
-
* Processes
|
|
1089
|
+
* Processes an item from transactionUpdateCache by querying
|
|
1074
1090
|
* the network for the transaction data and processing it into the DataLayer.
|
|
1091
|
+
* It updates the transaction and all of the transaction's UTXO with the
|
|
1092
|
+
* blockHeight received from the network.
|
|
1075
1093
|
*/
|
|
1076
|
-
async function*
|
|
1094
|
+
async function* processCheckTransactionConfirmation(
|
|
1077
1095
|
common,
|
|
1078
1096
|
args
|
|
1079
1097
|
|
|
@@ -1111,14 +1129,16 @@ async function* processTransactionUpdate(
|
|
|
1111
1129
|
tx
|
|
1112
1130
|
})
|
|
1113
1131
|
|
|
1114
|
-
await
|
|
1115
|
-
walletId: common.walletInfo.id,
|
|
1116
|
-
emitter: common.emitter,
|
|
1117
|
-
walletTools: common.walletTools,
|
|
1132
|
+
const edgeTx = await _TransactionData.toEdgeTransaction.call(void 0, {
|
|
1118
1133
|
dataLayer: common.dataLayer,
|
|
1119
1134
|
pluginInfo: common.pluginInfo,
|
|
1120
|
-
tx: processedTx
|
|
1135
|
+
tx: processedTx,
|
|
1136
|
+
walletId: common.walletInfo.id,
|
|
1137
|
+
walletTools: common.walletTools
|
|
1121
1138
|
})
|
|
1139
|
+
common.emitter.emit(_EngineEmitter.EngineEvent.TRANSACTIONS, [
|
|
1140
|
+
{ isNew: false, transaction: edgeTx }
|
|
1141
|
+
])
|
|
1122
1142
|
|
|
1123
1143
|
if (needsTxSpecific(common)) {
|
|
1124
1144
|
// Add task to grab transactionSpecific payload
|
|
@@ -1134,7 +1154,9 @@ async function* processTransactionUpdate(
|
|
|
1134
1154
|
} catch (err) {
|
|
1135
1155
|
console.error(err)
|
|
1136
1156
|
common.log('error while processing transaction update:', err)
|
|
1137
|
-
common.taskCache.transactionUpdateCache[txId] = {
|
|
1157
|
+
common.taskCache.transactionUpdateCache[txId] = {
|
|
1158
|
+
processing: false
|
|
1159
|
+
}
|
|
1138
1160
|
return false
|
|
1139
1161
|
}
|
|
1140
1162
|
}
|
|
@@ -1185,22 +1207,45 @@ async function* processAddressForTransactions(
|
|
|
1185
1207
|
addressData.used = true
|
|
1186
1208
|
}
|
|
1187
1209
|
|
|
1210
|
+
const seenTxCheckpoint = common.seenTxCheckpoint()
|
|
1211
|
+
const seenTxBlockHeight =
|
|
1212
|
+
seenTxCheckpoint != null ? parseInt(seenTxCheckpoint) : undefined
|
|
1213
|
+
|
|
1188
1214
|
// Process and save the address's transactions
|
|
1189
1215
|
for (const txResponse of transactions) {
|
|
1216
|
+
const [existingTx] = await common.dataLayer.fetchTransactions({
|
|
1217
|
+
txId: txResponse.txid
|
|
1218
|
+
})
|
|
1219
|
+
|
|
1190
1220
|
const tx = processTransactionResponse(common, { txResponse })
|
|
1191
1221
|
const processedTx = await common.dataLayer.saveTransaction({
|
|
1192
1222
|
tx,
|
|
1193
1223
|
scriptPubkeys: [scriptPubkey]
|
|
1194
1224
|
})
|
|
1195
|
-
await
|
|
1196
|
-
walletId: common.walletInfo.id,
|
|
1197
|
-
emitter: common.emitter,
|
|
1198
|
-
walletTools: common.walletTools,
|
|
1225
|
+
const edgeTx = await _TransactionData.toEdgeTransaction.call(void 0, {
|
|
1199
1226
|
dataLayer: common.dataLayer,
|
|
1200
1227
|
pluginInfo: common.pluginInfo,
|
|
1201
|
-
tx: processedTx
|
|
1228
|
+
tx: processedTx,
|
|
1229
|
+
walletId: common.walletInfo.id,
|
|
1230
|
+
walletTools: common.walletTools
|
|
1202
1231
|
})
|
|
1203
1232
|
|
|
1233
|
+
// Keep track of transactions which are determined to be unseen:
|
|
1234
|
+
const isNew =
|
|
1235
|
+
seenTxBlockHeight != null &&
|
|
1236
|
+
// Unseen in the DataLayer
|
|
1237
|
+
existingTx == null &&
|
|
1238
|
+
// The tx unconfirmed or confirmed after/at the last seenTxCheckpoint
|
|
1239
|
+
(tx.blockHeight === 0 || tx.blockHeight > seenTxBlockHeight)
|
|
1240
|
+
|
|
1241
|
+
common.emitter.emit(_EngineEmitter.EngineEvent.TRANSACTIONS, [
|
|
1242
|
+
{ isNew, transaction: edgeTx }
|
|
1243
|
+
])
|
|
1244
|
+
|
|
1245
|
+
if (edgeTx.blockHeight > common.maxSeenTxBlockHeight) {
|
|
1246
|
+
common.maxSeenTxBlockHeight = edgeTx.blockHeight
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1204
1249
|
if (needsTxSpecific(common)) {
|
|
1205
1250
|
// Add task to grab transactionSpecific payload
|
|
1206
1251
|
common.taskCache.transactionSpecificUpdateCache[tx.txid] = {
|
|
@@ -1209,6 +1254,9 @@ async function* processAddressForTransactions(
|
|
|
1209
1254
|
}
|
|
1210
1255
|
}
|
|
1211
1256
|
|
|
1257
|
+
// Make sure to update the seenTxCheckpoint after processing the transactions
|
|
1258
|
+
common.updateSeenTxCheckpoint()
|
|
1259
|
+
|
|
1212
1260
|
// Halt on finishing the processing of address transaction until
|
|
1213
1261
|
// we have progressed through all of the blockbook pages
|
|
1214
1262
|
if (page < totalPages) {
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
var _commonInfo = require('./commonInfo');
|
|
9
9
|
|
|
10
10
|
const currencyInfo = {
|
|
11
|
+
assetDisplayName: 'Badcoin',
|
|
12
|
+
chainDisplayName: 'Badcoin',
|
|
11
13
|
currencyCode: 'BAD',
|
|
12
14
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
13
|
-
displayName: 'Badcoin',
|
|
14
15
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
15
16
|
pluginId: 'badcoin',
|
|
16
17
|
walletType: 'wallet:badcoin',
|
|
@@ -32,6 +33,7 @@ const currencyInfo = {
|
|
|
32
33
|
blockbookServers: [],
|
|
33
34
|
enableCustomServers: false
|
|
34
35
|
},
|
|
36
|
+
displayName: 'Badcoin',
|
|
35
37
|
metaTokens: []
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -9,10 +9,11 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Bitcoin',
|
|
12
13
|
canReplaceByFee: true,
|
|
14
|
+
chainDisplayName: 'Bitcoin',
|
|
13
15
|
currencyCode: 'BTC',
|
|
14
16
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
|
-
displayName: 'Bitcoin',
|
|
16
17
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
18
|
pluginId: 'bitcoin',
|
|
18
19
|
walletType: 'wallet:bitcoin',
|
|
@@ -44,6 +45,7 @@ const currencyInfo = {
|
|
|
44
45
|
],
|
|
45
46
|
enableCustomServers: false
|
|
46
47
|
},
|
|
48
|
+
displayName: 'Bitcoin',
|
|
47
49
|
metaTokens: []
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -12,9 +12,10 @@ var _commonInfo = require('./commonInfo');
|
|
|
12
12
|
var _bitcoincashScriptTemplates = require('./scriptTemplates/bitcoincashScriptTemplates');
|
|
13
13
|
|
|
14
14
|
const currencyInfo = {
|
|
15
|
+
assetDisplayName: 'Bitcoin Cash',
|
|
16
|
+
chainDisplayName: 'Bitcoin Cash',
|
|
15
17
|
currencyCode: 'BCH',
|
|
16
18
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
17
|
-
displayName: 'Bitcoin Cash',
|
|
18
19
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
19
20
|
pluginId: 'bitcoincash',
|
|
20
21
|
walletType: 'wallet:bitcoincash',
|
|
@@ -45,6 +46,7 @@ const currencyInfo = {
|
|
|
45
46
|
],
|
|
46
47
|
enableCustomServers: false
|
|
47
48
|
},
|
|
49
|
+
displayName: 'Bitcoin Cash',
|
|
48
50
|
metaTokens: []
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -10,8 +10,9 @@ var _commonInfo = require('./commonInfo');
|
|
|
10
10
|
var _bitcoincashScriptTemplates = require('./scriptTemplates/bitcoincashScriptTemplates');
|
|
11
11
|
|
|
12
12
|
const currencyInfo = {
|
|
13
|
+
assetDisplayName: 'Bitcoin Cash Testnet',
|
|
14
|
+
chainDisplayName: 'Bitcoin Cash Testnet',
|
|
13
15
|
currencyCode: 'TBCH',
|
|
14
|
-
displayName: 'Bitcoin Cash',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
17
18
|
pluginId: 'bitcoincashtestnet',
|
|
@@ -36,6 +37,7 @@ const currencyInfo = {
|
|
|
36
37
|
blockbookServers: [],
|
|
37
38
|
enableCustomServers: false
|
|
38
39
|
},
|
|
40
|
+
displayName: 'Bitcoin Cash',
|
|
39
41
|
metaTokens: []
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -10,9 +10,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
10
10
|
var _commonInfo = require('./commonInfo');
|
|
11
11
|
|
|
12
12
|
const currencyInfo = {
|
|
13
|
+
assetDisplayName: 'Bitcoin Gold',
|
|
14
|
+
chainDisplayName: 'Bitcoin Gold',
|
|
13
15
|
currencyCode: 'BTG',
|
|
14
16
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
|
-
displayName: 'Bitcoin Gold',
|
|
16
17
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
18
|
pluginId: 'bitcoingold',
|
|
18
19
|
walletType: 'wallet:bitcoingold',
|
|
@@ -41,6 +42,7 @@ const currencyInfo = {
|
|
|
41
42
|
],
|
|
42
43
|
enableCustomServers: false
|
|
43
44
|
},
|
|
45
|
+
displayName: 'Bitcoin Gold',
|
|
44
46
|
metaTokens: []
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Bitcoin Gold Testnet',
|
|
13
|
+
chainDisplayName: 'Bitcoin Gold Testnet',
|
|
12
14
|
currencyCode: 'TBTG',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Bitcoin Gold',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'bitcoingoldtestnet',
|
|
17
18
|
walletType: 'wallet:bitcoingoldtestnet',
|
|
@@ -34,6 +35,7 @@ const currencyInfo = {
|
|
|
34
35
|
blockbookServers: [],
|
|
35
36
|
enableCustomServers: false
|
|
36
37
|
},
|
|
38
|
+
displayName: 'Bitcoin Gold Testnet',
|
|
37
39
|
metaTokens: []
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -16,9 +16,10 @@ var _keymanager = require('../keymanager/keymanager');
|
|
|
16
16
|
var _commonInfo = require('./commonInfo');
|
|
17
17
|
|
|
18
18
|
const currencyInfo = {
|
|
19
|
+
assetDisplayName: 'Bitcoin SV',
|
|
20
|
+
chainDisplayName: 'Bitcoin SV',
|
|
19
21
|
currencyCode: 'BSV',
|
|
20
22
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
21
|
-
displayName: 'Bitcoin SV',
|
|
22
23
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
23
24
|
pluginId: 'bitcoinsv',
|
|
24
25
|
walletType: 'wallet:bitcoinsv',
|
|
@@ -41,6 +42,7 @@ const currencyInfo = {
|
|
|
41
42
|
blockbookServers: ['wss://blockbook.siftbitcoin.com:9146'],
|
|
42
43
|
enableCustomServers: false
|
|
43
44
|
},
|
|
45
|
+
displayName: 'Bitcoin SV',
|
|
44
46
|
metaTokens: []
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
var _commonInfo = require('./commonInfo');
|
|
9
9
|
|
|
10
10
|
const currencyInfo = {
|
|
11
|
+
assetDisplayName: 'Bitcoin Testnet',
|
|
12
|
+
chainDisplayName: 'Bitcoin Testnet',
|
|
11
13
|
canReplaceByFee: true,
|
|
12
14
|
currencyCode: 'TESTBTC',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Bitcoin Testnet',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'bitcointestnet',
|
|
17
18
|
walletType: 'wallet:bitcointestnet',
|
|
@@ -35,6 +36,7 @@ var _commonInfo = require('./commonInfo');
|
|
|
35
36
|
blockbookServers: ['wss://tbtc1.trezor.io', 'wss://tbtc2.trezor.io'],
|
|
36
37
|
enableCustomServers: false
|
|
37
38
|
},
|
|
39
|
+
displayName: 'Bitcoin Testnet',
|
|
38
40
|
metaTokens: []
|
|
39
41
|
}; exports.currencyInfo = currencyInfo
|
|
40
42
|
|
|
@@ -11,9 +11,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
11
11
|
var _commonInfo = require('./commonInfo');
|
|
12
12
|
|
|
13
13
|
const currencyInfo = {
|
|
14
|
+
assetDisplayName: 'Dash',
|
|
15
|
+
chainDisplayName: 'Dash',
|
|
14
16
|
currencyCode: 'DASH',
|
|
15
17
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
16
|
-
displayName: 'Dash',
|
|
17
18
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
18
19
|
pluginId: 'dash',
|
|
19
20
|
walletType: 'wallet:dash',
|
|
@@ -44,6 +45,7 @@ const currencyInfo = {
|
|
|
44
45
|
],
|
|
45
46
|
enableCustomServers: false
|
|
46
47
|
},
|
|
48
|
+
displayName: 'Dash',
|
|
47
49
|
metaTokens: []
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'DigiByte',
|
|
13
|
+
chainDisplayName: 'DigiByte',
|
|
12
14
|
currencyCode: 'DGB',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'DigiByte',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'digibyte',
|
|
17
18
|
walletType: 'wallet:digibyte',
|
|
@@ -37,6 +38,7 @@ const currencyInfo = {
|
|
|
37
38
|
],
|
|
38
39
|
enableCustomServers: false
|
|
39
40
|
},
|
|
41
|
+
displayName: 'DigiByte',
|
|
40
42
|
metaTokens: []
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -10,9 +10,10 @@ var _commonInfo = require('./commonInfo');
|
|
|
10
10
|
var _dogeUtxoPicker = require('./utxoPickers/dogeUtxoPicker');
|
|
11
11
|
|
|
12
12
|
const currencyInfo = {
|
|
13
|
+
assetDisplayName: 'Dogecoin',
|
|
14
|
+
chainDisplayName: 'Dogecoin',
|
|
13
15
|
currencyCode: 'DOGE',
|
|
14
16
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
|
-
displayName: 'Dogecoin',
|
|
16
17
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
18
|
pluginId: 'dogecoin',
|
|
18
19
|
walletType: 'wallet:dogecoin',
|
|
@@ -40,6 +41,7 @@ const currencyInfo = {
|
|
|
40
41
|
],
|
|
41
42
|
enableCustomServers: false
|
|
42
43
|
},
|
|
44
|
+
displayName: 'Dogecoin',
|
|
43
45
|
metaTokens: []
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'eBoost',
|
|
13
|
+
chainDisplayName: 'eBoost',
|
|
12
14
|
currencyCode: 'EBST',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'eBoost',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'eboost',
|
|
17
18
|
walletType: 'wallet:eboost',
|
|
@@ -33,6 +34,7 @@ const currencyInfo = {
|
|
|
33
34
|
blockbookServers: [],
|
|
34
35
|
enableCustomServers: false
|
|
35
36
|
},
|
|
37
|
+
displayName: 'eBoost',
|
|
36
38
|
metaTokens: []
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Feathercoin',
|
|
13
|
+
chainDisplayName: 'Feathercoin',
|
|
12
14
|
currencyCode: 'FTC',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Feathercoin',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'feathercoin',
|
|
17
18
|
walletType: 'wallet:feathercoin',
|
|
@@ -33,6 +34,7 @@ var _commonInfo = require('./commonInfo');
|
|
|
33
34
|
blockbookServers: ['wss://blockbook.feathercoin.com'],
|
|
34
35
|
enableCustomServers: false
|
|
35
36
|
},
|
|
37
|
+
displayName: 'Feathercoin',
|
|
36
38
|
metaTokens: []
|
|
37
39
|
}; exports.currencyInfo = currencyInfo
|
|
38
40
|
|
|
@@ -13,9 +13,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
13
13
|
var _commonInfo = require('./commonInfo');
|
|
14
14
|
|
|
15
15
|
const currencyInfo = {
|
|
16
|
+
assetDisplayName: 'Groestlcoin',
|
|
17
|
+
chainDisplayName: 'Groestlcoin',
|
|
16
18
|
currencyCode: 'GRS',
|
|
17
19
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
18
|
-
displayName: 'Groestlcoin',
|
|
19
20
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
20
21
|
pluginId: 'groestlcoin',
|
|
21
22
|
walletType: 'wallet:groestlcoin',
|
|
@@ -42,6 +43,7 @@ const currencyInfo = {
|
|
|
42
43
|
],
|
|
43
44
|
enableCustomServers: false
|
|
44
45
|
},
|
|
46
|
+
displayName: 'Groestlcoin',
|
|
45
47
|
metaTokens: []
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -10,9 +10,10 @@ var _commonInfo = require('./commonInfo');
|
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
12
|
canReplaceByFee: false,
|
|
13
|
+
assetDisplayName: 'Litecoin',
|
|
14
|
+
chainDisplayName: 'Litecoin',
|
|
13
15
|
currencyCode: 'LTC',
|
|
14
16
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
|
-
displayName: 'Litecoin',
|
|
16
17
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
18
|
pluginId: 'litecoin',
|
|
18
19
|
walletType: 'wallet:litecoin',
|
|
@@ -42,6 +43,7 @@ var _commonInfo = require('./commonInfo');
|
|
|
42
43
|
],
|
|
43
44
|
enableCustomServers: false
|
|
44
45
|
},
|
|
46
|
+
displayName: 'Litecoin',
|
|
45
47
|
metaTokens: []
|
|
46
48
|
}; exports.currencyInfo = currencyInfo
|
|
47
49
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Qtum',
|
|
13
|
+
chainDisplayName: 'Qtum',
|
|
12
14
|
currencyCode: 'QTUM',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Qtum',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'qtum',
|
|
17
18
|
walletType: 'wallet:qtum',
|
|
@@ -30,6 +31,7 @@ const currencyInfo = {
|
|
|
30
31
|
blockbookServers: [],
|
|
31
32
|
enableCustomServers: false
|
|
32
33
|
},
|
|
34
|
+
displayName: 'Qtum',
|
|
33
35
|
metaTokens: []
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Ravencoin',
|
|
13
|
+
chainDisplayName: 'Ravencoin',
|
|
12
14
|
currencyCode: 'RVN',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Ravencoin',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'ravencoin',
|
|
17
18
|
walletType: 'wallet:ravencoin',
|
|
@@ -30,6 +31,7 @@ const currencyInfo = {
|
|
|
30
31
|
blockbookServers: ['wss://blockbook.ravencoin.org'],
|
|
31
32
|
enableCustomServers: false
|
|
32
33
|
},
|
|
34
|
+
displayName: 'Ravencoin',
|
|
33
35
|
metaTokens: []
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -12,9 +12,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
12
12
|
var _commonInfo = require('./commonInfo');
|
|
13
13
|
|
|
14
14
|
const currencyInfo = {
|
|
15
|
+
assetDisplayName: 'SmartCash',
|
|
16
|
+
chainDisplayName: 'SmartCash',
|
|
15
17
|
currencyCode: 'SMART',
|
|
16
18
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
17
|
-
displayName: 'SmartCash',
|
|
18
19
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
19
20
|
pluginId: 'smartcash',
|
|
20
21
|
walletType: 'wallet:smartcash',
|
|
@@ -36,6 +37,7 @@ const currencyInfo = {
|
|
|
36
37
|
blockbookServers: [],
|
|
37
38
|
enableCustomServers: false
|
|
38
39
|
},
|
|
40
|
+
displayName: 'SmartCash',
|
|
39
41
|
metaTokens: []
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'UFO',
|
|
13
|
+
chainDisplayName: 'UFO',
|
|
12
14
|
currencyCode: 'UFO',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'UFO',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'ufo',
|
|
17
18
|
walletType: 'wallet:ufo',
|
|
@@ -33,6 +34,7 @@ const currencyInfo = {
|
|
|
33
34
|
blockbookServers: ['wss://blockbook.ufobject.com'],
|
|
34
35
|
enableCustomServers: false
|
|
35
36
|
},
|
|
37
|
+
displayName: 'UFO',
|
|
36
38
|
metaTokens: []
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -9,9 +9,10 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
9
9
|
var _commonInfo = require('./commonInfo');
|
|
10
10
|
|
|
11
11
|
const currencyInfo = {
|
|
12
|
+
assetDisplayName: 'Vertcoin',
|
|
13
|
+
chainDisplayName: 'Vertcoin',
|
|
12
14
|
currencyCode: 'VTC',
|
|
13
15
|
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
-
displayName: 'Vertcoin',
|
|
15
16
|
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
17
|
pluginId: 'vertcoin',
|
|
17
18
|
walletType: 'wallet:vertcoin',
|
|
@@ -39,6 +40,7 @@ const currencyInfo = {
|
|
|
39
40
|
],
|
|
40
41
|
enableCustomServers: false
|
|
41
42
|
},
|
|
43
|
+
displayName: 'Vertcoin',
|
|
42
44
|
metaTokens: []
|
|
43
45
|
}
|
|
44
46
|
|