Skip to content

Commit

Permalink
Merge pull request #3269 from nervosnetwork/rc/v0.119.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY authored Dec 2, 2024
2 parents bc88e27 + e2affda commit 39fea37
Show file tree
Hide file tree
Showing 28 changed files with 589 additions and 447 deletions.
2 changes: 1 addition & 1 deletion .ckb-light-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.3.7
v0.4.1
2 changes: 1 addition & 1 deletion .ckb-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.117.0
v0.119.0
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# 0.119.0 (2024-12-02)

### CKB Node & Light Client

- [[email protected]](https://github.com/nervosnetwork/ckb/releases/tag/v0.119.0) was released on Oct. 25th, 2024. This version of CKB node is now bundled and preconfigured in Neuron.
- [CKB Light [email protected]](https://github.com/nervosnetwork/ckb-light-client/releases/tag/v0.4.1) was released on Nov. 13th, 2024. This version of CKB Light Client is now bundled and preconfigured in Neuron

### Assumed valid target

Block before `0x7488acf2280ebf5b83c805a517f766eab77f45cd51f61476811d1ce96a60ea71`(at height `14,687,217`) will be skipped in validation.(https://github.com/nervosnetwork/neuron/pull/3268)

---

## Bug fixes

- #3239: Fix abnormal display of remaining time of Nervos DAO.(@devchenyan)
- #3246: Use the median fee rate instead of the average as a more appropriate reference for fee rate.(@yanguoyu)


**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.117.0...v0.119.0


# 0.117.0 (2024-08-12)

### CKB Node & Light Client
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ $ yarn start:ui
$ yarn start:wallet
```

If you want to develop with devnet, replace the testnet script with the dev script in the `packages/neuron-wallet/.env` file.

Here is a script env example, it is constructed by network、script name and filed name.

```
TESTNET_SUDT_DEP_TXHASH=0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769
TESTNET_SUDT_DEP_INDEX=0
TESTNET_SUDT_DEP_TYPE=code
TESTNET_SUDT_SCRIPT_CODEHASH=0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4
TESTNET_SUDT_SCRIPT_HASHTYPE=type
```

### Test

```shell
Expand Down
41 changes: 41 additions & 0 deletions compatible.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"fullVersions": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -17,12 +19,15 @@
"0.103"
],
"lightVersions": [
"0.4",
"0.3",
"0.2"
],
"compatible": {
"0.111": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -34,12 +39,15 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
},
"0.110": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -51,6 +59,7 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
Expand All @@ -73,6 +82,8 @@
},
"0.112": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -84,12 +95,15 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
},
"0.114": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -101,12 +115,15 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
},
"0.116": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -118,12 +135,15 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
},
"0.117": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
Expand All @@ -135,6 +155,27 @@
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
},
"0.119": {
"full": [
"0.119",
"0.118",
"0.117",
"0.116",
"0.115",
"0.114",
"0.113",
"0.112",
"0.111",
"0.110",
"0.109"
],
"light": [
"0.4",
"0.3",
"0.2"
]
Expand Down
6 changes: 4 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"packages": ["packages/*"],
"version": "0.117.0",
"packages": [
"packages/*"
],
"version": "0.119.0",
"npmClient": "yarn",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "neuron",
"productName": "Neuron",
"description": "CKB Neuron Wallet",
"version": "0.117.0",
"version": "0.119.0",
"private": true,
"author": {
"name": "Nervos Core Dev",
Expand Down
14 changes: 14 additions & 0 deletions packages/neuron-ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,19 @@ module.exports = function override(config) {
crypto: false,
buffer: false,
}
/* disable autoprefixer */
webpackConfig.module.rules
.find(r => r.oneOf)
.oneOf.forEach(rule => {
if (rule.use) {
rule.use.forEach(loader => {
if (loader.options && loader.options.postcssOptions) {
loader.options.postcssOptions.plugins = loader.options.postcssOptions.plugins.filter(
plugin => !plugin.toString().includes('autoprefixer')
)
}
})
}
})
return webpackConfig
}
17 changes: 7 additions & 10 deletions packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neuron-ui",
"version": "0.117.0",
"version": "0.119.0",
"private": true,
"author": {
"name": "Nervos Core Dev",
Expand Down Expand Up @@ -46,19 +46,16 @@
"jest": {
"displayName": "UI Tests"
},
"browserslist": [
"last 2 chrome versions"
],
"dependencies": {
"@ckb-lumos/lumos": "0.23.0",
"@ckb-lumos/bi": "0.23.0",
"@ckb-lumos/rpc": "0.23.0",
"@ckb-lumos/base": "0.23.0",
"@ckb-lumos/bi": "0.23.0",
"@ckb-lumos/codec": "0.23.0",
"@ckb-lumos/common-scripts": "0.23.0",
"@ckb-lumos/config-manager": "0.23.0",
"@ckb-lumos/hd": "0.23.0",
"@ckb-lumos/helpers": "0.23.0",
"@ckb-lumos/config-manager": "0.23.0",
"@ckb-lumos/common-scripts": "0.23.0",
"@ckb-lumos/lumos": "0.23.0",
"@ckb-lumos/rpc": "0.23.0",
"canvg": "2.0.0",
"i18next": "23.7.11",
"immer": "9.0.21",
Expand Down Expand Up @@ -108,7 +105,7 @@
"react-test-renderer": "18.2.0",
"storybook": "7.6.6",
"storybook-addon-react-router-v6": "2.0.10",
"webpack": "5.89.0"
"webpack": "5.94.0"
},
"resolutions": {
"react-i18next": "14.0.0"
Expand Down
8 changes: 6 additions & 2 deletions packages/neuron-ui/src/components/NervosDAORecord/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ export const DAORecord = ({
break
}
case CellStatus.Deposited: {
if (leftHours) {
if (!compensationEndEpochValue) {
message = t('nervos-dao.compensation-period.stage-messages.calculating-the-compensation-cycle')
} else if (leftHours) {
message = t('nervos-dao.compensation-period.stage-messages.next-compensation-cycle-hours', {
hours: leftHours || '--',
})
Expand All @@ -149,7 +151,9 @@ export const DAORecord = ({
break
}
case CellStatus.Locked: {
if (leftHours) {
if (!compensationEndEpochValue) {
message = t('nervos-dao.compensation-period.stage-messages.calculating-the-compensation-cycle')
} else if (leftHours) {
message = t('nervos-dao.compensation-period.stage-messages.compensation-cycle-will-end-hours', {
hours: leftHours || '--',
})
Expand Down
34 changes: 18 additions & 16 deletions packages/neuron-ui/src/components/PageContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,24 @@ const PageContainer: React.FC<ComponentProps> = props => {
</div>
{notice && <PageHeadNotice notice={notice} />}
</div>
{showWaitForFullySynced && (
<Alert status="warn" className={styles.syncNotification}>
{t(`messages.codes.${ErrorCode.WaitForFullySynced}`)}
<Close className={styles.close} onClick={closeSyncNotice} />
</Alert>
)}
<div className={styles.body}>{children}</div>
<SetStartBlockNumberDialog
show={isSetStartBlockShown}
headerTipNumber={bestKnownBlockNumber}
initStartBlockNumber={walletStartBlockNumber ? Number(walletStartBlockNumber) : undefined}
isMainnet={isMainnet}
address={addresses[0]?.address}
onUpdateStartBlockNumber={onConfirm}
onCancel={closeDialog}
/>
<div className={styles.content}>
{showWaitForFullySynced && (
<Alert status="warn" className={styles.syncNotification}>
{t(`messages.codes.${ErrorCode.WaitForFullySynced}`)}
<Close className={styles.close} onClick={closeSyncNotice} />
</Alert>
)}
<div className={styles.body}>{children}</div>
<SetStartBlockNumberDialog
show={isSetStartBlockShown}
headerTipNumber={bestKnownBlockNumber}
initStartBlockNumber={walletStartBlockNumber ? Number(walletStartBlockNumber) : undefined}
isMainnet={isMainnet}
address={addresses[0]?.address}
onUpdateStartBlockNumber={onConfirm}
onCancel={closeDialog}
/>
</div>
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.page {
background: var(--main-background-color);
color: var(--main-text-color);
padding: 0 24px;
position: relative;
display: flex;
flex-direction: column;
Expand All @@ -15,6 +14,7 @@
align-items: center;
height: 72px;
margin: 0;
padding: 0 24px;
font-size: 20px;
font-weight: 500;
justify-content: space-between;
Expand Down Expand Up @@ -78,6 +78,9 @@
}
}
}
.content {
padding: 0 24px;
}
}

.notice {
Expand Down
5 changes: 3 additions & 2 deletions packages/neuron-ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@
"compensation-cycle-will-end": "Compensation cycle ends in approximately {{days}} days",
"compensation-cycle-will-end-hours": "Compensation cycle ends in approximately {{hours}} hours",
"compensation-cycle-has-ended": "Cycle has ended, CKB is ready to be unlocked",
"unlocking": "Unlocking..."
"unlocking": "Unlocking...",
"calculating-the-compensation-cycle": "Calculating the compensation cycle"
}
}
},
Expand Down Expand Up @@ -873,7 +874,7 @@
"tag": "J"
},
"feb": {
"full": "Febrary",
"full": "February",
"short": "Feb.",
"tag": "F"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@
"compensation-cycle-will-end": "El ciclo de compensación termina en aproximadamente {{days}} días",
"compensation-cycle-will-end-hours": "El ciclo de compensación termina en aproximadamente {{hours}} horas",
"compensation-cycle-has-ended": "El ciclo ha terminado, CKB está listo para ser desbloqueado",
"unlocking": "Desbloqueando..."
"unlocking": "Desbloqueando...",
"calculating-the-compensation-cycle": "Calculando el ciclo de compensación"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@
"compensation-cycle-will-end": "La période de compensation se termine dans environ {{days}} jours",
"compensation-cycle-will-end-hours": "La période de compensation se termine dans environ {{hours}} heures",
"compensation-cycle-has-ended": "Le cycle est terminé, les CKB sont prêts à être déverrouillés",
"unlocking": "Déverrouillage en cours..."
"unlocking": "Déverrouillage en cours...",
"calculating-the-compensation-cycle": "Calculer le cycle de compensation"
}
}
},
Expand Down
Loading

2 comments on commit 39fea37

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 12111290057

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 12111463211

Please sign in to comment.