Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump deps #74

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.4.1.cjs
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "independent",
"npmClient": "yarn",
"granularPathspec": false
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"copy-files-to-dist": "lerna exec -- node \\$LERNA_ROOT_PATH/scripts/copy-files-to-dist.js"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"husky": "^8.0.3",
"jsdom": "^21.1.0",
"lerna": "^6.5.1",
"prettier": "^2.8.4",
"prettier-plugin-organize-imports": "^3.2.2",
"typescript": "^4.9.3",
"vite": "^4.0.0",
"vite-tsconfig-paths": "^4.0.3",
"vitest": "^0.29.2"
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"husky": "^9.0.11",
"jsdom": "^24.1.0",
"lerna": "^8.1.6",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^4.0.0",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.0.1"
},
"resolutions": {
"@polkadot/types": "^9.14.1",
"@polkadot/util": "^10.4.1",
"@polkadot/keyring": "^10.4.1",
"@polkadot/util-crypto": "^10.4.1",
"@polkadot/ui-keyring": "^2.11.2"
"@polkadot/types": "^12.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/keyring": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/ui-keyring": "^3.6.6"
},
"license": "Apache-2.0"
}
14 changes: 7 additions & 7 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"dependencies": {
"@coong/keyring": "^0.0.22",
"@coong/utils": "^0.0.22",
"@polkadot/networks": "^10.4.1",
"@polkadot/types": "^9.14.1",
"@polkadot/util": "^10.4.1",
"@polkadot/util-crypto": "^10.4.1",
"rxjs": "^7.8.0"
"@polkadot/networks": "^12.6.2",
"@polkadot/types": "^12.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@polkadot/extension-inject": "^0.44.7",
"@polkadot/ui-keyring": "^2.11.2"
"@polkadot/extension-inject": "^0.48.2",
"@polkadot/ui-keyring": "^3.6.6"
},
"publishConfig": {
"access": "public",
Expand Down
10 changes: 5 additions & 5 deletions packages/keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"main": "src/index.ts",
"dependencies": {
"@coong/utils": "^0.0.22",
"@polkadot/ui-keyring": "^2.11.2",
"crypto-js": "^4.1.1"
"@polkadot/ui-keyring": "^3.6.6",
"crypto-js": "^4.2.0"
},
"devDependencies": {
"@polkadot/keyring": "^10.4.1",
"@polkadot/util-crypto": "^10.4.1",
"@types/crypto-js": "^4.1.1"
"@polkadot/keyring": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@types/crypto-js": "^4.2.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/keyring/src/__tests__/Keyring.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { AccountBackup, AccountInfo, WalletBackup, WalletQrBackup } from '@coong
import { CoongError, ErrorCode, StandardCoongError, sha256AsHex } from '@coong/utils';
import CryptoJS from 'crypto-js';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { stringToU8a } from '@polkadot/util/string/toU8a';

let keyring: Keyring;

Expand Down Expand Up @@ -412,6 +413,7 @@ describe('exportWallet', () => {

it('should verify password', async () => {
const mockedVerifyPassword = vi.spyOn(Keyring.prototype, 'verifyPassword');
console.log('stringToU8a', typeof stringToU8a('hello'), stringToU8a('hello') instanceof Uint8Array);
await keyring.exportWallet(PASSWORD);

expect(mockedVerifyPassword).toHaveBeenCalledWith(PASSWORD);
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"dependencies": {
"@coong/base": "^0.0.22",
"@coong/utils": "^0.0.22",
"@polkadot/extension-inject": "^0.44.7",
"rxjs": "^7.8.0"
"@polkadot/extension-inject": "^0.48.2",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@polkadot/api": "^9.10.5"
"@polkadot/api": "^12.1.1"
},
"publishConfig": {
"access": "public",
Expand Down
70 changes: 35 additions & 35 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,47 @@
"@coong/base": "*",
"@coong/keyring": "*",
"@coong/utils": "*",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.11.0",
"@mui/lab": "^5.0.0-alpha.114",
"@mui/material": "^5.11.2",
"@polkadot/react-identicon": "^3.0.1",
"@polkadot/types": "^9.14.1",
"@polkadot/util": "^10.4.1",
"@polkadot/util-crypto": "^10.4.1",
"@reduxjs/toolkit": "^1.9.1",
"clsx": "^1.2.1",
"eventemitter3": "^5.0.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.16.0",
"@mui/lab": "^5.0.0-alpha.171",
"@mui/material": "^5.16.0",
"@polkadot/react-identicon": "^3.6.6",
"@polkadot/types": "^12.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@reduxjs/toolkit": "^2.2.6",
"clsx": "^2.1.1",
"eventemitter3": "^5.0.1",
"file-saver": "^2.0.5",
"i18next": "^22.4.13",
"i18next-http-backend": "^2.2.0",
"i18next": "^23.11.5",
"i18next-http-backend": "^2.5.2",
"qrcode.react": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^3.1.4",
"react-i18next": "^12.2.0",
"react-qr-reader": "^2.2.1",
"react-redux": "^8.0.5",
"react-router-dom": "^6.6.1",
"react-toastify": "^9.1.1",
"react-use": "^17.4.0",
"react-error-boundary": "^4.0.13",
"react-i18next": "^14.1.2",
"react-qr-reader": "^3.0.0-beta-1",
"react-redux": "^9.1.2",
"react-router-dom": "^6.24.1",
"react-toastify": "^10.0.5",
"react-use": "^17.5.0",
"redux-persist": "^6.0.0",
"yup": "^1.1.1"
"yup": "^1.4.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/file-saver": "^2.0.5",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/react-qr-reader": "^2.1.4",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.4"
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/file-saver": "^2.0.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-qr-reader": "^2.1.7",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.39",
"tailwindcss": "^3.4.4"
},
"license": "Apache-2.0"
}
2 changes: 1 addition & 1 deletion packages/ui/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@
"{{numberOfAccounts}} account(s) selected": "<strong>{{numberOfAccounts}}</strong> account(s) selected",
"{{object}} Export QR Code": "",
"Upload QR Code": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function DappAccessDetailsDialog() {

const authorizedAccounts = selectedAccounts.map((one) => one.address);

setAppInfo((prevAppInfo) => ({ ...prevAppInfo, authorizedAccounts } as AppInfo));
setAppInfo((prevAppInfo) => ({ ...prevAppInfo, authorizedAccounts }) as AppInfo);
}, [selectedAccounts]);

if (!appInfo) {
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/providers/WalletStateProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { CoongError, ErrorCode } from '@coong/utils';
import { Props } from 'types';

export interface HandleWalletRequest {
<TRequestName extends RequestName>(message: WalletRequestMessage<TRequestName>): Promise<
WalletResponse<TRequestName>
>;
<TRequestName extends RequestName>(
message: WalletRequestMessage<TRequestName>,
): Promise<WalletResponse<TRequestName>>;
}

interface WalletStateContextProps {
Expand Down
Loading
Loading