Skip to content

Commit f56ca1c

Browse files
authored
Merge pull request #2710 from input-output-hk/release-with-master
Merge release/4.3.2 and release/4.4.0 into master
2 parents f6bd045 + 17d4a3c commit f56ca1c

File tree

179 files changed

+8396
-3335
lines changed

Some content is hidden

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

179 files changed

+8396
-3335
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,8 @@
8686
"MOBX_DEV_TOOLS": true,
8787
"BUILD_NUMBER": true,
8888
"Process": true // TODO: remove after fix
89+
},
90+
"settings": {
91+
"import/resolver": "webpack"
8992
}
9093
}

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<PROJECT_ROOT>/state-cluster/.*
1616
<PROJECT_ROOT>/utils/js-launcher/.*
1717
<PROJECT_ROOT>/tests-report/.*
18+
<PROJECT_ROOT>/node_modules/.cache
1819

1920
[include]
2021

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,8 @@ utils/js-launcher/state
110110
# local development cluster
111111

112112
state-cluster
113+
Release
114+
Debug
115+
/cardano-cli
116+
/cardano-wallet
117+
.vscode

CHANGELOG.md

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1-
Changelog
2-
=========
1+
# Changelog
2+
3+
## 4.4.0
4+
5+
### Features
6+
7+
- Implemented the wallet Tokens dedicated screen ([PR 2671](https://github.com/input-output-hk/daedalus/pull/2671), [PR 2701](https://github.com/input-output-hk/daedalus/pull/2701), [PR 2703](https://github.com/input-output-hk/daedalus/pull/2703))
8+
9+
### Fixes
10+
11+
- Fixed wallet settings screen - no space at the bottom when scrolled down ([PR 2686](https://github.com/input-output-hk/daedalus/pull/2686))
12+
- Fixed the missing text for the DAPP static screens ([PR 2693](https://github.com/input-output-hk/daedalus/pull/2693))
13+
14+
### Chores
15+
16+
- Added the possibility to unpair a hardware wallet from Daedalus ([PR 2676](https://github.com/input-output-hk/daedalus/pull/2676))
17+
18+
## 4.3.2
19+
20+
### Features
21+
22+
- Implemented static screens for signing dApp interaction transactions ([PR 2626](https://github.com/input-output-hk/daedalus/pull/2626))
23+
24+
### Fixes
25+
26+
- Fixed font used for unavailable staking while updating messages ([PR 2680](https://github.com/input-output-hk/daedalus/pull/2680))
27+
- Fixed crash when Yubikey is connected ([PR 2673](https://github.com/input-output-hk/daedalus/pull/2673))
28+
- Updated Electron and related packages ([PR 2206](https://github.com/input-output-hk/daedalus/pull/2206))
29+
- Fixed some Japanese translations for the external currencies ([PR 2667](https://github.com/input-output-hk/daedalus/pull/2667))
30+
31+
### Chores
32+
33+
- Updated `cardano-wallet` to version `2021-09-29` which includes `cardano-node` 1.30.1
34+
- Updated `trezor-connect` dependency to version `8.2.0` ([PR 2675](https://github.com/input-output-hk/daedalus/pull/2675))
335

436
## 4.3.1
537

@@ -1088,7 +1120,7 @@ Changelog
10881120
- Fixed paper wallet certificate restoration ([PR 1055](https://github.com/input-output-hk/daedalus/pull/1055))
10891121
- Reduce layout re-renderings ([PR 1595](https://github.com/input-output-hk/daedalus/pull/1595))
10901122
- Fixed green Cardano theme white color and borders color ([PR 1584](https://github.com/input-output-hk/daedalus/pull/1584))
1091-
- Fixed flat button color ([PR 1586](https://github.com/input-output-hk/daedalus/pull/1586))
1123+
- Fixed flat button color ([PR 1586](https://github.com/input-output-hk/daedalus/pull/1586))
10921124

10931125
## 0.15.1
10941126

@@ -1490,6 +1522,7 @@ Changelog
14901522
## 0.9.1
14911523

14921524
### Features
1525+
14931526
- New Edit section in system menu with copy & paste and related actions ([PR 817](https://github.com/input-output-hk/daedalus/pull/817))
14941527

14951528
### Fixes
@@ -1837,15 +1870,15 @@ Changelog
18371870

18381871
- Added wallet creation screen that appears when there is no wallet yet
18391872
- Updated to the latest design specs and refactor to
1840-
[react-toolbox](http://react-toolbox.com/) instead of
1841-
material-ui for the UI components. This gives us much better style
1842-
customization and theming options.
1873+
[react-toolbox](http://react-toolbox.com/) instead of
1874+
material-ui for the UI components. This gives us much better style
1875+
customization and theming options.
18431876
- Cleaned up the boilerplate app menus
18441877
- Added basic form validations using [mobx-react-form](https://github.com/foxhound87/mobx-react-form)
18451878
- Added i18n support with [react-intl](https://github.com/yahoo/react-intl)
18461879
- Added wallet send / receive / transactions screens
18471880
- Form submitting UX updated to the design specifications with introduction of button loading spinners
1848-
and support for submitting the form with enter key
1881+
and support for submitting the form with enter key
18491882
- Added cut, copy & paste application menu items and keyboard shortcuts
18501883

18511884
### Fixes

default.nix

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ let
5454
cardanoLib = localLib.iohkNix.cardanoLib;
5555
daedalus-bridge = self.bridgeTable.${nodeImplementation};
5656

57-
nodejs = pkgs.nodejs-12_x;
57+
nodejs = pkgs.nodejs-14_x;
58+
nodePackages = pkgs.nodePackages.override { nodejs = self.nodejs; };
5859
yarnInfo = {
5960
version = "1.22.4";
6061
hash = "1l3sv30g61dcn7ls213prcja2y3dqdi5apq9r7yyick295w25npq";
@@ -314,17 +315,7 @@ let
314315
source = builtins.filterSource localLib.cleanSourceFilter ./.;
315316
yaml2json = pkgs.haskell.lib.disableCabalFlag pkgs.haskellPackages.yaml "no-exe";
316317

317-
electron4 = pkgs.callPackage ./installers/nix/electron.nix {};
318-
electron8 = self.electron4.overrideAttrs (old: rec {
319-
name = "electron-${version}";
320-
version = "8.2.2";
321-
src = {
322-
x86_64-linux = pkgs.fetchurl {
323-
url = "https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip";
324-
sha256 = "0sk63i72kg7xixqgdkq4z80ia3ya9cyc15pak8shg4qi605jdnr7";
325-
};
326-
}.${pkgs.stdenv.hostPlatform.system} or throwSystem;
327-
});
318+
electron = pkgs.callPackage ./installers/nix/electron.nix {};
328319

329320
tests = {
330321
runFlow = self.callPackage ./tests/flow.nix {};

gulpfile.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,21 @@ gulp.task('server:start', (done) => {
8585
});
8686

8787
gulp.task('server:create:dev', (done) => {
88-
createElectronServer({ NODE_ENV: process.env.NODE_ENV || 'development' });
88+
createElectronServer({
89+
NODE_ENV: process.env.NODE_ENV,
90+
XCURSOR_PATH: '/usr/share/icons' || 'development',
91+
});
8992
done();
9093
});
9194

9295
gulp.task('server:create:debug', (done) => {
93-
createElectronServer({ NODE_ENV: process.env.NODE_ENV || 'development' }, [
94-
'--inspect',
95-
'--inspect-brk',
96-
]);
96+
createElectronServer(
97+
{
98+
NODE_ENV: process.env.NODE_ENV,
99+
XCURSOR_PATH: '/usr/share/icons' || 'development',
100+
},
101+
['--inspect', '--inspect-brk']
102+
);
97103
done();
98104
});
99105

installers/common/MacInstaller.hs

Lines changed: 79 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ KEYCHAIN="$2"
118118
REL_PATH="$3"
119119
XML_PATH="$4"
120120
ABS_PATH="$(pwd)/$REL_PATH"
121-
SIGN_CMD="codesign --verbose=4 --deep --strict --timestamp --options=runtime --entitlements $XML_PATH --sign \"$SIGN_ID\""
121+
TS="$(date +%Y-%m-%d_%H-%M-%S)"
122+
function sign_cmd() {
123+
codesign --verbose=4 --deep --strict --timestamp --options=runtime --entitlements $XML_PATH --sign "$SIGN_ID" "$1" 2>&1 | tee -a /tmp/codesign-output-${TS}.txt
124+
}
122125
VERIFY_CMD="codesign --verbose=4 --verify --deep --strict"
123126
ENTITLEMENT_CMD="codesign -d --entitlements :-"
124-
TS="$(date +%Y-%m-%d_%H-%M-%S)"
125127
LOG="2>&1 | tee -a /tmp/codesign-output-${TS}.txt"
126128

127129
# Remove symlinks pointing outside of the project build folder:
@@ -133,25 +135,26 @@ eval "security find-identity -v -p codesigning \"$KEYCHAIN\" $LOG"
133135
eval "security list-keychains -d user -s \"$KEYCHAIN\" $LOG"
134136

135137
# Sign framework executables not signed by the deep sign command:
136-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt\" $LOG"
137-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Resources/crashpad_handler\" $LOG"
138-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libnode.dylib\" $LOG"
139-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libffmpeg.dylib\" $LOG"
138+
sign_cmd "$ABS_PATH/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt"
139+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Resources/crashpad_handler"
140+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libnode.dylib"
141+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libffmpeg.dylib"
140142

141-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libEGL.dylib\" $LOG"
142-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib\" $LOG"
143-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libEGL.dylib\" $LOG"
144-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libGLESv2.dylib\" $LOG"
143+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libEGL.dylib"
144+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib"
145+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libEGL.dylib"
146+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libswiftshader_libGLESv2.dylib"
147+
sign_cmd "$ABS_PATH/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libvk_swiftshader.dylib"
145148

146149
# Sign native electron bindings and supplementary binaries
147-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Resources/app/build/usb_bindings.node\" $LOG"
148-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Resources/app/build/HID.node\" $LOG"
149-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Resources/app/node_modules/keccak/bin/darwin-x64-76/keccak.node\" $LOG"
150-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Resources/app/node_modules/keccak/build/Release/addon.node\" $LOG"
151-
eval "$SIGN_CMD \"$ABS_PATH/Contents/Resources/app/node_modules/keccak/prebuilds/darwin-x64/node.napi.node\" $LOG"
150+
sign_cmd "$ABS_PATH/Contents/Resources/app/build/usb_bindings.node"
151+
sign_cmd "$ABS_PATH/Contents/Resources/app/build/HID.node"
152+
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/bin/darwin-x64-"*"/keccak.node"
153+
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/build/Release/addon.node"
154+
sign_cmd "$ABS_PATH/Contents/Resources/app/node_modules/keccak/prebuilds/darwin-x64/node.napi.node"
152155

153156
# Sign the whole component deeply
154-
eval "$SIGN_CMD \"$ABS_PATH\" $LOG"
157+
sign_cmd "$ABS_PATH"
155158

156159
# Verify the signing
157160
eval "$VERIFY_CMD \"$ABS_PATH\" $LOG"
@@ -229,60 +232,62 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
229232
externalYarn :: [FilePath]
230233
externalYarn =
231234
[ "@babel"
232-
, "regenerator-runtime"
233-
, "node-fetch"
234235
, "@trezor"
235-
, "runtypes"
236-
, "parse-uri"
237-
, "randombytes"
238-
, "safe-buffer"
236+
, "base-x"
237+
, "base64-js"
238+
, "bchaddrjs"
239+
, "big-integer"
240+
, "bigi"
241+
, "bignumber.js"
239242
, "bip66"
240-
, "pushdata-bitcoin"
241243
, "bitcoin-ops"
242-
, "typeforce"
243-
, "varuint-bitcoin"
244-
, "bigi"
245-
, "create-hash"
246-
, "merkle-lib"
247244
, "blake2b"
248-
, "nanoassert"
249245
, "blake2b-wasm"
250-
, "bs58check"
251246
, "bs58"
252-
, "base-x"
253-
, "create-hmac"
254-
, "ecurve"
255-
, "wif"
256-
, "ms"
257-
, "keccak"
258-
, "trezor-link"
259-
, "semver-compare"
260-
, "protobufjs-old-fixed-webpack"
247+
, "bs58check"
261248
, "bytebuffer-old-fixed-webpack"
262-
, "long"
263-
, "object.values"
249+
, "call-bind"
250+
, "cashaddrjs"
251+
, "cbor-web"
252+
, "create-hash"
253+
, "create-hmac"
254+
, "cross-fetch"
264255
, "define-properties"
265-
, "object-keys"
266-
, "has"
267-
, "function-bind"
256+
, "ecurve"
268257
, "es-abstract"
258+
, "function-bind"
259+
, "get-intrinsic"
260+
, "has"
269261
, "has-symbols"
270-
, "json-stable-stringify"
271-
, "tiny-worker"
272262
, "hd-wallet"
273-
, "cashaddrjs"
274-
, "big-integer"
275-
, "queue"
263+
, "ieee754"
276264
, "inherits"
277-
, "bchaddrjs"
278-
, "cross-fetch"
279-
, "trezor-connect"
280-
, "js-chain-libs-node"
281-
, "bignumber.js"
282265
, "int64-buffer"
283-
, "call-bind"
284-
, "get-intrinsic"
285-
, "cbor-web"
266+
, "js-chain-libs-node"
267+
, "json-stable-stringify"
268+
, "keccak"
269+
, "long"
270+
, "merkle-lib"
271+
, "ms"
272+
, "nanoassert"
273+
, "node-fetch"
274+
, "object-keys"
275+
, "object.values"
276+
, "parse-uri"
277+
, "protobufjs-old-fixed-webpack"
278+
, "pushdata-bitcoin"
279+
, "queue"
280+
, "randombytes"
281+
, "regenerator-runtime"
282+
, "runtypes"
283+
, "safe-buffer"
284+
, "semver-compare"
285+
, "tiny-worker"
286+
, "trezor-connect"
287+
, "trezor-link"
288+
, "typeforce"
289+
, "varuint-bitcoin"
290+
, "wif"
286291
]
287292
mapM_ (\lib -> do
288293
cptree ("../node_modules" </> lib) ((fromText pathtoapp) </> "Contents/Resources/app/node_modules" </> lib)
@@ -309,7 +314,9 @@ getBackendVersion (Cardano bridge) = readCardanoVersionFile bridge
309314

310315
makeComponentRoot :: Options -> FilePath -> DarwinConfig -> InstallerConfig -> IO ()
311316
makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{dcAppName} InstallerConfig{} = do
312-
let dir = appRoot </> "Contents/MacOS"
317+
let
318+
dir :: FilePath
319+
dir = appRoot </> "Contents/MacOS"
313320
dataDir = appRoot </> "Contents/Resources"
314321

315322
echo "Preparing files ..."
@@ -341,6 +348,20 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
341348

342349
-- Rewrite libs paths and bundle them
343350
void $ chain (encodeString dir) $ fmap tt [dir </> "cardano-launcher", dir </> "cardano-wallet", dir </> "cardano-node", dir </> "cardano-cli", dir </> "cardano-address" ]
351+
let
352+
sortaMove :: FilePath -> IO ()
353+
sortaMove filename = do
354+
mv (appRoot </> "Contents/Resources/app/build" </> filename) (dir</>filename)
355+
symlink ("../../../MacOS" </> filename) (appRoot </> "Contents/Resources/app/build" </> filename)
356+
mapM_ sortaMove [ "usb_bindings.node" ]
357+
void $ chain (encodeString dir) [ tt $ dir </> "usb_bindings.node" ]
358+
let
359+
sortaMove :: FilePath -> IO ()
360+
sortaMove filename = do
361+
mv (appRoot </> "Contents/Resources/app/build" </> filename) (dir</>filename)
362+
symlink ("../../../MacOS" </> filename) (appRoot </> "Contents/Resources/app/build" </> filename)
363+
mapM_ sortaMove [ "HID.node" ]
364+
void $ chain (encodeString dir) [ tt $ dir </> "HID.node" ]
344365

345366
-- Prepare launcher
346367
de <- testdir (dir </> "Frontend")

0 commit comments

Comments
 (0)