Skip to content

Commit f33865f

Browse files
committed
Merge branch 'main' into develop
2 parents ba63f08 + d68a081 commit f33865f

File tree

24 files changed

+1607
-138
lines changed

24 files changed

+1607
-138
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22

33
## vNext
44

5+
## 7.0.0
6+
57
### Features
68

79
- Added Cardano governance voting tab ([PR 3240](https://github.com/input-output-hk/daedalus/pull/3240))
810

911
### Chores
1012

11-
- Update `cardano-node` to 10.1.2 via `cardano-wallet` v2024-11-18 ([PR 3229](https://github.com/input-output-hk/daedalus/pull/3229))
13+
- Update `cardano-node` to 10.1.3 ([PR 3249](https://github.com/input-output-hk/daedalus/pull/3249))
14+
15+
- Update `cardano-wallet` to v2024-11-18 ([PR 3229](https://github.com/input-output-hk/daedalus/pull/3229))
1216

1317
### Fixes
1418

15-
- Handle createTransaction error when Conway era wallet has staking rewards but has not participated in governance yet ([PR 3237](https://github.com/input-output-hk/daedalus/pull/3237)
19+
- Handle createTransaction error when Conway era wallet has staking rewards but has not participated in governance yet ([PR 3237](https://github.com/input-output-hk/daedalus/pull/3237))
1620

1721
## 6.0.2
1822

flake.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
66
cardano-wallet-unpatched.url = "github:cardano-foundation/cardano-wallet/v2024-11-18";
77
cardano-wallet-unpatched.flake = false; # otherwise, +10k quadratic dependencies in flake.lock…
8+
cardano-node-override.url = "github:IntersectMBO/cardano-node/10.1.3";
9+
cardano-node-override.flake = false;
810
cardano-playground.url = "github:input-output-hk/cardano-playground/49d93e5fe42e1e37f8b4c7d463b5d6bc4af65f26";
911
cardano-playground.flake = false; # otherwise, +9k dependencies in flake.lock…
1012
cardano-shell.url = "github:input-output-hk/cardano-shell/0d1d5f036c73d18e641412d2c58d4acda592d493";

nix/internal/common.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rec {
4040
}).defaultNix;
4141

4242
nodeFlake = let
43-
unpatched = walletFlake.inputs.cardano-node-runtime;
43+
unpatched = inputs.cardano-node-override;
4444
in (flake-compat {
4545
src = {
4646
outPath = toString (pkgs.runCommand "source" {} ''

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "6.0.2",
4+
"version": "7.0.0",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
@@ -197,6 +197,7 @@
197197
},
198198
"dependencies": {
199199
"@cardano-foundation/ledgerjs-hw-app-cardano": "7.1.3",
200+
"@cardano-sdk/core": "^0.41.4",
200201
"@iohk-jormungandr/wallet-js": "0.5.0-pre7",
201202
"@ledgerhq/hw-transport-node-hid": "6.27.15",
202203
"@trezor/connect": "9.3.0",
@@ -315,5 +316,6 @@
315316
"**/**/nan": "^2.17.0",
316317
"prebuild-install": "^6.1.4",
317318
"pbkdf2": "3.1.2"
318-
}
319+
},
320+
"packageManager": "[email protected]+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
319321
}

source/common/utils/assertIsBech32WithPrefix.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

source/renderer/app/api/api.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,8 @@ export default class AdaApi {
10191019
.set('conwayWalletNotDelegatedToDRep')
10201020
.where('code', 'created_invalid_transaction')
10211021
.inc('message', 'ConwayWdrlNotDelegatedToDRep')
1022+
.set('conwayWalletNotDelegatedToDRep')
1023+
.where('code', 'withdrawal_not_possible_without_vote')
10221024
.set('transactionIsTooBig', true, {
10231025
linkLabel: 'tooBigTransactionErrorLinkLabel',
10241026
linkURL: 'tooBigTransactionErrorLinkURL',
@@ -1298,7 +1300,7 @@ export default class AdaApi {
12981300
error,
12991301
});
13001302

1301-
throw new ApiError(error);
1303+
throw new ApiError(error).result();
13021304
}
13031305
};
13041306

@@ -1316,7 +1318,13 @@ export default class AdaApi {
13161318
logger.error('AdaApi::createExternalTransaction error', {
13171319
error,
13181320
});
1319-
throw new ApiError(error);
1321+
1322+
const apiError = new ApiError(error)
1323+
.set('conwayWalletNotDelegatedToDRep')
1324+
.where('code', 'created_invalid_transaction')
1325+
.inc('message', 'ConwayWdrlNotDelegatedToDRep');
1326+
1327+
throw apiError.result();
13201328
}
13211329
};
13221330
inspectAddress = async (request: {
@@ -2825,7 +2833,7 @@ export default class AdaApi {
28252833
error,
28262834
});
28272835

2828-
throw new ApiError(error);
2836+
throw new ApiError(error).result();
28292837
}
28302838
};
28312839

source/renderer/app/components/voting/VotingUnavailable.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
flex: 1;
88
flex-direction: column;
99
justify-content: center;
10-
margin-bottom: -40px;
11-
padding: 20px;
1210
text-align: center;
1311

1412
h1 {

source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.messages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ export const messages = defineMessages({
44
drepInputLabel: {
55
id: 'voting.governance.drepInputLabel',
66
defaultMessage:
7-
'!!!Please type or paste a valid DRep ID here. Look up {drepDirectoryLink}',
7+
'!!!Please type or paste a valid DRep ID (CIP-105) here. Look up {drepDirectoryLink}',
88
description: 'Label for DRep input on the governance page',
99
},
1010
drepInputLabelPreprod: {
1111
id: 'voting.governance.drepInputLabelPreprod',
12-
defaultMessage: '!!!Please type or paste a valid DRep ID here.',
12+
defaultMessage: '!!!Please type or paste a valid DRep ID (CIP-105) here.',
1313
description: 'Label for DRep input on the governance page for preprod',
1414
},
1515
drepInputLabelLinkText: {

source/renderer/app/components/voting/voting-governance/VotingPowerDelegation.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
text-transform: uppercase;
1717
}
1818

19+
span.link {
20+
font-size: inherit;
21+
line-height: inherit;
22+
opacity: 0.7;
23+
24+
&:hover {
25+
opacity: 1;
26+
}
27+
}
28+
1929
.info {
2030
@extend %regularText;
2131
p {

0 commit comments

Comments
 (0)