Skip to content

Commit 5fc2686

Browse files
authored
Merge pull request #1426 from nervosnetwork/rc/v0.29.0
[ᚬmaster] Rc/v0.29.0-rc1
2 parents 63ae5a1 + d546131 commit 5fc2686

File tree

137 files changed

+4206
-509
lines changed

Some content is hidden

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

137 files changed

+4206
-509
lines changed

.ckb-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.28.0
1+
v0.29.0

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 0.29.0-rc1 (2020-03-02)
2+
3+
This is an RC version to preview the changes in the next release.
4+
5+
### Bundled CKB node
6+
7+
CKB v0.29.0 was released on Feb 26th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.
8+
9+
### New features
10+
11+
We added several new features with this version:
12+
13+
* Sign/Verify message: Sign a message with an address and its private key, or verify a signed message with an address and its public key.
14+
* Customized assets: List customized assets that have non-standard cells, e.g. cells with locktime.
15+
* Transaction with locktime: Send a transaction that could only be released after the locktime.
16+
17+
### Performance tweak
18+
19+
Thanks to the community we have found and fixed a serious performance issue. Miner wallets usually receive transactions with huge amount of inputs. When syncing this kind of wallets Neuron became very slow and unresponsive, and couldn't calculate the balance correctly. With this release we've tweaked the sync process, making it run faster and handle transactions with many inputs/outputs properly.
20+
21+
22+
123
# 0.28.0 (2020-02-13)
224

325
### Bundled CKB node

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.28.0",
5+
"version": "0.29.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.28.0",
5+
"version": "0.29.0-rc1",
66
"private": true,
77
"author": {
88
"name": "Nervos Core Dev",
@@ -53,7 +53,7 @@
5353
"ncp": "2.0.0",
5454
"nodemon": "1.19.2",
5555
"ts-jest": "24.0.2",
56-
"typescript": "3.8.1-rc",
56+
"typescript": "3.8.2",
5757
"wait-on": "3.3.0"
5858
},
5959
"resolutions": {

packages/neuron-ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuron-ui",
3-
"version": "0.28.0",
3+
"version": "0.29.0-rc1",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",
@@ -43,6 +43,7 @@
4343
"last 2 chrome versions"
4444
],
4545
"dependencies": {
46+
"@bit/primefaces.primereact.calendar": "3.1.8",
4647
"@nervosnetwork/ckb-sdk-core": "0.27.1",
4748
"@uifabric/experiments": "7.18.6",
4849
"@uifabric/styling": "7.7.3",

packages/neuron-ui/src/components/Addresses/addresses.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ $change-color: #6666cc;
3838

3939

4040
th {
41+
@include SemiBoldText;
4142
font-size: 1rem;
4243
font-weight: 600;
4344
letter-spacing: 0.6px;
4445
color: #000;
4546
padding: 18px 0;
46-
4747
}
4848

4949
td {

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ import { openExternal, openContextMenu } from 'services/remote'
99

1010
import { useLocalDescription } from 'utils/hooks'
1111
import { localNumberFormatter, shannonToCKBFormatter } from 'utils/formatters'
12-
import { Routes, MAINNET_TAG } from 'utils/const'
12+
import { Routes } from 'utils/const'
1313
import { backToTop } from 'utils/animations'
1414
import getExplorerUrl from 'utils/getExplorerUrl'
15+
import isMainnetUtil from 'utils/isMainnet'
1516
import styles from './addresses.module.scss'
1617

1718
const Addresses = () => {
@@ -24,7 +25,7 @@ const Addresses = () => {
2425
const [t] = useTranslation()
2526
const history = useHistory()
2627

27-
const isMainnet = (networks.find(n => n.id === networkID) || {}).chain === MAINNET_TAG
28+
const isMainnet = isMainnetUtil(networks, networkID)
2829

2930
useEffect(() => {
3031
backToTop()
@@ -39,7 +40,9 @@ const Addresses = () => {
3940
} = useLocalDescription('address', walletID, dispatch)
4041

4142
const onContextMenu = useCallback(
42-
item => {
43+
(item: State.Address) => (e: React.MouseEvent<HTMLTableRowElement, MouseEvent>) => {
44+
e.stopPropagation()
45+
e.preventDefault()
4346
if (item && item.address) {
4447
const menuTemplate = [
4548
{
@@ -83,7 +86,7 @@ const Addresses = () => {
8386
const isSelected = localDescription.key === addr.address
8487
const typeLabel = addr.type === 0 ? t('addresses.receiving-address') : t('addresses.change-address')
8588
return (
86-
<tr key={addr.address} onContextMenu={() => onContextMenu(addr)}>
89+
<tr key={addr.address} onContextMenu={onContextMenu(addr)}>
8790
<td className={styles.type} data-type={addr.type === 0 ? 'receiving' : 'change'} title={typeLabel}>
8891
{typeLabel}
8992
</td>

packages/neuron-ui/src/components/History/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const useSearch = (search: string = '', walletID: string = '', dispatch:
1414

1515
useEffect(() => {
1616
backToTop()
17-
const params = queryParsers.history(search)
17+
const params = queryParsers.listParams(search)
1818
setKeywords(params.keywords)
1919
updateTransactionList({ ...params, keywords: params.keywords, walletID })(dispatch)
2020
}, [search, walletID, dispatch])

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { Pagination } from '@uifabric/experiments'
77
import TransactionList from 'components/TransactionList'
88
import { useState as useGlobalState, useDispatch } from 'states/stateProvider'
99

10-
import { Routes, MAINNET_TAG } from 'utils/const'
10+
import { Routes } from 'utils/const'
11+
import isMainnetUtil from 'utils/isMainnet'
1112

1213
import { useSearch } from './hooks'
1314
import styles from './history.module.scss'
@@ -30,10 +31,7 @@ const History = () => {
3031
const [t] = useTranslation()
3132
const history = useHistory()
3233
const { search } = useLocation()
33-
const isMainnet = useMemo(() => {
34-
const network = networks.find(n => n.id === networkID)
35-
return !!(network && network.chain === MAINNET_TAG)
36-
}, [networks, networkID])
34+
const isMainnet = isMainnetUtil(networks, networkID)
3735

3836
const { keywords, onKeywordsChange } = useSearch(search, id, dispatch)
3937
useEffect(() => {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const NetworkSetting = ({ chain = chainState, settings: { networks = [] } }: Sta
4444

4545
const onContextMenu = useCallback(
4646
(e: React.MouseEvent<HTMLElement, MouseEvent>) => {
47+
e.stopPropagation()
48+
e.preventDefault()
4749
const { networkId } = (e.target as HTMLElement).dataset
4850
const item = networks.find(n => n.id === networkId)
4951
if (item) {

0 commit comments

Comments
 (0)