Skip to content

Commit 9410144

Browse files
authored
Merge pull request #3019 from input-output-hk/merge-4.12.0-into-main
Merge 4.12.0 into main
2 parents 8c22a1a + 4bda8fe commit 9410144

File tree

280 files changed

+24451
-27671
lines changed

Some content is hidden

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

280 files changed

+24451
-27671
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 4.12.0
4+
5+
### Fixes
6+
7+
- Fixed downloaded installer being left in Downloads after latest update installs ([PR 2941](https://github.com/input-output-hk/daedalus/pull/2941))
8+
- Fixed incorrect amount of token sent ([PR 2962](https://github.com/input-output-hk/daedalus/pull/2962))
9+
10+
### Chores
11+
12+
- Added OS-architecture tuple to installer file names to help with releases ([PR 3016](https://github.com/input-output-hk/daedalus/pull/3016))
13+
- Added Vasil-supported cardano-wallet ([PR 3001](https://github.com/input-output-hk/daedalus/pull/3001))
14+
- Upgraded webpack to version 5 ([PR 2772](https://github.com/input-output-hk/daedalus/pull/2772))
15+
316
## 4.11.0
417

518
### Fixes
@@ -15,6 +28,7 @@
1528

1629
### Chores
1730

31+
- Bumped vulnerable dependencies versions ([PR 2943](https://github.com/input-output-hk/daedalus/pull/2943))
1832
- Added support for Trezor firmware 2.5.1 ([PR 2991](https://github.com/input-output-hk/daedalus/pull/2991))
1933
- 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))
2034
- Published selfnode installers for all 3 platforms ([PR 2971](https://github.com/input-output-hk/daedalus/pull/2971))

declaration.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { IpcRenderer } from 'electron';
2+
import type { request as httpRequest } from 'http';
3+
import type { request as httpsRequest, globalAgent } from 'https';
4+
import { Environment } from './source/common/types/environment.types';
5+
16
declare module '*.svg' {
27
const content: any;
38
export default content;
@@ -22,6 +27,15 @@ type Daedalus = {
2227
};
2328
};
2429

30+
interface Http {
31+
request: httpRequest;
32+
}
33+
34+
interface Https {
35+
request: httpsRequest;
36+
Agent: globalAgent;
37+
}
38+
2539
export type $ElementType<
2640
T extends { [P in K & any]: any },
2741
K extends keyof T | number
@@ -39,7 +53,18 @@ declare global {
3953
WALLET_COUNT: number;
4054
}
4155
}
56+
/* eslint-disable no-var, vars-on-top */
4257
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 */
4368
}
4469

4570
export {};

default.nix

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,22 @@ let
3131
};
3232
};
3333
pkgs = import sources.nixpkgs { inherit system config; };
34-
sources = localLib.sources;
34+
sources = localLib.sources // {
35+
cardano-wallet = pkgs.runCommand "cardano-wallet" {} ''
36+
cp -r ${localLib.sources.cardano-wallet} $out
37+
chmod -R +w $out
38+
cd $out
39+
patch -p1 -i ${./nix/cardano-wallet--enable-aarch64-darwin.patch}
40+
patch -p1 -i ${builtins.path {
41+
# XXX: unfortunately, GitHub changed lengths of hashes in patches it returns for PRs,
42+
# that’s why we’re providing this patch inside our repo, with the same exact SHA-256,
43+
# to the one released in 4.12.0:
44+
path = ./nix/cardano-wallet--pr-3382--ledger-bug.patch;
45+
recursive = false;
46+
sha256 = "1ii12g2zikv4197c7bsh4v5dc1jzygn1jap8xvnr7mvh3a09pdgn";
47+
}}
48+
'';
49+
};
3550
haskellNix = import sources."haskell.nix" {};
3651
inherit (import haskellNix.sources.nixpkgs-unstable haskellNix.nixpkgsArgs) haskell-nix;
3752
flake-compat = import sources.flake-compat;
@@ -61,7 +76,7 @@ let
6176
ostable.aarch64-darwin = "macos64-arm";
6277

6378
packages = self: {
64-
inherit cluster pkgs version target nodeImplementation;
79+
inherit walletFlake cluster pkgs version target nodeImplementation;
6580
cardanoLib = localLib.iohkNix.cardanoLib;
6681
daedalus-bridge = self.bridgeTable.${nodeImplementation};
6782

@@ -295,7 +310,7 @@ let
295310
signed-windows-installer = let
296311
backend_version = self.daedalus-bridge.wallet-version;
297312
frontend_version = (builtins.fromJSON (builtins.readFile ./package.json)).version;
298-
fullName = "daedalus-${frontend_version}-${cluster}${buildNumSuffix}.exe"; # must match to packageFileName in make-installer
313+
fullName = "daedalus-${frontend_version}-${cluster}${buildNumSuffix}-x86_64-windows.exe"; # must match to packageFileName in make-installer
299314
in pkgs.runCommand "signed-windows-installer-${cluster}" {} ''
300315
mkdir $out
301316
cp -v ${self.signFile "${self.unsigned-windows-installer}/${fullName}"} $out/${fullName}
@@ -412,7 +427,7 @@ let
412427
version = (builtins.fromJSON (builtins.readFile ./package.json)).version;
413428
backend = "cardano-wallet-${nodeImplementation}";
414429
suffix = if buildNum == null then "" else "-${toString buildNum}";
415-
fn = "daedalus-${version}-${self.linuxClusterBinName}${suffix}.bin";
430+
fn = "daedalus-${version}-${self.linuxClusterBinName}${suffix}-x86_64-linux.bin";
416431
in pkgs.runCommand fn {} ''
417432
mkdir -p $out
418433
cp ${self.newBundle} $out/${fn}

0 commit comments

Comments
 (0)