Compare commits

..
73 Commits
Author SHA1 Message Date
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
Github Actions 942bd2baf5 [CI Skip] release/stable 0.71.3
skip-checks: true
2021-03-08 15:34:16 +00:00
Jaco Greeff db67b97b7a 0.71.3 (common deps) (#453)
* 0.71.3 (common deps)

* Update CHANGELOG.md
2021-03-08 16:31:52 +01:00
Github Actions c45d42f606 [CI Skip] release/stable 0.71.2
skip-checks: true
2021-03-07 15:48:27 +00:00
Jaco Greeff 401e55a7bd 0.71.2 (#452)
* 0.71.2

* Bumps
2021-03-07 16:46:07 +01:00
Github Actions 5a0158c372 [CI Skip] release/stable 0.71.1
skip-checks: true
2021-03-06 06:52:05 +00:00
Jaco Greeff 2509347330 0.71 (#451) 2021-03-06 07:48:44 +01:00
Github Actions a5bc4bc902 [CI Skip] release/beta 0.70.2-3
skip-checks: true
2021-03-05 16:08:03 +00:00
Jaco Greeff 7588f21b8f Bump util/util-crypto (#450) 2021-03-05 17:04:56 +01:00
Github Actions 78ca8b86a8 [CI Skip] release/beta 0.70.2-2
skip-checks: true
2021-03-03 09:25:24 +00:00
Jaco Greeff fc9cb7da9e Bump deps (& berry) (#448) 2021-03-03 10:22:44 +01:00
Github Actions 70dacc878c [CI Skip] release/beta 0.70.2-1
skip-checks: true
2021-03-02 20:46:35 +00:00
Jaco Greeff 0eebd52577 Default to type: module (#447) 2021-03-02 21:43:36 +01:00
Github Actions 100f22bcfe [CI Skip] release/beta 0.70.2-0
skip-checks: true
2021-03-01 20:50:00 +00:00
Jaco Greeff 36d479380f Bump deps (#446) 2021-03-01 21:47:02 +01:00
Github Actions aff728dd5e [CI Skip] release/stable 0.70.1
skip-checks: true
2021-02-28 13:19:40 +00:00
Jaco Greeff a0c8fa1a84 0.70 (#445)
* 0.70

* Correct util versions
2021-02-28 14:17:02 +01:00
Github Actions a88990cc73 [CI Skip] release/beta 0.69.2-3
skip-checks: true
2021-02-28 10:26:09 +00:00
Jaco Greeff 15c03c0aff Detection for mismatched monorepo deps (#444)
* Detection for mismatched monorepo deps

* Bump common
2021-02-28 11:23:11 +01:00
Github Actions aa3d6803f7 [CI Skip] release/beta 0.69.2-2
skip-checks: true
2021-02-26 08:11:45 +00:00
Jaco Greeff 0bf8b0a35b Bump common (#443) 2021-02-26 09:09:02 +01:00
Github Actions 3fd29ee299 [CI Skip] release/beta 0.69.2-1
skip-checks: true
2021-02-16 12:30:22 +00:00
Jaco Greeff 1fb62d2964 Bump deps (& use packageInfo detection) (#441) 2021-02-16 13:27:29 +01:00
Github Actions 756af81132 [CI Skip] release/beta 0.69.2-0
skip-checks: true
2021-02-08 16:53:33 +00:00
Jaco Greeff 0ebce80650 Bump util (#439) 2021-02-08 17:50:38 +01:00
Github Actions 743311ec19 [CI Skip] release/stable 0.69.1
skip-checks: true
2021-02-07 13:58:22 +00:00
Jaco Greeff d8237f0687 0.69 (#438)
* 0.69

* Adjust

* Adjust

* Update CHANGELOG.md
2021-02-07 14:55:32 +01:00
Github Actions 68f3d13d09 [CI Skip] release/stable 0.68.1
skip-checks: true
2021-02-01 08:32:18 +00:00
Jaco Greeff b9194310a9 0.68 (#437) 2021-02-01 09:29:46 +01:00
Github Actions 670078158c [CI Skip] release/beta 0.67.2-0
skip-checks: true
2021-01-28 14:13:00 +00:00
Jaco Greeff 0f0bea2624 ed25519 w/ bip44 option (#436)
* ed25519 w/ bip44 option

* naming

* Rename Ledger option (no bip32-ed25519 compatible)
2021-01-28 15:10:03 +01:00
49 changed files with 3696 additions and 3325 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
1
0.57.20.57.3
0.66.2
0.66.3
0.66.3
0.71.2
0.71.3
+17
View File
@@ -0,0 +1,17 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '15 2 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GH_PAT }}
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
-1
View File
@@ -1 +0,0 @@
12
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.0.cjs
yarnPath: .yarn/releases/yarn-2.4.1.cjs
+99
View File
@@ -1,5 +1,104 @@
# CHANGELOG
## 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:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.0.5
## 0.71.2 Mar 6, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.0.4
## 0.71.1 Mar 6, 2021
Changes:
- Build to ESM by default (with cjs versions via export map)
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 6.0.3
## 0.70.1 Feb 28, 2021
Changes:
- Use `detectPackage` with `packageInfo` & check for monorepo dependencies
- Remove `mkdirp` resolution to ensure local views work with Webpack
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 5.9.2
## 0.69.1 Feb 7, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 5.6.1
## 0.68.1 Feb 1, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 5.5.1
- Added `ed25519-ledger` option for `hdLedger` from `@polkadot/util-crypto`
## 0.67.1 Jan 24, 2021
Contributed:
+30
View File
@@ -0,0 +1,30 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
const config = require('@polkadot/dev/config/jest.cjs');
module.exports = {
...config,
moduleNameMapper: {
'@polkadot/react-(identicon|qr)(.*)$': '<rootDir>/packages/react-$1/src/$2',
'@polkadot/reactnative-(identicon)(.*)$': '<rootDir>/packages/reactnative-$1/src/$2',
'@polkadot/ui-(assets|keyring|settings|shared)(.*)$': '<rootDir>/packages/ui-$1/src/$2',
'\\.(css|less)$': 'empty/object',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object'
},
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/)']
};
-15
View File
@@ -1,15 +0,0 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
const config = require('@polkadot/dev/config/jest.cjs');
module.exports = Object.assign({}, config, {
moduleNameMapper: {
'@polkadot/react-(identicon|qr)(.*)$': '<rootDir>/packages/react-$1/src/$2',
'@polkadot/reactnative-(identicon)(.*)$': '<rootDir>/packages/reactnative-$1/src/$2',
'@polkadot/ui-(assets|keyring|settings|shared)(.*)$': '<rootDir>/packages/ui-$1/src/$2',
'\\.(css|less)$': 'empty/object',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object'
},
resolver: '@polkadot/dev/config/jest-resolver.cjs'
});
+12 -14
View File
@@ -8,9 +8,7 @@
"packages/*"
],
"resolutions": {
"eventemitter3": "^4.0.7",
"mkdirp": "^1.0.4",
"typescript": "^4.1.3"
"typescript": "^4.2.4"
},
"scripts": {
"build": "polkadot-dev-build-ts",
@@ -29,21 +27,21 @@
"test:one": "polkadot-dev-run-test"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@polkadot/dev": "^0.61.24",
"@polkadot/ts": "^0.3.59",
"@types/jest": "^26.0.20",
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.14.0",
"@polkadot/dev": "^0.62.20",
"@polkadot/ts": "^0.3.69",
"@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",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-native": "^0.64.1",
"vue-template-compiler": "^2.6.12",
"webpack": "^4.44.2",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-serve": "^3.2.0"
},
"version": "0.67.1"
"version": "0.78.1"
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/example-react",
"version": "0.67.1",
"version": "0.78.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.12.5"
"@babel/runtime": "^7.14.0"
}
}
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-react', version: '0.78.1' };
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/example-vue",
"version": "0.67.1",
"version": "0.78.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.12.5"
"@babel/runtime": "^7.14.0"
}
}
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-vue', version: '0.78.1' };
+18 -18
View File
@@ -1,6 +1,6 @@
{
"name": "exampleReactNative",
"version": "0.67.1",
"version": "0.78.1",
"private": true,
"scripts": {
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
@@ -12,31 +12,31 @@
"test": "jest"
},
"dependencies": {
"@polkadot/keyring": "^5.4.4",
"@polkadot/reactnative-identicon": "0.67.1",
"@polkadot/ui-keyring": "0.67.1",
"@polkadot/ui-settings": "0.67.1",
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"@polkadot/keyring": "^6.6.1",
"@polkadot/reactnative-identicon": "0.78.1",
"@polkadot/ui-keyring": "0.78.1",
"@polkadot/ui-settings": "0.78.1",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.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.1",
"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.12.10",
"@babel/runtime": "^7.12.5",
"@react-native-community/cli-platform-ios": "^4.13.0",
"@types/react-test-renderer": "17.0.0",
"babel-jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.64.0",
"react-test-renderer": "17.0.1"
"@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": "^27.0.1",
"metro-react-native-babel-preset": "^0.66.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native",
+16 -12
View File
@@ -1,24 +1,28 @@
{
"name": "@polkadot/react-identicon",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/keyring": "^5.4.4",
"@polkadot/ui-settings": "0.67.1",
"@polkadot/ui-shared": "0.67.1",
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"@babel/runtime": "^7.14.0",
"@polkadot/keyring": "^6.6.1",
"@polkadot/ui-settings": "0.78.1",
"@polkadot/ui-shared": "0.78.1",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.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": "*",
@@ -31,9 +35,9 @@
},
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.0",
"@types/react-dom": "^17.0.0",
"@types/styled-components": "^5.1.7",
"styled-components": "^5.2.1",
"@types/react-dom": "^17.0.5",
"@types/styled-components": "^5.1.9",
"styled-components": "^5.3.0",
"xmlserializer": "^0.6.1"
}
}
@@ -0,0 +1,10 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
+3
View File
@@ -1,9 +1,12 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import { Identicon } from './Identicon';
export * from './icons';
export { packageInfo } from './packageInfo';
export { Identicon };
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.78.1' };
+7 -6
View File
@@ -1,6 +1,7 @@
{
"name": "@polkadot/react-qr",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Generates and reads QR codes",
"main": "index.js",
"sideEffects": false,
@@ -8,16 +9,16 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"@babel/runtime": "^7.14.0",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.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
View File
@@ -6,3 +6,4 @@ export { QrDisplayPayload } from './DisplayPayload';
export { QrScanAddress } from './ScanAddress';
export { QrScanSignature } from './ScanSignature';
export { QrNetworkSpecs } from './NetworkSpecs';
export { packageInfo } from './packageInfo';
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-qr', version: '0.78.1' };
+12 -8
View File
@@ -1,18 +1,22 @@
{
"name": "@polkadot/reactnative-identicon",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/ui-shared": "0.67.1",
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"react-native-svg": "^12.1.0"
"@babel/runtime": "^7.14.0",
"@polkadot/ui-shared": "0.78.1",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.1",
"react-native-svg": "^12.1.1"
},
"peerDependencies": {
"@polkadot/util": "*",
@@ -21,6 +25,6 @@
"react-native": "*"
},
"devDependencies": {
"@types/react-native": "^0.63.46"
"@types/react-native": "^0.64.7"
}
}
@@ -0,0 +1,9 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
@@ -1,8 +1,11 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import Identicon from './Identicon';
export * from './icons';
export { packageInfo } from './packageInfo';
export default Identicon;
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.78.1' };
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@polkadot/ui-assets",
"version": "0.67.1",
"version": "0.78.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.12.5"
"@babel/runtime": "^7.14.0"
}
}
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.78.1' };
+9 -8
View File
@@ -1,10 +1,11 @@
{
"name": "@polkadot/ui-keyring",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"main": "index.js",
"sideEffects": [
"./detectPackage.js",
"./detectPackage.mjs"
"./detectPackage.cjs"
],
"repository": "github:polkadot-js/apps",
"author": "Jaco Greeff <jacogr@gmail.com>",
@@ -12,12 +13,12 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/hw-ledger": "^5.4.4",
"@polkadot/keyring": "^5.4.4",
"@polkadot/ui-settings": "0.67.1",
"@polkadot/util": "^5.4.4",
"@polkadot/x-rxjs": "^5.4.4",
"@babel/runtime": "^7.14.0",
"@polkadot/hw-ledger": "^6.6.1",
"@polkadot/keyring": "^6.6.1",
"@polkadot/ui-settings": "0.78.1",
"@polkadot/util": "^6.6.1",
"@polkadot/x-rxjs": "^6.6.1",
"mkdirp": "^1.0.4",
"store": "^2.0.12"
},
+35 -8
View File
@@ -2,16 +2,17 @@
// SPDX-License-Identifier: Apache-2.0
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 type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringPairs$Json, KeyringStruct } from './types';
import BN from 'bn.js';
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 +83,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 +247,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 +255,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 +276,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 +300,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
}
@@ -295,7 +314,7 @@ export class Keyring extends Base implements KeyringStruct {
const cryptoType = Array.isArray(json.encoding.content) ? json.encoding.content[1] : 'ed25519';
const encType = Array.isArray(json.encoding.type) ? json.encoding.type : [json.encoding.type];
const pair = createPair(
{ toSS58: this.encodeAddress, type: cryptoType },
{ toSS58: this.encodeAddress, type: cryptoType as KeypairType },
{ publicKey: this.decodeAddress(json.address, true) },
json.meta,
isHex(json.encoded) ? hexToU8a(json.encoded) : base64Decode(json.encoded),
@@ -310,6 +329,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);
+3 -19
View File
@@ -1,25 +1,9 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use
//
// new URL(import.meta.url).pathname)
//
// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have
// nice things... In this case it is even worse since import.meta.url won't even make it compile, so
// there is a complete dead end with usage thereof
//
// When that is fixed, a solution is to have both .js & .mjs files, with the following content -
//
// cjs: util.detectPackage(packageInfo, () => __dirname);
// esm: detectPackage(packageInfo, () => import.meta.url);
//
// With the above we additionally need a .d.ts to just export the packageInfo
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { detectPackage } from '@polkadot/util';
import packageInfo from './package-info.json';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
export { packageInfo };
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
+1
View File
@@ -6,6 +6,7 @@ import './detectPackage';
import { Keyring } from './Keyring';
export { Ledger } from '@polkadot/hw-ledger';
export { packageInfo } from './packageInfo';
const keyring = new Keyring();
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.78.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;
+5 -4
View File
@@ -1,6 +1,7 @@
{
"name": "@polkadot/ui-settings",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Manages app settings",
"main": "index.js",
"sideEffects": false,
@@ -8,9 +9,9 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/networks": "^5.4.4",
"@polkadot/util": "^5.4.4",
"@babel/runtime": "^7.14.0",
"@polkadot/networks": "^6.6.1",
"@polkadot/util": "^6.6.1",
"eventemitter3": "^4.0.7",
"store": "^2.0.12"
},
+5 -1
View File
@@ -8,7 +8,7 @@ import store from 'store';
import { isUndefined } from '@polkadot/util';
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
type ChangeCallback = (settings: SettingsStruct) => void;
type OnTypes = 'change';
@@ -106,6 +106,10 @@ export class Settings implements SettingsStruct {
return CRYPTOS_ETH;
}
public get availableCryptosLedger (): Option[] {
return CRYPTOS_LEDGER;
}
public get availableIcons (): Option[] {
return ICONS;
}
+1 -1
View File
@@ -6,7 +6,7 @@ import known from '@polkadot/networks';
type ChainDef = string[];
const chains: Record <string, ChainDef> = known
.filter(({ genesisHash }) => genesisHash.length > 1)
.filter((n) => n.genesisHash.length)
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
export { chains };
@@ -28,3 +28,12 @@ export const CRYPTOS_ETH: Option[] = [
value: 'ethereum'
}
];
export const CRYPTOS_LEDGER: Option[] = [
...CRYPTOS,
{
info: 'ed25519-ledger',
text: 'Ledger (ed25519, BIP32 derivation)',
value: 'ed25519-ledger'
}
];
+2 -1
View File
@@ -3,7 +3,7 @@
import type { Option } from '../types';
import { CRYPTOS, CRYPTOS_ETH } from './crypto';
import { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto';
import { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints';
import { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger';
import { PREFIX_DEFAULT, PREFIXES } from './ss58';
@@ -46,6 +46,7 @@ export {
CAMERA,
CRYPTOS,
CRYPTOS_ETH,
CRYPTOS_LEDGER,
ENDPOINT_DEFAULT,
ENDPOINTS,
ICON_DEFAULT,
+1
View File
@@ -4,6 +4,7 @@
import { Settings, settings } from './Settings';
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults';
export { packageInfo } from './packageInfo';
export { settings, Settings };
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.78.1' };
+5 -4
View File
@@ -1,6 +1,7 @@
{
"name": "@polkadot/ui-shared",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Shared logic that is usable accross all frameworks-specific areas",
"main": "index.js",
"sideEffects": false,
@@ -8,7 +9,7 @@
"maintainers": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@babel/runtime": "^7.14.0",
"color": "^3.1.3"
},
"peerDependencies": {
@@ -16,8 +17,8 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.1",
"@types/color": "^3.0.1",
"@types/xmlserializer": "^0.6.2"
}
+1
View File
@@ -2,3 +2,4 @@
// SPDX-License-Identifier: Apache-2.0
export * from './icons';
export { packageInfo } from './packageInfo';
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.78.1' };
+10 -6
View File
@@ -1,17 +1,21 @@
{
"name": "@polkadot/vue-identicon",
"version": "0.67.1",
"version": "0.78.1",
"type": "module",
"description": "Renders an SVG picture representing an address",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"main": "index.js",
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@polkadot/ui-shared": "0.67.1",
"@polkadot/util": "^5.4.4",
"@polkadot/util-crypto": "^5.4.4",
"@babel/runtime": "^7.14.0",
"@polkadot/ui-shared": "0.78.1",
"@polkadot/util": "^6.6.1",
"@polkadot/util-crypto": "^6.6.1",
"jdenticon": "3.1.0"
},
"peerDependencies": {
@@ -0,0 +1,9 @@
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
import { detectPackage } from '@polkadot/util';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
+4
View File
@@ -1,6 +1,10 @@
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import { Identicon } from './Identicon';
export { packageInfo } from './packageInfo';
export default Identicon;
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/vue-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.78.1' };
+3278 -3187
View File
File diff suppressed because it is too large Load Diff