edge-currency-plugins 3.8.2 → 3.8.4

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _cleaners = require('cleaners');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _cleaners = require('cleaners');
2
2
 
3
3
 
4
4
 
@@ -42,14 +42,20 @@ let hasMemletBeenSet = false
42
42
  })
43
43
 
44
44
  if (!hasMemletBeenSet) {
45
- const { memletConfig } = nativeIo[
45
+ const pluginConfig = nativeIo[
46
46
  'edge-currency-plugins'
47
47
  ]
48
48
 
49
+ const memletConfig = _optionalChain([pluginConfig, 'optionalAccess', _2 => _2.memletConfig])
50
+
49
51
  if (memletConfig != null) {
50
- hasMemletBeenSet = true
51
52
  _memlet.setMemletConfig.call(void 0, memletConfig)
53
+ } else {
54
+ _memlet.setMemletConfig.call(void 0, {
55
+ maxMemoryUsage: 50 * 1024 * 1024 // 50MB
56
+ })
52
57
  }
58
+ hasMemletBeenSet = true
53
59
  }
54
60
 
55
61
  const instance = {
@@ -35,12 +35,13 @@ const currencyInfo = {
35
35
  defaultSettings: {
36
36
  customFeeSettings: ['satPerByte'],
37
37
  blockbookServers: [
38
+ 'wss://btc-wusa1.edge.app',
39
+ 'wss://btc-eu1.edge.app',
38
40
  'wss://btc1.trezor.io',
39
41
  'wss://btc2.trezor.io',
40
42
  'wss://btc3.trezor.io',
41
43
  'wss://btc4.trezor.io',
42
44
  'wss://btc5.trezor.io',
43
- 'wss://btc-wusa1.edge.app',
44
45
  'wss://btcbook.nownodes.io/wss/%{nowNodesApiKey}'
45
46
  ],
46
47
  enableCustomServers: false
@@ -53,7 +54,7 @@ const engineInfo = {
53
54
  serverConfigs: [
54
55
  {
55
56
  type: 'blockbook-nownode',
56
- uris: ['https://btc-wusa1.edge.app']
57
+ uris: ['https://btc-wusa1.edge.app', 'https://btc-eu1.edge.app']
57
58
  },
58
59
  {
59
60
  type: 'blockbook-nownode',
@@ -36,12 +36,12 @@ const currencyInfo = {
36
36
  defaultSettings: {
37
37
  customFeeSettings: ['satPerByte'],
38
38
  blockbookServers: [
39
+ 'wss://bch-eusa1.edge.app',
39
40
  'wss://bch1.trezor.io',
40
41
  'wss://bch2.trezor.io',
41
42
  'wss://bch3.trezor.io',
42
43
  'wss://bch4.trezor.io',
43
44
  'wss://bch5.trezor.io',
44
- 'wss://bch-wusa1.edge.app',
45
45
  'wss://bchbook.nownodes.io/wss/%{nowNodesApiKey}'
46
46
  ],
47
47
  enableCustomServers: false
@@ -54,7 +54,7 @@ const engineInfo = {
54
54
  serverConfigs: [
55
55
  {
56
56
  type: 'blockbook-nownode',
57
- uris: ['https://bch-wusa1.edge.app']
57
+ uris: ['https://bch-eusa1.edge.app']
58
58
  },
59
59
  {
60
60
  type: 'blockbook-nownode',
@@ -35,12 +35,12 @@ const currencyInfo = {
35
35
  defaultSettings: {
36
36
  customFeeSettings: ['satPerByte'],
37
37
  blockbookServers: [
38
+ 'wss://dash-wusa1.edge.app',
38
39
  'wss://dash1.trezor.io',
39
40
  'wss://dash2.trezor.io',
40
41
  'wss://dash3.trezor.io',
41
42
  'wss://dash4.trezor.io',
42
43
  'wss://dash5.trezor.io',
43
- 'wss://dash-wusa1.edge.app',
44
44
  'wss://dash.nownodes.io/wss/%{nowNodesApiKey}'
45
45
  ],
46
46
  enableCustomServers: false
@@ -32,6 +32,7 @@ const currencyInfo = {
32
32
  defaultSettings: {
33
33
  customFeeSettings: ['satPerByte'],
34
34
  blockbookServers: [
35
+ 'wss://dgb-eu1.edge.app',
35
36
  'wss://dgb1.trezor.io',
36
37
  'wss://dgb2.trezor.io',
37
38
  'wss://dgbbook.nownodes.io/wss/%{nowNodesApiKey}'
@@ -44,6 +45,10 @@ const currencyInfo = {
44
45
 
45
46
  const engineInfo = {
46
47
  serverConfigs: [
48
+ {
49
+ type: 'blockbook-nownode',
50
+ uris: ['https://dgb-eu1.edge.app']
51
+ },
47
52
  {
48
53
  type: 'blockbook-nownode',
49
54
  uris: ['https://dgbbook.nownodes.io']
@@ -31,12 +31,12 @@ const currencyInfo = {
31
31
  defaultSettings: {
32
32
  customFeeSettings: ['satPerByte'],
33
33
  blockbookServers: [
34
+ 'wss://doge-eusa1.edge.app',
34
35
  'wss://doge1.trezor.io',
35
36
  'wss://doge2.trezor.io',
36
37
  'wss://doge3.trezor.io',
37
38
  'wss://doge4.trezor.io',
38
39
  'wss://doge5.trezor.io',
39
- 'wss://doge-wusa1.edge.app',
40
40
  'wss://dogebook.nownodes.io/wss/%{nowNodesApiKey}'
41
41
  ],
42
42
  enableCustomServers: false
@@ -49,7 +49,7 @@ const engineInfo = {
49
49
  serverConfigs: [
50
50
  {
51
51
  type: 'blockbook-nownode',
52
- uris: ['https://doge-wusa1.edge.app']
52
+ uris: ['https://doge-eusa1.edge.app']
53
53
  },
54
54
  {
55
55
  type: 'blockbook-nownode',
@@ -33,12 +33,12 @@ var _commonInfo = require('./commonInfo');
33
33
  defaultSettings: {
34
34
  customFeeSettings: ['satPerByte'],
35
35
  blockbookServers: [
36
+ 'wss://ltc-wusa1.edge.app',
36
37
  'wss://ltc1.trezor.io',
37
38
  'wss://ltc2.trezor.io',
38
39
  'wss://ltc3.trezor.io',
39
40
  'wss://ltc4.trezor.io',
40
41
  'wss://ltc5.trezor.io',
41
- 'wss://ltc-wusa1.edge.app',
42
42
  'wss://ltcbook.nownodes.io/wss/%{nowNodesApiKey}'
43
43
  ],
44
44
  enableCustomServers: false
@@ -34,9 +34,7 @@ const currencyInfo = {
34
34
  ..._commonInfo.legacyMemoInfo,
35
35
  defaultSettings: {
36
36
  customFeeSettings: ['satPerByte'],
37
- blockbookServers: [
38
- /* 'wss://pivx-eusa1.edge.app', */ 'wss://zkbitcoin.com'
39
- ],
37
+ blockbookServers: ['wss://pivx-wusa1.edge.app', 'wss://zkbitcoin.com'],
40
38
  enableCustomServers: false
41
39
  },
42
40
  displayName: 'PIVX',
@@ -47,7 +45,7 @@ const engineInfo = {
47
45
  serverConfigs: [
48
46
  {
49
47
  type: 'blockbook-nownode',
50
- uris: ['https://btc-wusa1.edge.app']
48
+ uris: ['https://pivx-wusa1.edge.app']
51
49
  },
52
50
  {
53
51
  type: 'blockbook-nownode',
@@ -29,7 +29,7 @@ const currencyInfo = {
29
29
  defaultSettings: {
30
30
  customFeeSettings: ['satPerByte'],
31
31
  blockbookServers: [
32
- 'wss://qtum-eusa1.edge.app',
32
+ 'wss://qtum-wusa1.edge.app',
33
33
  'wss://blockv3.qtum.info',
34
34
  'wss://qtum.atomicwallet.io'
35
35
  ],
@@ -40,6 +40,12 @@ const currencyInfo = {
40
40
  }
41
41
 
42
42
  const engineInfo = {
43
+ serverConfigs: [
44
+ {
45
+ type: 'blockbook-nownode',
46
+ uris: ['https://qtum-wusa1.edge.app']
47
+ }
48
+ ],
43
49
  formats: ['bip44', 'bip32'],
44
50
  gapLimit: 10,
45
51
  feeUpdateInterval: 60000,
@@ -32,6 +32,7 @@ const currencyInfo = {
32
32
  defaultSettings: {
33
33
  customFeeSettings: ['satPerByte'],
34
34
  blockbookServers: [
35
+ 'wss://vtc-wusa1.edge.app',
35
36
  'wss://vtc1.trezor.io',
36
37
  'wss://vtc2.trezor.io',
37
38
  'wss://vtc3.trezor.io',
@@ -45,6 +46,12 @@ const currencyInfo = {
45
46
  }
46
47
 
47
48
  const engineInfo = {
49
+ serverConfigs: [
50
+ {
51
+ type: 'blockbook-nownode',
52
+ uris: ['https://vtc-wusa1.edge.app']
53
+ }
54
+ ],
48
55
  formats: ['bip49', 'bip84', 'bip44', 'bip32'],
49
56
  forks: [],
50
57
  gapLimit: 10,
@@ -32,8 +32,8 @@ var _commonInfo = require('./commonInfo');
32
32
  defaultSettings: {
33
33
  customFeeSettings: ['satPerByte'],
34
34
  blockbookServers: [
35
- // 'wss://blockbook.firo.org',
36
- 'wss://firo-wusa1.edge.app'
35
+ 'wss://firo-eusa1.edge.app',
36
+ 'wss://blockbook.firo.org'
37
37
  // 'wss://firo.nownodes.io/wss/%{nowNodesApiKey}'
38
38
  ],
39
39
  enableCustomServers: false
@@ -46,7 +46,7 @@ var _commonInfo = require('./commonInfo');
46
46
  serverConfigs: [
47
47
  {
48
48
  type: 'blockbook-nownode',
49
- uris: ['https://firo-wusa1.edge.app']
49
+ uris: ['https://firo-eusa1.edge.app']
50
50
  },
51
51
  {
52
52
  type: 'blockbook-nownode',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edge-currency-plugins",
3
- "version": "3.8.2",
3
+ "version": "3.8.4",
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",