Skip to content

Commit 3342d04

Browse files
authored
Merge pull request #1963 from nervosnetwork/0.35.0-rc1
0.35.0 rc1
2 parents 1c5dec8 + 6a4ca5e commit 3342d04

File tree

25 files changed

+655
-53
lines changed

25 files changed

+655
-53
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 0.35.0-rc1 (2020-12-19)
2+
3+
This is a release candidate to preview the changes in the next official release and may not be stable. Welcome any questions or suggestions.
4+
5+
[CKB v0.35.1](https://github.com/nervosnetwork/ckb/releases/tag/v0.35.1) was released on Sept. 14th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.
6+
7+
### New features
8+
9+
* Enable hardware wallet of Ledger.
10+
* Support address verification on hardware wallet device.
11+
12+
113
# 0.34.0 (2020-12-16)
214

315
[CKB v0.35.1](https://github.com/nervosnetwork/ckb/releases/tag/v0.35.1) was released on Sept. 14th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.

azure-pipelines.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ stages:
2626
vmImage: 'macos-10.14'
2727
strategy:
2828
matrix:
29-
node_12_x:
30-
node_version: 12.x
29+
node_14_x:
30+
node_version: 14.x
3131
steps:
3232
- task: NodeTool@0
3333
inputs:
@@ -47,13 +47,16 @@ stages:
4747
vmImage: 'ubuntu-18.04'
4848
strategy:
4949
matrix:
50-
node_12_x:
51-
node_version: 12.x
50+
node_14_x:
51+
node_version: 14.x
5252
steps:
5353
- task: NodeTool@0
5454
inputs:
5555
versionSpec: $(node_version)
5656
displayName: 'Install Node.js'
57+
- script: |
58+
sudo apt-get install -y libudev-dev
59+
displayName: Install libudev
5760
- script: |
5861
yarn global add lerna
5962
yarn bootstrap
@@ -71,8 +74,8 @@ stages:
7174
vmImage: 'vs2017-win2016'
7275
strategy:
7376
matrix:
74-
node_12_x:
75-
node_version: 12.x
77+
node_14_x:
78+
node_version: 14.x
7679
steps:
7780
- task: NodeTool@0
7881
inputs:
@@ -101,7 +104,7 @@ stages:
101104
steps:
102105
- task: NodeTool@0
103106
inputs:
104-
versionSpec: 12.x
107+
versionSpec: 14.x
105108
displayName: 'Install Node.js'
106109
- script: |
107110
yarn global add lerna
@@ -131,8 +134,11 @@ stages:
131134
steps:
132135
- task: NodeTool@0
133136
inputs:
134-
versionSpec: 12.x
137+
versionSpec: 14.x
135138
displayName: 'Install Node.js'
139+
- script: |
140+
sudo apt-get install -y libudev-dev
141+
displayName: Install libudev
136142
- script: |
137143
yarn global add lerna
138144
yarn bootstrap
@@ -152,7 +158,7 @@ stages:
152158
steps:
153159
- task: NodeTool@0
154160
inputs:
155-
versionSpec: 12.x
161+
versionSpec: 14.x
156162
displayName: 'Install Node.js'
157163
- script: yarn global add lerna
158164
displayName: 'Install lerna'

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.34.0",
5+
"version": "0.35.0-rc1",
66
"npmClient": "yarn",
77
"useWorkspaces": true
88
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "neuron",
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
5-
"version": "0.34.0",
5+
"version": "0.35.0-rc1",
66
"private": true,
77
"author": {
88
"name": "Nervos Core Dev",
@@ -22,7 +22,7 @@
2222
"packages/*"
2323
],
2424
"scripts": {
25-
"bootstrap": "yarn policies set-version 1.19.2 && npx cross-env LUMOS_NODE_RUNTIME=electron LUMOS_NODE_RUNTIME_VERSION=9.0.2 lerna bootstrap && lerna link",
25+
"bootstrap": "npx cross-env LUMOS_NODE_RUNTIME=electron LUMOS_NODE_RUNTIME_VERSION=9.0.2 lerna bootstrap && lerna link",
2626
"start:ui": "cd packages/neuron-ui && yarn run start",
2727
"start:wallet": "cd packages/neuron-wallet && yarn run start:dev",
2828
"start": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on http://localhost:3000 && yarn run start:wallet\"",

packages/neuron-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuron-ui",
3-
"version": "0.34.0",
3+
"version": "0.35.0-rc1",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",

packages/neuron-ui/src/components/ImportHardware/confirming.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'
33
import { RouteComponentProps } from 'react-router-dom'
44
import Button from 'widgets/Button'
55
import { ReactComponent as PendingIcon } from 'widgets/Icons/Pending.svg'
6-
import { getDevicePublickey } from 'services/remote'
6+
import { getDeviceExtendedPublickey } from 'services/remote'
77
import { isSuccessResponse, useDidMount } from 'utils'
88
import { RoutePath, LocationState } from './common'
99

@@ -17,7 +17,7 @@ const Confirming = ({ history, location }: RouteComponentProps<{}, {}, LocationS
1717
}, [history, entryPath])
1818

1919
useDidMount(() => {
20-
getDevicePublickey().then(res => {
20+
getDeviceExtendedPublickey().then(res => {
2121
if (isSuccessResponse(res)) {
2222
history.push({
2323
pathname: entryPath + RoutePath.NameWallet,

packages/neuron-ui/src/components/Receive/index.tsx

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
import React, { useCallback, useMemo } from 'react'
1+
import React, { useCallback, useMemo, useState } from 'react'
22
import { useRouteMatch, useHistory } from 'react-router-dom'
33
import { useTranslation } from 'react-i18next'
44
import Button from 'widgets/Button'
55
import QRCode from 'widgets/QRCode'
66
import CopyZone from 'widgets/CopyZone'
77
import { RoutePath } from 'utils'
88
import { useState as useGlobalState, useDispatch } from 'states'
9+
import VerifyHardwareAddress from 'components/VerifyHardwareAddress'
910
import styles from './receive.module.scss'
1011

1112
const Receive = () => {
12-
const {
13-
wallet: { addresses = [] },
14-
} = useGlobalState()
13+
const { wallet } = useGlobalState()
1514
const dispatch = useDispatch()
1615
const [t] = useTranslation()
1716
const {
1817
params: { address },
1918
} = useRouteMatch()
2019
const history = useHistory()
20+
const [displayVerifyDialog, setDisplayVerifyDialog] = useState(false)
21+
const { addresses } = wallet
2122
const isSingleAddress = addresses.length === 1
2223

2324
const accountAddress = useMemo(() => {
@@ -31,6 +32,10 @@ const Receive = () => {
3132
history.push(RoutePath.Addresses)
3233
}, [history])
3334

35+
const onVerifyAddressClick = useCallback(() => {
36+
setDisplayVerifyDialog(true)
37+
}, [])
38+
3439
if (!accountAddress) {
3540
return <div>{t('receive.address-not-found')}</div>
3641
}
@@ -58,6 +63,23 @@ const Receive = () => {
5863
onClick={onAddressBookClick}
5964
/>
6065
)}
66+
{isSingleAddress && (
67+
<Button
68+
type="primary"
69+
className={styles.addressBook}
70+
label={t('receive.verify-address')}
71+
onClick={onVerifyAddressClick}
72+
/>
73+
)}
74+
{displayVerifyDialog && (
75+
<VerifyHardwareAddress
76+
address={accountAddress}
77+
wallet={wallet}
78+
onDismiss={() => {
79+
setDisplayVerifyDialog(false)
80+
}}
81+
/>
82+
)}
6183
</div>
6284
)
6385
}

0 commit comments

Comments
 (0)