Skip to content

Commit 732e94f

Browse files
authored
Merge pull request #3048 from input-output-hk/merge-5.1.0-into-main
Merge 5.1.0 into main
2 parents df32773 + 0953eec commit 732e94f

File tree

122 files changed

+2258
-647
lines changed

Some content is hidden

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

122 files changed

+2258
-647
lines changed

CHANGELOG.md

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

3+
## 5.1.0
4+
5+
### Chores
6+
7+
- Updated `cardano-wallet` to v2022-10-06 ([PR 3045](https://github.com/input-output-hk/daedalus/pull/3045))
8+
- Changed Japanese translations in delegate screen ([PR 3044](https://github.com/input-output-hk/daedalus/pull/3044))
9+
- Updated trezor-connect to v9 ([PR 3038](https://github.com/input-output-hk/daedalus/pull/3038))
10+
- Added analytics data collection ([PR 2927](https://github.com/input-output-hk/daedalus/pull/2927), [PR 2989](https://github.com/input-output-hk/daedalus/pull/2989), [PR 3003](https://github.com/input-output-hk/daedalus/pull/3003), [PR 3028](https://github.com/input-output-hk/daedalus/pull/3028))
11+
- Updated LedgerJS to 5.1.0 ([PR 3036](https://github.com/input-output-hk/daedalus/pull/3036))
12+
313
## 5.0.0
414

515
### Features
616

717
- Added new Mnemonic input component ([PR 2979](https://github.com/input-output-hk/daedalus/pull/2979))
18+
- Updated Terms of Service ([PR 3009](https://github.com/input-output-hk/daedalus/pull/3009))
819

920
### Fixes
1021

@@ -19,10 +30,6 @@
1930
- Fix `darwin-launcher.go` to replace its process image with `cardano-launcher` (binary), and not swallow `stdout` ([PR 3023](https://github.com/input-output-hk/daedalus/pull/3023))
2031
- Updated cardano-node to 1.35.1 ([PR 3012](https://github.com/input-output-hk/daedalus/pull/3012))
2132

22-
### Features
23-
24-
- Updated Terms of Service ([PR 3009](https://github.com/input-output-hk/daedalus/pull/3009))
25-
2633
## 4.12.0
2734

2835
### Fixes

default.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ let
3232
};
3333
pkgs = import sources.nixpkgs { inherit system config; };
3434
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-
'';
35+
cardano-wallet =
36+
if target != "aarch64-darwin"
37+
then localLib.sources.cardano-wallet
38+
else pkgs.runCommand "cardano-wallet" {} ''
39+
cp -r ${localLib.sources.cardano-wallet} $out
40+
chmod -R +w $out
41+
cd $out
42+
patch -p1 -i ${./nix/cardano-wallet--enable-aarch64-darwin.patch}
43+
'';
4144
};
4245
haskellNix = import sources."haskell.nix" {};
4346
inherit (import haskellNix.sources.nixpkgs-unstable haskellNix.nixpkgsArgs) haskell-nix;

installers/common/MacInstaller.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
253253
, "bytebuffer"
254254
, "call-bind"
255255
, "cashaddrjs"
256-
, "cbor-web"
257256
, "clone"
258257
, "create-hash"
259258
, "create-hmac"
@@ -313,15 +312,14 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
313312
, "ripple-keypairs"
314313
, "ripple-lib"
315314
, "ripple-lib-transactionparser"
316-
, "runtypes"
317315
, "safe-buffer"
318316
, "semver-compare"
319317
, "smart-buffer"
320318
, "socks"
321319
, "socks-proxy-agent"
322320
, "tiny-inflate"
323321
, "tiny-secp256k1"
324-
, "trezor-connect"
322+
, "tslib"
325323
, "typeforce"
326324
, "unicode-properties"
327325
, "unicode-trie"

matomo.docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: "3"
2+
services:
3+
mariadb:
4+
image: docker.io/bitnami/mariadb:10.6
5+
environment:
6+
- ALLOW_EMPTY_PASSWORD=yes
7+
- MARIADB_USER=bn_matomo
8+
- MARIADB_DATABASE=bitnami_matomo
9+
- MARIADB_EXTRA_FLAGS=--max_allowed_packet=64MB
10+
volumes:
11+
- "matomo_db_data:/bitnami/mariadb"
12+
matomo:
13+
image: docker.io/bitnami/matomo:4
14+
ports:
15+
- "8080:8080"
16+
environment:
17+
- MATOMO_DATABASE_HOST=mariadb
18+
- MATOMO_DATABASE_PORT_NUMBER=3306
19+
- MATOMO_DATABASE_USER=bn_matomo
20+
- MATOMO_DATABASE_NAME=bitnami_matomo
21+
- MATOMO_USERNAME=user
22+
- MATOMO_PASSWORD=password
23+
- ALLOW_EMPTY_PASSWORD=yes
24+
volumes:
25+
- "matomo_data:/bitnami/matomo"
26+
depends_on:
27+
- mariadb
28+
volumes:
29+
matomo_db_data:
30+
driver: local
31+
matomo_data:
32+
driver: local

nix/sources.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
2525
},
2626
"cardano-wallet": {
27-
"branch": "v2022-08-16",
27+
"branch": "v2022-10-06",
2828
"description": "Official Wallet Backend & API for Cardano decentralized",
2929
"homepage": null,
3030
"owner": "input-output-hk",
3131
"repo": "cardano-wallet",
32-
"rev": "afe575663a866c612b4a4dc3a90a8a700e387a86",
33-
"sha256": "03shbj5kxvcb22k1bvfcv9q529lg47g9y9pvvwkyb2jy285rwyhv",
32+
"rev": "2130fe0acf19fa218cef8de4ef325ae9078e356e",
33+
"sha256": "0d0wk6n7vij4qkp2qml5qdghk41dvm1078ps48673waf4cxjxaz0",
3434
"type": "tarball",
35-
"url": "https://github.com/input-output-hk/cardano-wallet/archive/afe575663a866c612b4a4dc3a90a8a700e387a86.tar.gz",
35+
"url": "https://github.com/input-output-hk/cardano-wallet/archive/2130fe0acf19fa218cef8de4ef325ae9078e356e.tar.gz",
3636
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
3737
},
3838
"cardano-world": {

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "5.0.0",
4+
"version": "5.1.0",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
@@ -103,9 +103,11 @@
103103
"@types/node": "14.18.1",
104104
"@types/qrcode.react": "1.0.2",
105105
"@types/react": "16.9.56",
106+
"@types/react-router": "5.1.18",
107+
"@types/react-router-dom": "5.3.3",
106108
"@types/react-svg-inline": "2.1.3",
107109
"@types/react-table": "^7.7.9",
108-
"@types/trezor-connect": "8.1.18",
110+
"@types/uuid": "8.3.4",
109111
"@typescript-eslint/eslint-plugin": "5.20.0",
110112
"@typescript-eslint/parser": "5.20.0",
111113
"@xarc/run": "1.1.1",
@@ -199,9 +201,10 @@
199201
"yarn-lockfile": "1.1.1"
200202
},
201203
"dependencies": {
202-
"@cardano-foundation/ledgerjs-hw-app-cardano": "5.0.0",
204+
"@cardano-foundation/ledgerjs-hw-app-cardano": "5.1.0",
203205
"@iohk-jormungandr/wallet-js": "0.5.0-pre7",
204206
"@ledgerhq/hw-transport-node-hid": "6.27.1",
207+
"@trezor/connect": "9.0.2",
205208
"aes-js": "3.1.2",
206209
"bech32": "2.0.0",
207210
"bignumber.js": "9.0.1",
@@ -215,7 +218,6 @@
215218
"cardano-js": "0.4.8",
216219
"cardano-launcher": "0.20220119.0",
217220
"cbor": "5.0.2",
218-
"cbor-web": "7.0.6",
219221
"check-disk-space": "3.2.0",
220222
"chroma-js": "2.1.0",
221223
"classnames": "2.2.6",
@@ -239,7 +241,8 @@
239241
"inquirer": "7.3.3",
240242
"json-bigint": "1.0.0",
241243
"lodash": "4.17.21",
242-
"lodash-es": "4.17.21",
244+
"lodash-es": "4.17.15",
245+
"matomo-tracker": "2.2.4",
243246
"mime-types": "2.1.27",
244247
"mkdirp": "1.0.4",
245248
"mobx": "5.15.7",
@@ -286,11 +289,11 @@
286289
"spectron-fake-dialog": "0.0.1",
287290
"tail": "2.2.4",
288291
"tcp-port-used": "1.0.1",
289-
"trezor-connect": "8.2.8-extended",
290292
"unorm": "1.6.0",
291293
"url": "0.11.0",
292294
"usb-detection": "4.13.0",
293295
"util": "0.12.4",
296+
"uuid": "8.3.2",
294297
"validator": "13.7.0"
295298
},
296299
"devEngines": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export const STORAGE_KEYS: Record<string, StorageKey> = {
2323
STAKE_POOLS_LIST_VIEW_TOOLTIP: 'STAKE-POOLS-LIST-VIEW-TOOLTIP',
2424
STAKING_INFO_WAS_OPEN: 'ALONZO-INFO-WAS-OPEN',
2525
TERMS_OF_USE_ACCEPTANCE: 'TERMS-OF-USE-ACCEPTANCE',
26+
ANALYTICS_ACCEPTANCE: 'ANALYTICS-ACCEPTANCE',
27+
USER_ID: 'USER-ID',
2628
THEME: 'THEME',
2729
TOKEN_FAVORITES: 'TOKEN-FAVORITES',
2830
USER_DATE_FORMAT_ENGLISH: 'USER-DATE-FORMAT-ENGLISH',

source/common/ipc/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
CommonParams,
55
Success,
66
Unsuccessful,
7-
} from 'trezor-connect';
7+
} from '@trezor/connect';
88
import type {
99
BugReportRequestHttpOptions,
1010
BugReportRequestPayload,

source/common/ipc/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const DIALOGS = {
1+
import { ApplicationDialog } from '../../renderer/app/types/applicationDialogTypes';
2+
3+
export const DIALOGS: Record<string, ApplicationDialog> = {
24
ABOUT: 'ABOUT_DIALOG',
35
DAEDALUS_DIAGNOSTICS: 'DAEDALUS_DIAGNOSTICS_DIALOG',
46
ITN_REWARDS_REDEMPTION: 'ITN_REWARDS_REDEMPTION_DIALOG',

source/common/ipc/lib/IpcConversation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isString } from 'lodash';
2-
import uuid from 'uuid';
2+
import { v4 as uuidv4 } from 'uuid';
33

44
export type IpcSender = {
55
send: (channel: string, conversationId: string, ...args: Array<any>) => void;
@@ -68,7 +68,7 @@ export class IpcConversation<Incoming, Outgoing> {
6868
receiver: IpcReceiver
6969
): Promise<Incoming> {
7070
return new Promise((resolve, reject) => {
71-
const conversationId = uuid();
71+
const conversationId = uuidv4();
7272

7373
const handler = (
7474
event,

0 commit comments

Comments
 (0)