Skip to content

Commit 459b794

Browse files
authored
Merge pull request #2312 from input-output-hk/release-with-master
Merge release/3.2.0-FC1 into master
2 parents f415dec + f5cc620 commit 459b794

File tree

110 files changed

+2816
-1065
lines changed

Some content is hidden

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

110 files changed

+2816
-1065
lines changed

CHANGELOG.md

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

4+
## 3.2.0-FC1
5+
6+
### Features
7+
8+
- Improve Mnemonic Phrase Input UX [PR 2280](https://github.com/input-output-hk/daedalus/pull/2280)
9+
- Added wallet public key viewing feature ([PR 2271](https://github.com/input-output-hk/daedalus/pull/2271))
10+
- Added tile view for delegated Stake pools in Delegation Center ([PR 2275](https://github.com/input-output-hk/daedalus/pull/2275))
11+
12+
### Fixes
13+
14+
- Fixed Ledger TXs to Byron addresses ([PR 2299](https://github.com/input-output-hk/daedalus/pull/2299))
15+
16+
### Chores
17+
18+
- Updated `cardano-wallet` to version `2021-01-12` ([PR 2303](https://github.com/input-output-hk/daedalus/pull/2303))
19+
- Improved "Settings" screen scrolling actions ([PR 2302](https://github.com/input-output-hk/daedalus/pull/2302))
20+
- Improved scrollable dialogs ([PR 2285](https://github.com/input-output-hk/daedalus/pull/2285))
21+
- Disabled and hid copy and paste context menu items on some scenarios ([PR 2300](https://github.com/input-output-hk/daedalus/pull/2300))
22+
- Applied validation to spending password to be not longer than 255 characters ([PR 2287](https://github.com/input-output-hk/daedalus/pull/2287))
23+
- Update `axios` package ([PR 2291](https://github.com/input-output-hk/daedalus/pull/2291))
24+
425
## 3.1.0
526

627
### Features
@@ -9,6 +30,7 @@ Changelog
930

1031
### Fixes
1132

33+
- Fixed Daedalus development environment issues on OSX Big Sur ([PR 2288](https://github.com/input-output-hk/daedalus/pull/2288))
1234
- Added initial loading state to UTXO screen ([PR 2265](https://github.com/input-output-hk/daedalus/pull/2265))
1335

1436
### Chores

installers/overlays/required.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ self: super: {
88
dhall = dontCheck (doJailbreak (self.callPackage ./dhall.nix {}));
99
universum = dontCheck (self.callPackage ./universum.nix {});
1010
nsis = self.callPackage ./nsis.nix {};
11-
github = self.callHackage "github" "0.23" {};
11+
github = self.callHackage "github" "0.26" {};
1212
}

nix/sources.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
"homepage": null,
3030
"owner": "input-output-hk",
3131
"repo": "cardano-wallet",
32-
"rev": "bcbed39dbe61b978453d6dee94140504bd0f6f9b",
33-
"sha256": "00d5488yzsx3f6mqnnz9cd91zrbz2v6xqgqgcxk4vhl9qkc9vnfr",
32+
"rev": "4e49b1f12ae7d653eca149b60d67f2a1a578104a",
33+
"sha256": "1ypkyn2s12nxwrk1ims8vrhhyy1xl3v5y35yxrwvqp8y8m2sac2x",
3434
"type": "tarball",
35-
"url": "https://github.com/input-output-hk/cardano-wallet/archive/bcbed39dbe61b978453d6dee94140504bd0f6f9b.tar.gz",
35+
"url": "https://github.com/input-output-hk/cardano-wallet/archive/4e49b1f12ae7d653eca149b60d67f2a1a578104a.tar.gz",
3636
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
37-
"version": "v2020-12-08"
37+
"version": "v2021-01-12"
3838
},
3939
"gitignore": {
4040
"branch": "master",
@@ -61,15 +61,15 @@
6161
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
6262
},
6363
"iohk-nix": {
64-
"branch": "master",
64+
"branch": "nixpkgs-bump",
6565
"description": "nix scripts shared across projects",
6666
"homepage": null,
6767
"owner": "input-output-hk",
6868
"repo": "iohk-nix",
69-
"rev": "5b86d63a0b59b7666d19901b654d8fbde27d9500",
70-
"sha256": "1mfb93nnw0x4gyq93v6lh6h7imliw4j0wp5l9gpdafy3rw621xzb",
69+
"rev": "940f3b7c16b9e7d4493d400280eedf2c936aa5c0",
70+
"sha256": "1m5c8abw3bi5ij99vbcb5bpjywljy72yig5bbm4158r1mck7hljd",
7171
"type": "tarball",
72-
"url": "https://github.com/input-output-hk/iohk-nix/archive/5b86d63a0b59b7666d19901b654d8fbde27d9500.tar.gz",
72+
"url": "https://github.com/input-output-hk/iohk-nix/archive/940f3b7c16b9e7d4493d400280eedf2c936aa5c0.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.1.0",
4+
"version": "3.2.0-FC1",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {
@@ -93,7 +93,7 @@
9393
"@storybook/react": "5.3.14",
9494
"asar": "2.1.0",
9595
"autodll-webpack-plugin": "0.4.2",
96-
"axios": "0.20.0",
96+
"axios": "0.21.1",
9797
"babel-eslint": "10.1.0",
9898
"babel-loader": "8.0.4",
9999
"babel-plugin-react-intl": "3.0.1",
@@ -152,6 +152,7 @@
152152
"regenerator-runtime": "0.13.7",
153153
"resolve-url": "0.2.1",
154154
"sass-loader": "7.1.0",
155+
"sinon": "9.2.2",
155156
"spawn-sync": "2.0.0",
156157
"spectron": "10.0.1",
157158
"style-loader": "0.23.1",
@@ -227,7 +228,7 @@
227228
"react-intl": "2.7.2",
228229
"react-lottie": "1.2.3",
229230
"react-markdown": "4.3.1",
230-
"react-polymorph": "0.9.7-rc.6",
231+
"react-polymorph": "0.9.7-rc.11",
231232
"react-router": "5.2.0",
232233
"react-router-dom": "5.2.0",
233234
"react-svg-inline": "2.1.1",

source/common/types/hardware-wallets.types.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ export type StakingBlockchainPointer = {|
109109

110110
export type LedgerSignTransactionInputsType = Array<LedgerSignTransactionInputType>;
111111

112-
export type LedgerSignTransactionOutputsType = Array<
113-
LedgerOutputTypeAddress | LedgerOutputTypeChange
114-
>;
112+
export type LedgerSignTransactionOutputsType =
113+
| []
114+
| Array<LedgerOutputTypeAddress | LedgerOutputTypeChange>;
115115

116116
export type TrezorSignTransactionInputType = {
117117
path: string,

source/main/windows/main.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,22 @@ export const createMainWindow = (locale: string) => {
8484
window.setTitle(getWindowTitle(locale));
8585

8686
window.webContents.on('context-menu', (e, props) => {
87-
const contextMenuOptions = [
88-
{ label: 'Copy', accelerator: 'CmdOrCtrl+C', role: 'copy' },
89-
{ label: 'Paste', accelerator: 'CmdOrCtrl+V', role: 'paste' },
90-
];
87+
const { canCopy, canPaste } = props.editFlags;
88+
const contextMenuOptions = [];
89+
if (canCopy && props.selectionText) {
90+
contextMenuOptions.push({
91+
label: 'Copy',
92+
accelerator: 'CmdOrCtrl+C',
93+
role: 'copy',
94+
});
95+
}
96+
if (canPaste) {
97+
contextMenuOptions.push({
98+
label: 'Paste',
99+
accelerator: 'CmdOrCtrl+V',
100+
role: 'paste',
101+
});
102+
}
91103

92104
if (isDev || isTest) {
93105
const { x, y } = props;
@@ -99,7 +111,9 @@ export const createMainWindow = (locale: string) => {
99111
});
100112
}
101113

102-
Menu.buildFromTemplate(contextMenuOptions).popup(window);
114+
if (contextMenuOptions.length) {
115+
Menu.buildFromTemplate(contextMenuOptions).popup(window);
116+
}
103117
});
104118

105119
window.webContents.on('did-frame-finish-load', () => {

source/renderer/app/actions/wallets-actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default class WalletsActions {
7676
filePath: string,
7777
}> = new Action();
7878
saveQRCodeImageSuccess: Action<{ walletAddress: string }> = new Action();
79+
copyPublicKey: Action<{ publicKey: string }> = new Action();
7980
copyAddress: Action<{ address: string }> = new Action();
8081
updateCertificateStep: Action<any> = new Action();
8182
closeCertificateGeneration: Action<any> = new Action();

source/renderer/app/api/addresses/requests/inspectAddress.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// @flow
22
import { request } from '../../utils/request';
33
import type { RequestConfig } from '../../common/types';
4+
import type { InspectAddressResponse } from '../types';
45

56
export const inspectAddress = (
67
config: RequestConfig,
78
{ addressId }: any // @TODO
8-
): Promise<any> =>
9+
): Promise<InspectAddressResponse> =>
910
request(
1011
{
1112
method: 'GET',

source/renderer/app/api/addresses/types.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// @flow
22
export type AddressState = 'used' | 'unused';
33

4+
export type AddressStyle = 'Byron' | 'Shelley' | 'Icarus';
5+
6+
export type StakeReference = 'none' | 'by value' | 'by pointer';
7+
48
export type GetAddressesRequestQueryParams = {
59
state: AddressState,
610
};
@@ -19,6 +23,22 @@ export type GetAddressesRequest = {
1923
isHardwareWallet?: boolean,
2024
};
2125

26+
export type InspectAddressResponse = {
27+
address_style: AddressStyle,
28+
stake_reference: StakeReference,
29+
network_tag?: number,
30+
spending_key_hash?: string,
31+
stake_key_hash?: string,
32+
script_hash?: string,
33+
pointer?: {
34+
slot_num: number,
35+
transaction_index: number,
36+
output_index: number,
37+
},
38+
address_root?: string,
39+
derivation_path?: string,
40+
};
41+
2242
// Byron related types
2343

2444
export type CreateByronWalletAddressRequest = {

source/renderer/app/api/api.js

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import { updateByronWallet } from './wallets/requests/updateByronWallet';
6161
import { getWalletUtxos } from './wallets/requests/getWalletUtxos';
6262
import { getByronWalletUtxos } from './wallets/requests/getByronWalletUtxos';
6363
import { getWallet } from './wallets/requests/getWallet';
64+
import { getWalletPublicKey } from './wallets/requests/getWalletPublicKey';
6465
import { getLegacyWallet } from './wallets/requests/getLegacyWallet';
6566
import { transferFundsCalculateFee } from './wallets/requests/transferFundsCalculateFee';
6667
import { transferFunds } from './wallets/requests/transferFunds';
@@ -108,6 +109,7 @@ import type {
108109
Address,
109110
GetAddressesRequest,
110111
CreateByronWalletAddressRequest,
112+
InspectAddressResponse,
111113
} from './addresses/types';
112114

113115
// Common Types
@@ -163,6 +165,7 @@ import type {
163165
ImportWalletFromFileRequest,
164166
GetWalletUtxosRequest,
165167
GetWalletRequest,
168+
GetWalletPublicKeyRequest,
166169
TransferFundsCalculateFeeRequest,
167170
TransferFundsCalculateFeeApiResponse,
168171
TransferFundsCalculateFeeResponse,
@@ -293,6 +296,30 @@ export default class AdaApi {
293296
}
294297
};
295298

299+
getWalletPublicKey = async (
300+
request: GetWalletPublicKeyRequest
301+
): Promise<string> => {
302+
logger.debug('AdaApi::getWalletPublicKey called', {
303+
parameters: filterLogData(request),
304+
});
305+
try {
306+
const { walletId, role, index } = request;
307+
const walletPublicKey = await getWalletPublicKey(this.config, {
308+
walletId,
309+
role,
310+
index,
311+
});
312+
logger.debug('AdaApi::getWalletPublicKey success', { walletPublicKey });
313+
return walletPublicKey;
314+
} catch (error) {
315+
logger.error('AdaApi::getWalletPublicKey error', { error });
316+
// @TODO: Uncomment this when api is ready
317+
// throw new ApiError(error);
318+
// @TODO: Delete this when api is ready
319+
return '8edd9c9b73873ce8826cbe3e2e08534d35f1ba64cc94c063c0525865aa28e35527be51bb72ee9983d173f5617493bc6804a6750b359538c79cd5b43ccbbd48e5';
320+
}
321+
};
322+
296323
getAddresses = async (
297324
request: GetAddressesRequest
298325
): Promise<Array<WalletAddress>> => {
@@ -970,9 +997,9 @@ export default class AdaApi {
970997
}
971998
};
972999

973-
inspectAddress = async (
974-
request: any // @TODO
975-
): Promise<any> => {
1000+
inspectAddress = async (request: {
1001+
addressId: string,
1002+
}): Promise<InspectAddressResponse> => {
9761003
logger.debug('AdaApi::inspectAddress called', {
9771004
parameters: filterLogData(request),
9781005
});
@@ -1967,7 +1994,7 @@ export default class AdaApi {
19671994
blockchain_start_time, // eslint-disable-line
19681995
slot_length: slotLength,
19691996
epoch_length: epochLength,
1970-
epoch_stability: epochStability,
1997+
security_parameter: securityParameter,
19711998
active_slot_coefficient: activeSlotCoefficient,
19721999
decentralization_level: decentralizationLevel,
19732000
desired_pool_number: desiredPoolNumber,
@@ -1981,7 +2008,7 @@ export default class AdaApi {
19812008
blockchainStartTime,
19822009
slotLength,
19832010
epochLength,
1984-
epochStability,
2011+
securityParameter,
19852012
activeSlotCoefficient,
19862013
decentralizationLevel,
19872014
desiredPoolNumber,

0 commit comments

Comments
 (0)