Skip to content

Commit c65462d

Browse files
Merge remote-tracking branch 'origin/develop' into chore/ddw-596-webpack-5-upgrade
2 parents 2b8bb60 + 5dfe3f6 commit c65462d

40 files changed

+1294
-503
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
{
120120
"files": "hardware-wallet-tests/**/*.ts",
121121
"rules": {
122-
"jest/no-standalone-expect": "off",
122+
"jest/no-standalone-expect": "off"
123123
}
124124
}
125125
]

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ installers/tls/client
4141
installers/tls/server
4242
installers/DLLs
4343
installers/libressl
44+
installers/cfg-files
45+
installers/config.yaml
46+
installers/icons/electron.icns
47+
installers/installer-config.json
48+
installers/topology.yaml
4449

4550
# temporary certs for daedalus dev
4651
tls/client
@@ -119,6 +124,8 @@ Debug
119124
/cardano-cli
120125
/cardano-wallet
121126
.vscode
127+
.yalc
128+
yalc.lock
122129

123130
# Typescript
124131
*.scss.d.ts

CHANGELOG.md

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

3+
## vNext
4+
5+
### Fixes
6+
7+
- 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))
8+
- Fixed phrasing of insufficient funds for tokens message ([PR 2966](https://github.com/input-output-hk/daedalus/pull/2966))
9+
10+
### Features
11+
12+
- Added support for Ledger Nano S Plus ([PR 2975](https://github.com/input-output-hk/daedalus/pull/2975))
13+
14+
### Chores
15+
16+
- 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))
17+
- Published selfnode installers for all 3 platforms ([PR 2971](https://github.com/input-output-hk/daedalus/pull/2971))
18+
319
## 4.10.0
420

521
### Features
@@ -86,12 +102,12 @@
86102

87103
### Fixes
88104

89-
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
105+
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
90106
- Fixed rewards CSV export issues ([PR 2885](https://github.com/input-output-hk/daedalus/pull/2885))
91107
- Fixed behaviour of wallet settings option of the app menu ([PR 2838](https://github.com/input-output-hk/daedalus/pull/2838))
92108
- Fixed styling of ITN rewards feature ([PR 2861](https://github.com/input-output-hk/daedalus/pull/2861))
93109
- Fixed available disk space takes a long time to show ([PR 2849](https://github.com/input-output-hk/daedalus/pull/2849))
94-
110+
95111
### Chores
96112

97113
- Migrated codebase from javascript to typescript ([PR 2843](https://github.com/input-output-hk/daedalus/pull/2843))

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Daedalus - Cryptocurrency Wallet
4242
trusted-substituters =
4343
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
4444
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib
45+
experimental-features = nix-command flakes
4546
4647
# If you are running on a Mac with M1 chip please uncomment 'system' setting to enforce running on Rosetta2
4748
# system = x86_64-darwin
@@ -105,21 +106,6 @@ If you get SSL error when running `nix-shell` (SSL peer certificate or SSH remot
105106
1. Run `yarn nix:testnet` from `daedalus`.
106107
2. Run `yarn dev` from the subsequent `nix-shell`
107108

108-
##### Staging
109-
110-
1. Run `yarn nix:staging` from `daedalus`.
111-
2. Run `yarn dev` from the subsequent `nix-shell`
112-
113-
##### Shelley QA
114-
115-
1. Run `yarn nix:shelley_qa` from `daedalus`.
116-
2. Run `yarn dev` from the subsequent `nix-shell`
117-
118-
##### Alonzo Purple
119-
120-
1. Run `yarn nix:alonzo_purple` from `daedalus`.
121-
2. Run `yarn dev` from the subsequent `nix-shell`
122-
123109
##### Native token metadata server
124110

125111
Daedalus, by default, uses the following metadata server for all networks except for the mainnet: `https://metadata.cardano-testnet.iohkdev.io/`.
@@ -222,6 +208,26 @@ You can debug the main process by following one of these approaches:
222208

223209
The inspector runs on port 9229
224210

211+
### Linking with UI Libraries (e.g. React Polymorph)
212+
213+
You can link libraries with Daedalus using one of the following steps:
214+
215+
#### 1) Using `yalc`
216+
217+
1) Install `yalc` globally using `yarn global add yalc`.
218+
2) Run `yalc publish` from the library's root directory that you want to link with Daedalus.
219+
3) Switch to Daedalus and run `yalc add <package-name>` or preferably `yalc link <package-name>`.
220+
4) You should be able to start Daedalus and see the changes you are making locally in the library.
221+
5) To make sure your changes are reflected as you update code in the library, use `yalc push`.
222+
223+
#### 2) Using `yarn link`
224+
225+
1) From the Daedalus root directory, go to `node_modules/react` and `yarn link`.
226+
2) Navigate to the `react-dom` package in the same directory and run `yarn link` again.
227+
3) Go to the library's root directory and run `yarn link`, `yarn link react` and `yarn link react-dom`.
228+
4) Go back to the Daedalus root directory and run `yarn link <package-name>`.
229+
5) Finally, run `yarn build:watch` from the library's root directory.
230+
225231
## Testing
226232

227233
You can find more details regarding tests setup within

default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ let
8686
inherit (walletPackages) cardano-address;
8787
inherit (walletPackages) mock-token-metadata-server;
8888
cardano-shell = import self.sources.cardano-shell { inherit system; crossSystem = crossSystem shellPkgs.lib; };
89-
local-cluster = if cluster == "selfnode" then (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).local-cluster else null;
89+
local-cluster = if cluster == "selfnode" then walletPackages.local-cluster else null;
9090
cardano-node-cluster = let
9191
# Test wallets with known mnemonics
9292
walletTestGenesisYaml = (self.sources.cardano-wallet + "/lib/shelley/test/data/cardano-node-shelley/genesis.yaml");
@@ -266,7 +266,7 @@ let
266266
pushd dlls
267267
${if dummyInstaller then "touch foo" else "unzip ${self.dlls}"}
268268
popd
269-
cp -v ${self.unpackedCardano}/bin/* .
269+
cp -vr ${self.unpackedCardano}/bin/* .
270270
cp -v ${self.nsisFiles}/{*.yaml,*.json,daedalus.nsi,*.key,*.cert} .
271271
cp ${self.uninstaller}/uninstall.exe ../uninstall.exe
272272
if [ -f ${self.nsisFiles}/block-0.bin ]; then

hardware-wallet-tests/connect-multiple-hardware-wallets.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const run = () => {
1919
createTestInstructions([
2020
'Start test runner',
2121
'Plug Ledger Nano S to your computer',
22+
'Plug Ledger Nano S Plus to your computer',
2223
'Plug Ledger Nano X to your computer',
2324
]);
2425

@@ -27,6 +28,10 @@ export const run = () => {
2728
disconnected: false,
2829
deviceModel: 'nanoS',
2930
},
31+
{
32+
disconnected: false,
33+
deviceModel: 'nanoSP',
34+
},
3035
{
3136
disconnected: false,
3237
deviceModel: 'nanoX',

hardware-wallet-tests/disconnect-multiple-hardware-wallets.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const getNextExpectedSequence = createSequentialResult([
1414
disconnected: false,
1515
deviceModel: 'nanoS',
1616
},
17+
{
18+
disconnected: false,
19+
deviceModel: 'nanoSP',
20+
},
1721
{
1822
disconnected: false,
1923
deviceModel: 'nanoX',
@@ -22,6 +26,10 @@ const getNextExpectedSequence = createSequentialResult([
2226
disconnected: true,
2327
deviceModel: 'nanoS',
2428
},
29+
{
30+
disconnected: true,
31+
deviceModel: 'nanoSP',
32+
},
2533
{
2634
disconnected: true,
2735
deviceModel: 'nanoX',
@@ -37,8 +45,10 @@ export const run = () => {
3745

3846
createTestInstructions([
3947
'Connect Nano S',
48+
'Connect Nano S Plus',
4049
'Connect Nano X',
4150
'Disconnect Nano S',
51+
'Disconnect Nano S Plus',
4252
'Disconnect Nano X',
4353
]);
4454

installer-clusters.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mainnet mainnet_flight testnet shelley_qa staging alonzo_purple
1+
mainnet selfnode mainnet_flight testnet

installers/common/MacInstaller.hs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,19 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
330330
-- Executables (from daedalus-bridge)
331331
forM_ ["cardano-wallet", "cardano-node", "cardano-cli", "cardano-address" ] $ \f ->
332332
cp (bridge </> "bin" </> f) (dir </> f)
333-
forM_ ["config.yaml", "genesis.json", "genesis-byron.json", "genesis-shelley.json", "genesis-alonzo.json", "topology.yaml" ] $ \f ->
333+
forM_ ["config.yaml", "genesis.json", "topology.yaml" ] $ \f ->
334334
cp f (dataDir </> f)
335+
when (oCluster /= Selfnode) $ do
336+
forM_ ["genesis-byron.json", "genesis-shelley.json", "genesis-alonzo.json" ] $ \f ->
337+
cp f (dataDir </> f)
335338

336339
when (oCluster == Selfnode) $ do
337340
cp "signing.key" (dataDir </> "signing.key")
338341
cp "delegation.cert" (dataDir </> "delegation.cert")
342+
cp (bridge </> "bin" </> "mock-token-metadata-server") (dir </> "mock-token-metadata-server")
343+
cp (bridge </> "bin" </> "token-metadata.json") (dataDir </> "token-metadata.json")
344+
cp (bridge </> "bin" </> "local-cluster--unwrapped") (dir </> "local-cluster")
345+
cptreeL (bridge </> "bin" </> "test" </> "data") (dataDir </> "data")
339346

340347
procs "chmod" ["-R", "+w", tt dir] empty
341348

@@ -362,6 +369,9 @@ makeComponentRoot Options{oBackend,oCluster} appRoot darwinConfig@DarwinConfig{d
362369
mapM_ sortaMove [ "HID.node" ]
363370
void $ chain (encodeString dir) [ tt $ dir </> "HID.node" ]
364371

372+
when (oCluster == Selfnode) $ do
373+
void $ chain (encodeString dir) $ fmap tt [ dir </> "mock-token-metadata-server", dir </> "local-cluster" ]
374+
365375
-- Prepare launcher
366376
de <- testdir (dir </> "Frontend")
367377
unless de $ mv (dir </> (fromString $ T.unpack $ dcAppName)) (dir </> "Frontend")

installers/common/WindowsInstaller.hs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,23 @@ writeInstallerNSIS outName (Version fullVersion') InstallerConfig{installDirecto
199199
file [] "config.yaml"
200200
file [] "topology.yaml"
201201
file [] "genesis.json"
202-
file [] "genesis-byron.json"
203-
file [] "genesis-shelley.json"
204-
file [] "genesis-alonzo.json"
202+
when (clusterName /= Selfnode) $ do
203+
file [] "genesis-byron.json"
204+
file [] "genesis-shelley.json"
205+
file [] "genesis-alonzo.json"
205206
file [] "libsodium-23.dll"
206207
when (clusterName == Selfnode) $ do
207208
file [] "signing.key"
208209
file [] "delegation.cert"
210+
file [] "local-cluster.exe"
211+
file [] "libgcc_s_seh-1.dll"
212+
file [] "libgmpxx-4.dll"
213+
file [] "libstdc++-6.dll"
214+
file [] "libwinpthread-1.dll"
215+
file [] "mcfgthread-12.dll"
216+
file [] "mock-token-metadata-server.exe"
217+
file [Recursive] "test\\"
218+
file [] "token-metadata.json"
209219
file [] "cardano-launcher.exe"
210220
file [] "libffi-7.dll"
211221
file [] "libffi-8.dll"

0 commit comments

Comments
 (0)