diff --git a/package-lock.json b/package-lock.json index a5fa332d7..1571d2cb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,10 +17,6 @@ "@klayr/cryptography": "^4.0.2", "@klayr/transactions": "^6.0.2", "@klayr/validator": "^0.8.2", - "@liskhq/lisk-codec": "^0.5.0", - "@liskhq/lisk-cryptography": "4.1.0", - "@liskhq/lisk-transactions": "6.1.0", - "@liskhq/lisk-validator": "^0.9.0", "@mdi/font": "^7.4.47", "@stablelib/utf8": "^1.0.2", "@zxing/browser": "^0.1.4", @@ -4506,132 +4502,6 @@ "node": ">=10" } }, - "node_modules/@liskhq/lisk-codec": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-codec/-/lisk-codec-0.5.0.tgz", - "integrity": "sha512-IW8s3s1JvHZMx2SmMh8MJyUE7D9gJGJyJq5s8xxWik4IOTN/zRdNFK2m1qIgL+6T8SchEKS4P8r/Xpnl5KUeiw==", - "dependencies": { - "@liskhq/lisk-cryptography": "^4.1.0", - "@liskhq/lisk-utils": "^0.4.0", - "@liskhq/lisk-validator": "^0.9.0" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - } - }, - "node_modules/@liskhq/lisk-cryptography": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-cryptography/-/lisk-cryptography-4.1.0.tgz", - "integrity": "sha512-5//E14nlqyvOE21uwB8zCCYe0JmeEVCQ6gg/TjboKYEct/OX0GkK5gyb6tqJr8ApaQxRaL5WqPt2VOwxf564VA==", - "dependencies": { - "@liskhq/lisk-passphrase": "^4.1.0", - "buffer-reverse": "1.0.1", - "hash-wasm": "4.9.0", - "tweetnacl": "1.0.3" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - }, - "peerDependencies": { - "@chainsafe/blst": "0.2.9", - "sodium-native": "3.2.1" - }, - "peerDependenciesMeta": { - "@chainsafe/blst": { - "optional": true - }, - "sodium-native": { - "optional": true - } - } - }, - "node_modules/@liskhq/lisk-passphrase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-passphrase/-/lisk-passphrase-4.1.0.tgz", - "integrity": "sha512-1VdpEp+OGiyCF0Fjtgcc+SLlHeIflzya49GzIXcXjFNf19VgkUu/eIDM8XHxSdj/5KzpL+yD07OYCh+LdoAkfA==", - "dependencies": { - "bip39": "3.0.3" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - } - }, - "node_modules/@liskhq/lisk-passphrase/node_modules/@types/node": { - "version": "11.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz", - "integrity": "sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==" - }, - "node_modules/@liskhq/lisk-passphrase/node_modules/bip39": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.0.3.tgz", - "integrity": "sha512-P0dKrz4g0V0BjXfx7d9QNkJ/Txcz/k+hM9TnjqjUaXtuOfAvxXSw2rJw8DX0e3ZPwnK/IgDxoRqf0bvoVCqbMg==", - "dependencies": { - "@types/node": "11.11.6", - "create-hash": "^1.1.0", - "pbkdf2": "^3.0.9", - "randombytes": "^2.0.1" - } - }, - "node_modules/@liskhq/lisk-transactions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-transactions/-/lisk-transactions-6.1.0.tgz", - "integrity": "sha512-v3DS2O7mSDHMqRRI8ilgFaizjH9zZ/PDBdiMviAzJ16ZPCqqYJ7Dwm6Blp7fAOPCgLwRJTVwLNCgeFiMYjo6Kg==", - "dependencies": { - "@liskhq/lisk-codec": "^0.5.0", - "@liskhq/lisk-cryptography": "^4.1.0", - "@liskhq/lisk-validator": "^0.9.0" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - } - }, - "node_modules/@liskhq/lisk-utils": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-utils/-/lisk-utils-0.4.0.tgz", - "integrity": "sha512-rzZZrh36GVSqB65Y4LjaZIe2AVLUH8zXNDNBX0MXM7pI5BhBesDmDpVS2qVLoF7lhyBmUPk9SrARI0wK9/+z9g==", - "dependencies": { - "lodash.clonedeep": "4.5.0" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - } - }, - "node_modules/@liskhq/lisk-validator": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-validator/-/lisk-validator-0.9.0.tgz", - "integrity": "sha512-47zqZxkYDvrtweLK2zWhA6169jjKY1EKJhj3+fQ1lDnqyLjfQwHFJ0qEsY1kFWBYQWI6KRGbOJcnGLsDnGdIfg==", - "dependencies": { - "@liskhq/lisk-cryptography": "^4.1.0", - "ajv": "8.1.0", - "ajv-formats": "2.1.1", - "debug": "4.3.4", - "semver": "7.5.2", - "validator": "13.7.0" - }, - "engines": { - "node": ">=18.12.0 <=18", - "npm": ">=8.1.0" - } - }, - "node_modules/@liskhq/lisk-validator/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@lukeed/csprng": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", diff --git a/package.json b/package.json index ca4eeeddc..e076f0271 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,6 @@ "@klayr/cryptography": "^4.0.2", "@klayr/transactions": "^6.0.2", "@klayr/validator": "^0.8.2", - "@liskhq/lisk-codec": "^0.5.0", - "@liskhq/lisk-cryptography": "4.1.0", - "@liskhq/lisk-transactions": "6.1.0", - "@liskhq/lisk-validator": "^0.9.0", "@mdi/font": "^7.4.47", "@stablelib/utf8": "^1.0.2", "@zxing/browser": "^0.1.4", @@ -208,7 +204,7 @@ "cryptocurrency", "doge", "dash", - "lisk", + "klayr", "erc20", "business", "2fa" diff --git a/src/components/ExportKeysForm.vue b/src/components/ExportKeysForm.vue index 188ea5952..bc61c9f61 100644 --- a/src/components/ExportKeysForm.vue +++ b/src/components/ExportKeysForm.vue @@ -103,7 +103,7 @@ import { validateMnemonic } from 'bip39' import copyToClipboard from 'copy-to-clipboard' import { getAccountFromPassphrase as getEthAccount } from '@/lib/eth-utils' import { getAccount as getBtcAccount } from '@/lib/bitcoin/btc-base-api' -import { getAccount as getLskAccount } from '@/lib/lisk/lisk-utils' +import { getAccount as getKlyAccount } from '@/lib/klayr/klayr-utils' import { Cryptos, CryptosInfo } from '@/lib/constants' import QrcodeCapture from '@/components/QrcodeCapture.vue' import QrcodeScannerDialog from '@/components/QrcodeScannerDialog.vue' @@ -122,8 +122,8 @@ function getBtcKey(crypto, passphrase, asWif) { } } -function getLskKey(crypto, passphrase) { - const keyPair = getLskAccount(crypto, passphrase).keyPair +function getKlyKey(crypto, passphrase) { + const keyPair = getKlyAccount(crypto, passphrase).keyPair const key = keyPair.secretKey.toString('hex') return { @@ -184,9 +184,9 @@ export default defineComponent({ const dash = getBtcKey(Cryptos.DASH, passphrase.value, false) const doge = getBtcKey(Cryptos.DOGE, passphrase.value, true) - const lsk = getLskKey(Cryptos.LSK, passphrase.value) + const kly = getKlyKey(Cryptos.KLY, passphrase.value) - keys.value = [bitcoin, eth, doge, dash, lsk] + keys.value = [bitcoin, eth, doge, dash, kly] }, 0) } const copyKey = (key) => { diff --git a/src/components/SendFundsForm.vue b/src/components/SendFundsForm.vue index be59991af..2d2c17398 100644 --- a/src/components/SendFundsForm.vue +++ b/src/components/SendFundsForm.vue @@ -188,7 +188,7 @@