edge-currency-plugins 2.6.1 → 3.0.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/README.md +61 -2
- package/android/build.gradle +45 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/assets/edge-currency-plugins/669.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-plugins/edge-currency-plugins.js +76 -0
- package/android/src/main/java/app/edge/reactnative/currencyplugins/EdgeCurrencyPluginsModule.java +26 -0
- package/android/src/main/java/app/edge/reactnative/currencyplugins/EdgeCurrencyPluginsPackage.java +24 -0
- package/edge-currency-plugins.d.ts +34 -0
- package/edge-currency-plugins.podspec +28 -0
- package/ios/EdgeCurrencyPluginsModule.m +4 -0
- package/ios/EdgeCurrencyPluginsModule.swift +20 -0
- package/ios/edge-currency-plugins.xcodeproj/project.pbxproj +1 -0
- package/lib/common/constants.js +1 -2
- package/lib/common/plugin/CurrencyPlugin.js +17 -1
- package/lib/common/utxobased/db/Models/ProcessorTransaction.js +3 -2
- package/lib/common/utxobased/db/Processor.js +5 -0
- package/lib/common/utxobased/engine/ServerStates.js +159 -28
- package/lib/common/utxobased/engine/UtxoEngine.js +3 -2
- package/lib/common/utxobased/engine/UtxoEngineState.js +66 -72
- package/lib/common/utxobased/engine/types.js +3 -1
- package/lib/common/utxobased/info/badcoin.js +16 -19
- package/lib/common/utxobased/info/bitcoin.js +18 -26
- package/lib/common/utxobased/info/bitcoincash.js +18 -26
- package/lib/common/utxobased/info/bitcoincashtestnet.js +17 -17
- 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 +16 -24
- package/lib/common/utxobased/info/bitcointestnet.js +17 -25
- package/lib/common/utxobased/info/commonInfo.js +20 -11
- package/lib/common/utxobased/info/dash.js +18 -21
- package/lib/common/utxobased/info/digibyte.js +17 -20
- 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 +16 -24
- package/lib/common/utxobased/info/groestlcoin.js +19 -22
- package/lib/common/utxobased/info/litecoin.js +18 -26
- 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 +22 -24
- package/lib/common/utxobased/keymanager/keymanager.js +1 -1
- package/lib/common/utxobased/keymanager/types.js +2 -1
- package/lib/common/utxobased/network/Blockbook.js +178 -105
- package/lib/common/utxobased/network/BlockbookElectrum.js +216 -0
- package/lib/common/utxobased/network/Socket.js +130 -66
- package/lib/common/utxobased/network/blockbookApi.js +6 -6
- package/lib/common/utxobased/network/electrumApi.js +203 -0
- package/lib/{types.js → declare-modules.d.js} +2 -0
- package/lib/index.js +7 -3
- package/lib/react-native.js +26 -0
- package/lib/src/common/constants.d.ts +0 -1
- package/lib/src/common/utxobased/db/Processor.d.ts +6 -1
- package/lib/src/common/utxobased/engine/ServerStates.d.ts +8 -0
- package/lib/src/common/utxobased/engine/UtxoEngineState.d.ts +1 -4
- package/lib/src/common/utxobased/info/commonInfo.d.ts +4 -2
- package/lib/src/common/utxobased/keymanager/types.d.ts +3 -3
- package/lib/src/common/utxobased/network/Blockbook.d.ts +20 -7
- package/lib/src/common/utxobased/network/BlockbookElectrum.d.ts +25 -0
- package/lib/src/common/utxobased/network/Socket.d.ts +11 -0
- package/lib/src/common/utxobased/network/blockbookApi.d.ts +2 -16
- package/lib/src/common/utxobased/network/electrumApi.d.ts +90 -0
- package/lib/src/index.d.ts +5 -1
- package/lib/src/react-native.d.ts +10 -0
- package/lib/test/utils.d.ts +4 -0
- package/package.json +24 -11
- package/lib/src/types.d.ts +0 -6
|
@@ -3,20 +3,33 @@
|
|
|
3
3
|
|
|
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 = {
|
|
9
|
-
pluginId: 'bitcoingold',
|
|
10
|
-
walletType: 'wallet:bitcoingold',
|
|
11
13
|
currencyCode: 'BTG',
|
|
14
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
12
15
|
displayName: 'Bitcoin Gold',
|
|
16
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
|
+
pluginId: 'bitcoingold',
|
|
18
|
+
walletType: 'wallet:bitcoingold',
|
|
19
|
+
|
|
20
|
+
// Explorers:
|
|
21
|
+
addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s',
|
|
22
|
+
blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s',
|
|
23
|
+
transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s',
|
|
24
|
+
|
|
13
25
|
denominations: [
|
|
14
26
|
{ name: 'BTG', multiplier: '100000000', symbol: '₿' },
|
|
15
27
|
{ name: 'mBTG', multiplier: '100000', symbol: 'm₿' },
|
|
16
28
|
{ name: 'bits', multiplier: '100', symbol: 'ƀ' }
|
|
17
29
|
],
|
|
18
30
|
|
|
19
|
-
//
|
|
31
|
+
// Deprecated:
|
|
32
|
+
..._commonInfo.legacyMemoInfo,
|
|
20
33
|
defaultSettings: {
|
|
21
34
|
customFeeSettings: ['satPerByte'],
|
|
22
35
|
blockbookServers: [
|
|
@@ -28,22 +41,6 @@ const currencyInfo = {
|
|
|
28
41
|
],
|
|
29
42
|
enableCustomServers: false
|
|
30
43
|
},
|
|
31
|
-
customFeeTemplate: [
|
|
32
|
-
{
|
|
33
|
-
type: 'nativeAmount',
|
|
34
|
-
key: 'satPerByte',
|
|
35
|
-
displayName: 'Satoshis Per Byte',
|
|
36
|
-
displayMultiplier: '0'
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
..._commonInfo.memoInfo,
|
|
40
|
-
|
|
41
|
-
// Explorers:
|
|
42
|
-
addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s',
|
|
43
|
-
blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s',
|
|
44
|
-
transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s',
|
|
45
|
-
|
|
46
|
-
// Deprecated:
|
|
47
44
|
metaTokens: []
|
|
48
45
|
}
|
|
49
46
|
|
|
@@ -2,33 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
var _commonInfo = require('./commonInfo');
|
|
6
10
|
|
|
7
11
|
const currencyInfo = {
|
|
8
|
-
pluginId: 'bitcoingoldtestnet',
|
|
9
|
-
walletType: 'wallet:bitcoingoldtestnet',
|
|
10
12
|
currencyCode: 'TBTG',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
11
14
|
displayName: 'Bitcoin Gold',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
|
+
pluginId: 'bitcoingoldtestnet',
|
|
17
|
+
walletType: 'wallet:bitcoingoldtestnet',
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s',
|
|
21
|
+
blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s',
|
|
22
|
+
transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s',
|
|
23
|
+
|
|
12
24
|
denominations: [
|
|
13
25
|
{ name: 'TBTG', multiplier: '100000000', symbol: '₿' },
|
|
14
26
|
{ name: 'mTBTG', multiplier: '100000', symbol: 'm₿' },
|
|
15
27
|
{ name: 'bits', multiplier: '100', symbol: 'ƀ' }
|
|
16
28
|
],
|
|
17
29
|
|
|
18
|
-
//
|
|
30
|
+
// Deprecated:
|
|
31
|
+
..._commonInfo.legacyMemoInfo,
|
|
19
32
|
defaultSettings: {
|
|
20
33
|
customFeeSettings: ['satPerByte'],
|
|
21
34
|
blockbookServers: [],
|
|
22
35
|
enableCustomServers: false
|
|
23
36
|
},
|
|
24
|
-
..._commonInfo.memoInfo,
|
|
25
|
-
|
|
26
|
-
// Explorers:
|
|
27
|
-
addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s',
|
|
28
|
-
blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s',
|
|
29
|
-
transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s',
|
|
30
|
-
|
|
31
|
-
// Deprecated:
|
|
32
37
|
metaTokens: []
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var _cleaners = require('cleaners');
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var _constants = require('../../constants');
|
|
6
5
|
|
|
7
6
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
8
7
|
|
|
@@ -10,45 +9,38 @@ var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalcula
|
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
var _keymanager = require('../keymanager/keymanager');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
var _commonInfo = require('./commonInfo');
|
|
14
17
|
|
|
15
18
|
const currencyInfo = {
|
|
16
|
-
pluginId: 'bitcoinsv',
|
|
17
|
-
walletType: 'wallet:bitcoinsv',
|
|
18
19
|
currencyCode: 'BSV',
|
|
20
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
19
21
|
displayName: 'Bitcoin SV',
|
|
22
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
23
|
+
pluginId: 'bitcoinsv',
|
|
24
|
+
walletType: 'wallet:bitcoinsv',
|
|
25
|
+
|
|
26
|
+
// Explorers:
|
|
27
|
+
blockExplorer: 'https://whatsonchain.com/block/%s',
|
|
28
|
+
addressExplorer: 'https://whatsonchain.com/address/%s',
|
|
29
|
+
transactionExplorer: 'https://whatsonchain.com/tx/%s',
|
|
30
|
+
|
|
20
31
|
denominations: [
|
|
21
32
|
{ name: 'BSV', multiplier: '100000000', symbol: '₿' },
|
|
22
33
|
{ name: 'mBSV', multiplier: '100000', symbol: 'm₿' },
|
|
23
34
|
{ name: 'cash', multiplier: '100', symbol: 'ƀ' }
|
|
24
35
|
],
|
|
25
36
|
|
|
26
|
-
//
|
|
37
|
+
// Deprecated:
|
|
38
|
+
..._commonInfo.legacyMemoInfo,
|
|
27
39
|
defaultSettings: {
|
|
28
40
|
customFeeSettings: ['satPerByte'],
|
|
29
41
|
blockbookServers: ['wss://blockbook.siftbitcoin.com:9146'],
|
|
30
42
|
enableCustomServers: false
|
|
31
43
|
},
|
|
32
|
-
customFeeTemplate: [
|
|
33
|
-
{
|
|
34
|
-
type: 'nativeAmount',
|
|
35
|
-
key: 'satPerByte',
|
|
36
|
-
displayName: 'Satoshis Per Byte',
|
|
37
|
-
displayMultiplier: '0'
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
..._commonInfo.memoInfo,
|
|
41
|
-
|
|
42
|
-
// Explorers:
|
|
43
|
-
blockExplorer: 'https://whatsonchain.com/block/%s',
|
|
44
|
-
addressExplorer: 'https://whatsonchain.com/address/%s',
|
|
45
|
-
transactionExplorer: 'https://whatsonchain.com/tx/%s',
|
|
46
|
-
|
|
47
|
-
// Images:
|
|
48
|
-
symbolImage: `${_constants.IMAGE_SERVER_URL}/bitcoinsv-logo-solo-64.png`,
|
|
49
|
-
symbolImageDarkMono: `${_constants.IMAGE_SERVER_URL}/bitcoinsv-logo-solo-64.png`,
|
|
50
|
-
|
|
51
|
-
// Deprecated:
|
|
52
44
|
metaTokens: []
|
|
53
45
|
}
|
|
54
46
|
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
|
|
5
8
|
var _commonInfo = require('./commonInfo');
|
|
6
9
|
|
|
7
10
|
const currencyInfo = {
|
|
8
|
-
|
|
9
|
-
walletType: 'wallet:bitcointestnet',
|
|
11
|
+
canReplaceByFee: true,
|
|
10
12
|
currencyCode: 'TESTBTC',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
11
14
|
displayName: 'Bitcoin Testnet',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
|
+
pluginId: 'bitcointestnet',
|
|
17
|
+
walletType: 'wallet:bitcointestnet',
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
blockExplorer: 'https://blockchair.com/bitcoin/testnet/block/%s',
|
|
21
|
+
addressExplorer: 'https://blockchair.com/bitcoin/testnet/address/%s',
|
|
22
|
+
transactionExplorer: 'https://blockchair.com/bitcoin/testnet/transaction/%s',
|
|
23
|
+
|
|
12
24
|
denominations: [
|
|
13
25
|
{ name: 'TESTBTC', multiplier: '100000000', symbol: '₿' },
|
|
14
26
|
{ name: 'mTESTBTC', multiplier: '100000', symbol: 'm₿' },
|
|
@@ -16,33 +28,13 @@ var _commonInfo = require('./commonInfo');
|
|
|
16
28
|
{ name: 'sats', multiplier: '1', symbol: 's' }
|
|
17
29
|
],
|
|
18
30
|
|
|
19
|
-
//
|
|
31
|
+
// Deprecated:
|
|
32
|
+
..._commonInfo.legacyMemoInfo,
|
|
20
33
|
defaultSettings: {
|
|
21
34
|
customFeeSettings: ['satPerByte'],
|
|
22
35
|
blockbookServers: ['wss://tbtc1.trezor.io', 'wss://tbtc2.trezor.io'],
|
|
23
36
|
enableCustomServers: false
|
|
24
37
|
},
|
|
25
|
-
canReplaceByFee: true,
|
|
26
|
-
customFeeTemplate: [
|
|
27
|
-
{
|
|
28
|
-
type: 'nativeAmount',
|
|
29
|
-
key: 'satPerByte',
|
|
30
|
-
displayName: 'Satoshis Per Byte',
|
|
31
|
-
displayMultiplier: '0'
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
..._commonInfo.memoInfo,
|
|
35
|
-
|
|
36
|
-
// Explorers:
|
|
37
|
-
blockExplorer: 'https://blockchair.com/bitcoin/testnet/block/%s',
|
|
38
|
-
addressExplorer: 'https://blockchair.com/bitcoin/testnet/address/%s',
|
|
39
|
-
transactionExplorer: 'https://blockchair.com/bitcoin/testnet/transaction/%s',
|
|
40
|
-
|
|
41
|
-
// Images:
|
|
42
|
-
symbolImage: `${_constants.IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`,
|
|
43
|
-
symbolImageDarkMono: `${_constants.IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`,
|
|
44
|
-
|
|
45
|
-
// Deprecated:
|
|
46
38
|
metaTokens: []
|
|
47
39
|
}; exports.currencyInfo = currencyInfo
|
|
48
40
|
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
],
|
|
3
|
+
const utxoCustomFeeTemplate = [
|
|
4
|
+
{
|
|
5
|
+
type: 'nativeAmount',
|
|
6
|
+
key: 'satPerByte',
|
|
7
|
+
displayName: 'Satoshis Per Byte',
|
|
8
|
+
displayMultiplier: '0'
|
|
9
|
+
}
|
|
10
|
+
]; exports.utxoCustomFeeTemplate = utxoCustomFeeTemplate
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
const utxoMemoOptions = [
|
|
13
|
+
{
|
|
14
|
+
type: 'hex',
|
|
15
|
+
hidden: true,
|
|
16
|
+
maxBytes: 80,
|
|
17
|
+
memoName: 'OP_RETURN'
|
|
18
|
+
}
|
|
19
|
+
]; exports.utxoMemoOptions = utxoMemoOptions
|
|
20
|
+
|
|
21
|
+
// Deprecated:
|
|
22
|
+
const legacyMemoInfo = {
|
|
14
23
|
memoMaxLength: 80,
|
|
15
24
|
memoType: 'text'
|
|
16
|
-
}; exports.
|
|
25
|
+
}; exports.legacyMemoInfo = legacyMemoInfo
|
|
@@ -4,19 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
7
11
|
var _commonInfo = require('./commonInfo');
|
|
8
12
|
|
|
9
13
|
const currencyInfo = {
|
|
10
|
-
pluginId: 'dash',
|
|
11
|
-
walletType: 'wallet:dash',
|
|
12
14
|
currencyCode: 'DASH',
|
|
15
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
13
16
|
displayName: 'Dash',
|
|
17
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
18
|
+
pluginId: 'dash',
|
|
19
|
+
walletType: 'wallet:dash',
|
|
20
|
+
|
|
21
|
+
// Explorers:
|
|
22
|
+
addressExplorer: 'https://blockchair.com/dash/address/%s?from=edgeapp',
|
|
23
|
+
blockExplorer: 'https://blockchair.com/dash/block/%s?from=edgeapp',
|
|
24
|
+
transactionExplorer:
|
|
25
|
+
'https://blockchair.com/dash/transaction/%s?from=edgeapp',
|
|
26
|
+
|
|
14
27
|
denominations: [
|
|
15
28
|
{ name: 'DASH', multiplier: '100000000', symbol: 'Ð' },
|
|
16
29
|
{ name: 'mDASH', multiplier: '100000', symbol: 'mÐ' }
|
|
17
30
|
],
|
|
18
31
|
|
|
19
|
-
//
|
|
32
|
+
// Deprecated:
|
|
33
|
+
..._commonInfo.legacyMemoInfo,
|
|
20
34
|
defaultSettings: {
|
|
21
35
|
customFeeSettings: ['satPerByte'],
|
|
22
36
|
blockbookServers: [
|
|
@@ -28,23 +42,6 @@ const currencyInfo = {
|
|
|
28
42
|
],
|
|
29
43
|
enableCustomServers: false
|
|
30
44
|
},
|
|
31
|
-
customFeeTemplate: [
|
|
32
|
-
{
|
|
33
|
-
type: 'nativeAmount',
|
|
34
|
-
key: 'satPerByte',
|
|
35
|
-
displayName: 'Satoshis Per Byte',
|
|
36
|
-
displayMultiplier: '0'
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
..._commonInfo.memoInfo,
|
|
40
|
-
|
|
41
|
-
// Explorers:
|
|
42
|
-
addressExplorer: 'https://blockchair.com/dash/address/%s?from=edgeapp',
|
|
43
|
-
blockExplorer: 'https://blockchair.com/dash/block/%s?from=edgeapp',
|
|
44
|
-
transactionExplorer:
|
|
45
|
-
'https://blockchair.com/dash/transaction/%s?from=edgeapp',
|
|
46
|
-
|
|
47
|
-
// Deprecated:
|
|
48
45
|
metaTokens: []
|
|
49
46
|
}
|
|
50
47
|
|
|
@@ -52,7 +49,7 @@ const engineInfo = {
|
|
|
52
49
|
serverConfigs: [
|
|
53
50
|
{
|
|
54
51
|
type: 'blockbook-nownode',
|
|
55
|
-
uris: ['dashbook.nownodes.io']
|
|
52
|
+
uris: ['https://dashbook.nownodes.io']
|
|
56
53
|
}
|
|
57
54
|
],
|
|
58
55
|
formats: ['bip44', 'bip32'],
|
|
@@ -2,40 +2,37 @@
|
|
|
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: 'digibyte',
|
|
9
|
-
walletType: 'wallet:digibyte',
|
|
10
12
|
currencyCode: 'DGB',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
11
14
|
displayName: 'DigiByte',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
|
+
pluginId: 'digibyte',
|
|
17
|
+
walletType: 'wallet:digibyte',
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
addressExplorer: 'https://digiexplorer.info/address/%s',
|
|
21
|
+
blockExplorer: 'https://digiexplorer.info/block/%s',
|
|
22
|
+
transactionExplorer: 'https://digiexplorer.info/tx/%s',
|
|
23
|
+
|
|
12
24
|
denominations: [
|
|
13
25
|
{ name: 'DGB', multiplier: '100000000', symbol: 'Ɗ' },
|
|
14
26
|
{ name: 'mDGB', multiplier: '100000', symbol: 'mƊ' }
|
|
15
27
|
],
|
|
16
28
|
|
|
17
|
-
//
|
|
29
|
+
// Deprecated:
|
|
30
|
+
..._commonInfo.legacyMemoInfo,
|
|
18
31
|
defaultSettings: {
|
|
19
32
|
customFeeSettings: ['satPerByte'],
|
|
20
33
|
blockbookServers: ['wss://dgb1.trezor.io', 'wss://dgb2.trezor.io'],
|
|
21
34
|
enableCustomServers: false
|
|
22
35
|
},
|
|
23
|
-
customFeeTemplate: [
|
|
24
|
-
{
|
|
25
|
-
type: 'nativeAmount',
|
|
26
|
-
key: 'satPerByte',
|
|
27
|
-
displayName: 'Satoshis Per Byte',
|
|
28
|
-
displayMultiplier: '0'
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
..._commonInfo.memoInfo,
|
|
32
|
-
|
|
33
|
-
// Explorers:
|
|
34
|
-
addressExplorer: 'https://digiexplorer.info/address/%s',
|
|
35
|
-
blockExplorer: 'https://digiexplorer.info/block/%s',
|
|
36
|
-
transactionExplorer: 'https://digiexplorer.info/tx/%s',
|
|
37
|
-
|
|
38
|
-
// Deprecated:
|
|
39
36
|
metaTokens: []
|
|
40
37
|
}
|
|
41
38
|
|
|
@@ -43,7 +40,7 @@ const engineInfo = {
|
|
|
43
40
|
serverConfigs: [
|
|
44
41
|
{
|
|
45
42
|
type: 'blockbook-nownode',
|
|
46
|
-
uris: ['dgbbook.nownodes.io']
|
|
43
|
+
uris: ['https://dgbbook.nownodes.io']
|
|
47
44
|
}
|
|
48
45
|
],
|
|
49
46
|
formats: ['bip49', 'bip84', 'bip44', 'bip32'],
|
|
@@ -2,17 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
var _commonInfo = require('./commonInfo');
|
|
6
10
|
var _dogeUtxoPicker = require('./utxoPickers/dogeUtxoPicker');
|
|
7
11
|
|
|
8
12
|
const currencyInfo = {
|
|
9
|
-
pluginId: 'dogecoin',
|
|
10
|
-
walletType: 'wallet:dogecoin',
|
|
11
13
|
currencyCode: 'DOGE',
|
|
14
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
12
15
|
displayName: 'Dogecoin',
|
|
16
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
17
|
+
pluginId: 'dogecoin',
|
|
18
|
+
walletType: 'wallet:dogecoin',
|
|
19
|
+
|
|
20
|
+
// Explorers:
|
|
21
|
+
addressExplorer: 'https://blockchair.com/dogecoin/address/%s?from=edgeapp',
|
|
22
|
+
blockExplorer: 'https://blockchair.com/dogecoin/block/%s?from=edgeapp',
|
|
23
|
+
transactionExplorer:
|
|
24
|
+
'https://blockchair.com/dogecoin/transaction/%s?from=edgeapp',
|
|
25
|
+
|
|
13
26
|
denominations: [{ name: 'DOGE', multiplier: '100000000', symbol: 'Ð' }],
|
|
14
27
|
|
|
15
|
-
//
|
|
28
|
+
// Deprecated:
|
|
29
|
+
..._commonInfo.legacyMemoInfo,
|
|
16
30
|
defaultSettings: {
|
|
17
31
|
customFeeSettings: ['satPerByte'],
|
|
18
32
|
blockbookServers: [
|
|
@@ -24,23 +38,6 @@ const currencyInfo = {
|
|
|
24
38
|
],
|
|
25
39
|
enableCustomServers: false
|
|
26
40
|
},
|
|
27
|
-
customFeeTemplate: [
|
|
28
|
-
{
|
|
29
|
-
type: 'nativeAmount',
|
|
30
|
-
key: 'satPerByte',
|
|
31
|
-
displayName: 'Satoshis Per Byte',
|
|
32
|
-
displayMultiplier: '0'
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
..._commonInfo.memoInfo,
|
|
36
|
-
|
|
37
|
-
// Explorers:
|
|
38
|
-
addressExplorer: 'https://blockchair.com/dogecoin/address/%s?from=edgeapp',
|
|
39
|
-
blockExplorer: 'https://blockchair.com/dogecoin/block/%s?from=edgeapp',
|
|
40
|
-
transactionExplorer:
|
|
41
|
-
'https://blockchair.com/dogecoin/transaction/%s?from=edgeapp',
|
|
42
|
-
|
|
43
|
-
// Deprecated:
|
|
44
41
|
metaTokens: []
|
|
45
42
|
}
|
|
46
43
|
|
|
@@ -2,40 +2,37 @@
|
|
|
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: 'eboost',
|
|
9
|
-
walletType: 'wallet:eboost',
|
|
10
12
|
currencyCode: 'EBST',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
11
14
|
displayName: 'eBoost',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
16
|
+
pluginId: 'eboost',
|
|
17
|
+
walletType: 'wallet:eboost',
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
addressExplorer: 'https://www.blockexperts.com/ebst/address/%s',
|
|
21
|
+
blockExplorer: 'https://www.blockexperts.com/ebst/hash/%s',
|
|
22
|
+
transactionExplorer: 'https://www.blockexperts.com/ebst/tx/%s',
|
|
23
|
+
|
|
12
24
|
denominations: [
|
|
13
25
|
{ name: 'EBST', multiplier: '100000000', symbol: 'EBST' },
|
|
14
26
|
{ name: 'mEBST', multiplier: '100000', symbol: 'mEBST' }
|
|
15
27
|
],
|
|
16
28
|
|
|
17
|
-
//
|
|
29
|
+
// Deprecated:
|
|
30
|
+
..._commonInfo.legacyMemoInfo,
|
|
18
31
|
defaultSettings: {
|
|
19
32
|
customFeeSettings: ['satPerByte'],
|
|
20
33
|
blockbookServers: [],
|
|
21
34
|
enableCustomServers: false
|
|
22
35
|
},
|
|
23
|
-
customFeeTemplate: [
|
|
24
|
-
{
|
|
25
|
-
type: 'nativeAmount',
|
|
26
|
-
key: 'satPerByte',
|
|
27
|
-
displayName: 'Satoshis Per Byte',
|
|
28
|
-
displayMultiplier: '0'
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
..._commonInfo.memoInfo,
|
|
32
|
-
|
|
33
|
-
// Explorers:
|
|
34
|
-
addressExplorer: 'https://www.blockexperts.com/ebst/address/%s',
|
|
35
|
-
blockExplorer: 'https://www.blockexperts.com/ebst/hash/%s',
|
|
36
|
-
transactionExplorer: 'https://www.blockexperts.com/ebst/tx/%s',
|
|
37
|
-
|
|
38
|
-
// Deprecated:
|
|
39
36
|
metaTokens: []
|
|
40
37
|
}
|
|
41
38
|
|
|
@@ -1,46 +1,38 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _constants = require('../../constants');
|
|
4
3
|
|
|
5
4
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
var _commonInfo = require('./commonInfo');
|
|
7
10
|
|
|
8
11
|
const currencyInfo = {
|
|
12
|
+
currencyCode: 'FTC',
|
|
13
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
14
|
+
displayName: 'Feathercoin',
|
|
15
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
9
16
|
pluginId: 'feathercoin',
|
|
10
17
|
walletType: 'wallet:feathercoin',
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
|
|
19
|
+
// Explorers:
|
|
20
|
+
addressExplorer: 'https://fsight.chain.tips/address/%s',
|
|
21
|
+
blockExplorer: 'https://fsight.chain.tips/block/%s',
|
|
22
|
+
transactionExplorer: 'https://fsight.chain.tips/tx/%s',
|
|
23
|
+
|
|
13
24
|
denominations: [
|
|
14
25
|
{ name: 'FTC', multiplier: '100000000', symbol: 'F' },
|
|
15
26
|
{ name: 'mFTC', multiplier: '100000', symbol: 'mF' }
|
|
16
27
|
],
|
|
17
28
|
|
|
18
|
-
//
|
|
29
|
+
// Deprecated:
|
|
30
|
+
..._commonInfo.legacyMemoInfo,
|
|
19
31
|
defaultSettings: {
|
|
20
32
|
customFeeSettings: ['satPerByte'],
|
|
21
33
|
blockbookServers: ['wss://blockbook.feathercoin.com'],
|
|
22
34
|
enableCustomServers: false
|
|
23
35
|
},
|
|
24
|
-
customFeeTemplate: [
|
|
25
|
-
{
|
|
26
|
-
type: 'nativeAmount',
|
|
27
|
-
key: 'satPerByte',
|
|
28
|
-
displayName: 'Satoshis Per Byte',
|
|
29
|
-
displayMultiplier: '0'
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
..._commonInfo.memoInfo,
|
|
33
|
-
|
|
34
|
-
// Explorers:
|
|
35
|
-
addressExplorer: 'https://fsight.chain.tips/address/%s',
|
|
36
|
-
blockExplorer: 'https://fsight.chain.tips/block/%s',
|
|
37
|
-
transactionExplorer: 'https://fsight.chain.tips/tx/%s',
|
|
38
|
-
|
|
39
|
-
// Images:
|
|
40
|
-
symbolImage: `${_constants.IMAGE_SERVER_URL}/feathercoin-logo-solo-64.png`,
|
|
41
|
-
symbolImageDarkMono: `${_constants.IMAGE_SERVER_URL}/feathercoin-logo-solo-64.png`,
|
|
42
|
-
|
|
43
|
-
// Deprecated:
|
|
44
36
|
metaTokens: []
|
|
45
37
|
}; exports.currencyInfo = currencyInfo
|
|
46
38
|
|
|
@@ -6,42 +6,39 @@ var _wifgrs = require('wifgrs'); var wifgrs = _interopRequireWildcard(_wifgrs);
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _maximumFeeRateCalculator = require('../../plugin/util/maximumFeeRateCalculator');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
9
13
|
var _commonInfo = require('./commonInfo');
|
|
10
14
|
|
|
11
15
|
const currencyInfo = {
|
|
12
|
-
pluginId: 'groestlcoin',
|
|
13
|
-
walletType: 'wallet:groestlcoin',
|
|
14
16
|
currencyCode: 'GRS',
|
|
17
|
+
customFeeTemplate: _commonInfo.utxoCustomFeeTemplate,
|
|
15
18
|
displayName: 'Groestlcoin',
|
|
19
|
+
memoOptions: _commonInfo.utxoMemoOptions,
|
|
20
|
+
pluginId: 'groestlcoin',
|
|
21
|
+
walletType: 'wallet:groestlcoin',
|
|
22
|
+
|
|
23
|
+
// Explorers:
|
|
24
|
+
addressExplorer:
|
|
25
|
+
'https://blockchair.com/groestlcoin/address/%s?from=edgeapp?from=edgeapp',
|
|
26
|
+
blockExplorer: 'https://blockchair.com/groestlcoin/block/%s?from=edgeapp',
|
|
27
|
+
transactionExplorer:
|
|
28
|
+
'https://blockchair.com/groestlcoin/transaction/%s?from=edgeapp',
|
|
29
|
+
|
|
16
30
|
denominations: [
|
|
17
31
|
{ name: 'GRS', multiplier: '100000000', symbol: 'G' },
|
|
18
32
|
{ name: 'mGRS', multiplier: '100000', symbol: 'mG' }
|
|
19
33
|
],
|
|
20
34
|
|
|
21
|
-
//
|
|
35
|
+
// Deprecated:
|
|
36
|
+
..._commonInfo.legacyMemoInfo,
|
|
22
37
|
defaultSettings: {
|
|
23
38
|
customFeeSettings: ['satPerByte'],
|
|
24
39
|
blockbookServers: ['wss://blockbook.groestlcoin.org'],
|
|
25
40
|
enableCustomServers: false
|
|
26
41
|
},
|
|
27
|
-
customFeeTemplate: [
|
|
28
|
-
{
|
|
29
|
-
type: 'nativeAmount',
|
|
30
|
-
key: 'satPerByte',
|
|
31
|
-
displayName: 'Satoshis Per Byte',
|
|
32
|
-
displayMultiplier: '0'
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
..._commonInfo.memoInfo,
|
|
36
|
-
|
|
37
|
-
// Explorers:
|
|
38
|
-
addressExplorer:
|
|
39
|
-
'https://blockchair.com/groestlcoin/address/%s?from=edgeapp?from=edgeapp',
|
|
40
|
-
blockExplorer: 'https://blockchair.com/groestlcoin/block/%s?from=edgeapp',
|
|
41
|
-
transactionExplorer:
|
|
42
|
-
'https://blockchair.com/groestlcoin/transaction/%s?from=edgeapp',
|
|
43
|
-
|
|
44
|
-
// Deprecated:
|
|
45
42
|
metaTokens: []
|
|
46
43
|
}
|
|
47
44
|
|
|
@@ -49,7 +46,7 @@ const engineInfo = {
|
|
|
49
46
|
serverConfigs: [
|
|
50
47
|
{
|
|
51
48
|
type: 'blockbook-nownode',
|
|
52
|
-
uris: ['grsbook.nownodes.io']
|
|
49
|
+
uris: ['https://grsbook.nownodes.io']
|
|
53
50
|
}
|
|
54
51
|
],
|
|
55
52
|
formats: ['bip49', 'bip84', 'bip44', 'bip32'],
|