Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95bfbfcab9 | ||
|
|
887fb80d83 | ||
|
|
efa068c189 | ||
|
|
f368fa077e | ||
|
|
4b6e7678ad | ||
|
|
e1b31afafd | ||
|
|
f875934459 | ||
|
|
e9ab4e1186 | ||
|
|
7278364873 | ||
|
|
291a478290 | ||
|
|
4768817661 | ||
|
|
ebf561f48c | ||
|
|
8bdfd18e1f | ||
|
|
5e48c1036f | ||
|
|
4370e87fea | ||
|
|
0864aef698 | ||
|
|
b898dff53f | ||
|
|
15056a5a6c | ||
|
|
2f5df3e46f | ||
|
|
fd3176c36e | ||
|
|
942bd2baf5 | ||
|
|
db67b97b7a | ||
|
|
c45d42f606 | ||
|
|
401e55a7bd |
@@ -2,3 +2,5 @@
|
|||||||
0.57.20.57.3
|
0.57.20.57.3
|
||||||
0.66.2
|
0.66.2
|
||||||
0.66.3
|
0.66.3
|
||||||
|
0.71.2
|
||||||
|
0.71.3
|
||||||
@@ -1,5 +1,47 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 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
|
## 0.71.1 Mar 6, 2021
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+4
-3
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
const config = require('@polkadot/dev/config/jest.cjs');
|
const config = require('@polkadot/dev/config/jest.cjs');
|
||||||
|
|
||||||
module.exports = Object.assign({}, config, {
|
module.exports = {
|
||||||
|
...config,
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'@polkadot/react-(identicon|qr)(.*)$': '<rootDir>/packages/react-$1/src/$2',
|
'@polkadot/react-(identicon|qr)(.*)$': '<rootDir>/packages/react-$1/src/$2',
|
||||||
'@polkadot/reactnative-(identicon)(.*)$': '<rootDir>/packages/reactnative-$1/src/$2',
|
'@polkadot/reactnative-(identicon)(.*)$': '<rootDir>/packages/reactnative-$1/src/$2',
|
||||||
@@ -11,5 +12,5 @@ module.exports = Object.assign({}, config, {
|
|||||||
'\\.(css|less)$': 'empty/object',
|
'\\.(css|less)$': 'empty/object',
|
||||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '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)']
|
transformIgnorePatterns: ['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)']
|
||||||
});
|
};
|
||||||
|
|||||||
+11
-11
@@ -8,7 +8,7 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.2.2"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "polkadot-dev-build-ts",
|
"build": "polkadot-dev-build-ts",
|
||||||
@@ -27,21 +27,21 @@
|
|||||||
"test:one": "polkadot-dev-run-test"
|
"test:one": "polkadot-dev-run-test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.13.8",
|
"@babel/core": "^7.13.16",
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/dev": "^0.62.5",
|
"@polkadot/dev": "^0.62.10",
|
||||||
"@polkadot/ts": "^0.3.61",
|
"@polkadot/ts": "^0.3.63",
|
||||||
"@types/jest": "^26.0.20",
|
"@types/jest": "^26.0.22",
|
||||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||||
"empty": "^0.10.1",
|
"empty": "^0.10.1",
|
||||||
"react": "^17.0.1",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^17.0.2",
|
||||||
"react-is": "^17.0.1",
|
"react-is": "^17.0.2",
|
||||||
"react-native": "^0.63.4",
|
"react-native": "^0.64.0",
|
||||||
"vue-template-compiler": "^2.6.12",
|
"vue-template-compiler": "^2.6.12",
|
||||||
"webpack": "^4.46.0",
|
"webpack": "^4.46.0",
|
||||||
"webpack-cli": "^3.3.12",
|
"webpack-cli": "^3.3.12",
|
||||||
"webpack-serve": "^3.2.0"
|
"webpack-serve": "^3.2.0"
|
||||||
},
|
},
|
||||||
"version": "0.71.1"
|
"version": "0.75.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/example-react",
|
"name": "@polkadot/example-react",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"description": "A very basic example with ui-* & react-* packages",
|
"description": "A very basic example with ui-* & react-* packages",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9"
|
"@babel/runtime": "^7.13.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-react', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/example-react', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/example-vue",
|
"name": "@polkadot/example-vue",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"description": "A very basic example with ui-* & vue-* packages",
|
"description": "A very basic example with ui-* & vue-* packages",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9"
|
"@babel/runtime": "^7.13.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-vue', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/example-vue', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "exampleReactNative",
|
"name": "exampleReactNative",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
|
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
|
||||||
@@ -12,31 +12,31 @@
|
|||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^6.0.3",
|
"@polkadot/keyring": "^6.3.1",
|
||||||
"@polkadot/reactnative-identicon": "0.71.1",
|
"@polkadot/reactnative-identicon": "0.75.1",
|
||||||
"@polkadot/ui-keyring": "0.71.1",
|
"@polkadot/ui-keyring": "0.75.1",
|
||||||
"@polkadot/ui-settings": "0.71.1",
|
"@polkadot/ui-settings": "0.75.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"@react-native-community/async-storage": "^1.12.1",
|
"@react-native-community/async-storage": "^1.12.1",
|
||||||
"fast-text-encoding": "^1.0.3",
|
"fast-text-encoding": "^1.0.3",
|
||||||
"get-yarn-workspaces": "^1.0.2",
|
"get-yarn-workspaces": "^1.0.2",
|
||||||
"os-browserify": "^0.3.0",
|
"os-browserify": "^0.3.0",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"react": "^17.0.1",
|
"react": "^17.0.2",
|
||||||
"react-native": "^0.63.4",
|
"react-native": "^0.64.0",
|
||||||
"react-native-crypto": "^2.2.0",
|
"react-native-crypto": "^2.2.0",
|
||||||
"react-native-randombytes": "^3.6.0",
|
"react-native-randombytes": "^3.6.1",
|
||||||
"stream-http": "^3.1.1"
|
"stream-http": "^3.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.13.8",
|
"@babel/core": "^7.13.16",
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@react-native-community/cli-platform-ios": "^4.13.0",
|
"@react-native-community/cli-platform-ios": "^5.0.1-alpha.2",
|
||||||
"@types/react-test-renderer": "17.0.1",
|
"@types/react-test-renderer": "17.0.1",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^26.6.3",
|
||||||
"metro-react-native-babel-preset": "^0.65.1",
|
"metro-react-native-babel-preset": "^0.66.0",
|
||||||
"react-test-renderer": "17.0.1"
|
"react-test-renderer": "17.0.2"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "react-native",
|
"preset": "react-native",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/react-identicon",
|
"name": "@polkadot/react-identicon",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Renders an SVG picture representing an address",
|
"description": "Renders an SVG picture representing an address",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -12,17 +12,17 @@
|
|||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/keyring": "^6.0.3",
|
"@polkadot/keyring": "^6.3.1",
|
||||||
"@polkadot/ui-settings": "0.71.1",
|
"@polkadot/ui-settings": "0.75.1",
|
||||||
"@polkadot/ui-shared": "0.71.1",
|
"@polkadot/ui-shared": "0.75.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"color": "^3.1.3",
|
"color": "^3.1.3",
|
||||||
"ethereum-blockies-base64": "^1.0.2",
|
"ethereum-blockies-base64": "^1.0.2",
|
||||||
"jdenticon": "3.1.0",
|
"jdenticon": "3.1.0",
|
||||||
"react-copy-to-clipboard": "^5.0.3",
|
"react-copy-to-clipboard": "^5.0.3",
|
||||||
"styled-components": "^5.2.1"
|
"styled-components": "^5.2.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/keyring": "*",
|
"@polkadot/keyring": "*",
|
||||||
@@ -35,9 +35,9 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-copy-to-clipboard": "^5.0.0",
|
"@types/react-copy-to-clipboard": "^5.0.0",
|
||||||
"@types/react-dom": "^17.0.1",
|
"@types/react-dom": "^17.0.3",
|
||||||
"@types/styled-components": "^5.1.7",
|
"@types/styled-components": "^5.1.9",
|
||||||
"styled-components": "^5.2.1",
|
"styled-components": "^5.2.3",
|
||||||
"xmlserializer": "^0.6.1"
|
"xmlserializer": "^0.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/react-qr",
|
"name": "@polkadot/react-qr",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Generates and reads QR codes",
|
"description": "Generates and reads QR codes",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -9,16 +9,16 @@
|
|||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"qrcode-generator": "^1.4.4",
|
"qrcode-generator": "^1.4.4",
|
||||||
"react-qr-reader": "^2.2.1",
|
"react-qr-reader": "^2.2.1",
|
||||||
"styled-components": "^5.2.1"
|
"styled-components": "^5.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-qr-reader": "^2.1.3",
|
"@types/react-qr-reader": "^2.1.3",
|
||||||
"@types/styled-components": "^5.1.7"
|
"@types/styled-components": "^5.1.9"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@polkadot/util": "*",
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-qr', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/react-qr', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/reactnative-identicon",
|
"name": "@polkadot/reactnative-identicon",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Renders an SVG picture representing an address",
|
"description": "Renders an SVG picture representing an address",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -12,11 +12,11 @@
|
|||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/ui-shared": "0.71.1",
|
"@polkadot/ui-shared": "0.75.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"react-native-svg": "^12.1.0"
|
"react-native-svg": "^12.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@polkadot/util": "*",
|
||||||
@@ -25,6 +25,6 @@
|
|||||||
"react-native": "*"
|
"react-native": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-native": "^0.63.50"
|
"@types/react-native": "^0.64.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/ui-assets",
|
"name": "@polkadot/ui-assets",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"description": "Static assets shared accross projects",
|
"description": "Static assets shared accross projects",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9"
|
"@babel/runtime": "^7.13.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/ui-keyring",
|
"name": "@polkadot/ui-keyring",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
"contributors": [],
|
"contributors": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/hw-ledger": "^6.0.3",
|
"@polkadot/hw-ledger": "^6.3.1",
|
||||||
"@polkadot/keyring": "^6.0.3",
|
"@polkadot/keyring": "^6.3.1",
|
||||||
"@polkadot/ui-settings": "0.71.1",
|
"@polkadot/ui-settings": "0.75.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/x-rxjs": "^6.0.3",
|
"@polkadot/x-rxjs": "^6.3.1",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
"store": "^2.0.12"
|
"store": "^2.0.12"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,16 +2,17 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
|
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 { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
import type { AddressSubject, SingleAddress } from './observable/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 BN from 'bn.js';
|
||||||
|
|
||||||
import { createPair } from '@polkadot/keyring/pair';
|
import { createPair } from '@polkadot/keyring/pair';
|
||||||
import { chains } from '@polkadot/ui-settings/defaults/chains';
|
import { chains } from '@polkadot/ui-settings/defaults/chains';
|
||||||
import { bnToBn, hexToU8a, isHex, isString, u8aSorted } from '@polkadot/util';
|
import { bnToBn, hexToU8a, isHex, isString, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
|
||||||
import { base64Decode, createKeyMulti } from '@polkadot/util-crypto';
|
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { env } from './observable/env';
|
import { env } from './observable/env';
|
||||||
import { Base } from './Base';
|
import { Base } from './Base';
|
||||||
@@ -82,6 +83,24 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
return pair.toJson(password);
|
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 {
|
public createFromJson (json: KeyringPair$Json, meta: KeyringPair$Meta = {}): KeyringPair {
|
||||||
return this.keyring.createFromJson({ ...json, meta: { ...(json.meta || {}), meta } });
|
return this.keyring.createFromJson({ ...json, meta: { ...(json.meta || {}), meta } });
|
||||||
}
|
}
|
||||||
@@ -310,6 +329,14 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
return pair;
|
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 {
|
public saveAccount (pair: KeyringPair, password?: string): KeyringPair$Json {
|
||||||
this.addTimestamp(pair);
|
this.addTimestamp(pair);
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.75.1' };
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { 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 { KeypairType } from '@polkadot/util-crypto/types';
|
||||||
import type { AddressSubject, SingleAddress } from './observable/types';
|
import type { AddressSubject, SingleAddress } from './observable/types';
|
||||||
|
|
||||||
@@ -30,6 +31,10 @@ export interface KeyringJson {
|
|||||||
meta: KeyringJson$Meta;
|
meta: KeyringJson$Meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface KeyringPairs$Json extends EncryptedJson {
|
||||||
|
accounts: KeyringJson[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface KeyringStore {
|
export interface KeyringStore {
|
||||||
all: (cb: (key: string, value: KeyringJson) => void) => void;
|
all: (cb: (key: string, value: KeyringJson) => void) => void;
|
||||||
get: (key: string, cb: (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;
|
addPair: (pair: KeyringPair, password: string) => CreateResult;
|
||||||
addUri: (suri: string, password?: string, meta?: KeyringPair$Meta, type?: KeypairType) => CreateResult;
|
addUri: (suri: string, password?: string, meta?: KeyringPair$Meta, type?: KeypairType) => CreateResult;
|
||||||
backupAccount: (pair: KeyringPair, password: string) => KeyringPair$Json;
|
backupAccount: (pair: KeyringPair, password: string) => KeyringPair$Json;
|
||||||
|
backupAccounts: (addresses: string[], password: string) => Promise<KeyringPairs$Json>
|
||||||
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
createFromUri (suri: string, meta?: KeyringPair$Meta, type?: KeypairType): KeyringPair;
|
||||||
decodeAddress: (key: string | Uint8Array) => Uint8Array;
|
decodeAddress: (key: string | Uint8Array) => Uint8Array;
|
||||||
encodeAddress: (key: string | Uint8Array) => string;
|
encodeAddress: (key: string | Uint8Array) => string;
|
||||||
@@ -89,6 +95,7 @@ export interface KeyringStruct {
|
|||||||
isPassValid: (password: string) => boolean;
|
isPassValid: (password: string) => boolean;
|
||||||
loadAll: (options: KeyringOptions) => void;
|
loadAll: (options: KeyringOptions) => void;
|
||||||
restoreAccount: (json: KeyringPair$Json, password: string) => KeyringPair;
|
restoreAccount: (json: KeyringPair$Json, password: string) => KeyringPair;
|
||||||
|
restoreAccounts: (json: EncryptedJson, password: string) => void;
|
||||||
saveAccount: (pair: KeyringPair, password?: string) => KeyringPair$Json;
|
saveAccount: (pair: KeyringPair, password?: string) => KeyringPair$Json;
|
||||||
saveAccountMeta: (pair: KeyringPair, meta: KeyringPair$Meta) => void;
|
saveAccountMeta: (pair: KeyringPair, meta: KeyringPair$Meta) => void;
|
||||||
saveAddress: (address: string, meta: KeyringPair$Meta) => KeyringPair$Json;
|
saveAddress: (address: string, meta: KeyringPair$Meta) => KeyringPair$Json;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/ui-settings",
|
"name": "@polkadot/ui-settings",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Manages app settings",
|
"description": "Manages app settings",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -9,9 +9,9 @@
|
|||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/networks": "^6.0.3",
|
"@polkadot/networks": "^6.3.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"store": "^2.0.12"
|
"store": "^2.0.12"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/ui-shared",
|
"name": "@polkadot/ui-shared",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Shared logic that is usable accross all frameworks-specific areas",
|
"description": "Shared logic that is usable accross all frameworks-specific areas",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
"maintainers": [],
|
"maintainers": [],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"color": "^3.1.3"
|
"color": "^3.1.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"@polkadot/util-crypto": "*"
|
"@polkadot/util-crypto": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"@types/color": "^3.0.1",
|
"@types/color": "^3.0.1",
|
||||||
"@types/xmlserializer": "^0.6.2"
|
"@types/xmlserializer": "^0.6.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.75.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/vue-identicon",
|
"name": "@polkadot/vue-identicon",
|
||||||
"version": "0.71.1",
|
"version": "0.75.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Renders an SVG picture representing an address",
|
"description": "Renders an SVG picture representing an address",
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
@@ -12,10 +12,10 @@
|
|||||||
],
|
],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.9",
|
"@babel/runtime": "^7.13.17",
|
||||||
"@polkadot/ui-shared": "0.71.1",
|
"@polkadot/ui-shared": "0.75.1",
|
||||||
"@polkadot/util": "^6.0.3",
|
"@polkadot/util": "^6.3.1",
|
||||||
"@polkadot/util-crypto": "^6.0.3",
|
"@polkadot/util-crypto": "^6.3.1",
|
||||||
"jdenticon": "3.1.0"
|
"jdenticon": "3.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.71.1' };
|
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.75.1' };
|
||||||
|
|||||||
Reference in New Issue
Block a user