Compare commits

..
86 Commits
Author SHA1 Message Date
Github Actions e0fcfd2d1d [CI Skip] release/stable 0.79.1
skip-checks: true
2021-06-06 17:47:50 +00:00
Jaco b02a3ba421 0.79 (#482) 2021-06-06 19:44:47 +02:00
Github Actions f41c1516ed [CI Skip] release/beta 0.78.2-17
skip-checks: true
2021-06-05 11:10:33 +00:00
Jaco Greeff f7d9737950 No semgrep.yml on forks 2021-06-05 14:07:44 +03:00
Github Actions 6ab36a36c5 [CI Skip] release/beta 0.78.2-16
skip-checks: true
2021-06-05 06:41:00 +00:00
Jaco Greeff 640065171b push-master.yml adjust skip 2021-06-05 09:38:00 +03:00
Github Actions b9ac67f6a8 [CI Skip] release/beta 0.78.2-15
skip-checks: true
2021-06-05 06:22:23 +00:00
Jaco Greeff def168928c semgrep.yml on PR 2021-06-05 09:20:03 +03:00
Github Actions db67cf32b1 [CI Skip] release/beta 0.78.2-14
skip-checks: true
2021-06-04 15:01:28 +00:00
Jaco Greeff e134e707c9 semgrep.yml update 2021-06-04 17:58:07 +03:00
Github Actions f174bb188e [CI Skip] release/beta 0.78.2-13
skip-checks: true
2021-06-04 10:42:20 +00:00
Jaco c487a0acf4 Bump deps (#480) 2021-06-04 13:39:54 +03:00
Github Actions d152a182f3 [CI Skip] release/beta 0.78.2-12
skip-checks: true
2021-06-04 08:42:06 +00:00
Jaco Greeff 660f65dab6 semgrep on master only 2021-06-04 11:38:52 +03:00
Github Actions 841d44180f [CI Skip] release/beta 0.78.2-11
skip-checks: true
2021-06-04 05:39:04 +00:00
Jaco Greeff 7c64e75648 semgrep only for non-forked 2021-06-04 08:36:03 +03:00
Github Actions b6ac318e95 [CI Skip] release/beta 0.78.2-10
skip-checks: true
2021-06-03 08:29:14 +00:00
Jaco b99c316fe0 BN type imports (#479) 2021-06-03 10:26:36 +02:00
Github Actions b069b69bcf [CI Skip] release/beta 0.78.2-9
skip-checks: true
2021-06-03 05:11:13 +00:00
Jaco 805c2088aa WebHID as experimental (#478) 2021-06-03 07:08:03 +02:00
Github Actions baf6c58280 [CI Skip] release/beta 0.78.2-8
skip-checks: true
2021-06-03 05:05:06 +00:00
Jaco dd21ee2eb4 WebHid selection (#477) 2021-06-03 07:02:42 +02:00
Github Actions d3e5ba557d [CI Skip] release/beta 0.78.2-7
skip-checks: true
2021-06-02 16:06:38 +00:00
Jaco Greeff 8d10679cac Merge branch 'master' of github.com:polkadot-js/ui 2021-06-02 19:04:07 +03:00
Jaco Greeff 8eab5c731e fix stale.yml 2021-06-02 19:03:55 +03:00
Github Actions 93107eb800 [CI Skip] release/beta 0.78.2-6
skip-checks: true
2021-06-02 07:11:24 +00:00
Jaco Greeff 7c17d9a304 cron workflows 2021-06-02 10:07:43 +03:00
Github Actions 3cb7b9ec17 [CI Skip] release/beta 0.78.2-5
skip-checks: true
2021-06-01 10:01:04 +00:00
Jaco Greeff 9fed78b350 semgrep.yml 2021-06-01 12:58:22 +03:00
Github Actions c01135f515 [CI Skip] release/beta 0.78.2-4
skip-checks: true
2021-06-01 06:07:00 +00:00
Jaco Greeff 6bf0c428d5 cron daily only 2021-06-01 09:04:04 +03:00
Github Actions 0dbcd23747 [CI Skip] release/beta 0.78.2-3
skip-checks: true
2021-05-31 20:19:04 +00:00
Jaco Greeff fdc1834491 cron locks 2021-05-31 23:15:53 +03:00
Github Actions b684af3f50 [CI Skip] release/beta 0.78.2-2
skip-checks: true
2021-05-31 07:49:09 +00:00
Jaco 24b76e63f8 Update .123trigger 2021-05-31 09:46:12 +02:00
Github Actions d7fd57c431 [CI Skip] release/beta 0.78.2-1
skip-checks: true
2021-05-31 07:44:43 +00:00
Jaco Greeff 7da91dba9b Bump dev 2021-05-31 10:41:29 +03:00
Jaco b8e78ccb99 Bump dev (#475) 2021-05-31 09:17:00 +02:00
Jaco Greeff 8b7494699a lock.yml 2021-05-30 22:23:36 +03:00
Github Actions 3b221f7a5a [CI Skip] release/beta 0.78.2-1
skip-checks: true
2021-05-30 09:45:30 +00:00
Jaco ab5ae15257 Bump berry (#474) 2021-05-30 11:42:46 +02:00
Github Actions 9f2921791d [CI Skip] release/beta 0.78.2-0
skip-checks: true
2021-05-29 08:22:16 +00:00
Jaco Greeff 200f12803a Update stale.yml 2021-05-29 11:19:15 +03:00
Github Actions a8e6f90fbf [CI Skip] release/stable 0.78.1
skip-checks: true
2021-05-29 07:44:19 +00:00
Jaco 8f6ad2fc5e 0.78 (#473) 2021-05-29 09:40:54 +02:00
Github Actions 4c24f08e73 [CI Skip] release/beta 0.77.2-2
skip-checks: true
2021-05-28 08:42:55 +00:00
Jaco Greeff c1c185fc25 Update stale.yml 2021-05-28 11:39:46 +03:00
Github Actions 325217736e [CI Skip] release/beta 0.77.2-1
skip-checks: true
2021-05-28 08:18:39 +00:00
Jaco 71b16b5036 Add stale.yml (#472) 2021-05-28 10:15:42 +02:00
Github Actions abc50b3e30 [CI Skip] release/beta 0.77.2-0
skip-checks: true
2021-05-26 08:06:51 +00:00
Jaco 44690ffe3b Bump dev (fixup jest tests) (#471) 2021-05-26 10:03:44 +02:00
Github Actions 153852c87b [CI Skip] release/stable 0.77.1
skip-checks: true
2021-05-25 05:19:24 +00:00
Jaco cfc219702c 0.77 (#470) 2021-05-25 07:16:35 +02:00
Jaco 623a264cbe Bump deps (#469) 2021-05-25 07:10:12 +02:00
Github Actions a616ee7146 [CI Skip] release/stable 0.76.1
skip-checks: true
2021-05-16 18:22:51 +00:00
Jaco e3719881e7 0.76 (#468) 2021-05-16 20:19:53 +02:00
Github Actions 1cbad7a0df [CI Skip] release/beta 0.75.2-4
skip-checks: true
2021-05-12 13:10:57 +00:00
Jaco a3beb29c82 Bump common (#467) 2021-05-12 15:07:51 +02:00
Github Actions d4882d8add [CI Skip] release/beta 0.75.2-3
skip-checks: true
2021-05-11 13:41:17 +00:00
Jaco 56969e32cb Bump deps (#466) 2021-05-11 15:37:59 +02:00
Github Actions 1015b30a22 [CI Skip] release/beta 0.75.2-2
skip-checks: true
2021-05-11 13:16:42 +00:00
Antoine EstienneandJaco 99ee4afaf8 Add types to injected accounts in keyring load functions (#464)
* add types to injected accounts

* Update packages/ui-keyring/src/Keyring.ts

Co-authored-by: Jaco <jacogr@gmail.com>

* Update packages/ui-keyring/src/Keyring.ts

Co-authored-by: Jaco <jacogr@gmail.com>

Co-authored-by: Jaco <jacogr@gmail.com>
2021-05-11 15:13:13 +02:00
Github Actions db2647aada [CI Skip] release/beta 0.75.2-1
skip-checks: true
2021-05-07 12:30:42 +00:00
Jaco 3543bd1d24 Bump common (#465) 2021-05-07 14:27:38 +02:00
Github Actions da7e070261 [CI Skip] release/beta 0.75.2-0
skip-checks: true
2021-04-30 05:56:13 +00:00
Jaco b107e72459 Bump deps (#463) 2021-04-30 07:53:34 +02:00
Github Actions 95bfbfcab9 [CI Skip] release/stable 0.75.1
skip-checks: true
2021-04-25 05:32:06 +00:00
Jaco 887fb80d83 0.75 (#462) 2021-04-25 07:28:52 +02:00
Github Actions efa068c189 [CI Skip] release/beta 0.74.2-0
skip-checks: true
2021-04-22 06:44:41 +00:00
Jaco f368fa077e Bump deps (#461) 2021-04-22 08:41:38 +02:00
Github Actions 4b6e7678ad [CI Skip] release/stable 0.74.1
skip-checks: true
2021-04-18 09:24:47 +00:00
Jaco e1b31afafd Bump common (#460)
* Bump common

* Bumps

* 0.74
2021-04-18 11:21:54 +02:00
Github Actions f875934459 [CI Skip] release/beta 0.73.2-0
skip-checks: true
2021-04-15 12:27:26 +00:00
Jaco e9ab4e1186 Bump common (#459) 2021-04-15 14:24:02 +02:00
Github Actions 7278364873 [CI Skip] release/stable 0.73.1
skip-checks: true
2021-04-12 07:16:36 +00:00
Jaco Greeff 291a478290 0.73 (#458) 2021-04-12 09:13:37 +02:00
Github Actions 4768817661 [CI Skip] release/beta 0.72.2-0
skip-checks: true
2021-04-08 09:09:32 +00:00
Jaco Greeff ebf561f48c Bump deps (#457) 2021-04-08 11:06:28 +02:00
Github Actions 8bdfd18e1f [CI Skip] release/stable 0.72.1
skip-checks: true
2021-03-15 12:52:03 +00:00
Jaco Greeff 5e48c1036f 0.72 (#456) 2021-03-15 13:48:52 +01:00
Github Actions 4370e87fea [CI Skip] release/beta 0.71.4-2
skip-checks: true
2021-03-11 18:28:10 +00:00
雪霁 0864aef698 Batch export patch up (#455)
* .

* .

* fix lint

* .

* change on request

* .
2021-03-11 19:25:04 +01:00
Github Actions b898dff53f [CI Skip] release/beta 0.71.4-1
skip-checks: true
2021-03-10 13:15:39 +00:00
Jaco Greeff 15056a5a6c Bump deps (#454) 2021-03-10 14:12:32 +01:00
Github Actions 2f5df3e46f [CI Skip] release/beta 0.71.4-0
skip-checks: true
2021-03-09 18:58:41 +00:00
雪霁 fd3176c36e Batch export (#449)
* .

* .

* fix lint

* .

* change on request
2021-03-09 19:55:31 +01:00
38 changed files with 4850 additions and 4219 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
1
2
0.57.20.57.3
0.66.2
0.66.3
0.71.2
0.71.3
0.71.3
+23
View File
@@ -0,0 +1,23 @@
name: 'Lock Threads'
on:
schedule:
- cron: '4 4 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ secrets.GH_PAT_BOT }}
issue-lock-inactive-days: '7'
issue-lock-comment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue
if you think you have a related problem or query.
pr-lock-inactive-days: '2'
pr-lock-comment: >
This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
+1 -8
View File
@@ -6,11 +6,11 @@ on:
jobs:
master:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]')"
strategy:
matrix:
step: ['build:release']
name: ${{ matrix.step }}
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/ui'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -25,10 +25,3 @@ jobs:
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
dummy:
runs-on: ubuntu-latest
steps:
- name: dummy
run: |
echo "Dummy skip step"
+18
View File
@@ -0,0 +1,18 @@
name: Semgrep
on:
pull_request: {}
push:
branches:
- master
jobs:
check:
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.issue.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
auditOn: push
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
publishDeployment: 1395
+17
View File
@@ -0,0 +1,17 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '2 2 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GH_PAT_BOT }}
stale-issue-message: 'This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
stale-issue-label: 'stale'
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
days-before-stale: 21
days-before-close: 7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-55
View File
File diff suppressed because one or more lines are too long
+591
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -10,4 +10,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
yarnPath: .yarn/releases/yarn-2.4.1.cjs
yarnPath: .yarn/releases/yarn-3.0.0-rc.2.cjs
+61
View File
@@ -1,5 +1,66 @@
# CHANGELOG
## 0.79.1, Jun 6, 2021
Changes:
- Add support for WebHID selection (as exposed by ledger packages)
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.7.1
## 0.78.1 May 29, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.6.1
## 0.77.1 May 25, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.5.1
## 0.76.1 May 16, 2021
Contributed:
- Pass through injected account types (Thanks to https://github.com/joelamouche)
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.4.1
## 0.75.1 Apr 25, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.3.1
## 0.74.1 Apr 18, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.2.1
## 0.73.1 Apr 12, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.1.1
## 0.72.1 Mar 15, 2021
Contributed:
- Added support for batch import/export functionality (Thanks to https://github.com/BubbleBear)
## 0.71.3 Mar 8, 2021
Changes:
+18 -3
View File
@@ -3,7 +3,8 @@
const config = require('@polkadot/dev/config/jest.cjs');
module.exports = Object.assign({}, config, {
module.exports = {
...config,
moduleNameMapper: {
'@polkadot/react-(identicon|qr)(.*)$': '<rootDir>/packages/react-$1/src/$2',
'@polkadot/reactnative-(identicon)(.*)$': '<rootDir>/packages/reactnative-$1/src/$2',
@@ -11,5 +12,19 @@ module.exports = Object.assign({}, config, {
'\\.(css|less)$': 'empty/object',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object'
},
transformIgnorePatterns: ['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/|rxjs/_esm5)']
});
modulePathIgnorePatterns: [
'<rootDir>/packages/example-react/build',
'<rootDir>/packages/example-vue/build',
'<rootDir>/packages/exampleReactNative/build',
'<rootDir>/packages/react-identicon/build',
'<rootDir>/packages/react-qr/build',
'<rootDir>/packages/reactnative-identicon/build',
'<rootDir>/packages/ui-assets/build',
'<rootDir>/packages/ui-keyring/build',
'<rootDir>/packages/ui-settings/build',
'<rootDir>/packages/ui-shared/build',
'<rootDir>/packages/vue-identicon/build'
],
testEnvironment: 'jsdom',
transformIgnorePatterns: ['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)']
};
+12 -12
View File
@@ -8,7 +8,7 @@
"packages/*"
],
"resolutions": {
"typescript": "^4.2.3"
"typescript": "^4.3.2"
},
"scripts": {
"build": "polkadot-dev-build-ts",
@@ -27,21 +27,21 @@
"test:one": "polkadot-dev-run-test"
},
"devDependencies": {
"@babel/core": "^7.13.8",
"@babel/runtime": "^7.13.9",
"@polkadot/dev": "^0.62.5",
"@polkadot/ts": "^0.3.62",
"@types/jest": "^26.0.20",
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.14.0",
"@polkadot/dev": "^0.62.38",
"@polkadot/ts": "^0.3.86",
"@types/jest": "^26.0.23",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-is": "^17.0.1",
"react-native": "^0.63.4",
"vue-template-compiler": "^2.6.12",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-native": "^0.64.2",
"vue-template-compiler": "^2.6.13",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-serve": "^3.2.0"
},
"version": "0.71.3"
"version": "0.79.1"
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/example-react",
"version": "0.71.3",
"version": "0.79.1",
"description": "A very basic example with ui-* & react-* packages",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9"
"@babel/runtime": "^7.14.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-react', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/example-react', version: '0.79.1' };
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/example-vue",
"version": "0.71.3",
"version": "0.79.1",
"description": "A very basic example with ui-* & vue-* packages",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9"
"@babel/runtime": "^7.14.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-vue', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/example-vue', version: '0.79.1' };
+17 -17
View File
@@ -1,6 +1,6 @@
{
"name": "exampleReactNative",
"version": "0.71.3",
"version": "0.79.1",
"private": true,
"scripts": {
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
@@ -12,31 +12,31 @@
"test": "jest"
},
"dependencies": {
"@polkadot/keyring": "^6.0.5",
"@polkadot/reactnative-identicon": "0.71.3",
"@polkadot/ui-keyring": "0.71.3",
"@polkadot/ui-settings": "0.71.3",
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"@polkadot/keyring": "^6.7.1",
"@polkadot/reactnative-identicon": "0.79.1",
"@polkadot/ui-keyring": "0.79.1",
"@polkadot/ui-settings": "0.79.1",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"@react-native-community/async-storage": "^1.12.1",
"fast-text-encoding": "^1.0.3",
"get-yarn-workspaces": "^1.0.2",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"react": "^17.0.1",
"react-native": "^0.63.4",
"react": "^17.0.2",
"react-native": "^0.64.2",
"react-native-crypto": "^2.2.0",
"react-native-randombytes": "^3.6.0",
"stream-http": "^3.1.1"
"react-native-randombytes": "^3.6.1",
"stream-http": "^3.2.0"
},
"devDependencies": {
"@babel/core": "^7.13.8",
"@babel/runtime": "^7.13.9",
"@react-native-community/cli-platform-ios": "^4.13.0",
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.14.0",
"@react-native-community/cli-platform-ios": "^5.0.1-alpha.2",
"@types/react-test-renderer": "17.0.1",
"babel-jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.65.2",
"react-test-renderer": "17.0.1"
"babel-jest": "^27.0.2",
"metro-react-native-babel-preset": "^0.66.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native",
+11 -11
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/react-identicon",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
@@ -12,17 +12,17 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/keyring": "^6.0.5",
"@polkadot/ui-settings": "0.71.3",
"@polkadot/ui-shared": "0.71.3",
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"@babel/runtime": "^7.14.0",
"@polkadot/keyring": "^6.7.1",
"@polkadot/ui-settings": "0.79.1",
"@polkadot/ui-shared": "0.79.1",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"color": "^3.1.3",
"ethereum-blockies-base64": "^1.0.2",
"jdenticon": "3.1.0",
"react-copy-to-clipboard": "^5.0.3",
"styled-components": "^5.2.1"
"styled-components": "^5.3.0"
},
"peerDependencies": {
"@polkadot/keyring": "*",
@@ -35,9 +35,9 @@
},
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^17.0.1",
"@types/styled-components": "^5.1.7",
"styled-components": "^5.2.1",
"@types/react-dom": "^17.0.6",
"@types/styled-components": "^5.1.9",
"styled-components": "^5.3.0",
"xmlserializer": "^0.6.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.79.1' };
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/react-qr",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Generates and reads QR codes",
"main": "index.js",
@@ -9,16 +9,16 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"@babel/runtime": "^7.14.0",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"qrcode-generator": "^1.4.4",
"react-qr-reader": "^2.2.1",
"styled-components": "^5.2.1"
"styled-components": "^5.3.0"
},
"devDependencies": {
"@types/react-qr-reader": "^2.1.3",
"@types/styled-components": "^5.1.7"
"@types/styled-components": "^5.1.9"
},
"peerDependencies": {
"@polkadot/util": "*",
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-qr', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/react-qr', version: '0.79.1' };
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/reactnative-identicon",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
@@ -12,11 +12,11 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/ui-shared": "0.71.3",
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"react-native-svg": "^12.1.0"
"@babel/runtime": "^7.14.0",
"@polkadot/ui-shared": "0.79.1",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"react-native-svg": "^12.1.1"
},
"peerDependencies": {
"@polkadot/util": "*",
@@ -25,6 +25,6 @@
"react-native": "*"
},
"devDependencies": {
"@types/react-native": "^0.63.51"
"@types/react-native": "^0.64.10"
}
}
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.79.1' };
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/ui-assets",
"version": "0.71.3",
"version": "0.79.1",
"description": "Static assets shared accross projects",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9"
"@babel/runtime": "^7.14.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.79.1' };
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/ui-keyring",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"main": "index.js",
"sideEffects": [
@@ -13,12 +13,12 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/hw-ledger": "^6.0.5",
"@polkadot/keyring": "^6.0.5",
"@polkadot/ui-settings": "0.71.3",
"@polkadot/util": "^6.0.5",
"@polkadot/x-rxjs": "^6.0.5",
"@babel/runtime": "^7.14.0",
"@polkadot/hw-ledger": "^6.7.1",
"@polkadot/keyring": "^6.7.1",
"@polkadot/ui-settings": "0.79.1",
"@polkadot/util": "^6.7.1",
"@polkadot/x-rxjs": "^6.7.1",
"mkdirp": "^1.0.4",
"store": "^2.0.12"
},
+35 -9
View File
@@ -1,17 +1,17 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
import type { KeypairType } from '@polkadot/util-crypto/types';
import type { AddressSubject, SingleAddress } from './observable/types';
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringStruct } from './types';
import BN from 'bn.js';
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringPairs$Json, KeyringStruct } from './types';
import { createPair } from '@polkadot/keyring/pair';
import { chains } from '@polkadot/ui-settings/defaults/chains';
import { bnToBn, hexToU8a, isHex, isString, u8aSorted } from '@polkadot/util';
import { base64Decode, createKeyMulti } from '@polkadot/util-crypto';
import { bnToBn, hexToU8a, isHex, isString, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
import { env } from './observable/env';
import { Base } from './Base';
@@ -82,6 +82,24 @@ export class Keyring extends Base implements KeyringStruct {
return pair.toJson(password);
}
public async backupAccounts (addresses: string[], password: string): Promise<KeyringPairs$Json> {
const accountPromises = addresses.map((address) => {
return new Promise<KeyringJson>((resolve) => {
this._store.get(accountKey(address), resolve);
});
});
const accounts = await Promise.all(accountPromises);
return {
...jsonEncrypt(stringToU8a(JSON.stringify(accounts)), ['batch-pkcs8'], password),
accounts: accounts.map((account) => ({
address: account.address,
meta: account.meta
}))
};
}
public createFromJson (json: KeyringPair$Json, meta: KeyringPair$Meta = {}): KeyringPair {
return this.keyring.createFromJson({ ...json, meta: { ...(json.meta || {}), meta } });
}
@@ -228,7 +246,7 @@ export class Keyring extends Base implements KeyringStruct {
this.rewriteKey(json, key, hexAddr, contractKey);
}
private loadInjected (address: string, meta: KeyringJson$Meta): void {
private loadInjected (address: string, meta: KeyringJson$Meta, type?: KeypairType): void {
const json = {
address,
meta: {
@@ -236,7 +254,7 @@ export class Keyring extends Base implements KeyringStruct {
isInjected: true
}
};
const pair = this.keyring.addFromAddress(address, json.meta);
const pair = this.keyring.addFromAddress(address, json.meta, null, type);
this.accounts.add(this._store, pair.address, json, pair.type);
}
@@ -257,7 +275,7 @@ export class Keyring extends Base implements KeyringStruct {
return true;
}
public loadAll (options: KeyringOptions, injected: { address: string; meta: KeyringJson$Meta }[] = []): void {
public loadAll (options: KeyringOptions, injected: { address: string; meta: KeyringJson$Meta, type?: KeypairType }[] = []): void {
super.initKeyring(options);
this._store.all((key: string, json: KeyringJson): void => {
@@ -281,7 +299,7 @@ export class Keyring extends Base implements KeyringStruct {
injected.forEach((account): void => {
if (this.allowGenesis(account)) {
try {
this.loadInjected(account.address, account.meta);
this.loadInjected(account.address, account.meta, account.type);
} catch (error) {
// ignore
}
@@ -310,6 +328,14 @@ export class Keyring extends Base implements KeyringStruct {
return pair;
}
public restoreAccounts (json: EncryptedJson, password: string): void {
const accounts: KeyringJson[] = JSON.parse(u8aToString(jsonDecrypt(json, password))) as KeyringJson[];
accounts.forEach((account) => {
this.loadAccount(account, accountKey(account.address));
});
}
public saveAccount (pair: KeyringPair, password?: string): KeyringPair$Json {
this.addTimestamp(pair);
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.79.1' };
+7
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { KeyringInstance as BaseKeyringInstance, KeyringOptions as KeyringOptionsBase, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
import type { KeypairType } from '@polkadot/util-crypto/types';
import type { AddressSubject, SingleAddress } from './observable/types';
@@ -30,6 +31,10 @@ export interface KeyringJson {
meta: KeyringJson$Meta;
}
export interface KeyringPairs$Json extends EncryptedJson {
accounts: KeyringJson[];
}
export interface KeyringStore {
all: (cb: (key: string, value: KeyringJson) => void) => void;
get: (key: string, cb: (value: KeyringJson) => void) => void;
@@ -70,6 +75,7 @@ export interface KeyringStruct {
addPair: (pair: KeyringPair, password: string) => CreateResult;
addUri: (suri: string, password?: string, meta?: KeyringPair$Meta, type?: KeypairType) => CreateResult;
backupAccount: (pair: KeyringPair, password: string) => KeyringPair$Json;
backupAccounts: (addresses: string[], password: string) => Promise<KeyringPairs$Json>
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
decodeAddress: (key: string | Uint8Array) => Uint8Array;
encodeAddress: (key: string | Uint8Array) => string;
@@ -89,6 +95,7 @@ export interface KeyringStruct {
isPassValid: (password: string) => boolean;
loadAll: (options: KeyringOptions) => void;
restoreAccount: (json: KeyringPair$Json, password: string) => KeyringPair;
restoreAccounts: (json: EncryptedJson, password: string) => void;
saveAccount: (pair: KeyringPair, password?: string) => KeyringPair$Json;
saveAccountMeta: (pair: KeyringPair, meta: KeyringPair$Meta) => void;
saveAddress: (address: string, meta: KeyringPair$Meta) => KeyringPair$Json;
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/ui-settings",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Manages app settings",
"main": "index.js",
@@ -9,9 +9,9 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/networks": "^6.0.5",
"@polkadot/util": "^6.0.5",
"@babel/runtime": "^7.14.0",
"@polkadot/networks": "^6.7.1",
"@polkadot/util": "^6.7.1",
"eventemitter3": "^4.0.7",
"store": "^2.0.12"
},
+6 -1
View File
@@ -19,7 +19,12 @@ export const LEDGER_CONN: Option[] = [
// },
{
info: 'webusb',
text: 'Attach Ledger via WebUSB',
text: 'Attach Ledger via WebUSB (Chrome, recommended)',
value: 'webusb'
},
{
info: 'hid',
text: 'Attach Ledger via WebHID (Chrome, experimental)',
value: 'hid'
}
];
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.79.1' };
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/ui-shared",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Shared logic that is usable accross all frameworks-specific areas",
"main": "index.js",
@@ -9,7 +9,7 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@babel/runtime": "^7.14.0",
"color": "^3.1.3"
},
"peerDependencies": {
@@ -17,8 +17,8 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"@types/color": "^3.0.1",
"@types/xmlserializer": "^0.6.2"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.79.1' };
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/vue-identicon",
"version": "0.71.3",
"version": "0.79.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"author": "Jaco Greeff <jacogr@gmail.com>",
@@ -12,10 +12,10 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.13.9",
"@polkadot/ui-shared": "0.71.3",
"@polkadot/util": "^6.0.5",
"@polkadot/util-crypto": "^6.0.5",
"@babel/runtime": "^7.14.0",
"@polkadot/ui-shared": "0.79.1",
"@polkadot/util": "^6.7.1",
"@polkadot/util-crypto": "^6.7.1",
"jdenticon": "3.1.0"
},
"peerDependencies": {
@@ -24,6 +24,6 @@
"vue": "*"
},
"devDependencies": {
"vue": "^2.6.12"
"vue": "^2.6.13"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.71.3' };
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.79.1' };
+3966 -4032
View File
File diff suppressed because it is too large Load Diff