Skip to content

Commit f415dec

Browse files
authored
Merge pull request #2295 from input-output-hk/release-with-master
Merge release/3.1.0 into master
2 parents 26cd448 + c422eb9 commit f415dec

File tree

19 files changed

+243
-134
lines changed

19 files changed

+243
-134
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
Changelog
22
=========
33

4+
## 3.1.0
5+
6+
### Features
7+
8+
- Included stake pool ID on the "Confirmation" step of the "Delegation" wizard and enabled search by stake pool ID on the "Stake Pools" screen ([PR 2281](https://github.com/input-output-hk/daedalus/pull/2281))
9+
10+
### Fixes
11+
12+
- Added initial loading state to UTXO screen ([PR 2265](https://github.com/input-output-hk/daedalus/pull/2265))
13+
14+
### Chores
15+
16+
- Canceled running fee estimation api requests once new request is made ([PR 2239](https://github.com/input-output-hk/daedalus/pull/2239))
17+
- Updated `iohk-nix` in order to fix `cardano-node` logging levels ([PR 2283](https://github.com/input-output-hk/daedalus/pull/2283))
18+
- Updated `@cardano-foundation/ledgerjs-hw-app-cardano` package to version `2.1.0` ([PR 2279](https://github.com/input-output-hk/daedalus/pull/2279))
19+
- Updated `ini` package ([PR 2278](https://github.com/input-output-hk/daedalus/pull/2278))
20+
421
## 3.0.0
522

623
### Features
@@ -16,7 +33,7 @@ Changelog
1633
### Chores
1734

1835
- Reduced the size of Linux installer ([PR 2260](https://github.com/input-output-hk/daedalus/pull/2260))
19-
- Bumped cardano-wallet to v2020-12-08 and cardano-node to 1.24.2 ([PR 2270](https://github.com/input-output-hk/daedalus/pull/2270))
36+
- Bumped `cardano-wallet` to version `2020-12-08` and `cardano-node` to version `1.24.2` ([PR 2270](https://github.com/input-output-hk/daedalus/pull/2270))
2037

2138
## 3.0.0-FC4
2239

gulpfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ gulp.task(
191191

192192
gulp.task('test:e2e:watch', gulp.series('build:watch', 'test:e2e:nodemon'));
193193

194-
gulp.task(
195-
'purge:translations',
196-
shell.task('rimraf ./translations/messages/source')
197-
);
194+
gulp.task('purge:translations', shell.task('rimraf ./translations/messages'));
198195

199196
gulp.task('electron:inspector', shell.task('yarn electron:inspector'));
200197

nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
"homepage": null,
6767
"owner": "input-output-hk",
6868
"repo": "iohk-nix",
69-
"rev": "0e5128870dc9de4f603fb35e6c7f659e18c8b6d6",
70-
"sha256": "0pbm85jpmi166wb3hahmg791ycqcy6iryvimk7r8d051sf4rkmvb",
69+
"rev": "5b86d63a0b59b7666d19901b654d8fbde27d9500",
70+
"sha256": "1mfb93nnw0x4gyq93v6lh6h7imliw4j0wp5l9gpdafy3rw621xzb",
7171
"type": "tarball",
72-
"url": "https://github.com/input-output-hk/iohk-nix/archive/0e5128870dc9de4f603fb35e6c7f659e18c8b6d6.tar.gz",
72+
"url": "https://github.com/input-output-hk/iohk-nix/archive/5b86d63a0b59b7666d19901b654d8fbde27d9500.tar.gz",
7373
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
7474
},
7575
"js-chain-libs": {

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "3.0.0",
4+
"version": "3.1.0",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
@@ -171,7 +171,7 @@
171171
"yarn-lockfile": "1.1.1"
172172
},
173173
"dependencies": {
174-
"@cardano-foundation/ledgerjs-hw-app-cardano": "2.0.1",
174+
"@cardano-foundation/ledgerjs-hw-app-cardano": "2.1.0",
175175
"aes-js": "3.1.2",
176176
"bignumber.js": "5.0.0",
177177
"bip39": "2.3.0",
@@ -273,6 +273,7 @@
273273
"**/**/yargs-parser": "^20.2.0",
274274
"**/**/braces": "^2.3.1",
275275
"**/**/node-fetch": "^2.6.1",
276-
"**/**/mobx-react-lite": "2.2.2"
276+
"**/**/mobx-react-lite": "2.2.2",
277+
"**/**/ini": "^1.3.8"
277278
}
278279
}

source/main/ipc/getHardwareWalletChannel.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// @flow
22
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid';
33
import { getDevices } from '@ledgerhq/hw-transport-node-hid-noevents';
4-
import AppAda, {
5-
cardano,
6-
utils,
7-
} from '@cardano-foundation/ledgerjs-hw-app-cardano';
4+
import AppAda, { utils } from '@cardano-foundation/ledgerjs-hw-app-cardano';
85
import { BrowserWindow } from 'electron';
96
import TrezorConnect, {
107
DEVICE_EVENT,
@@ -526,7 +523,7 @@ export const handleHardwareWalletRequests = async (
526523
throw new Error('Ledger device not connected');
527524
}
528525
const extendedPublicKey = await deviceConnection.getExtendedPublicKey(
529-
cardano.str_to_path(path)
526+
utils.str_to_path(path)
530527
);
531528
const deviceSerial = await deviceConnection.getSerial();
532529
return Promise.resolve({

source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsConfirmationDialog.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ const messages = defineMessages({
5353
description:
5454
'Description on the delegation setup "confirmation" step dialog.',
5555
},
56+
stakePoolIdLabel: {
57+
id: 'staking.delegationSetup.confirmation.step.dialog.stakePoolIdLabel',
58+
defaultMessage: '!!!Stake pool ID',
59+
description:
60+
'Stake pool ID label on the delegation setup "confirmation" step dialog.',
61+
},
5662
feesLabel: {
5763
id: 'staking.delegationSetup.confirmation.step.dialog.feesLabel',
5864
defaultMessage: '!!!Fees',
@@ -185,6 +191,7 @@ export default class DelegationStepsConfirmationDialog extends Component<Props>
185191
const selectedWalletName = get(selectedWallet, 'name');
186192
const isHardwareWallet = get(selectedWallet, 'isHardwareWallet');
187193
const selectedPoolTicker = get(selectedPool, 'ticker');
194+
const selectedPoolId = get(selectedPool, 'id');
188195
const spendingPasswordField = form.$('spendingPassword');
189196

190197
const buttonLabel = !isSubmitting ? (
@@ -262,6 +269,13 @@ export default class DelegationStepsConfirmationDialog extends Component<Props>
262269
/>
263270
</p>
264271

272+
<div className={styles.stakePoolIdWrapper}>
273+
<p className={styles.stakePoolIdLabel}>
274+
{intl.formatMessage(messages.stakePoolIdLabel)}
275+
</p>
276+
<p className={styles.stakePoolId}>{selectedPoolId}</p>
277+
</div>
278+
265279
<div className={styles.feesWrapper}>
266280
<p className={styles.feesLabel}>
267281
{intl.formatMessage(messages.feesLabel)}

source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsConfirmationDialog.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,25 @@
1414
}
1515
}
1616

17+
.stakePoolIdWrapper,
1718
.feesWrapper {
1819
font-family: var(--font-medium);
1920
font-weight: 500;
2021
line-height: 1.38;
2122
margin-bottom: 20px;
2223

24+
.stakePoolIdLabel,
2325
.feesLabel {
2426
color: var(--theme-delegation-steps-confirmation-fees-label-color);
2527
margin-bottom: 6px;
2628
}
2729

30+
.stakePoolId {
31+
color: var(--theme-delegation-steps-confirmation-description-color);
32+
font-family: var(--font-light);
33+
user-select: text;
34+
}
35+
2836
.calculatingFeesLabel {
2937
@include animated-ellipsis($duration: 1500, $width: 20px);
3038
--webkit-backface-visibility: hidden;

source/renderer/app/components/staking/stake-pools/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import StakePool from '../../../domains/StakePool';
33
import type { StakePoolProps } from '../../../domains/StakePool';
44

5-
const searchFields = ['ticker', 'name'];
5+
const searchFields = ['id', 'ticker', 'name'];
66

77
const stakePoolsListSearch = (stakePool: StakePoolProps, rawSearch: string) => {
88
const search = rawSearch.replace(/[.*+?^${}()|[\]\\]/g, '\\$&').trim();

0 commit comments

Comments
 (0)