mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-21 14:25:42 +00:00
Rebrand: polkadot → pezkuwi
- Updated all package references - Fixed react-identicon and related packages - Version 3.16.8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# @polkadot/ui-keyring
|
||||
# @pezkuwi/ui-keyring
|
||||
|
||||
A wrapper extending the base @polkadot/keyring interface for usage in the browser:
|
||||
A wrapper extending the base @pezkuwi/keyring interface for usage in the browser:
|
||||
Key management of user accounts including generation and retrieval of keyring pairs from a variety of input combinations.
|
||||
|
||||
## Usage Examples
|
||||
@@ -10,7 +10,7 @@ All module methods are exposed through a single default export.
|
||||
### Regular
|
||||
|
||||
```js
|
||||
import keyring from @polkadot/ui-keyring
|
||||
import keyring from @pezkuwi/ui-keyring
|
||||
|
||||
render () {
|
||||
// encode publicKey to ss58 address
|
||||
@@ -36,8 +36,8 @@ render () {
|
||||
Option 1: Declarative subscribe/unsubscribe w/ react-with-observable (recommended 'React' way)
|
||||
|
||||
```js
|
||||
import accountObservable from '@polkadot/ui-keyring/observable/accounts';
|
||||
import { SingleAddress, SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
||||
import accountObservable from '@pezkuwi/ui-keyring/observable/accounts';
|
||||
import { SingleAddress, SubjectInfo } from '@pezkuwi/ui-keyring/observable/types';
|
||||
import React from 'react';
|
||||
import { Subscribe } from 'react-with-observable';
|
||||
import { map } from 'rxjs';
|
||||
@@ -69,8 +69,8 @@ class MyReactComponent extends React.PureComponent {
|
||||
Option 2: Imperative subscribe/unsubscribe
|
||||
|
||||
```js
|
||||
import accountObservable from '@polkadot/ui-keyring/observable/accounts';
|
||||
import { SingleAddress, SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
||||
import accountObservable from '@pezkuwi/ui-keyring/observable/accounts';
|
||||
import { SingleAddress, SubjectInfo } from '@pezkuwi/ui-keyring/observable/types';
|
||||
import React from 'react';
|
||||
import { Subscription } from 'rxjs';
|
||||
|
||||
@@ -125,12 +125,12 @@ class MyReactComponent extends React.PureComponent<State> {
|
||||
- SS58 Encode / Decode?
|
||||
- SS58 is a simple address format designed for Substrate based chains. You can read about its specification in more detail in the [Substrate Documentation](https://docs.substrate.io/reference/address-formats/).
|
||||
|
||||
**If you have any unanswered/undocumented questions, please raise an issue [here](https://github.com/polkadot-js/ui/issues).**
|
||||
**If you have any unanswered/undocumented questions, please raise an issue [here](https://github.com/pezkuwichain/ui/issues).**
|
||||
|
||||
|
||||
## Users
|
||||
|
||||
Keyring is core to many polkadot/substrate apps.
|
||||
|
||||
* [polkadot-js/apps](https://github.com/polkadot-js/apps)
|
||||
* [pezkuwichain/apps](https://github.com/pezkuwichain/apps)
|
||||
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
||||
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-keyring#readme",
|
||||
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/ui-keyring#readme",
|
||||
"license": "Apache-2.0",
|
||||
"name": "@polkadot/ui-keyring",
|
||||
"name": "@pezkuwi/ui-keyring",
|
||||
"repository": {
|
||||
"directory": "packages/ui-keyring",
|
||||
"type": "git",
|
||||
"url": "https://github.com/polkadot-js/ui.git"
|
||||
"url": "https://github.com/pezkuwichain/ui.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "3.16.6",
|
||||
"version": "3.16.8",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^14.0.1",
|
||||
"@polkadot/ui-settings": "3.16.6",
|
||||
"@polkadot/util": "^14.0.1",
|
||||
"@polkadot/util-crypto": "^14.0.1",
|
||||
"@pezkuwi/keyring": "^14.0.5",
|
||||
"@pezkuwi/ui-settings": "3.16.6",
|
||||
"@pezkuwi/util": "^14.0.5",
|
||||
"@pezkuwi/util-crypto": "^14.0.5",
|
||||
"mkdirp": "^3.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"store": "^2.0.12",
|
||||
@@ -34,8 +34,8 @@
|
||||
"@types/store": "^2.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/keyring": "*",
|
||||
"@polkadot/ui-settings": "*",
|
||||
"@polkadot/util": "*"
|
||||
"@pezkuwi/keyring": "*",
|
||||
"@pezkuwi/ui-settings": "*",
|
||||
"@pezkuwi/util": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||
import type { KeyringInstance, KeyringPair } from '@pezkuwi/keyring/types';
|
||||
import type { HexString } from '@pezkuwi/util/types';
|
||||
import type { Prefix } from '@pezkuwi/util-crypto/address/types';
|
||||
import type { AddressSubject } from './observable/types.js';
|
||||
import type { KeyringOptions, KeyringStore } from './types.js';
|
||||
|
||||
import { createTestKeyring } from '@polkadot/keyring';
|
||||
import { isBoolean, isNumber, isString } from '@polkadot/util';
|
||||
import { createTestKeyring } from '@pezkuwi/keyring';
|
||||
import { isBoolean, isNumber, isString } from '@pezkuwi/util';
|
||||
|
||||
import { accounts } from './observable/accounts.js';
|
||||
import { addresses } from './observable/addresses.js';
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@pezkuwi/keyring/types';
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
import type { EncryptedJson } from '@pezkuwi/util-crypto/json/types';
|
||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
||||
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringPairs$Json, KeyringStruct } from './types.js';
|
||||
|
||||
import { createPair } from '@polkadot/keyring';
|
||||
import { chains } from '@polkadot/ui-settings';
|
||||
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
|
||||
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
|
||||
import { createPair } from '@pezkuwi/keyring';
|
||||
import { chains } from '@pezkuwi/ui-settings';
|
||||
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@pezkuwi/util';
|
||||
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@pezkuwi/util-crypto';
|
||||
|
||||
import { env } from './observable/env.js';
|
||||
import { KeyringOption } from './options/index.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Keyring } from './Keyring.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { decodeAddress } from '@polkadot/keyring';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
import { decodeAddress } from '@pezkuwi/keyring';
|
||||
import { u8aToHex } from '@pezkuwi/util';
|
||||
|
||||
const ACCOUNT_PREFIX = 'account:';
|
||||
const ADDRESS_PREFIX = 'address:';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './packageDetect.js';
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Be able to import json in TS
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { accountKey } from '../defaults.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { addressKey } from '../defaults.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { contractKey } from '../defaults.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||
import type { AddressSubject, SingleAddress, SubjectInfo } from './types.js';
|
||||
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
import { objectCopy, objectSpread } from '@polkadot/util';
|
||||
import { objectCopy, objectSpread } from '@pezkuwi/util';
|
||||
|
||||
import { createOptionItem } from '../options/item.js';
|
||||
import { env } from './env.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SubjectInfo } from './types.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BehaviorSubject } from 'rxjs';
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||
import type { KeyringSectionOption } from '../options/types.js';
|
||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Subscription } from 'rxjs';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringSectionOption } from './types.js';
|
||||
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
import { isUndefined } from '@pezkuwi/util';
|
||||
|
||||
export function createOptionItem (address: string, _name?: string): KeyringSectionOption {
|
||||
const name = isUndefined(_name)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringItemType, KeyringStruct } from '../types.js';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
// (packageInfo imports will be kept as-is, user-editable)
|
||||
|
||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
import { packageInfo as settingsInfo } from '@pezkuwi/ui-settings/packageInfo';
|
||||
import { detectPackage } from '@pezkuwi/util';
|
||||
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/ui-keyring', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/ui-keyring', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { BrowserStore } from './Browser.js';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||
// 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 { HexString } from '@polkadot/util/types';
|
||||
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { KeyringInstance as BaseKeyringInstance, KeyringOptions as KeyringOptionsBase, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@pezkuwi/keyring/types';
|
||||
import type { HexString } from '@pezkuwi/util/types';
|
||||
import type { EncryptedJson } from '@pezkuwi/util-crypto/json/types';
|
||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
||||
|
||||
export type ContractMeta = NonNullable<KeyringPair$Meta['contract']>;
|
||||
|
||||
Reference in New Issue
Block a user