Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 1c84532

Browse files
committed
Merge branch 'develop'
2 parents f687031 + 7e9acb9 commit 1c84532

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+17759
-15863
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
./node_modules/.bin/lint-staged

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.15
1+
14

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "8.15"
3+
- 14
44

55
notifications:
66
email: false

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
### Requirements
1515

16-
* [Node.js](https://nodejs.org) LTS (v8)
16+
* [Node.js](https://nodejs.org) LTS (v12 minimum, v14 recommended)
1717

1818
### Launch
1919

@@ -25,13 +25,24 @@ npm i
2525
npm run dev
2626
```
2727

28+
#### Troubleshooting
29+
30+
- If you get an error when installing the dependencies related to `node-gyp`, try using `sudo` to postinstall the deps
31+
- For windows, you might need to install the windows-build-tools. To do so, run
32+
33+
```bash
34+
npm i --global --production windows-build-tools
35+
```
36+
2837
### Logs
2938

3039
The log output is in the next directories:
3140

32-
* **Linux:** `~/.config/<app name>/log.log`
33-
* **macOS:** `~/Library/Logs/<app name>/log.log`
34-
* **Windows:** `%USERPROFILE%\AppData\Roaming\<app name>\log.log`
41+
* **Linux:** `~/.config/<app name>/logs/{process-type}.log`
42+
* **macOS:** `~/Library/Logs/<app name>/logs/{process-type}.log`
43+
* **Windows:** `%USERPROFILE%\AppData\Roaming\<app name>\logs\{process-type}.log`
44+
45+
`process-type` being equal to `main`, `renderer` or `worker`
3546

3647
More info [github.com/megahertz/electron-log](https://github.com/megahertz/electron-log)
3748

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cache:
1212
- '%USERPROFILE%\.electron'
1313

1414
install:
15-
- ps: Install-Product node 8.15
15+
- ps: Install-Product node 14
1616
- npm i --global --production windows-build-tools@4
1717
- npm i
1818

@@ -22,7 +22,7 @@ platform:
2222
build_script:
2323
- npm run dist
2424

25-
test: "off"
25+
test: false
2626

2727
for:
2828
-

package-lock.json

Lines changed: 17536 additions & 15264 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 46 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metronome-desktop-wallet",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"author": {
55
"name": "Autonomous Software",
66
"email": "info@autonomous.sh",
@@ -20,11 +20,12 @@
2020
"env:win32": ".\\scripts\\env.bat",
2121
"env:darwin:linux": "./scripts/env.sh",
2222
"ppa": "./scripts/ppa.sh",
23-
"postinstall": "electron-rebuild",
24-
"prepare": "patch-package",
23+
"postinstall": "electron-builder install-app-deps",
24+
"prepare": "patch-package && husky install",
2525
"release": "npm run dist -- --publish always"
2626
},
2727
"dependencies": {
28+
"@electron/remote": "1.2.0",
2829
"@reach/menu-button": "0.1.7",
2930
"bignumber.js": "7.2.1",
3031
"bip39": "2.5.0",
@@ -33,67 +34,64 @@
3334
"credential-plus-pbkdf2": "2.0.4",
3435
"cuid": "2.1.6",
3536
"dotenv": "5.0.1",
36-
"electron-context-menu": "0.11.0",
37-
"electron-debug": "2.1.0",
38-
"electron-is-dev": "1.0.1",
39-
"electron-log": "3.0.5",
40-
"electron-settings": "3.2.0",
41-
"electron-unhandled": "2.1.0",
42-
"electron-updater": "4.0.6",
37+
"electron-context-menu": "3.1.1",
38+
"electron-debug": "3.2.0",
39+
"electron-is-dev": "2.0.0",
40+
"electron-log": "4.3.0",
41+
"electron-settings": "4.0.2",
42+
"electron-unhandled": "3.0.2",
43+
"electron-updater": "4.3.0",
4344
"electron-window-state": "5.0.3",
4445
"fast-password-entropy": "1.1.1",
4546
"json-stringify-safe": "5.0.1",
46-
"lodash": "4.17.15",
47-
"metronome-contracts": "2.4.0",
48-
"metronome-wallet-core": "2.4.5",
49-
"metronome-wallet-ui-logic": "3.5.1",
47+
"lodash": "4.17.21",
48+
"metronome-contracts": "2.5.0",
49+
"metronome-wallet-core": "3.0.0",
50+
"metronome-wallet-ui-logic": "3.5.2",
5051
"nedb": "1.8.0",
51-
"p-timeout": "2.0.1",
52+
"p-timeout": "4.1.0",
5253
"patch-package": "5.1.1",
5354
"qrcode.react": "0.7.2",
5455
"raven": "2.6.4",
5556
"raven-js": "3.27.0",
56-
"react": "16.7.0",
57-
"react-dom": "16.7.0",
58-
"react-hint": "3.1.0",
57+
"react": "17.0.2",
58+
"react-dom": "17.0.2",
59+
"react-hint": "3.2.1",
5960
"react-modal": "3.5.1",
6061
"react-motion": "0.5.2",
6162
"react-router": "4.3.1",
6263
"react-router-dom": "4.3.1",
63-
"react-scripts": "2.1.3",
64+
"react-scripts": "4.0.3",
6465
"react-virtualized": "9.20.1",
6566
"smart-round": "1.0.0",
6667
"styled-components": "4.1.2",
6768
"universal-analytics": "0.4.20",
68-
"web3-utils": "1.0.0-beta.37"
69+
"web3-utils": "1.3.6"
6970
},
7071
"devDependencies": {
71-
"concurrently": "3.6.0",
72-
"devtron": "1.4.0",
73-
"electron": "4.0.5",
74-
"electron-builder": "20.38.5",
75-
"electron-devtools-installer": "2.2.4",
76-
"electron-rebuild": "1.8.4",
77-
"eslint": "5.6.0",
78-
"eslint-config-bloq": "2.1.0",
79-
"eslint-config-prettier": "4.1.0",
80-
"eslint-config-standard": "12.0.0",
81-
"eslint-plugin-import": "2.17.2",
82-
"eslint-plugin-jsdoc": "4.8.3",
83-
"eslint-plugin-mocha": "5.3.0",
84-
"eslint-plugin-node": "8.0.1",
85-
"eslint-plugin-prefer-arrow": "1.1.5",
86-
"eslint-plugin-promise": "4.1.1",
72+
"concurrently": "6.2.0",
73+
"electron": "13.1.4",
74+
"electron-builder": "22.11.7",
75+
"electron-devtools-installer": "3.2.0",
76+
"eslint-config-bloq": "2.4.0",
77+
"eslint-config-prettier": "8.3.0",
78+
"eslint-config-standard": "16.0.3",
79+
"eslint-plugin-import": "2.23.4",
80+
"eslint-plugin-jsdoc": "35.4.1",
81+
"eslint-plugin-mocha": "9.0.0",
82+
"eslint-plugin-node": "11.1.0",
83+
"eslint-plugin-prefer-arrow": "1.2.3",
84+
"eslint-plugin-promise": "5.1.0",
8785
"eslint-plugin-require-path-exists": "1.1.9",
8886
"eslint-plugin-standard": "4.0.0",
8987
"expect": "22.4.3",
90-
"husky": "1.3.1",
91-
"lint-staged": "8.1.0",
92-
"prettier": "1.15.3",
93-
"proxyquire": "1.8.0",
88+
"husky": "7.0.0",
89+
"lint-staged": "11.0.0",
90+
"prettier": "1.19.1",
91+
"proxyquire": "2.1.3",
9492
"react-testing-library": "1.10.0",
95-
"run-script-os": "1.0.5",
96-
"wait-on": "2.1.0"
93+
"run-script-os": "1.1.6",
94+
"wait-on": "6.0.0"
9795
},
9896
"build": {
9997
"appId": "sh.autonomous.metronome.wallet.desktop",
@@ -157,18 +155,15 @@
157155
"not ie <= 11",
158156
"not op_mini all"
159157
],
160-
"husky": {
161-
"hooks": {
162-
"pre-commit": "lint-staged"
163-
}
164-
},
165158
"lint-staged": {
166-
"{src,public}/**/*.js": [
167-
"eslint --cache"
159+
"src/**/*.js": [
160+
"eslint --config src/.eslintrc.json --cache"
161+
],
162+
"public/**/*.js": [
163+
"eslint --config public/.eslintrc.json --cache"
168164
],
169165
"src/**/*.{js,json,css,md}": [
170-
"prettier --write",
171-
"git add"
166+
"prettier --write --config src/.prettierrc.json"
172167
]
173168
}
174169
}
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
patch-package
22
--- a/node_modules/react-scripts/config/webpack.config.js
33
+++ b/node_modules/react-scripts/config/webpack.config.js
4-
@@ -323,7 +323,8 @@ module.exports = function(webpackEnv) {
5-
loader: require.resolve('eslint-loader'),
6-
},
7-
],
8-
- include: paths.appSrc,
9-
+ include: [paths.appSrc, /metronome-wallet-ui-logic/],
10-
+ exclude: [/metronome-wallet-ui-logic\/node_modules/],
11-
},
12-
{
13-
// "oneOf" will traverse all following loaders until one will
14-
@@ -345,7 +346,7 @@ module.exports = function(webpackEnv) {
4+
@@ -403,7 +403,7 @@ module.exports = function (webpackEnv) {
155
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
166
{
177
test: /\.(js|mjs|jsx|ts|tsx)$/,
@@ -22,12 +12,12 @@ patch-package
2212
customize: require.resolve(
2313
--- a/node_modules/react-scripts/scripts/utils/createJestConfig.js
2414
+++ b/node_modules/react-scripts/scripts/utils/createJestConfig.js
25-
@@ -54,7 +54,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
15+
@@ -50,7 +50,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
2616
),
2717
},
2818
transformIgnorePatterns: [
29-
- '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$',
19+
- '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$',
3020
+ '[/\\\\]node_modules[/\\\\](?!(metronome-wallet-ui-logic)/).+\\.(js|jsx|ts|tsx)$',
3121
'^.+\\.module\\.(css|sass|scss)$',
3222
],
33-
moduleNameMapper: {
23+
modulePaths: modules.additionalModulePaths || [],

patches/web3-core-helpers+1.0.0-beta.37.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

patches/web3-core-method+1.0.0-beta.37.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)