Skip to content

Commit b449ab7

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into feat/moonriver
2 parents 6fffe45 + f85db38 commit b449ab7

File tree

433 files changed

+5397
-4174
lines changed

Some content is hidden

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

433 files changed

+5397
-4174
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"ecmaVersion": 2020,
44
"sourceType": "module"
55
},
6-
"extends": ["plugin:prettier/recommended"],
76
"env": {
87
"node": true
98
},

.github/workflows/linters.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ jobs:
9090
node-version: "16"
9191
cache: "pnpm"
9292
- run: pnpm install
93-
- run: pnpm run lint:ci
93+
- name: Run Eslint
94+
run: |
95+
# report to stdio and to file, it's cached, the second run should be fast
96+
pnpm run lint:ci
97+
pnpm run lint:ci-report
9498
- name: Upload eslint report
9599
uses: actions/upload-artifact@v2
96100
with:

.i18n-codegen.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@
3838
"sourceMap": "inline"
3939
}
4040
},
41+
{
42+
"input": "./packages/shared-base-ui/src/locales/en-US.json",
43+
"output": "./packages/shared-base-ui/src/locales/i18n_generated",
44+
"parser": "i18next",
45+
"generator": {
46+
"type": "i18next/react-hooks",
47+
"hooks": "useSharedBaseI18N",
48+
"namespace": "shareBase",
49+
"trans": "SharedBaseTrans",
50+
"sourceMap": "inline"
51+
}
52+
},
4153
{
4254
"input": "./packages/dashboard/src/locales/en-US.json",
4355
"output": "./packages/dashboard/src/locales/i18n_generated",

cspell.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"elec",
8080
"encryptedmsg",
8181
"endregion",
82+
"enhanceable",
8283
"ethersphere",
8384
"ethersproject",
8485
"eustatius",
@@ -152,8 +153,8 @@
152153
"monofont",
153154
"monospace",
154155
"mooniswap",
155-
"Moonriver",
156-
"MOVR",
156+
"moonriver",
157+
"movr",
157158
"msgpack",
158159
"mska",
159160
"mskb",
@@ -268,6 +269,7 @@
268269
"xlarge",
269270
"xlink",
270271
"zerion",
272+
"zora",
271273
"zubin"
272274
],
273275
"ignoreWords": [

docs/rfc/000-Payload-v37.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ enum PublicKeyAlgorithmEnum {
9191

9292
This field represents the format version.
9393

94-
The first and the current binary version is `-37`.
95-
The implementation MUST fail when the version is less than `-37` (e.g. `-38`).
94+
The first and the current binary version is `0`.
9695

9796
#### `authorNetwork` field
9897

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,36 @@
1818
"build": "build",
1919
"build-ios": "build --preset iOS",
2020
"lint": "eslint -c packages/.eslintrc.json packages --ext .ts,.tsx,.js --cache --fix",
21-
"lint:ci": "eslint -c packages/.eslintrc.json packages --ext .ts,.tsx,.js --cache --format=junit --output-file=reports/junit/eslint-results.xml",
21+
"lint:ci": "eslint -c packages/.eslintrc.json packages --ext .ts,.tsx,.js --cache",
22+
"lint:ci-report": "pnpm lint:ci -- --format=junit --output-file=reports/junit/eslint-results.xml",
2223
"postinstall": "patch-package",
2324
"prepare": "husky install",
2425
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
26+
"test:update": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js -u",
2527
"spellcheck": "cspell lint --no-must-find-files"
2628
},
2729
"dependencies": {
2830
"@dimensiondev/kit": "0.0.0-20220223101101-4e6f3b9",
2931
"@emotion/cache": "^11.7.1",
30-
"@emotion/react": "^11.8.1",
32+
"@emotion/react": "^11.8.2",
3133
"@emotion/serialize": "^1.0.2",
3234
"@emotion/styled": "^11.8.1",
3335
"@emotion/utils": "^1.1.0",
34-
"@mui/icons-material": "5.4.4",
35-
"@mui/lab": "5.0.0-alpha.71",
36-
"@mui/material": "5.4.4",
37-
"@mui/system": "5.4.4",
36+
"@mui/icons-material": "5.5.0",
37+
"@mui/lab": "5.0.0-alpha.72",
38+
"@mui/material": "5.5.0",
39+
"@mui/system": "5.5.0",
3840
"@types/masknet__global-types": "workspace:*",
39-
"@types/react": "^17.0.39",
40-
"@types/react-dom": "17.0.11",
41-
"@types/web": "^0.0.54",
42-
"i18next": "^21.6.13",
41+
"@types/react": "^17.0.40",
42+
"@types/react-dom": "17.0.13",
43+
"@types/web": "^0.0.55",
44+
"i18next": "^21.6.14",
4345
"lodash": "^4.17.21",
4446
"lodash-es": "^4.17.21",
4547
"lodash-unified": "1.0.2",
46-
"react": "18.0.0-rc.0",
47-
"react-dom": "18.0.0-rc.0",
48-
"react-i18next": "^11.15.5",
48+
"react": "18.0.0-rc.2",
49+
"react-dom": "18.0.0-rc.2",
50+
"react-i18next": "^11.15.6",
4951
"ts-results": "3.3.0",
5052
"web3-core": "1.5.2",
5153
"web3-core-method": "1.5.2"
@@ -62,28 +64,26 @@
6264
"@nice-labs/git-rev": "^3.5.0",
6365
"@swc/core": "^1.2.148",
6466
"@types/lodash-es": "^4.17.6",
65-
"@typescript-eslint/experimental-utils": "^5.13.0",
67+
"@typescript-eslint/experimental-utils": "^5.14.0",
6668
"cspell": "^5.18.5",
6769
"eslint": "8.10.0",
68-
"eslint-config-prettier": "^8.5.0",
6970
"eslint-plugin-import": "2.25.4",
70-
"eslint-plugin-prettier": "^4.0.0",
7171
"eslint-plugin-react": "^7.29.3",
7272
"eslint-plugin-react-hooks": "^4.3.0",
7373
"eslint-plugin-unicorn": "^41.0.0",
7474
"eslint-plugin-unused-imports": "^2.0.0",
7575
"gulp": "^4.0.2",
7676
"husky": "^7.0.4",
7777
"jest": "^28.0.0-alpha.3",
78-
"lint-staged": "^12.3.4",
78+
"lint-staged": "^12.3.5",
7979
"prettier": "^2.5.1",
8080
"ts-jest": "^27.1.3",
81-
"ts-node": "^10.6.0",
81+
"ts-node": "^10.7.0",
8282
"typescript": "4.6.2"
8383
},
8484
"pnpm": {
8585
"overrides": {
86-
"@types/node": "^17.0.17"
86+
"@types/node": "^17.0.21"
8787
},
8888
"onlyBuiltDependencies": []
8989
}

packages/.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"react/self-closing-comp": ["warn", { "component": true, "html": true }],
5151
"react-hooks/exhaustive-deps": "off",
5252
"react-hooks/rules-of-hooks": "error",
53-
"import/no-deprecated": "error",
53+
"import/no-deprecated": "off",
5454
"import/no-duplicates": "error",
5555
"unicorn/better-regex": "error",
5656
"unicorn/catch-error-name": ["error", { "ignore": ["^err$"] }],
@@ -65,7 +65,6 @@
6565
"unicorn/prefer-number-properties": "error",
6666
"unicorn/relative-url-style": ["error", "always"],
6767
"unicorn/throw-new-error": "error",
68-
"unused-imports/no-unused-imports-ts": "error",
6968
"@dimensiondev/no-jsx-template-literal": "error",
7069
"@dimensiondev/no-locale-case": "error",
7170
"@dimensiondev/no-number-constructor": "off",

packages/dashboard/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@
2020
"@masknet/public-api": "workspace:*",
2121
"@masknet/shared": "workspace:*",
2222
"@masknet/shared-base": "workspace:*",
23+
"@masknet/shared-base-ui": "workspace:*",
2324
"@masknet/storybook-shared": "workspace:*",
2425
"@masknet/theme": "workspace:*",
26+
"@masknet/web3-providers": "workspace:*",
2527
"@masknet/web3-shared-base": "workspace:*",
2628
"@masknet/web3-shared-evm": "workspace:*",
27-
"@masknet/web3-providers": "workspace:*",
2829
"@msgpack/msgpack": "^2.7.2",
2930
"@servie/events": "^3.0.0",
3031
"@types/color": "^3.0.3",
3132
"@types/react-avatar-editor": "^10.3.6",
32-
"async-call-rpc": "^6.0.1",
33+
"async-call-rpc": "^6.0.2",
3334
"bignumber.js": "^9.0.2",
3435
"classnames": "^2.3.1",
3536
"color": "^4.2.1",

packages/dashboard/src/components/DashboardFrame/Navigation.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import {
55
ListItemIcon,
66
Collapse,
77
Theme,
8-
// see https://github.com/import-js/eslint-plugin-import/issues/2288
9-
// eslint-disable-next-line import/no-deprecated
108
useMediaQuery,
119
styled,
1210
listItemClasses,
@@ -122,8 +120,6 @@ export function Navigation({ onClose }: NavigationProps) {
122120
const isWalletTransferPath = useMatch(DashboardRoutes.WalletsTransfer)
123121
const isWalletHistoryPath = useMatch(DashboardRoutes.WalletsHistory)
124122

125-
// see https://github.com/import-js/eslint-plugin-import/issues/2288
126-
// eslint-disable-next-line import/no-deprecated
127123
const isLargeScreen = useMediaQuery<Theme>((theme) => theme.breakpoints.up('lg'))
128124
const t = useDashboardI18N()
129125
const mode = useTheme().palette.mode

packages/dashboard/src/components/DashboardFrame/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { memo, Suspense, useMemo, useState } from 'react'
2-
// see https://github.com/import-js/eslint-plugin-import/issues/2288
3-
// eslint-disable-next-line import/no-deprecated
42
import { Grid, styled, Theme, useMediaQuery } from '@mui/material'
53
import { MaskColorVar } from '@masknet/theme'
6-
import { ErrorBoundary } from '@masknet/shared'
4+
import { ErrorBoundary } from '@masknet/shared-base-ui'
75
import { DashboardContext } from './context'
86
import { Navigation } from './Navigation'
97
import { NavigationVersionFooter } from '../NavigationVersionFooter'
@@ -27,8 +25,6 @@ const LeftContainer = styled(Grid)(({ theme }) => ({
2725
export interface DashboardFrameProps extends React.PropsWithChildren<{}> {}
2826

2927
export const DashboardFrame = memo((props: DashboardFrameProps) => {
30-
// see https://github.com/import-js/eslint-plugin-import/issues/2288
31-
// eslint-disable-next-line import/no-deprecated
3228
const isLargeScreen = useMediaQuery<Theme>((theme) => theme.breakpoints.up('lg'))
3329
const [navigationExpanded, setNavigationExpanded] = useState(true)
3430
const [drawerOpen, setDrawerOpen] = useState(false)

0 commit comments

Comments
 (0)