Skip to content

Commit 2447bbb

Browse files
author
Marcin Mazurek
committed
Merge remote-tracking branch 'origin/develop' into feat/ddw-1025-matomo-poc
2 parents c2372e5 + 35f93ba commit 2447bbb

File tree

268 files changed

+25920
-11772
lines changed

Some content is hidden

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

268 files changed

+25920
-11772
lines changed

.babelrc

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

.buildkite/pipeline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ env:
22
ARTIFACT_BUCKET: s3://ci-output-sink
33
steps:
44
- label: 'daedalus-x86_64-darwin'
5-
command: 'scripts/build-installer-unix.sh--nix-2.5 --build-id $BUILDKITE_BUILD_NUMBER'
5+
command: 'scripts/with-nix-2.5.sh scripts/build-installer-unix.sh --build-id $BUILDKITE_BUILD_NUMBER'
66
env:
77
NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
88
agents:
99
queue: daedalus
1010
system: x86_64-darwin
1111
- label: 'daedalus-aarch64-darwin'
12-
command: 'scripts/build-installer-unix.sh--nix-2.5 --build-id $BUILDKITE_BUILD_NUMBER'
12+
command: 'scripts/with-nix-2.5.sh scripts/build-installer-unix.sh --build-id $BUILDKITE_BUILD_NUMBER'
1313
env:
1414
NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
1515
UPLOAD_DIR_OVERRIDE: UNSAFE-internal-build
1616
agents:
1717
queue: daedalus
1818
system: aarch64-darwin
1919
- label: 'daedalus-x86_64-linux-nix'
20-
command: 'scripts/build-installer-nix.sh $BUILDKITE_BUILD_NUMBER'
20+
command: 'scripts/with-nix-2.5.sh scripts/build-installer-nix.sh $BUILDKITE_BUILD_NUMBER'
2121
agents:
2222
system: x86_64-linux
2323
- label: 'daedalus-x86_64-windows-nix'
24-
command: 'scripts/build-cross-windows.sh $BUILDKITE_BUILD_NUMBER'
24+
command: 'scripts/with-nix-2.5.sh scripts/build-cross-windows.sh $BUILDKITE_BUILD_NUMBER'
2525
agents:
2626
system: x86_64-linux
2727

.eslintrc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"plugin:@typescript-eslint/recommended",
1111
"plugin:react/recommended",
1212
"prettier",
13-
"prettier/babel",
14-
"prettier/@typescript-eslint",
15-
"prettier/react",
1613
"plugin:jest/recommended"
1714
],
1815
"env": {
@@ -22,9 +19,11 @@
2219
"jest": true
2320
},
2421
"rules": {
22+
"arrow-body-style": 0,
2523
"class-methods-use-this": 0,
2624
"consistent-return": "warn",
2725
"@typescript-eslint/generic-spacing": 0,
26+
"@typescript-eslint/space-after-type-colon": 0,
2827
"jsx-a11y/alt-text": 0,
2928
"lines-between-class-members": 0,
3029
"global-require": 0,
@@ -60,6 +59,7 @@
6059
"react/destructuring-assignment": 0,
6160
"react/display-name": 0,
6261
"react/jsx-curly-brace-presence": 0,
62+
"react/jsx-curly-newline": 0,
6363
"react/jsx-filename-extension": 0,
6464
"react/jsx-fragments": 0,
6565
"react/jsx-no-bind": "warn",
@@ -76,22 +76,28 @@
7676
"@typescript-eslint/no-empty-function": 1,
7777
"@typescript-eslint/ban-types": 1,
7878
"import/no-unresolved": 1,
79-
"@typescript-eslint/no-var-requires": 1,
79+
"@typescript-eslint/no-var-requires": 0,
8080
"camelcase": 1,
8181
"no-empty": 1,
8282
"@typescript-eslint/no-explicit-any": 1,
8383
"no-shadow": 1,
8484
"react/no-did-update-set-state": 1,
8585
"react/sort-comp": 0,
8686
"react/state-in-constructor": 0,
87-
"react/static-property-placement": 0
87+
"react/static-property-placement": 0,
88+
"react/jsx-no-useless-fragment": 0,
89+
"prefer-regex-literals": 0,
90+
"no-unused-vars": "warn",
91+
"react/no-unused-class-component-methods": "warn",
92+
"react/no-unstable-nested-components": "warn",
93+
"no-promise-executor-return": "warn",
94+
"default-param-last": "warn"
8895
},
8996
"plugins": ["@typescript-eslint", "import", "promise", "react", "jest"],
9097
"globals": {
9198
"API": true,
9299
"API_VERSION": true,
93100
"NETWORK": true,
94-
"MOBX_DEV_TOOLS": true,
95101
"BUILD_NUMBER": true,
96102
"Process": true // TODO: remove after fix
97103
},

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v2
2020
with:
21-
node-version: "14"
21+
node-version: "16"
2222
- name: Install dependencies
2323
run: yarn
2424
- name: Publish to Chromatic

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ build/Release
3131
# Dependency directory
3232
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
3333
node_modules
34+
/node_modules.*
3435

3536
# OSX
3637
.DS_Store
@@ -46,6 +47,9 @@ installers/config.yaml
4647
installers/icons/electron.icns
4748
installers/installer-config.json
4849
installers/topology.yaml
50+
installers/csl-daedalus/
51+
installers/delegation.cert
52+
installers/signing.key
4953

5054
# temporary certs for daedalus dev
5155
tls/client

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!features/
77
!storybook/
88
!hardware-wallet-tests/
9+
!tests/
910

1011
# Now we ignore all files
1112
*.*

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Changelog
22

3-
## vNext
3+
## 4.11.0
44

55
### Fixes
66

77
- Fixed incorrect behaviour of creating new wallet when paired incorrect hardware wallet during address verification ([PR 2906](https://github.com/input-output-hk/daedalus/pull/2906))
88
- Fixed phrasing of insufficient funds for tokens message ([PR 2966](https://github.com/input-output-hk/daedalus/pull/2966))
9+
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
910

1011
### Features
1112

@@ -14,6 +15,8 @@
1415

1516
### Chores
1617

18+
- Upgraded webpack to version 5 ([PR 2772](https://github.com/input-output-hk/daedalus/pull/2772))
19+
- Bumped vulnerable dependencies versions ([PR 2943](https://github.com/input-output-hk/daedalus/pull/2943))
1720
- Added support for Trezor firmware 2.5.1 ([PR 2991](https://github.com/input-output-hk/daedalus/pull/2991))
1821
- Added steps on how to link with `react-polymorph` and other external UI libraries ([PR 2948](https://github.com/input-output-hk/daedalus/pull/2948))
1922
- Published selfnode installers for all 3 platforms ([PR 2971](https://github.com/input-output-hk/daedalus/pull/2971))
@@ -103,7 +106,6 @@
103106

104107
### Fixes
105108

106-
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
107109
- Fixed rewards CSV export issues ([PR 2885](https://github.com/input-output-hk/daedalus/pull/2885))
108110
- Fixed behaviour of wallet settings option of the app menu ([PR 2838](https://github.com/input-output-hk/daedalus/pull/2838))
109111
- Fixed styling of ITN rewards feature ([PR 2861](https://github.com/input-output-hk/daedalus/pull/2861))

declaration.d.ts

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import { IpcRenderer } from 'electron';
2+
import type { request as httpRequest } from 'http';
3+
import type { request as httpsRequest, globalAgent } from 'https';
14
import { Environment } from './source/common/types/environment.types';
25

36
declare module '*.svg' {
@@ -24,6 +27,15 @@ type Daedalus = {
2427
};
2528
};
2629

30+
interface Http {
31+
request: httpRequest;
32+
}
33+
34+
interface Https {
35+
request: httpsRequest;
36+
Agent: globalAgent;
37+
}
38+
2739
export type $ElementType<
2840
T extends { [P in K & any]: any },
2941
K extends keyof T | number
@@ -41,10 +53,18 @@ declare global {
4153
WALLET_COUNT: number;
4254
}
4355
}
44-
45-
var environment: Environment;
46-
56+
/* eslint-disable no-var, vars-on-top */
4757
var daedalus: Daedalus;
58+
var environment: Environment;
59+
var http: Http;
60+
var https: Https;
61+
var legacyStateDir: string;
62+
var isFlight: boolean;
63+
var ipcRenderer: Pick<
64+
IpcRenderer,
65+
'on' | 'once' | 'send' | 'removeListener' | 'removeAllListeners'
66+
>;
67+
/* eslint-enable no-var, vars-on-top */
4868
}
4969

5070
export {};

0 commit comments

Comments
 (0)