Skip to content

Commit ddaf412

Browse files
authored
Merge pull request #2375 from input-output-hk/release-with-master
Merge release/3.3.0 into master
2 parents 62bc268 + bb46677 commit ddaf412

File tree

243 files changed

+12393
-1370
lines changed

Some content is hidden

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

243 files changed

+12393
-1370
lines changed

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,57 @@
11
Changelog
22
=========
33

4+
## 3.3.0
5+
6+
### Fixes
7+
8+
- Fixed issue with hardware wallet delegation ([PR 2369](https://github.com/input-output-hk/daedalus/pull/2369))
9+
10+
### Chores
11+
12+
- Updated `cardano-launcher` to version `0.20210215.0` ([PR 2363](https://github.com/input-output-hk/daedalus/pull/2363))
13+
- Updated `cardano-wallet` to version `2021-02-15` ([PR 2363](https://github.com/input-output-hk/daedalus/pull/2363))
14+
- Updated `cardano-wallet` to version `2021-02-12` ([PR 2358](https://github.com/input-output-hk/daedalus/pull/2358))
15+
- Improved the error messages for the custom SMASH server url input ([PR 2355](https://github.com/input-output-hk/daedalus/pull/2355))
16+
17+
## 3.3.0-FC1
18+
19+
### Features
20+
21+
- Added display of wallet balance in other currencies ([PR 2290](https://github.com/input-output-hk/daedalus/pull/2290))
22+
- Implemented alternate Ledger wallet handling ([PR 2342](https://github.com/input-output-hk/daedalus/pull/2342))
23+
- Re-enabled "Wallet import" feature ([PR 2308](https://github.com/input-output-hk/daedalus/pull/2308))
24+
- Configured "Staking" sidebar icon to always be shown and added a "Staking Syncing" screen to be shown instead of the "Delegation center" until Daedalus fully syncs ([PR 2315](https://github.com/input-output-hk/daedalus/pull/2315))
25+
- Implemented "Voting Center" ([PR 2315](https://github.com/input-output-hk/daedalus/pull/2315), [PR 2353](https://github.com/input-output-hk/daedalus/pull/2353), [PR 2354](https://github.com/input-output-hk/daedalus/pull/2354))
26+
- Implemented transaction metadata display ([PR 2338](https://github.com/input-output-hk/daedalus/pull/2338))
27+
- Displayed fee and deposit info in transaction details and in the delegation wizard ([PR 2339](https://github.com/input-output-hk/daedalus/pull/2339))
28+
- Added SMASH server configuration options ([PR 2259](https://github.com/input-output-hk/daedalus/pull/2259))
29+
30+
### Fixes
31+
32+
- Fixed issues with downloading logs and exporting transaction CSV history on Linux platform
33+
- Fixed an automatic update failure ([PR 2352](https://github.com/input-output-hk/daedalus/pull/2352))
34+
- Fixed logging issue with too few `cardano-wallet` logs being packed into logs zip archive ([PR 2341](https://github.com/input-output-hk/daedalus/pull/2341))
35+
- Fixed misalignment of the "i" icon on the "Set password" dialog ([PR 2337](https://github.com/input-output-hk/daedalus/pull/2337))
36+
- Removed steps counter from the "Success" wallet restoration dialog step ([PR 2335](https://github.com/input-output-hk/daedalus/pull/2335))
37+
38+
### Chores
39+
40+
- Disabled "Voting Center" for Flight builds
41+
- Updated `cardano-wallet` to revision `1ea5e882` ([PR 2356](https://github.com/input-output-hk/daedalus/pull/2356))
42+
- Force public key export on every interaction with hardware wallet device ([PR 2342](https://github.com/input-output-hk/daedalus/pull/2342))
43+
- Updated Hardware Wallets delegation deposit calculation ([PR 2332](https://github.com/input-output-hk/daedalus/pull/2332))
44+
- Implemented dynamic TTL calculation for hardware wallets transactions ([PR 2331](https://github.com/input-output-hk/daedalus/pull/2331))
45+
- Added link to connecting issues support article on the hardware wallet "Pairing" dialog ([PR 2336](https://github.com/input-output-hk/daedalus/pull/2336))
46+
- Updated recovery phrase entry ([PR 2334](https://github.com/input-output-hk/daedalus/pull/2334))
47+
- Adjusted sorting of table values on the "Rewards" screen ([PR 2333](https://github.com/input-output-hk/daedalus/pull/2333))
48+
- Fixed error thrown when closing delegation wizard while transaction fees are being calculated ([PR 2330](https://github.com/input-output-hk/daedalus/pull/2330))
49+
- Fixed number format for syncing percentage and stake pools count ([PR 2313](https://github.com/input-output-hk/daedalus/pull/2313))
50+
- Updated `cardano-wallet` to version `2021-01-28` and `cardano-node` to version `1.25.1` ([PR 2270](https://github.com/input-output-hk/daedalus/pull/2270))
51+
- Updated `react-polymorph` package ([PR 2318](https://github.com/input-output-hk/daedalus/pull/2318))
52+
- Updated `bignumber.js` package ([PR 2305](https://github.com/input-output-hk/daedalus/pull/2305))
53+
- Disabled application menu navigation before the "Terms of use" have been accepted ([PR 2304](https://github.com/input-output-hk/daedalus/pull/2304))
54+
455
## 3.2.0
556

657
### Chores

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,38 @@ Daedalus - Cryptocurrency Wallet
8484
1. Run `yarn nix:shelley_qa` from `daedalus`.
8585
2. Run `yarn dev` from the subsequent `nix-shell`
8686

87+
#### Native token metadata server
88+
89+
Daedalus, by default, uses the following metadata server for all networks except for the mainnet: `https://metadata.cardano-testnet.iohkdev.io/`.
90+
91+
It's also possible to use a mock server locally by running the following command in `nix-shell` prior to starting Daedalus:
92+
93+
```
94+
$ mock-token-metadata-server ./utils/cardano/native-tokens/registry.json
95+
Mock metadata server running with url http://localhost:65432/
96+
```
97+
98+
Then proceed to launch Daedalus and make sure to provide the mock token metadata server port:
99+
100+
```
101+
$ MOCK_TOKEN_METADATA_SERVER_PORT=65432 yarn dev
102+
```
103+
104+
This enables you to modify the metadata directly by modifying the registry file directly:
105+
106+
```
107+
$ vi ./utils/cardano/native-tokens/registry.json # ..or any other editor, if you prefer
108+
```
109+
110+
Use the following command to check if the mock server is working correctly:
111+
112+
```
113+
$ curl -i -H "Content-type: application/json" --data '{"subjects":["789ef8ae89617f34c07f7f6a12e4d65146f958c0bc15a97b4ff169f1"],"properties":["name","description","acronym","unit","logo"]}'
114+
http://localhost:65432/metadata/query
115+
```
116+
... and expect a "200 OK" response.
117+
118+
87119
### Running Daedalus with Jormungandr
88120

89121
#### ITN Selfnode

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ let
8585
cardano-wallet = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; };
8686
cardano-wallet-native = import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; };
8787
cardano-address = (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).cardano-address;
88+
mock-token-metadata-server = (import self.sources.cardano-wallet { inherit system; gitrev = self.sources.cardano-wallet.rev; crossSystem = crossSystem walletPkgs.lib; }).mock-token-metadata-server;
8889
cardano-shell = import self.sources.cardano-shell { inherit system; crossSystem = crossSystem shellPkgs.lib; };
8990
cardano-cli = (import self.sources.cardano-node { inherit system; crossSystem = crossSystem nodePkgs.lib; }).cardano-cli;
9091
cardano-node-cluster = let

installers/common/MacInstaller.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
279279
, "cross-fetch"
280280
, "trezor-connect"
281281
, "js-chain-libs-node"
282+
, "bignumber.js"
282283
]
283284
mapM_ (\lib -> do
284285
cptree ("../node_modules" </> lib) ((fromText pathtoapp) </> "Contents/Resources/app/node_modules" </> lib)

installers/nix/linux.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
, jormungandrLib
77
, launcherConfigs
88
, linuxClusterBinName
9+
, gsettings-desktop-schemas
10+
, gtk3
11+
, hicolor-icon-theme
12+
, xfce
913
}:
1014

1115
let
@@ -41,6 +45,7 @@ let
4145
export CLUSTER=${cluster'}
4246
export DAEDALUS_DIR="''${XDG_DATA_HOME}/Daedalus"
4347
export DAEDALUS_CONFIG=${if sandboxed then "/nix/var/nix/profiles/profile-${linuxClusterBinName}/etc" else daedalus-config}
48+
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:${hicolor-icon-theme}/share:${xfce.xfce4-icon-theme}/share
4449
4550
mkdir -p "''${DAEDALUS_DIR}/${cluster}/"{Logs/pub,Secrets}
4651
cd "''${DAEDALUS_DIR}/${cluster}/"

nix/sources.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,16 @@
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"cardano-wallet": {
27-
"branch": "tags/v2020-12-08",
27+
"branch": "master",
2828
"description": "Official Wallet Backend & API for Cardano decentralized",
2929
"homepage": null,
3030
"owner": "input-output-hk",
3131
"repo": "cardano-wallet",
32-
"rev": "4e49b1f12ae7d653eca149b60d67f2a1a578104a",
33-
"sha256": "1ypkyn2s12nxwrk1ims8vrhhyy1xl3v5y35yxrwvqp8y8m2sac2x",
32+
"rev": "a37c9856b4d96286e3f01a95026c63b986ebbba0",
33+
"sha256": "1mg8n58j2mjqhhzjb4p5yp8z06b9arh40pagi9rddil2f3vxzihm",
3434
"type": "tarball",
35-
"url": "https://github.com/input-output-hk/cardano-wallet/archive/4e49b1f12ae7d653eca149b60d67f2a1a578104a.tar.gz",
36-
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
37-
"version": "v2021-01-12"
35+
"url": "https://github.com/input-output-hk/cardano-wallet/archive/a37c9856b4d96286e3f01a95026c63b986ebbba0.tar.gz",
36+
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
3837
},
3938
"gitignore": {
4039
"branch": "master",
@@ -61,15 +60,15 @@
6160
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
6261
},
6362
"iohk-nix": {
64-
"branch": "nixpkgs-bump",
63+
"branch": "master",
6564
"description": "nix scripts shared across projects",
6665
"homepage": null,
6766
"owner": "input-output-hk",
6867
"repo": "iohk-nix",
69-
"rev": "940f3b7c16b9e7d4493d400280eedf2c936aa5c0",
70-
"sha256": "1m5c8abw3bi5ij99vbcb5bpjywljy72yig5bbm4158r1mck7hljd",
68+
"rev": "4efc38924c64c23a582c84950c8c25f72ff049cc",
69+
"sha256": "0nhwyrd0xc72yj5q3jqa2wl4khp4g7n72i45cxy2rgn9nrp8wqh0",
7170
"type": "tarball",
72-
"url": "https://github.com/input-output-hk/iohk-nix/archive/940f3b7c16b9e7d4493d400280eedf2c936aa5c0.tar.gz",
71+
"url": "https://github.com/input-output-hk/iohk-nix/archive/4efc38924c64c23a582c84950c8c25f72ff049cc.tar.gz",
7372
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
7473
},
7574
"js-chain-libs": {

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "3.2.0",
4+
"version": "3.3.0",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
@@ -173,16 +173,17 @@
173173
},
174174
"dependencies": {
175175
"@cardano-foundation/ledgerjs-hw-app-cardano": "2.1.0",
176+
"@iohk-jormungandr/wallet-js": "0.5.0-pre7",
176177
"aes-js": "3.1.2",
177-
"bignumber.js": "5.0.0",
178+
"bignumber.js": "9.0.1",
178179
"bip39": "2.3.0",
179180
"blake2b": "2.1.3",
180181
"blakejs": "1.1.0",
181182
"borc": "2.1.2",
182183
"bs58": "4.0.1",
183184
"cardano-crypto.js": "5.3.6-rc.6",
184185
"cardano-js": "0.4.5",
185-
"cardano-launcher": "0.20201014.0",
186+
"cardano-launcher": "0.20210215.0",
186187
"cbor": "5.0.2",
187188
"check-disk-space": "2.1.0",
188189
"chroma-js": "2.1.0",
@@ -201,6 +202,7 @@
201202
"history": "4.10.1",
202203
"humanize-duration": "3.23.1",
203204
"inquirer": "7.3.3",
205+
"json-bigint": "1.0.0",
204206
"lodash": "4.17.20",
205207
"lodash-es": "4.17.15",
206208
"mime-types": "2.1.27",
@@ -228,7 +230,7 @@
228230
"react-intl": "2.7.2",
229231
"react-lottie": "1.2.3",
230232
"react-markdown": "4.3.1",
231-
"react-polymorph": "0.9.7-rc.11",
233+
"react-polymorph": "0.9.7-rc.17",
232234
"react-router": "5.2.0",
233235
"react-router-dom": "5.2.0",
234236
"react-svg-inline": "2.1.1",

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ let
5151
daedalusPkgs.daedalus-bridge
5252
daedalusPkgs.daedalus-installer
5353
daedalusPkgs.darwin-launcher
54+
daedalusPkgs.mock-token-metadata-server
5455
] ++ (with pkgs; [
5556
nix bash binutils coreutils curl gnutar
5657
git python27 curl jq

source/common/config/electron-store.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ export const STORAGE_KEYS: {
3030
DOWNLOAD_MANAGER: 'DOWNLOAD-MANAGER',
3131
APP_AUTOMATIC_UPDATE_FAILED: 'APP-AUTOMATIC-UPDATE-FAILED',
3232
APP_UPDATE_COMPLETED: 'APP-UPDATE-COMPLETED',
33+
CURRENCY_SELECTED: 'CURRENCY-SELECTED',
34+
CURRENCY_ACTIVE: 'CURRENCY-ACTIVE',
35+
SMASH_SERVER: 'SMASH-SERVER',
3336
};

source/common/ipc/api.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
SaveFileDialogResponseParams,
1212
} from '../types/file-dialog.types';
1313
import type { GenerateAddressPDFParams } from '../types/address-pdf-request.types';
14+
import type { GenerateVotingPDFParams } from '../types/voting-pdf-request.types';
1415
import type { GenerateCsvParams } from '../types/csv-request.types';
1516
import type { GenerateQRCodeParams } from '../types/save-qrCode.types';
1617
import type {
@@ -177,7 +178,10 @@ export type SubmitBugReportRequestMainResponse = void;
177178
* Channel to rebuild the electron application menu after the language setting changes
178179
*/
179180
export const REBUILD_APP_MENU_CHANNEL = 'REBUILD_APP_MENU_CHANNEL';
180-
export type RebuildAppMenuRendererRequest = { isUpdateAvailable: boolean };
181+
export type RebuildAppMenuRendererRequest = {
182+
isUpdateAvailable: boolean,
183+
isNavigationEnabled: boolean,
184+
};
181185
export type RebuildAppMenuMainResponse = void;
182186

183187
/**
@@ -201,6 +205,13 @@ export const GENERATE_ADDRESS_PDF_CHANNEL = 'GENERATE_ADDRESS_PDF_CHANNEL';
201205
export type GenerateAddressPDFRendererRequest = GenerateAddressPDFParams;
202206
export type GenerateAddressPDFMainResponse = void;
203207

208+
/**
209+
* Channel to generate and save a share voting PDF
210+
*/
211+
export const GENERATE_VOTING_PDF_CHANNEL = 'GENERATE_VOTING_PDF_CHANNEL';
212+
export type GenerateVotingPDFRendererRequest = GenerateVotingPDFParams;
213+
export type GenerateVotingPDFMainResponse = void;
214+
204215
/**
205216
* Channel to generate and save a csv file
206217
*/
@@ -295,6 +306,14 @@ export const GENERATE_WALLET_MIGRATION_REPORT_CHANNEL =
295306
export type GenerateWalletMigrationReportRendererRequest = WalletMigrationReportData;
296307
export type GenerateWalletMigrationReportMainResponse = void;
297308

309+
/**
310+
* Channel for enabling application menu navigation
311+
*/
312+
export const ENABLE_APPLICATION_MENU_NAVIGATION_CHANNEL =
313+
'ENABLE_APPLICATION_MENU_NAVIGATION_CHANNEL';
314+
export type EnableApplicationMenuNavigationRendererRequest = void;
315+
export type EnableApplicationMenuNavigationMainResponse = void;
316+
298317
/**
299318
* Channel for generating wallet migration report
300319
*/

0 commit comments

Comments
 (0)