Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81b8116742 | ||
|
|
cbbe125da9 | ||
|
|
ea29793d8d | ||
|
|
6f423bb250 | ||
|
|
c814d719a1 | ||
|
|
a5e321f78f | ||
|
|
4c3b99c9c6 | ||
|
|
b06e35bd03 | ||
|
|
bbc5916770 | ||
|
|
2275440f87 | ||
|
|
f48ba44a88 | ||
|
|
0467c16bee | ||
|
|
757b138977 | ||
|
|
cfc85f7aa4 | ||
|
|
8d18f1d131 | ||
|
|
0570a776b9 | ||
|
|
597b9ae61f | ||
|
|
aff8ae42ad | ||
|
|
0729402ef6 | ||
|
|
2904beb171 |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui authors & contributors
|
// Copyright 2017-2022 @polkadot/ui authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const base = require('@polkadot/dev/config/eslint.cjs');
|
const base = require('@polkadot/dev/config/eslint.cjs');
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui authors & contributors
|
// Copyright 2017-2022 @polkadot/ui authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 0.88.1 Jan 2, 2022
|
||||||
|
|
||||||
|
- Allow for loading of accounts on additional genesisHashes
|
||||||
|
- Ensure package path is availble under ESM & CJS
|
||||||
|
|
||||||
|
|
||||||
## 0.87.7 Dec 27, 2021
|
## 0.87.7 Dec 27, 2021
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui authors & contributors
|
// Copyright 2017-2022 @polkadot/ui authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const base = require('@polkadot/dev/config/babel-config-cjs.cjs');
|
const base = require('@polkadot/dev/config/babel-config-cjs.cjs');
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui authors & contributors
|
// Copyright 2017-2022 @polkadot/ui authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const config = require('@polkadot/dev/config/jest.cjs');
|
const config = require('@polkadot/dev/config/jest.cjs');
|
||||||
|
|||||||
+5
-5
@@ -10,7 +10,7 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
@@ -32,11 +32,11 @@
|
|||||||
"test:one": "polkadot-dev-run-test"
|
"test:one": "polkadot-dev-run-test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.16.5",
|
"@babel/core": "^7.16.7",
|
||||||
"@babel/runtime": "^7.16.5",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@polkadot/dev": "^0.64.22",
|
"@polkadot/dev": "^0.65.4",
|
||||||
"@polkadot/x-bundle": "^8.2.2",
|
"@polkadot/x-bundle": "^8.2.2",
|
||||||
"@types/jest": "^27.0.3",
|
"@types/jest": "^27.4.0",
|
||||||
"babel-loader": "^8.2.3",
|
"babel-loader": "^8.2.3",
|
||||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||||
"empty": "^0.10.1",
|
"empty": "^0.10.1",
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5"
|
"@babel/runtime": "^7.16.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Empty template, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
export default [];
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, dirname, others);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-react authors & contributors
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-react authors & contributors
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-react', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/example-react', version: '0.88.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-react authors & contributors
|
// Copyright 2017-2022 @polkadot/example-react authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5"
|
"@babel/runtime": "^7.16.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Empty template, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
export default [];
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, dirname, others);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-vue', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/example-vue', version: '0.88.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
|
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@polkadot/keyring": "^8.2.2",
|
"@polkadot/keyring": "^8.2.2",
|
||||||
"@polkadot/ui-settings": "0.87.7",
|
"@polkadot/ui-settings": "0.88.1",
|
||||||
"@polkadot/ui-shared": "0.87.7",
|
"@polkadot/ui-shared": "0.88.1",
|
||||||
"@polkadot/util": "^8.2.2",
|
"@polkadot/util": "^8.2.2",
|
||||||
"@polkadot/util-crypto": "^8.2.2",
|
"@polkadot/util-crypto": "^8.2.2",
|
||||||
"color": "^3.2.1",
|
"color": "^3.2.1",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './icons';
|
export * from './icons';
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// Copyright 2017-2022 @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';
|
||||||
|
|
||||||
|
export default [settingsInfo, sharedInfo];
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
|
detectPackage(packageInfo, dirname, others);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2018-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Beachball } from './Beachball';
|
export { Beachball } from './Beachball';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.88.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2018-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -12,13 +12,16 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": [
|
||||||
|
"./detectPackage.js",
|
||||||
|
"./detectPackage.cjs"
|
||||||
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@polkadot/ui-settings": "0.87.7",
|
"@polkadot/ui-settings": "0.88.1",
|
||||||
"@polkadot/util": "^8.2.2",
|
"@polkadot/util": "^8.2.2",
|
||||||
"@polkadot/util-crypto": "^8.2.2",
|
"@polkadot/util-crypto": "^8.2.2",
|
||||||
"qrcode-generator": "^1.4.4",
|
"qrcode-generator": "^1.4.4",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { NetworkSpecsStruct } from '@polkadot/ui-settings/types';
|
import type { NetworkSpecsStruct } from '@polkadot/ui-settings/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useCallback, useMemo } from 'react';
|
import React, { useCallback, useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { QrDisplayAddress } from './DisplayAddress';
|
export { QrDisplayAddress } from './DisplayAddress';
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const ADDRESS_PREFIX = 'substrate';
|
const ADDRESS_PREFIX = 'substrate';
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Empty template, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
export default [];
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, dirname, others);
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import './detectPackage';
|
||||||
|
|
||||||
|
export * from './bundle';
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-qr', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/react-qr', version: '0.88.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import _qrcode from 'qrcode-generator';
|
import _qrcode from 'qrcode-generator';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { u8aConcat, u8aToHex, u8aToString } from '@polkadot/util';
|
import { u8aConcat, u8aToHex, u8aToString } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { isString, u8aConcat, u8aToU8a } from '@polkadot/util';
|
import { isString, u8aConcat, u8aToU8a } from '@polkadot/util';
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@polkadot/ui-shared": "0.87.7",
|
"@polkadot/ui-shared": "0.88.1",
|
||||||
"@polkadot/util": "^8.2.2",
|
"@polkadot/util": "^8.2.2",
|
||||||
"@polkadot/util-crypto": "^8.2.2",
|
"@polkadot/util-crypto": "^8.2.2",
|
||||||
"react-native-svg": "^12.2.0"
|
"react-native-svg": "^12.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-native": "^0.66.10"
|
"@types/react-native": "^0.66.11"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@polkadot/util": "*",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
export * from './icons';
|
||||||
|
export { packageInfo } from './packageInfo';
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
||||||
|
|
||||||
|
export default [sharedInfo];
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
|
detectPackage(packageInfo, dirname, others);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types';
|
import type { Props } from '../types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2018-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
|
import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as Empty } from './Empty';
|
export { default as Empty } from './Empty';
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage';
|
||||||
|
|
||||||
import Identicon from './Identicon';
|
import Identicon from './Identicon';
|
||||||
|
|
||||||
export * from './icons';
|
export * from './bundle';
|
||||||
export { packageInfo } from './packageInfo';
|
|
||||||
|
|
||||||
export default Identicon;
|
export default Identicon;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.88.1' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2021 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2018-2022 @polkadot/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|||||||
@@ -13,9 +13,10 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5"
|
"@babel/runtime": "^7.16.7",
|
||||||
|
"@polkadot/util": "^8.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Empty template, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
export default [];
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
|
detectPackage(packageInfo, dirname, others);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// empty
|
// empty
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.87.7' };
|
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.88.1' };
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
declare module '*.svg' {
|
declare module '*.svg' {
|
||||||
|
|||||||
@@ -16,17 +16,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.87.7",
|
"version": "0.88.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.16.5",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@polkadot/hw-ledger": "^8.2.2",
|
"@polkadot/hw-ledger": "^8.2.2",
|
||||||
"@polkadot/keyring": "^8.2.2",
|
"@polkadot/keyring": "^8.2.2",
|
||||||
"@polkadot/ui-settings": "0.87.7",
|
"@polkadot/ui-settings": "0.88.1",
|
||||||
"@polkadot/util": "^8.2.2",
|
"@polkadot/util": "^8.2.2",
|
||||||
"@polkadot/util-crypto": "^8.2.2",
|
"@polkadot/util-crypto": "^8.2.2",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
"rxjs": "^7.4.0",
|
"rxjs": "^7.5.1",
|
||||||
"store": "^2.0.12"
|
"store": "^2.0.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
||||||
@@ -28,6 +28,8 @@ export class Base {
|
|||||||
|
|
||||||
protected _genesisHash?: string;
|
protected _genesisHash?: string;
|
||||||
|
|
||||||
|
protected _genesisHashAdd: string[] = [];
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.#accounts = accounts;
|
this.#accounts = accounts;
|
||||||
this.#addresses = addresses;
|
this.#addresses = addresses;
|
||||||
@@ -59,6 +61,12 @@ export class Base {
|
|||||||
return this._genesisHash;
|
return this._genesisHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get genesisHashes (): string[] {
|
||||||
|
return this._genesisHash
|
||||||
|
? [this._genesisHash, ...this._genesisHashAdd]
|
||||||
|
: [...this._genesisHashAdd];
|
||||||
|
}
|
||||||
|
|
||||||
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
|
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
|
||||||
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
|
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
|
||||||
};
|
};
|
||||||
@@ -115,6 +123,7 @@ export class Base {
|
|||||||
? options.genesisHash.toString()
|
? options.genesisHash.toString()
|
||||||
: options.genesisHash.toHex()
|
: options.genesisHash.toHex()
|
||||||
);
|
);
|
||||||
|
this._genesisHashAdd = options.genesisHashAdd || [];
|
||||||
this._store = options.store || this._store;
|
this._store = options.store || this._store;
|
||||||
|
|
||||||
this.addAccountPairs();
|
this.addAccountPairs();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// 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';
|
||||||
@@ -10,7 +10,7 @@ import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType,
|
|||||||
|
|
||||||
import { createPair } from '@polkadot/keyring';
|
import { createPair } from '@polkadot/keyring';
|
||||||
import { chains } from '@polkadot/ui-settings';
|
import { chains } from '@polkadot/ui-settings';
|
||||||
import { bnToBn, hexToU8a, isHex, isString, objectSpread, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
|
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
|
||||||
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
|
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
|
||||||
|
|
||||||
import { env } from './observable/env';
|
import { env } from './observable/env';
|
||||||
@@ -185,7 +185,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
.filter(([, { json: { meta: { contract } } }]): boolean =>
|
.filter(([, { json: { meta: { contract } } }]): boolean =>
|
||||||
!!contract && contract.genesisHash === this.genesisHash
|
!!contract && contract.genesisHash === this.genesisHash
|
||||||
)
|
)
|
||||||
.map(([address]): KeyringAddress => this.getContract(address) as KeyringAddress);
|
.map(([address]) => this.getContract(address) as KeyringAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
private rewriteKey (json: KeyringJson, key: string, hexAddr: string, creator: (addr: string) => string): void {
|
private rewriteKey (json: KeyringJson, key: string, hexAddr: string, creator: (addr: string) => string): void {
|
||||||
@@ -199,7 +199,6 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
|
|
||||||
private loadAccount (json: KeyringJson, key: string): void {
|
private loadAccount (json: KeyringJson, key: string): void {
|
||||||
if (!json.meta.isTesting && (json as KeyringPair$Json).encoded) {
|
if (!json.meta.isTesting && (json as KeyringPair$Json).encoded) {
|
||||||
// FIXME Just for the transition period (ignoreChecksum)
|
|
||||||
const pair = this.keyring.addFromJson(json as KeyringPair$Json, true);
|
const pair = this.keyring.addFromJson(json as KeyringPair$Json, true);
|
||||||
|
|
||||||
this.accounts.add(this._store, pair.address, json, pair.type);
|
this.accounts.add(this._store, pair.address, json, pair.type);
|
||||||
@@ -266,7 +265,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
) || [this.genesisHash];
|
) || [this.genesisHash];
|
||||||
|
|
||||||
if (json.meta.genesisHash) {
|
if (json.meta.genesisHash) {
|
||||||
return hashes.includes(json.meta.genesisHash);
|
return hashes.includes(json.meta.genesisHash) || this.genesisHashes.includes(json.meta.genesisHash);
|
||||||
} else if (json.meta.contract) {
|
} else if (json.meta.contract) {
|
||||||
return hashes.includes(json.meta.contract.genesisHash);
|
return hashes.includes(json.meta.contract.genesisHash);
|
||||||
}
|
}
|
||||||
@@ -279,7 +278,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
super.initKeyring(options);
|
super.initKeyring(options);
|
||||||
|
|
||||||
this._store.all((key: string, json: KeyringJson): void => {
|
this._store.all((key: string, json: KeyringJson): void => {
|
||||||
if (options.filter ? options.filter(json) : true) {
|
if (!isFunction(options.filter) || options.filter(json)) {
|
||||||
try {
|
try {
|
||||||
if (this.allowGenesis(json)) {
|
if (this.allowGenesis(json)) {
|
||||||
if (accountRegex.test(key)) {
|
if (accountRegex.test(key)) {
|
||||||
@@ -291,7 +290,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// ignore
|
console.warn(`Keyring: Unable to load ${key}:${stringify(json)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -301,7 +300,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
try {
|
try {
|
||||||
this.loadInjected(account.address, account.meta, account.type);
|
this.loadInjected(account.address, account.meta, account.type);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// ignore
|
console.warn(`Keyring: Unable to inject ${stringify(account)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Keyring } from './Keyring';
|
import { Keyring } from './Keyring';
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
declare const __dirname: string | undefined;
|
||||||
|
|
||||||
|
export default __dirname;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
|
module.exports = typeof __dirname === 'string'
|
||||||
|
? __dirname.replace('/cjs', '')
|
||||||
|
: undefined;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type":"commonjs"
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { decodeAddress } from '@polkadot/keyring';
|
import { decodeAddress } from '@polkadot/keyring';
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
||||||
|
|
||||||
|
export default [settingsInfo];
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@polkadot/util';
|
||||||
|
|
||||||
|
import dirname from './cjs/dirname';
|
||||||
|
import others from './detectOther';
|
||||||
import { packageInfo } from './packageInfo';
|
import { packageInfo } from './packageInfo';
|
||||||
|
|
||||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
|
detectPackage(packageInfo, dirname, others);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage';
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
// Copyright 2017-2022 @polkadot/util authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Be able to import json in TS
|
// Be able to import json in TS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { accountKey } from '../defaults';
|
import { accountKey } from '../defaults';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { addressKey } from '../defaults';
|
import { addressKey } from '../defaults';
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user