mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-15 10:41:02 +00:00
Bump deps (#215)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"./ledger/transportsWeb": "./ledger/transportsEmpty"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.6.0",
|
||||
"@babel/runtime": "^7.6.2",
|
||||
"@ledgerhq/hw-transport-u2f": "^4.70.0",
|
||||
"@ledgerhq/hw-transport-webusb": "^4.70.0",
|
||||
"@types/ledgerhq__hw-transport-node-hid": "^4.21.1",
|
||||
@@ -27,13 +27,12 @@
|
||||
"extensionizer": "^1.0.1",
|
||||
"ledger-polkadot": "^0.0.4",
|
||||
"mkdirp": "^0.5.1",
|
||||
"store": "^2.0.12",
|
||||
"styled-components": "^4.3.1"
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.4.1",
|
||||
"@polkadot/types": "^0.93.0-beta.7",
|
||||
"@polkadot/util": "^1.4.1"
|
||||
"@polkadot/keyring": "^1.5.1",
|
||||
"@polkadot/types": "^0.93.0-beta.19",
|
||||
"@polkadot/util": "^1.5.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@ledgerhq/hw-transport-node-hid": "^4.70.0"
|
||||
|
||||
@@ -64,15 +64,11 @@ export default class Base {
|
||||
}
|
||||
|
||||
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
|
||||
// FIXME Tryings are wrong... :()
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return (this.keyring.decodeAddress as any)(key, ignoreChecksum, ss58Format);
|
||||
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
|
||||
}
|
||||
|
||||
public encodeAddress = (key: string | Uint8Array, ss58Format?: Prefix): string => {
|
||||
// FIXME Tryings are wrong... :()
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return (this.keyring.encodeAddress as any)(key, ss58Format);
|
||||
return this.keyring.encodeAddress(key, ss58Format);
|
||||
}
|
||||
|
||||
public getPair (address: string | Uint8Array): KeyringPair {
|
||||
@@ -100,8 +96,8 @@ export default class Base {
|
||||
return password.length > 0 && password.length <= MAX_PASS_LEN;
|
||||
}
|
||||
|
||||
public setSS58Format (ss58Format: number): void {
|
||||
this._ss58Format = ss58Format as Prefix;
|
||||
public setSS58Format (ss58Format: Prefix): void {
|
||||
this._ss58Format = ss58Format;
|
||||
}
|
||||
|
||||
public setDevMode (isDevelopment: boolean): void {
|
||||
|
||||
Reference in New Issue
Block a user