Skip to content

Commit 2bdbcc5

Browse files
authored
Merge pull request #1984 from nervosnetwork/rc/release-ledger
Rc/release v0.35.0
2 parents 6bb7961 + 02d70ad commit 2bdbcc5

File tree

42 files changed

+839
-166
lines changed

Some content is hidden

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

42 files changed

+839
-166
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 0.35.0 (2021-01-12)
2+
3+
[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.
4+
5+
### New features
6+
7+
* Enable hardware wallet of Ledger. Please note that this is an **experimental** feature, please pay attention to the risk and use with caution.
8+
* Support address verification on hardware wallet device.
9+
10+
### Bug fixes
11+
12+
* Fix problems in searching transactions by address or tx hash.
13+
114
# 0.34.2 (2020-12-31)
215

316
[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.
@@ -9,6 +22,16 @@
922
* Fix version updater error when clicking the install button too soon.
1023
* Fix bug of `too many open files` error.
1124

25+
# 0.35.0-rc1 (2020-12-19)
26+
27+
This is a release candidate to preview the changes in the next official release and may not be stable. Welcome any questions or suggestions.
28+
29+
[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.
30+
31+
### New features
32+
33+
* Enable hardware wallet of Ledger.
34+
* Support address verification on hardware wallet device.
1235

1336
# 0.34.1 (2020-12-19)
1437

azure-pipelines.yml

Lines changed: 9 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_14_x:
30-
node_version: 14.x
29+
node_12_x:
30+
node_version: 12.x
3131
steps:
3232
- task: NodeTool@0
3333
inputs:
@@ -47,8 +47,8 @@ stages:
4747
vmImage: 'ubuntu-18.04'
4848
strategy:
4949
matrix:
50-
node_14_x:
51-
node_version: 14.x
50+
node_12_x:
51+
node_version: 12.x
5252
steps:
5353
- task: NodeTool@0
5454
inputs:
@@ -74,8 +74,8 @@ stages:
7474
vmImage: 'vs2017-win2016'
7575
strategy:
7676
matrix:
77-
node_14_x:
78-
node_version: 14.x
77+
node_12_x:
78+
node_version: 12.x
7979
steps:
8080
- task: NodeTool@0
8181
inputs:
@@ -104,7 +104,7 @@ stages:
104104
steps:
105105
- task: NodeTool@0
106106
inputs:
107-
versionSpec: 14.x
107+
versionSpec: 12.x
108108
displayName: 'Install Node.js'
109109
- script: |
110110
yarn global add lerna
@@ -134,7 +134,7 @@ stages:
134134
steps:
135135
- task: NodeTool@0
136136
inputs:
137-
versionSpec: 14.x
137+
versionSpec: 12.x
138138
displayName: 'Install Node.js'
139139
- script: |
140140
sudo apt-get install -y libudev-dev
@@ -158,7 +158,7 @@ stages:
158158
steps:
159159
- task: NodeTool@0
160160
inputs:
161-
versionSpec: 14.x
161+
versionSpec: 12.x
162162
displayName: 'Install Node.js'
163163
- script: yarn global add lerna
164164
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.2",
5+
"version": "0.35.0",
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.2",
5+
"version": "0.35.0",
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.2",
3+
"version": "0.35.0",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
sendCreateSUDTAccountTransaction,
99
sendSUDTTransaction,
1010
AppActions,
11+
migrateAcp,
1112
} from 'states'
1213
import { ControllerResponse } from 'services/remote/remoteApiWrapper'
1314
import Spinner from 'widgets/Spinner'
@@ -284,6 +285,16 @@ const HardwareSign = ({
284285
})
285286
break
286287
}
288+
case 'migrate-acp': {
289+
await migrateAcp({ id: wallet.id })(dispatch).then(res => {
290+
if (isSuccessResponse(res)) {
291+
history!.push(RoutePath.History)
292+
} else {
293+
setError(res.message.content)
294+
}
295+
})
296+
break
297+
}
287298
default: {
288299
break
289300
}

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/ImportHardware/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useRef, useEffect } from 'react'
22
import { Switch, Route, RouteComponentProps } from 'react-router-dom'
3+
import Experimental from 'widgets/ExperimentalRibbon'
34
import Comfirming from './confirming'
45
import ImportError from './import-error'
56
import SelectModel from './select-model'
@@ -12,13 +13,15 @@ import styles from './findDevice.module.scss'
1213

1314
const ImportHardware = ({ match }: RouteComponentProps) => {
1415
const dialogRef = useRef<HTMLDialogElement | null>(null)
16+
const EXPERIMENTAL_TAG = 'import-hardware'
1517

1618
useEffect(() => {
1719
dialogRef.current!.showModal()
1820
}, [])
1921

2022
return (
2123
<dialog ref={dialogRef} className={styles.dialog}>
24+
<Experimental tag={EXPERIMENTAL_TAG} showRibbon={false} message="messages.experimental-message-hardware" />
2225
<Switch>
2326
<Route component={SelectModel} exact path={match.url} />
2427
<Route component={DetectDevice} exact path={match.url + RoutePath.DetectDevice} />

packages/neuron-ui/src/components/ImportHardware/select-model.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { RouteComponentProps } from 'react-router-dom'
33
import { useTranslation } from 'react-i18next'
44
import Button from 'widgets/Button'
55
import Select from 'widgets/Select'
6+
import { Text } from 'office-ui-fabric-react'
67
import styles from './findDevice.module.scss'
78
import { LocationState, Model, RoutePath } from './common'
89

@@ -56,6 +57,7 @@ const SelectModel = ({ match, history }: RouteComponentProps<{}, {}, LocationSta
5657
placeholder={t('import-hardware.select-model')}
5758
options={supportedHardwareModels}
5859
/>
60+
<Text variant="tiny">{t('messages.experimental-message-hardware')}</Text>
5961
</section>
6062
<footer className={styles.footer}>
6163
<Button type="cancel" label={t('import-hardware.actions.cancel')} onClick={onBack} />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const PasswordRequest = () => {
128128
break
129129
}
130130
case 'migrate-acp': {
131-
await migrateAcp({ id: walletID, password })(dispatch).then(status => {
131+
await migrateAcp({ id: walletID, password })(dispatch).then(({ status }) => {
132132
if (isSuccessResponse({ status })) {
133133
history.push(RoutePath.History)
134134
} else if (status === ErrorCode.PasswordIncorrect) {

0 commit comments

Comments
 (0)