mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 15:41:04 +00:00
0.6 (#430)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-keyring",
|
||||
"version": "0.65.2-5",
|
||||
"version": "0.66.0",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"sideEffects": [
|
||||
@@ -14,16 +14,15 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/hw-ledger": "^5.2.4-6",
|
||||
"@polkadot/keyring": "^5.2.4-6",
|
||||
"@polkadot/ui-settings": "0.65.2-5",
|
||||
"@polkadot/util": "^5.2.4-6",
|
||||
"@polkadot/x-rxjs": "^3.4.2-8",
|
||||
"@polkadot/hw-ledger": "^5.2.4-7",
|
||||
"@polkadot/keyring": "^5.2.4-7",
|
||||
"@polkadot/ui-settings": "0.66.0",
|
||||
"@polkadot/util": "^5.2.4-7",
|
||||
"@polkadot/x-rxjs": "^3.4.2-15",
|
||||
"mkdirp": "^1.0.4",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "^3.4.2-8",
|
||||
"@types/mkdirp": "^1.0.1",
|
||||
"@types/store": "^2.0.2"
|
||||
},
|
||||
|
||||
@@ -110,7 +110,11 @@ export class Base {
|
||||
}
|
||||
|
||||
this.#keyring = keyring;
|
||||
this._genesisHash = options.genesisHash && options.genesisHash.toHex();
|
||||
this._genesisHash = options.genesisHash && (
|
||||
isString(options.genesisHash)
|
||||
? options.genesisHash.toString()
|
||||
: options.genesisHash.toHex()
|
||||
);
|
||||
this._store = options.store || this._store;
|
||||
|
||||
this.addAccountPairs();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// 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 { Hash } from '@polkadot/types/interfaces';
|
||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { AddressSubject, SingleAddress } from './observable/types';
|
||||
|
||||
@@ -40,7 +39,7 @@ export interface KeyringStore {
|
||||
|
||||
export interface KeyringOptions extends KeyringOptionsBase {
|
||||
filter?: (json: KeyringJson) => boolean;
|
||||
genesisHash?: Hash;
|
||||
genesisHash?: string | { toHex: () => string };
|
||||
isDevelopment?: boolean;
|
||||
store?: KeyringStore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user