diff --git a/.eslintignore b/.eslintignore index 62735a6..7ba341c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,3 +6,7 @@ jest.config.js coverage benchmark dist +tmp +build +scripts +config \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index 09dc856..f74622d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,11 +1,8 @@ module.exports = { - root: true, - parserOptions: { - project: './tsconfig.json', - tsconfigRootDir: __dirname, - }, - extends: ['lisk-base/ts'], - rules: { - indent: ['error', 2], - }, + root: true, + parserOptions: { + project: './tsconfig.json', + tsconfigRootDir: __dirname, + }, + extends: ['lisk-base/ts'], }; diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 0af31b2..50d39da 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,5 @@ { - "*.{js}": ["prettier --write", "eslint"], - "*.{ts}": ["prettier --write", "eslint"], + "*.js": ["prettier --write", "eslint"], + "*.ts": ["prettier --write", "eslint"], "*.{json,md}": ["prettier --write"] } diff --git a/.liskrc.json b/.liskrc.json index 69836ff..4768230 100644 --- a/.liskrc.json +++ b/.liskrc.json @@ -1,6 +1,6 @@ { "commander": { - "version": "6.0.0-alpha.6" + "version": "6.1.0" }, "template": "lisk-ts" } diff --git a/.prettierrc.json b/.prettierrc.json index 52aa9f8..7b23ef5 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -2,6 +2,6 @@ "printWidth": 100, "singleQuote": true, "trailingComma": "all", - "useTabs": false, + "useTabs": true, "arrowParens": "avoid" } diff --git a/package-lock.json b/package-lock.json index 1d7de84..6372031 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,24 +9,23 @@ "version": "0.3.0", "license": "ISC", "dependencies": { - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-framework-chain-connector-plugin": "0.2.0-beta.1", - "@liskhq/lisk-framework-dashboard-plugin": "0.4.0-beta.0", - "@liskhq/lisk-framework-faucet-plugin": "0.4.0-beta.0", - "@liskhq/lisk-framework-forger-plugin": "0.5.0-beta.0", - "@liskhq/lisk-framework-monitor-plugin": "0.5.0-beta.0", - "@liskhq/lisk-framework-report-misbehavior-plugin": "0.5.0-beta.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-framework-chain-connector-plugin": "0.2.0", + "@liskhq/lisk-framework-dashboard-plugin": "0.4.0", + "@liskhq/lisk-framework-faucet-plugin": "0.4.0", + "@liskhq/lisk-framework-forger-plugin": "0.5.0", + "@liskhq/lisk-framework-monitor-plugin": "0.5.0", + "@liskhq/lisk-framework-report-misbehavior-plugin": "0.5.0", "@oclif/core": "1.20.4", "@oclif/plugin-autocomplete": "1.3.6", "@oclif/plugin-help": "5.1.19", "@oclif/plugin-version": "1.1.3", - "@types/md5": "^2.3.4", "axios": "0.21.2", "fs-extra": "11.1.0", "inquirer": "8.2.5", - "lisk-commander": "6.1.0-beta.1", - "lisk-sdk": "6.1.0-beta.1", + "lisk-commander": "6.1.0", + "lisk-sdk": "6.1.0", "md5": "^2.3.0", "tar": "6.1.11", "tslib": "2.4.1" @@ -39,6 +38,7 @@ "@types/fs-extra": "9.0.13", "@types/jest": "29.2.3", "@types/jest-when": "3.5.2", + "@types/md5": "^2.3.5", "@types/node": "18.15.3", "@types/tar": "6.1.3", "@typescript-eslint/eslint-plugin": "5.44.0", @@ -87,11 +87,11 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { @@ -163,30 +163,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", - "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz", - "integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz", + "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.0", - "@babel/helpers": "^7.23.0", - "@babel/parser": "^7.23.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.6", + "@babel/parser": "^7.23.6", "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0", + "@babel/traverse": "^7.23.6", + "@babel/types": "^7.23.6", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -211,12 +211,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", + "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0", + "@babel/types": "^7.23.6", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -226,14 +226,14 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -296,9 +296,9 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz", - "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -348,9 +348,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "engines": { "node": ">=6.9.0" } @@ -364,32 +364,32 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.23.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz", - "integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz", + "integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==", "dev": true, "dependencies": { "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.0", - "@babel/types": "^7.23.0" + "@babel/traverse": "^7.23.6", + "@babel/types": "^7.23.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", "chalk": "^2.4.2", @@ -464,9 +464,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", - "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", + "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -536,9 +536,9 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", - "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -638,9 +638,9 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", - "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" @@ -653,9 +653,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.23.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.1.tgz", - "integrity": "sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.6.tgz", + "integrity": "sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -678,20 +678,20 @@ } }, "node_modules/@babel/traverse": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz", - "integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", + "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.6", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -708,11 +708,11 @@ } }, "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", + "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, @@ -738,9 +738,9 @@ } }, "node_modules/@chainsafe/blst/node_modules/@types/tar": { - "version": "6.1.6", - "resolved": "https://registry.npmjs.org/@types/tar/-/tar-6.1.6.tgz", - "integrity": "sha512-HQ06kiiDXz9uqtmE9ksQUn1ovcPr1gGV9EgaCWo6FGYKD0onNBCetBzL0kfcS8Kbj1EFxJWY9jL2W4ZvvtGI8Q==", + "version": "6.1.10", + "resolved": "https://registry.npmjs.org/@types/tar/-/tar-6.1.10.tgz", + "integrity": "sha512-60ZO+W0tRKJ3ggdzJKp75xKVlNogKYMqGvr2bMH/+k3T0BagfYTnbmVDFMJB1BFttz6yRgP5MDGP27eh7brrqw==", "dependencies": { "@types/node": "*", "minipass": "^4.0.0" @@ -966,12 +966,12 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.11", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", - "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", "minimatch": "^3.0.5" }, @@ -993,9 +993,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "node_modules/@isaacs/string-locale-compare": { @@ -1421,9 +1421,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -1431,14 +1431,14 @@ } }, "node_modules/@liskhq/lisk-api-client": { - "version": "6.1.0-beta.1", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-api-client/-/lisk-api-client-6.1.0-beta.1.tgz", - "integrity": "sha512-tjzRRXZ8Q8iPG87U7eimr+ALm57oe14U/+zqfe8/6UQ0SJNecBs5QURNbFtVCRMGMaEPKYJBMwvVee76Z8p6ow==", - "dependencies": { - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-api-client/-/lisk-api-client-6.1.0.tgz", + "integrity": "sha512-+OYDsrpt3VPM/Vs/nhzfyq7Tw4DRLAjJ6ymXdnfvecz31WniJCfbxIqTn+LD9U0qqPISvj5bF399USXKldRkLg==", + "dependencies": { + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-validator": "^0.9.0", "isomorphic-ws": "4.0.1", "ws": "8.11.0", "zeromq": "6.0.0-beta.6" @@ -1449,16 +1449,16 @@ } }, "node_modules/@liskhq/lisk-chain": { - "version": "0.6.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-chain/-/lisk-chain-0.6.0-beta.0.tgz", - "integrity": "sha512-huxoa0oYk5JSefBZq7ms6jk5ACWjxLfkOEitXRxKmB8jhmZgifYfPUSgrl8BqefJKhlmLJXfkJ+guBIvyppXdQ==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-chain/-/lisk-chain-0.6.0.tgz", + "integrity": "sha512-QbNNDZiNerj2Vrb+Fn0HbbtkwUS9FBhlTuJC3fO6X5uwlPaEhMmgU5p62a02TimKrNmWm8W3pjVfxs7xCfCW5g==", "dependencies": { - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", "@liskhq/lisk-db": "0.3.7", - "@liskhq/lisk-tree": "^0.5.0-beta.0", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "@liskhq/lisk-tree": "^0.5.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", "debug": "4.3.4" }, "engines": { @@ -1467,18 +1467,18 @@ } }, "node_modules/@liskhq/lisk-client": { - "version": "6.1.0-beta.1", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-client/-/lisk-client-6.1.0-beta.1.tgz", - "integrity": "sha512-ZF6deHo0/5L/SRQGDxCT8Ps9OlKiQalXbrUYW3Uljc0hs60IucUo2VIzI+TDM2mwawTgMGv50R4A0CiJ1BZQ1w==", - "dependencies": { - "@liskhq/lisk-api-client": "^6.1.0-beta.1", - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-passphrase": "^4.1.0-beta.0", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-tree": "^0.5.0-beta.0", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-client/-/lisk-client-6.1.0.tgz", + "integrity": "sha512-L1EdXLgtqOc2/a6SiYigCqOqSXf9xpxm6k5VMI0W3VZ5DI0dQtmKkW1huCfhKIFGcUqU6norsbZgH6NO19YC2g==", + "dependencies": { + "@liskhq/lisk-api-client": "^6.1.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-passphrase": "^4.1.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-tree": "^0.5.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", "buffer": "6.0.3" }, "engines": { @@ -1487,13 +1487,13 @@ } }, "node_modules/@liskhq/lisk-codec": { - "version": "0.5.0-beta.0", - "resolved": "https://npm.lisk.com/@liskhq/lisk-codec/-/lisk-codec-0.5.0-beta.0.tgz", - "integrity": "sha512-rkOn6dsYLEAYDWNhqjJEtCovqauPoaRajeZ+UVvcdhTwRFPVrkVjyRxqryGW/veY/6Urhm838sW2F+f164CWwA==", + "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-beta.1", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0" + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1501,11 +1501,11 @@ } }, "node_modules/@liskhq/lisk-cryptography": { - "version": "4.1.0-beta.1", - "resolved": "https://npm.lisk.com/@liskhq/lisk-cryptography/-/lisk-cryptography-4.1.0-beta.1.tgz", - "integrity": "sha512-TKoPXgRu8WX8nOzKJRqHJU5P6CdEirCA3Fxc3soNEZG8L8BlUQfAG+kRMv11exXkQP5sre3OW3RucB7v/j1RYw==", + "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-beta.0", + "@liskhq/lisk-passphrase": "^4.1.0", "buffer-reverse": "1.0.1", "hash-wasm": "4.9.0", "tweetnacl": "1.0.3" @@ -1544,13 +1544,13 @@ } }, "node_modules/@liskhq/lisk-framework-chain-connector-plugin": { - "version": "0.2.0-beta.1", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-chain-connector-plugin/-/lisk-framework-chain-connector-plugin-0.2.0-beta.1.tgz", - "integrity": "sha512-DCxMnCLfFeyxN07q4KOSaxBMlcZzv1jM/U0LIw7IWtr6ThYAQTykXvl8SrdFzq0RZdA2AUUacx+3FXk2bucFMQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-chain-connector-plugin/-/lisk-framework-chain-connector-plugin-0.2.0.tgz", + "integrity": "sha512-wsb0hOHilvaNVe6iZo6d+HrEFt3U0QLvxADQcKQedOATsyIBTVQ6xLB3ZNWg24dNBKR+Bt9D7sLAYYhtrkyXFA==", "dependencies": { "debug": "4.3.4", "fs-extra": "11.1.0", - "lisk-sdk": "^6.1.0-beta.1" + "lisk-sdk": "^6.1.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1558,15 +1558,15 @@ } }, "node_modules/@liskhq/lisk-framework-dashboard-plugin": { - "version": "0.4.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-dashboard-plugin/-/lisk-framework-dashboard-plugin-0.4.0-beta.0.tgz", - "integrity": "sha512-/naTtMYBTgfiodIlxtHWNIXEiKK/Pvi3ABYTioBuJt9pontRZ14usdbR9xFBzvlSh/I29DnXfqXbKZ1XCPVi5g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-dashboard-plugin/-/lisk-framework-dashboard-plugin-0.4.0.tgz", + "integrity": "sha512-lgraKISJK7gl4aT6/F9Kc5PFtYSYqsbNbHpUW4zttvsKgfCHllKRpgnvWNL+uQ2j1sYPGmjR0K75i3RezBBAHA==", "dependencies": { "@csstools/normalize.css": "12.0.0", - "@liskhq/lisk-client": "^6.1.0-beta.1", + "@liskhq/lisk-client": "^6.1.0", "express": "4.18.2", "json-format-highlight": "1.0.4", - "lisk-sdk": "^6.1.0-beta.1", + "lisk-sdk": "^6.1.0", "react": "^17.0.1", "react-dom": "^17.0.1", "react-router-dom": "^5.2.0", @@ -1578,20 +1578,20 @@ } }, "node_modules/@liskhq/lisk-framework-faucet-plugin": { - "version": "0.4.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-faucet-plugin/-/lisk-framework-faucet-plugin-0.4.0-beta.0.tgz", - "integrity": "sha512-k4L4UJ53MuduqZcpNq05iDN7notsOtgECX+9hp1OmJilu/0LPWYHfweeW8G85fE56ZeohCB9fqR1z4QwPAU4zw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-faucet-plugin/-/lisk-framework-faucet-plugin-0.4.0.tgz", + "integrity": "sha512-IM+3Z6ELEyuFP2B6AuClfuXnW1/fkqsBifPDSG+69suvzVbVPdVnNZLQuoUQTZA/CEZ5PmIvJooz7V3kxw8s1g==", "dependencies": { "@csstools/normalize.css": "12.0.0", - "@liskhq/lisk-api-client": "^6.1.0-beta.1", - "@liskhq/lisk-client": "^6.1.0-beta.1", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", - "axios": "1.2.0", + "@liskhq/lisk-api-client": "^6.1.0", + "@liskhq/lisk-client": "^6.1.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", + "axios": "1.6.0", "express": "4.18.2", - "lisk-sdk": "^6.1.0-beta.1", + "lisk-sdk": "^6.1.0", "react": "^17.0.1", "react-dom": "^17.0.1", "react-router-dom": "^5.2.0" @@ -1602,9 +1602,9 @@ } }, "node_modules/@liskhq/lisk-framework-faucet-plugin/node_modules/axios": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.0.tgz", - "integrity": "sha512-zT7wZyNYu3N5Bu0wuZ6QccIf93Qk1eV8LOewxgjOZFd2DenOs98cJ7+Y6703d0wkaXGY6/nZd4EweJaHz9uzQw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", + "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -1612,13 +1612,13 @@ } }, "node_modules/@liskhq/lisk-framework-forger-plugin": { - "version": "0.5.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-forger-plugin/-/lisk-framework-forger-plugin-0.5.0-beta.0.tgz", - "integrity": "sha512-WoFCxrstnIS71WJR6qBT2EVFHnH++F43gVxif2SZQdpATuFOE3q1kOef4wqPioFckPkPgChjjO9l5Hu9k6WfNQ==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-forger-plugin/-/lisk-framework-forger-plugin-0.5.0.tgz", + "integrity": "sha512-y8zxdkQBKgKwIP6lsYgkJGOB0SN0zw3W/yqtCDF32KvWnRcXZTClIuzBqcxllWK8QlQZvTPMwYDWvlww63GFnA==", "dependencies": { "debug": "4.3.4", "fs-extra": "11.1.0", - "lisk-sdk": "^6.1.0-beta.1" + "lisk-sdk": "^6.1.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1626,15 +1626,15 @@ } }, "node_modules/@liskhq/lisk-framework-monitor-plugin": { - "version": "0.5.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-monitor-plugin/-/lisk-framework-monitor-plugin-0.5.0-beta.0.tgz", - "integrity": "sha512-eLR6YCz8ipriOtoX50SmNtmcvJlJ6q8TVOfxDTsOV9RujDZ0q4QyQaYmfErhXfFoyEhRjmdOJLZOEbRgaZml5g==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-monitor-plugin/-/lisk-framework-monitor-plugin-0.5.0.tgz", + "integrity": "sha512-3/eFTO4f+Hv0uZ+jy1AGFCUiLnvM0eU+AcwUQ6aQCZMFxq9SbG/p8GFjdAgLKByFalAhIz2l/OZfstFttNbd7Q==", "dependencies": { "cors": "2.8.5", "express": "4.18.2", "express-rate-limit": "6.7.0", "ip": "1.1.5", - "lisk-sdk": "^6.1.0-beta.1" + "lisk-sdk": "^6.1.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1642,13 +1642,13 @@ } }, "node_modules/@liskhq/lisk-framework-report-misbehavior-plugin": { - "version": "0.5.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-report-misbehavior-plugin/-/lisk-framework-report-misbehavior-plugin-0.5.0-beta.0.tgz", - "integrity": "sha512-TCxCkUQVzXIh7CXv4KF0Miko8sddw5PzWtBsACrJoTcRCYM2OxV03hTQZ6OVhBYK3AvIwn3LpVuFNE+zXiAWEw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-framework-report-misbehavior-plugin/-/lisk-framework-report-misbehavior-plugin-0.5.0.tgz", + "integrity": "sha512-C0xMEPsYh9nzsPosgcdDOrkgR7S5snzo0oxRsaDy2JmTIylESnlupv+C17RH42JrW2oq88t3OJf6XJ54ueu8vQ==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", + "@liskhq/lisk-cryptography": "^4.1.0", "fs-extra": "11.1.0", - "lisk-sdk": "^6.1.0-beta.1" + "lisk-sdk": "^6.1.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1656,13 +1656,13 @@ } }, "node_modules/@liskhq/lisk-p2p": { - "version": "0.10.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-p2p/-/lisk-p2p-0.10.0-beta.0.tgz", - "integrity": "sha512-8Of6PuTdsGXn6EjrwlwiatihyfelcVFIGBkuJmTqI+gIP76qktbGFz+oo81pq5zbzz6nGvFeO/IaCKztv3hC/Q==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-p2p/-/lisk-p2p-0.10.0.tgz", + "integrity": "sha512-FPZ0bcIrQ4ZdHSPbm4xzyptZbiDIGmCrCj89mqy6xdZ7f/RrHITMZRx99Zem/RiwCOqGlvk7M98VcQYTRtOwvA==", "dependencies": { - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-validator": "^0.9.0", "lodash.shuffle": "4.2.0", "semver": "7.5.2", "socketcluster-client": "14.3.1", @@ -1674,9 +1674,9 @@ } }, "node_modules/@liskhq/lisk-passphrase": { - "version": "4.1.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-passphrase/-/lisk-passphrase-4.1.0-beta.0.tgz", - "integrity": "sha512-Wn9wwW0YUKduT6BMn253ReE6t7/i+IcVXVPTjRWCVN3YwwwYB3VQVSBypaEegEnJm1Ku4HCz/q/grW4M/UDBtA==", + "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" }, @@ -1686,12 +1686,12 @@ } }, "node_modules/@liskhq/lisk-transaction-pool": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-transaction-pool/-/lisk-transaction-pool-0.8.0-beta.0.tgz", - "integrity": "sha512-r3L6FzijHweqnMKammi7raUZVZp3nKxw6VotYmJdlpqS1hdfSBi8NlgE+WzVtkDodE3g7Kkm0jON3DvL1YSOvg==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-transaction-pool/-/lisk-transaction-pool-0.8.0.tgz", + "integrity": "sha512-6gNBpafcKNaJCHi79xZ8GVU7g3uASDp4oqUwocLF9lHOLNmSX9Ce5YkeWS95megd/OOE9F12Pn8r/gRBqoSoNg==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-utils": "^0.4.0-beta.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-utils": "^0.4.0", "debug": "4.3.4" }, "engines": { @@ -1700,13 +1700,13 @@ } }, "node_modules/@liskhq/lisk-transactions": { - "version": "6.1.0-beta.1", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-transactions/-/lisk-transactions-6.1.0-beta.1.tgz", - "integrity": "sha512-nHxUIvVYBoJpd6s3USHIf1yoEuakBZitO1o/36truqTZDVx/SgIwHMQuJPruTyHlbPG3FxfqygVXGt4Df29qww==", + "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-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-validator": "^0.9.0-beta.0" + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-validator": "^0.9.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1714,12 +1714,12 @@ } }, "node_modules/@liskhq/lisk-tree": { - "version": "0.5.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-tree/-/lisk-tree-0.5.0-beta.0.tgz", - "integrity": "sha512-+KHW5s6IQ42Fy8k9KPYLGNev6eZm4pRLTgv81s0AuFAKbSAK8O1mZk4ArfgEBvetikqaocJLbtzg1MJT5WsAwg==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@liskhq/lisk-tree/-/lisk-tree-0.5.0.tgz", + "integrity": "sha512-Uw9Y3vdtKdvAPDwVJ2i6Jq2XjHQURyPRyJVi7ZY+1NyFVtGKBEPQ5BW7zxCfS9XerxzTvLNdJYDTk5i5e0Mtkg==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-utils": "^0.4.0-beta.0" + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-utils": "^0.4.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -1727,9 +1727,9 @@ } }, "node_modules/@liskhq/lisk-utils": { - "version": "0.4.0-rc.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-utils/-/lisk-utils-0.4.0-rc.0.tgz", - "integrity": "sha512-oMTRwkWWBNqZABXQTFxvo6L/vyAeYka9MlNGNZE7ObaAO8JjxHRukQDZAX36+NcrvREsp1yNQF8YW1xFs+XIvg==", + "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" }, @@ -1739,11 +1739,11 @@ } }, "node_modules/@liskhq/lisk-validator": { - "version": "0.9.0-beta.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-validator/-/lisk-validator-0.9.0-beta.0.tgz", - "integrity": "sha512-SayaJmqYJ6zpkq97MQejg3tcO+QSmN4Yj2RTvMFrbTSt6yvmfOsn/aDD1h8n5BBSdiDEYR/Og7FAHwiipxPcxA==", + "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-beta.1", + "@liskhq/lisk-cryptography": "^4.1.0", "ajv": "8.1.0", "ajv-formats": "2.1.1", "debug": "4.3.4", @@ -2431,9 +2431,9 @@ "dev": true }, "node_modules/@oclif/screen": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@oclif/screen/-/screen-3.0.7.tgz", - "integrity": "sha512-jQBPHcMh5rcIPKdqA6xlzioLOmkaVnjg2MVyjMzBKV8hDhLWNSiZqx7NAWXpP70v2LFvGdVoV8BSbK9iID3eHg==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@oclif/screen/-/screen-3.0.8.tgz", + "integrity": "sha512-yx6KAqlt3TAHBduS2fMQtJDL2ufIHnDRArrJEOoTTuizxqmjLT+psGYOHpmMl3gvQpFJ11Hs76guUUktzAF9Bg==", "engines": { "node": ">=12.0.0" } @@ -2688,9 +2688,9 @@ "dev": true }, "node_modules/@types/babel__core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", - "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "dependencies": { "@babel/parser": "^7.20.7", @@ -2701,18 +2701,18 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.6.5", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.5.tgz", - "integrity": "sha512-h9yIuWbJKdOPLJTbmSpPzkF67e659PbQDba7ifWm5BJ8xTv+sDmS7rFmywkWOvXedGTivCdeGSIIX8WLcRTz8w==", + "version": "7.6.7", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz", + "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==", "dev": true, "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.2.tgz", - "integrity": "sha512-/AVzPICMhMOMYoSx9MoKpGDKdBRsIXMNByh1PXSZoa+v6ZoLa8xxtsT/uLQ/NJm0XVAWl/BvId4MlDeXJaeIZQ==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "dependencies": { "@babel/parser": "^7.1.0", @@ -2720,24 +2720,24 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.2.tgz", - "integrity": "sha512-ojlGK1Hsfce93J0+kn3H5R73elidKUaZonirN33GSmgTUMpzI/MIFfSpF3haANe3G1bEBS9/9/QEqwTzwqFsKw==", + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz", + "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==", "dev": true, "dependencies": { "@babel/types": "^7.20.7" } }, "node_modules/@types/chai": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.7.tgz", - "integrity": "sha512-/k+vesl92vMvMygmQrFe9Aimxi6oQXFUX9mA5HanTrKUSAMoLauSi6PNFOdRw0oeqilaW600GNx2vSaT2f8aIQ==", + "version": "4.3.11", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.11.tgz", + "integrity": "sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==", "dev": true }, "node_modules/@types/cli-progress": { - "version": "3.11.3", - "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.3.tgz", - "integrity": "sha512-/+C9xAdVtc+g5yHHkGBThgAA8rYpi5B+2ve3wLtybYj0JHEBs57ivR4x/zGfSsplRnV+psE91Nfin1soNKqz5Q==", + "version": "3.11.5", + "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.5.tgz", + "integrity": "sha512-D4PbNRbviKyppS5ivBGyFO29POlySLmA2HyUFE4p5QGazAMM3CwkKWcvTl8gvElSuxRh6FPKL8XmidX873ou4g==", "dev": true, "dependencies": { "@types/node": "*" @@ -2768,33 +2768,33 @@ } }, "node_modules/@types/graceful-fs": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.7.tgz", - "integrity": "sha512-MhzcwU8aUygZroVwL2jeYk6JisJrPl/oov/gsgGCue9mkgl9wjGbzReYQClxiUgFDnib9FuHqTndccKeZKxTRw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", "dev": true }, "node_modules/@types/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-gPQuzaPR5h/djlAv2apEG1HVOyj1IUs7GpfMZixU0/0KXT3pm64ylHuMUI1/Akh+sq/iikxg6Z2j+fcMDXaaTQ==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, "dependencies": { "@types/istanbul-lib-coverage": "*" } }, "node_modules/@types/istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-kv43F9eb3Lhj+lr/Hn6OcLCs/sSM8bt+fIaP11rCYngfV6NVjzWXJ17owQtDQTL9tQ8WSLUrGsSJ6rJz0F1w1A==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, "dependencies": { "@types/istanbul-lib-report": "*" @@ -2820,9 +2820,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", - "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, "node_modules/@types/json5": { @@ -2832,15 +2832,16 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.14.199", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.199.tgz", - "integrity": "sha512-Vrjz5N5Ia4SEzWWgIVwnHNEnb1UE1XMkvY5DGXrAeOGE9imk0hgTHh5GyDjLDJi9OTCn9oo9dXH1uToK1VRfrg==", + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", "dev": true }, "node_modules/@types/md5": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/@types/md5/-/md5-2.3.4.tgz", - "integrity": "sha512-e/L4hvpCK8GavKXmP02QlNilZOj8lpmZGGA9QGMMPZjCUoKgi1B4BvhXcbruIi6r+PqzpcjLfda/tocpHFKqDA==" + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@types/md5/-/md5-2.3.5.tgz", + "integrity": "sha512-/i42wjYNgE6wf0j2bcTX6kuowmdL/6PE4IVitMpm2eYKBUuYCprdcWVK+xEF0gcV6ufMCRhtxmReGfc6hIK7Jw==", + "dev": true }, "node_modules/@types/minimatch": { "version": "5.1.2", @@ -2854,40 +2855,40 @@ "integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==" }, "node_modules/@types/normalize-package-data": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.2.tgz", - "integrity": "sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==" + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz", + "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==" }, "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", + "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==" }, "node_modules/@types/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", "dev": true }, "node_modules/@types/sinon": { - "version": "10.0.19", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.19.tgz", - "integrity": "sha512-MWZNGPSchIdDfb5FL+VFi4zHsHbNOTQEgjqFQk7HazXSXwUU9PAX3z9XBqb3AJGYr9YwrtCtaSMsT3brYsN/jQ==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-17.0.2.tgz", + "integrity": "sha512-Zt6heIGsdqERkxctIpvN5Pv3edgBrhoeb3yHyxffd4InN0AX2SVNKSrhdDZKGQICVOxWP/q4DyhpfPNMSrpIiA==", "dev": true, "dependencies": { "@types/sinonjs__fake-timers": "*" } }, "node_modules/@types/sinonjs__fake-timers": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.3.tgz", - "integrity": "sha512-4g+2YyWe0Ve+LBh+WUm1697PD0Kdi6coG1eU0YjQbwx61AZ8XbEpL1zIT6WjuUKrCMCROpEaYQPDjBnDouBVAQ==", + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.5.tgz", + "integrity": "sha512-mQkU2jY8jJEF7YHjHvsQO8+3ughTL1mcnn96igfhONmR+fUPSKIkefQYpSe8bsly2Ep7oQbn/6VG5/9/0qcArQ==", "dev": true }, "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, "node_modules/@types/tar": { @@ -2901,27 +2902,27 @@ } }, "node_modules/@types/vinyl": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.8.tgz", - "integrity": "sha512-bls3EAsYVnVoPKoqgFC4Rtq7Kzte4MCk8xMA9UEPPVncJFsov9FJWYj0uxqJRwNEi9b4i4zX13FydaDrhadmHg==", + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.11.tgz", + "integrity": "sha512-vPXzCLmRp74e9LsP8oltnWKTH+jBwt86WgRUb4Pc9Lf3pkMVGyvIo2gm9bODeGfCay2DBB/hAWDuvf07JcK4rw==", "dependencies": { "@types/expect": "^1.20.4", "@types/node": "*" } }, "node_modules/@types/yargs": { - "version": "17.0.28", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.28.tgz", - "integrity": "sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==", + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@types/yargs-parser": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.1.tgz", - "integrity": "sha512-axdPBuLuEJt0c4yI5OZssC19K2Mq1uKdrfZBzuxLvaztgqUtFYZUNw7lETExPYJR9jdEoIg4mb7RQKRQzOkeGQ==", + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -3300,9 +3301,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -3321,9 +3322,9 @@ } }, "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", + "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", "dev": true, "engines": { "node": ">=0.4.0" @@ -3619,9 +3620,9 @@ } }, "node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" }, "node_modules/async-limiter": { "version": "1.0.1", @@ -3654,9 +3655,9 @@ } }, "node_modules/aws-sdk": { - "version": "2.1472.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1472.0.tgz", - "integrity": "sha512-U7kAHRbvTy753IXKV8Oom/AqlqnsbXG+Kw5gRbKi6VcsZ3hR/EpNMzdRXTWO5U415bnLWGo8WAqIz67PIaaKsw==", + "version": "2.1516.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1516.0.tgz", + "integrity": "sha512-RgTRRQR77NDYjnpCwA8/fv9bKTrbcugP6PaLduYtlMZa78fws/vROTe6bL6K+BRZ/lrWz6kW6xJJdN9KkkrOMw==", "dev": true, "dependencies": { "buffer": "4.9.2", @@ -3912,9 +3913,9 @@ } }, "node_modules/binaryextensions": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/binaryextensions/-/binaryextensions-4.18.0.tgz", - "integrity": "sha512-PQu3Kyv9dM4FnwB7XGj1+HucW+ShvJzJqjuw1JkKVs1mWdwOKVcRjOi+pV9X52A0tNvrPCsPkbFFQb+wE1EAXw==", + "version": "4.19.0", + "resolved": "https://registry.npmjs.org/binaryextensions/-/binaryextensions-4.19.0.tgz", + "integrity": "sha512-DRxnVbOi/1OgA5pA9EDiRT8gvVYeqfuN7TmPfLyt6cyho3KbHCi3EtDQf39TTmGDrR5dZ9CspdXhPkL/j/WGbg==", "engines": { "node": ">=0.8" }, @@ -4033,9 +4034,9 @@ } }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", "dev": true, "funding": [ { @@ -4052,9 +4053,9 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", "update-browserslist-db": "^1.0.13" }, "bin": { @@ -4224,12 +4225,13 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4253,9 +4255,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001547", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001547.tgz", - "integrity": "sha512-W7CrtIModMAxobGhz8iXmDfuJiiKg1WADMO/9x7/CLNin5cpSbuBjooyoIUVB5eyCc36QuTVlkVa1iB2S5+/eA==", + "version": "1.0.30001568", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001568.tgz", + "integrity": "sha512-vSUkH84HontZJ88MiNrOau1EBrCqEQYgkC5gIySiDlpsm8sGVrhU7Kx4V6h0tnqaHzIHZv08HlJIwPbL4XL9+A==", "dev": true, "funding": [ { @@ -4415,9 +4417,9 @@ } }, "node_modules/cli-spinners": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", - "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "engines": { "node": ">=6" }, @@ -4887,9 +4889,9 @@ } }, "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/dargs": { "version": "7.0.0", @@ -4994,10 +4996,9 @@ } }, "node_modules/define-data-property": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz", - "integrity": "sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==", - "dev": true, + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", "dependencies": { "get-intrinsic": "^1.2.1", "gopd": "^1.0.1", @@ -5185,9 +5186,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.549", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.549.tgz", - "integrity": "sha512-gpXfJslSi4hYDkA0mTLEpYKRv9siAgSUgZ+UWyk+J5Cttpd1ThCVwdclzIwQSclz3hYn049+M2fgrP1WpvF8xg==", + "version": "1.4.610", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.610.tgz", + "integrity": "sha512-mqi2oL1mfeHYtOdCxbPQYV/PL7YrQlxbvFEZ0Ee8GbDdShimqt2/S6z2RWqysuvlwdOrQdqvE0KZrBTipAeJzg==", "dev": true }, "node_modules/elegant-spinner": { @@ -5293,26 +5294,26 @@ } }, "node_modules/es-abstract": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.2.tgz", - "integrity": "sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==", + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", "dev": true, "dependencies": { "array-buffer-byte-length": "^1.0.0", "arraybuffer.prototype.slice": "^1.0.2", "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", + "call-bind": "^1.0.5", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.1", + "get-intrinsic": "^1.2.2", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", - "has": "^1.0.3", "has-property-descriptors": "^1.0.0", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", + "hasown": "^2.0.0", "internal-slot": "^1.0.5", "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", @@ -5322,7 +5323,7 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.12", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", + "object-inspect": "^1.13.1", "object-keys": "^1.1.1", "object.assign": "^4.1.4", "regexp.prototype.flags": "^1.5.1", @@ -5336,7 +5337,7 @@ "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.11" + "which-typed-array": "^1.1.13" }, "engines": { "node": ">= 0.4" @@ -5346,26 +5347,26 @@ } }, "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" } }, "node_modules/es-to-primitive": { @@ -6636,9 +6637,9 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -6898,9 +6899,9 @@ } }, "node_modules/flat-cache": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", - "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { "flatted": "^3.2.9", @@ -6908,7 +6909,7 @@ "rimraf": "^3.0.2" }, "engines": { - "node": ">=12.0.0" + "node": "^10.12.0 || >=12.0.0" } }, "node_modules/flatted": { @@ -7024,9 +7025,12 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/function.prototype.name": { "version": "1.1.6", @@ -7099,14 +7103,14 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7214,9 +7218,9 @@ } }, "node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -7278,7 +7282,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -7309,6 +7312,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", + "dev": true, "engines": { "node": ">= 0.4.0" } @@ -7350,12 +7354,11 @@ } }, "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", "dependencies": { - "get-intrinsic": "^1.1.1" + "get-intrinsic": "^1.2.2" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7421,6 +7424,17 @@ "resolved": "https://registry.npmjs.org/hash-wasm/-/hash-wasm-4.9.0.tgz", "integrity": "sha512-7SW7ejyfnRxuOc7ptQHSf4LDoZaWOivfzqw+5rpcQku0nHfmicPKE51ra9BiRLAmT8+gGLestr1XroUkqdjL6w==" }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/history": { "version": "4.10.1", "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", @@ -7640,9 +7654,9 @@ ] }, "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "engines": { "node": ">= 4" } @@ -7758,13 +7772,13 @@ } }, "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", "dev": true, "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", "side-channel": "^1.0.4" }, "engines": { @@ -7873,11 +7887,11 @@ } }, "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -8250,9 +8264,9 @@ } }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, "engines": { "node": ">=8" @@ -9327,20 +9341,20 @@ } }, "node_modules/lisk-commander": { - "version": "6.1.0-beta.1", - "resolved": "https://registry.npmjs.org/lisk-commander/-/lisk-commander-6.1.0-beta.1.tgz", - "integrity": "sha512-/lQgNozStym3F7cvYNOxa+bJqDIOytYX3bmgv3tE5gaQZVZJEzS2sjVC2NdZew6AKhz3+pAAXdqOiF1chmaqnA==", - "dependencies": { - "@liskhq/lisk-api-client": "^6.1.0-beta.1", - "@liskhq/lisk-chain": "^0.6.0-beta.0", - "@liskhq/lisk-client": "^6.1.0-beta.1", - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/lisk-commander/-/lisk-commander-6.1.0.tgz", + "integrity": "sha512-2lMb+ksWOUCBYioY/1T6NiawVoL+2s2bKHPGbb9IMN84JWYmwnEaUMMCvyAYd/eqCVYsbqkBJ28X9wXyJyFskA==", + "dependencies": { + "@liskhq/lisk-api-client": "^6.1.0", + "@liskhq/lisk-chain": "^0.6.0", + "@liskhq/lisk-client": "^6.1.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", "@liskhq/lisk-db": "0.3.7", - "@liskhq/lisk-passphrase": "^4.1.0-beta.0", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "@liskhq/lisk-passphrase": "^4.1.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", "@oclif/core": "1.20.4", "@oclif/plugin-autocomplete": "1.3.6", "@oclif/plugin-help": "5.1.19", @@ -9351,7 +9365,7 @@ "cli-table3": "0.6.0", "fs-extra": "11.1.0", "inquirer": "8.2.5", - "lisk-framework": "^0.12.0-beta.0", + "lisk-framework": "^0.12.0", "listr": "0.14.3", "progress": "2.0.3", "semver": "7.5.2", @@ -9439,22 +9453,22 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/lisk-framework": { - "version": "0.12.0-beta.0", - "resolved": "https://registry.npmjs.org/lisk-framework/-/lisk-framework-0.12.0-beta.0.tgz", - "integrity": "sha512-SKk+oPOwHKkjkzEWxpgW8SbO33aLDXToaQA2ddSp5uy0fCQkLaw/qyhqHUhOTgMGlBmUmqLX1a5NIE8gQw2/JQ==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/lisk-framework/-/lisk-framework-0.12.0.tgz", + "integrity": "sha512-PJn+fBMkhq7pGkdRQtlTgLL+j4qsjWokOOGDraSE4T4PT84jmdNi+xPz+CKO6uw3eFBid8DhElROYiKHhQy6WA==", "dependencies": { "@chainsafe/blst": "0.2.9", - "@liskhq/lisk-api-client": "^6.1.0-beta.1", - "@liskhq/lisk-chain": "^0.6.0-beta.0", - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", + "@liskhq/lisk-api-client": "^6.1.0", + "@liskhq/lisk-chain": "^0.6.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", "@liskhq/lisk-db": "0.3.7", - "@liskhq/lisk-p2p": "^0.10.0-beta.0", - "@liskhq/lisk-transaction-pool": "^0.8.0-beta.0", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-tree": "^0.5.0-beta.0", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", + "@liskhq/lisk-p2p": "^0.10.0", + "@liskhq/lisk-transaction-pool": "^0.8.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-tree": "^0.5.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", "bunyan": "1.8.15", "debug": "4.3.4", "eventemitter2": "6.4.9", @@ -9471,23 +9485,23 @@ } }, "node_modules/lisk-sdk": { - "version": "6.1.0-beta.1", - "resolved": "https://registry.npmjs.org/lisk-sdk/-/lisk-sdk-6.1.0-beta.1.tgz", - "integrity": "sha512-R1dHZU03prX0uV8FZpiWCqj2+JTLPdPUjY8t5keRGOsa4OrShucXUrJL2x85lYQUcQBV9vq152XRDNAr1bCmDg==", - "dependencies": { - "@liskhq/lisk-api-client": "^6.1.0-beta.1", - "@liskhq/lisk-chain": "^0.6.0-beta.0", - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/lisk-sdk/-/lisk-sdk-6.1.0.tgz", + "integrity": "sha512-wMteV+VdOCVeZpzdAg7OozLWV6F5F+s9ARKwvghjgV83DSjm3LMylw22bnLbJFm9PRoT421Fe8yoTYGvxd3POg==", + "dependencies": { + "@liskhq/lisk-api-client": "^6.1.0", + "@liskhq/lisk-chain": "^0.6.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", "@liskhq/lisk-db": "0.3.7", - "@liskhq/lisk-p2p": "^0.10.0-beta.0", - "@liskhq/lisk-passphrase": "^4.1.0-beta.0", - "@liskhq/lisk-transaction-pool": "^0.8.0-beta.0", - "@liskhq/lisk-transactions": "^6.1.0-beta.1", - "@liskhq/lisk-tree": "^0.5.0-beta.0", - "@liskhq/lisk-utils": "^0.4.0-beta.0", - "@liskhq/lisk-validator": "^0.9.0-beta.0", - "lisk-framework": "^0.12.0-beta.0" + "@liskhq/lisk-p2p": "^0.10.0", + "@liskhq/lisk-passphrase": "^4.1.0", + "@liskhq/lisk-transaction-pool": "^0.8.0", + "@liskhq/lisk-transactions": "^6.1.0", + "@liskhq/lisk-tree": "^0.5.0", + "@liskhq/lisk-utils": "^0.4.0", + "@liskhq/lisk-validator": "^0.9.0", + "lisk-framework": "^0.12.0" }, "engines": { "node": ">=18.12.0 <=18", @@ -10860,14 +10874,13 @@ "dev": true }, "node_modules/nock": { - "version": "13.3.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.4.tgz", - "integrity": "sha512-DDpmn5oLEdCTclEqweOT4U7bEpuoifBMFUXem9sA4turDAZ5tlbrEoWqCorwXey8CaAw44mst5JOQeVNiwtkhw==", + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.4.0.tgz", + "integrity": "sha512-W8NVHjO/LCTNA64yxAPHV/K47LpGYcVzgKd3Q0n6owhwvD0Dgoterc25R4rnZbckJEb6Loxz1f5QMuJpJnbSyQ==", "dev": true, "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -10917,9 +10930,9 @@ } }, "node_modules/node-gyp-build": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz", - "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==", + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.7.1.tgz", + "integrity": "sha512-wTSrZ+8lsRRa3I3H8Xr65dLWSgCvY2l4AOnaeKdPA9TB/WYMPaTcrzf3rXvFoVvjKNVnu0CcWSx54qq9GKRUYg==", "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -10977,9 +10990,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", "dev": true }, "node_modules/nopt": { @@ -11371,9 +11384,9 @@ } }, "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11396,13 +11409,13 @@ } }, "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", "has-symbols": "^1.0.3", "object-keys": "^1.1.1" }, @@ -12177,9 +12190,9 @@ } }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "engines": { "node": ">=6" } @@ -13305,6 +13318,20 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/set-function-name": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", @@ -14497,14 +14524,14 @@ } }, "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==" }, "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { "node": ">= 10.0.0" } @@ -14627,9 +14654,9 @@ "dev": true }, "node_modules/v8-to-istanbul": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", - "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", @@ -14797,13 +14824,13 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", "dev": true, "dependencies": { "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", + "call-bind": "^1.0.4", "for-each": "^0.3.3", "gopd": "^1.0.1", "has-tostringtag": "^1.0.0" diff --git a/package.json b/package.json index 0e20828..37a054d 100644 --- a/package.json +++ b/package.json @@ -101,27 +101,28 @@ "/docs" ], "husky": { - "hooks": {} + "hooks": { + "pre-commit": "lint-staged" + } }, "dependencies": { - "@liskhq/lisk-codec": "^0.5.0-beta.0", - "@liskhq/lisk-cryptography": "^4.1.0-beta.1", - "@liskhq/lisk-framework-chain-connector-plugin": "0.2.0-beta.1", - "@liskhq/lisk-framework-dashboard-plugin": "0.4.0-beta.0", - "@liskhq/lisk-framework-faucet-plugin": "0.4.0-beta.0", - "@liskhq/lisk-framework-forger-plugin": "0.5.0-beta.0", - "@liskhq/lisk-framework-monitor-plugin": "0.5.0-beta.0", - "@liskhq/lisk-framework-report-misbehavior-plugin": "0.5.0-beta.0", + "@liskhq/lisk-codec": "^0.5.0", + "@liskhq/lisk-cryptography": "^4.1.0", + "@liskhq/lisk-framework-chain-connector-plugin": "0.2.0", + "@liskhq/lisk-framework-dashboard-plugin": "0.4.0", + "@liskhq/lisk-framework-faucet-plugin": "0.4.0", + "@liskhq/lisk-framework-forger-plugin": "0.5.0", + "@liskhq/lisk-framework-monitor-plugin": "0.5.0", + "@liskhq/lisk-framework-report-misbehavior-plugin": "0.5.0", "@oclif/core": "1.20.4", "@oclif/plugin-autocomplete": "1.3.6", "@oclif/plugin-help": "5.1.19", "@oclif/plugin-version": "1.1.3", - "@types/md5": "^2.3.4", "axios": "0.21.2", "fs-extra": "11.1.0", "inquirer": "8.2.5", - "lisk-commander": "6.1.0-beta.1", - "lisk-sdk": "6.1.0-beta.1", + "lisk-commander": "6.1.0", + "lisk-sdk": "6.1.0", "md5": "^2.3.0", "tar": "6.1.11", "tslib": "2.4.1" @@ -131,6 +132,7 @@ "@types/fs-extra": "9.0.13", "@types/jest": "29.2.3", "@types/jest-when": "3.5.2", + "@types/md5": "^2.3.5", "@types/node": "18.15.3", "@types/tar": "6.1.3", "@typescript-eslint/eslint-plugin": "5.44.0", diff --git a/src/commands/genesis-block/create.ts b/src/commands/genesis-block/create.ts index 7201abf..ad2d13f 100644 --- a/src/commands/genesis-block/create.ts +++ b/src/commands/genesis-block/create.ts @@ -4,12 +4,12 @@ import { join } from 'path'; import { getApplication } from '../../app/app'; export class GenesisBlockCommand extends BaseGenesisBlockCommand { - public getApplication(config: PartialApplicationConfig): Application { - const app = getApplication(config); - return app; - } + public getApplication(config: PartialApplicationConfig): Application { + const app = getApplication(config); + return app; + } - public getApplicationConfigDir(): string { - return join(__dirname, '../../../config'); - } + public getApplicationConfigDir(): string { + return join(__dirname, '../../../config'); + } } diff --git a/src/commands/start.ts b/src/commands/start.ts index 74d96f6..ff6e62b 100644 --- a/src/commands/start.ts +++ b/src/commands/start.ts @@ -17,131 +17,131 @@ import { join } from 'path'; import { getApplication } from '../app/app'; interface Flags { - [key: string]: string | number | boolean | undefined; + [key: string]: string | number | boolean | undefined; } const setPluginConfig = (config: ApplicationConfig, flags: Flags): void => { - if (flags['monitor-plugin-port'] !== undefined) { - config.plugins[MonitorPlugin.name] = config.plugins[MonitorPlugin.name] ?? {}; - config.plugins[MonitorPlugin.name].port = flags['monitor-plugin-port']; - } - if ( - flags['monitor-plugin-whitelist'] !== undefined && - typeof flags['monitor-plugin-whitelist'] === 'string' - ) { - config.plugins[MonitorPlugin.name] = config.plugins[MonitorPlugin.name] ?? {}; - config.plugins[MonitorPlugin.name].whiteList = flags['monitor-plugin-whitelist'] - .split(',') - .filter(Boolean); - } - if (flags['faucet-plugin-port'] !== undefined) { - config.plugins[FaucetPlugin.name] = config.plugins[FaucetPlugin.name] ?? {}; - config.plugins[FaucetPlugin.name].port = flags['faucet-plugin-port']; - } - if (flags['dashboard-plugin-port'] !== undefined) { - config.plugins[DashboardPlugin.name] = config.plugins[DashboardPlugin.name] ?? {}; - config.plugins[DashboardPlugin.name].port = flags['dashboard-plugin-port']; - } + if (flags['monitor-plugin-port'] !== undefined) { + config.plugins[MonitorPlugin.name] = config.plugins[MonitorPlugin.name] ?? {}; + config.plugins[MonitorPlugin.name].port = flags['monitor-plugin-port']; + } + if ( + flags['monitor-plugin-whitelist'] !== undefined && + typeof flags['monitor-plugin-whitelist'] === 'string' + ) { + config.plugins[MonitorPlugin.name] = config.plugins[MonitorPlugin.name] ?? {}; + config.plugins[MonitorPlugin.name].whiteList = flags['monitor-plugin-whitelist'] + .split(',') + .filter(Boolean); + } + if (flags['faucet-plugin-port'] !== undefined) { + config.plugins[FaucetPlugin.name] = config.plugins[FaucetPlugin.name] ?? {}; + config.plugins[FaucetPlugin.name].port = flags['faucet-plugin-port']; + } + if (flags['dashboard-plugin-port'] !== undefined) { + config.plugins[DashboardPlugin.name] = config.plugins[DashboardPlugin.name] ?? {}; + config.plugins[DashboardPlugin.name].port = flags['dashboard-plugin-port']; + } }; // eslint-disable-next-line @typescript-eslint/no-explicit-any type StartFlags = typeof BaseStartCommand.flags & FlagInput; export class StartCommand extends BaseStartCommand { - static flags: StartFlags = { - ...BaseStartCommand.flags, - 'enable-forger-plugin': flagParser.boolean({ - description: - 'Enable Forger Plugin. Environment variable "LISK_ENABLE_FORGER_PLUGIN" can also be used.', - env: 'LISK_ENABLE_FORGER_PLUGIN', - default: false, - }), - 'enable-monitor-plugin': flagParser.boolean({ - description: - 'Enable Monitor Plugin. Environment variable "LISK_ENABLE_MONITOR_PLUGIN" can also be used.', - env: 'LISK_ENABLE_MONITOR_PLUGIN', - default: false, - }), - 'monitor-plugin-port': flagParser.integer({ - description: - 'Port to be used for Monitor Plugin. Environment variable "LISK_MONITOR_PLUGIN_PORT" can also be used.', - env: 'LISK_MONITOR_PLUGIN_PORT', - dependsOn: ['enable-monitor-plugin'], - }), - 'monitor-plugin-whitelist': flagParser.string({ - description: - 'List of IPs in comma separated value to allow the connection. Environment variable "LISK_MONITOR_PLUGIN_WHITELIST" can also be used.', - env: 'LISK_MONITOR_PLUGIN_WHITELIST', - dependsOn: ['enable-monitor-plugin'], - }), - 'enable-report-misbehavior-plugin': flagParser.boolean({ - description: - 'Enable ReportMisbehavior Plugin. Environment variable "LISK_ENABLE_REPORT_MISBEHAVIOR_PLUGIN" can also be used.', - env: 'LISK_ENABLE_MISBEHAVIOR_PLUGIN', - default: false, - }), - 'enable-faucet-plugin': flagParser.boolean({ - description: - 'Enable Faucet Plugin. Environment variable "LISK_ENABLE_FAUCET_PLUGIN" can also be used.', - env: 'LISK_ENABLE_FAUCET_PLUGIN', - default: false, - }), - 'faucet-plugin-port': flagParser.integer({ - description: - 'Port to be used for Faucet Plugin. Environment variable "LISK_FAUCET_PLUGIN_PORT" can also be used.', - env: 'LISK_FAUCET_PLUGIN_PORT', - dependsOn: ['enable-faucet-plugin'], - }), - 'enable-dashboard-plugin': flagParser.boolean({ - description: - 'Enable Dashboard Plugin. Environment variable "LISK_ENABLE_DASHBOARD_PLUGIN" can also be used.', - env: 'LISK_ENABLE_DASHBOARD_PLUGIN', - default: false, - }), - 'dashboard-plugin-port': flagParser.integer({ - description: - 'Port to be used for Dashboard Plugin. Environment variable "LISK_DASHBOARD_PLUGIN_PORT" can also be used.', - env: 'LISK_DASHBOARD_PLUGIN_PORT', - dependsOn: ['enable-dashboard-plugin'], - }), - 'enable-chain-connector-plugin': flagParser.boolean({ - description: - 'Enable ChainConnector Plugin. Environment variable "LISK_ENABLE_CHAIN_CONNECTOR_PLUGIN" can also be used.', - env: 'LISK_ENABLE_CONNECTOR_PLUGIN', - default: false, - }), - }; + static flags: StartFlags = { + ...BaseStartCommand.flags, + 'enable-forger-plugin': flagParser.boolean({ + description: + 'Enable Forger Plugin. Environment variable "LISK_ENABLE_FORGER_PLUGIN" can also be used.', + env: 'LISK_ENABLE_FORGER_PLUGIN', + default: false, + }), + 'enable-monitor-plugin': flagParser.boolean({ + description: + 'Enable Monitor Plugin. Environment variable "LISK_ENABLE_MONITOR_PLUGIN" can also be used.', + env: 'LISK_ENABLE_MONITOR_PLUGIN', + default: false, + }), + 'monitor-plugin-port': flagParser.integer({ + description: + 'Port to be used for Monitor Plugin. Environment variable "LISK_MONITOR_PLUGIN_PORT" can also be used.', + env: 'LISK_MONITOR_PLUGIN_PORT', + dependsOn: ['enable-monitor-plugin'], + }), + 'monitor-plugin-whitelist': flagParser.string({ + description: + 'List of IPs in comma separated value to allow the connection. Environment variable "LISK_MONITOR_PLUGIN_WHITELIST" can also be used.', + env: 'LISK_MONITOR_PLUGIN_WHITELIST', + dependsOn: ['enable-monitor-plugin'], + }), + 'enable-report-misbehavior-plugin': flagParser.boolean({ + description: + 'Enable ReportMisbehavior Plugin. Environment variable "LISK_ENABLE_REPORT_MISBEHAVIOR_PLUGIN" can also be used.', + env: 'LISK_ENABLE_MISBEHAVIOR_PLUGIN', + default: false, + }), + 'enable-faucet-plugin': flagParser.boolean({ + description: + 'Enable Faucet Plugin. Environment variable "LISK_ENABLE_FAUCET_PLUGIN" can also be used.', + env: 'LISK_ENABLE_FAUCET_PLUGIN', + default: false, + }), + 'faucet-plugin-port': flagParser.integer({ + description: + 'Port to be used for Faucet Plugin. Environment variable "LISK_FAUCET_PLUGIN_PORT" can also be used.', + env: 'LISK_FAUCET_PLUGIN_PORT', + dependsOn: ['enable-faucet-plugin'], + }), + 'enable-dashboard-plugin': flagParser.boolean({ + description: + 'Enable Dashboard Plugin. Environment variable "LISK_ENABLE_DASHBOARD_PLUGIN" can also be used.', + env: 'LISK_ENABLE_DASHBOARD_PLUGIN', + default: false, + }), + 'dashboard-plugin-port': flagParser.integer({ + description: + 'Port to be used for Dashboard Plugin. Environment variable "LISK_DASHBOARD_PLUGIN_PORT" can also be used.', + env: 'LISK_DASHBOARD_PLUGIN_PORT', + dependsOn: ['enable-dashboard-plugin'], + }), + 'enable-chain-connector-plugin': flagParser.boolean({ + description: + 'Enable ChainConnector Plugin. Environment variable "LISK_ENABLE_CHAIN_CONNECTOR_PLUGIN" can also be used.', + env: 'LISK_ENABLE_CONNECTOR_PLUGIN', + default: false, + }), + }; - public async getApplication(config: PartialApplicationConfig): Promise { - /* eslint-disable @typescript-eslint/no-unsafe-call */ - const { flags } = await this.parse(StartCommand); - // Set Plugins Config - setPluginConfig(config as ApplicationConfig, flags); - const app = getApplication(config); + public async getApplication(config: PartialApplicationConfig): Promise { + /* eslint-disable @typescript-eslint/no-unsafe-call */ + const { flags } = await this.parse(StartCommand); + // Set Plugins Config + setPluginConfig(config as ApplicationConfig, flags); + const app = getApplication(config); - if (flags['enable-forger-plugin']) { - app.registerPlugin(new ForgerPlugin(), { loadAsChildProcess: true }); - } - if (flags['enable-monitor-plugin']) { - app.registerPlugin(new MonitorPlugin(), { loadAsChildProcess: true }); - } - if (flags['enable-report-misbehavior-plugin']) { - app.registerPlugin(new ReportMisbehaviorPlugin(), { loadAsChildProcess: true }); - } - if (flags['enable-faucet-plugin']) { - app.registerPlugin(new FaucetPlugin(), { loadAsChildProcess: true }); - } - if (flags['enable-dashboard-plugin']) { - app.registerPlugin(new DashboardPlugin(), { loadAsChildProcess: true }); - } - if (flags['enable-chain-connector-plugin']) { - app.registerPlugin(new ChainConnectorPlugin(), { loadAsChildProcess: true }); - } + if (flags['enable-forger-plugin']) { + app.registerPlugin(new ForgerPlugin(), { loadAsChildProcess: true }); + } + if (flags['enable-monitor-plugin']) { + app.registerPlugin(new MonitorPlugin(), { loadAsChildProcess: true }); + } + if (flags['enable-report-misbehavior-plugin']) { + app.registerPlugin(new ReportMisbehaviorPlugin(), { loadAsChildProcess: true }); + } + if (flags['enable-faucet-plugin']) { + app.registerPlugin(new FaucetPlugin(), { loadAsChildProcess: true }); + } + if (flags['enable-dashboard-plugin']) { + app.registerPlugin(new DashboardPlugin(), { loadAsChildProcess: true }); + } + if (flags['enable-chain-connector-plugin']) { + app.registerPlugin(new ChainConnectorPlugin(), { loadAsChildProcess: true }); + } - return app; - } + return app; + } - public getApplicationConfigDir(): string { - return join(__dirname, '../../config'); - } + public getApplicationConfigDir(): string { + return join(__dirname, '../../config'); + } } diff --git a/src/commands/transaction/create.ts b/src/commands/transaction/create.ts index ea99553..2ef3908 100644 --- a/src/commands/transaction/create.ts +++ b/src/commands/transaction/create.ts @@ -1,5 +1,6 @@ /* eslint-disable class-methods-use-this */ /* eslint-disable @typescript-eslint/explicit-member-accessibility */ +/* eslint-disable @typescript-eslint/member-ordering */ import { TransactionCreateCommand } from 'lisk-commander'; import { Application, PartialApplicationConfig } from 'lisk-sdk'; import { getApplication } from '../../app/app'; @@ -9,14 +10,14 @@ type CreateFlags = typeof TransactionCreateCommand.flags & { }; export class CreateCommand extends TransactionCreateCommand { - public getApplication(config: PartialApplicationConfig): Application { - const app = getApplication(config); - return app; - } + static flags: CreateFlags = { + ...TransactionCreateCommand.flags, + }; - static flags: CreateFlags = { - ...TransactionCreateCommand.flags, - }; + static args = [...TransactionCreateCommand.args]; - static args = [...TransactionCreateCommand.args]; + public getApplication(config: PartialApplicationConfig): Application { + const app = getApplication(config); + return app; + } } diff --git a/src/commands/transaction/sign.ts b/src/commands/transaction/sign.ts index dbea047..9d0e1b2 100644 --- a/src/commands/transaction/sign.ts +++ b/src/commands/transaction/sign.ts @@ -1,19 +1,21 @@ /* eslint-disable class-methods-use-this */ /* eslint-disable @typescript-eslint/explicit-member-accessibility */ +/* eslint-disable @typescript-eslint/member-ordering */ import { TransactionSignCommand } from 'lisk-commander'; import { Application, PartialApplicationConfig } from 'lisk-sdk'; import { getApplication } from '../../app/app'; type SignFlags = typeof TransactionSignCommand.flags & { [key: string]: Record }; -export class SignCommand extends TransactionSignCommand { - public getApplication(config: PartialApplicationConfig): Application { - const app = getApplication(config); - return app; - } +export class SignCommand extends TransactionSignCommand { + static flags: SignFlags = { + ...TransactionSignCommand.flags, + }; - static flags: SignFlags = { - ...TransactionSignCommand.flags, - }; - static args = [...TransactionSignCommand.args]; + static args = [...TransactionSignCommand.args]; + + public getApplication(config: PartialApplicationConfig): Application { + const app = getApplication(config); + return app; + } } diff --git a/test/.eslintrc.js b/test/.eslintrc.js index 3255140..f93c446 100644 --- a/test/.eslintrc.js +++ b/test/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { - extends: ['lisk-base/ts-jest'], - parserOptions: { - project: './tsconfig.json', - tsconfigRootDir: __dirname, - }, + extends: ['lisk-base/ts-jest'], + parserOptions: { + project: './tsconfig.json', + tsconfigRootDir: __dirname, + }, }; diff --git a/test/unit/modules/.gitkeep b/test/unit/modules/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/test/unit/modules/anchor/commands/__snapshots__/create_command.spec.ts.snap b/test/unit/modules/anchor/commands/__snapshots__/create_command.spec.ts.snap deleted file mode 100644 index fe5a96c..0000000 --- a/test/unit/modules/anchor/commands/__snapshots__/create_command.spec.ts.snap +++ /dev/null @@ -1,66 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`CreateCommand constructor should have valid schema 1`] = ` -{ - "$id": "anchor/create", - "properties": { - "album": { - "dataType": "string", - "fieldNumber": 4, - }, - "appleMusicId": { - "dataType": "string", - "fieldNumber": 2, - }, - "artists": { - "dataType": "string", - "fieldNumber": 5, - }, - "images": { - "fieldNumber": 6, - "items": { - "$id": "anchor/create/images", - "properties": { - "height": { - "dataType": "uint32", - "fieldNumber": 2, - }, - "url": { - "dataType": "string", - "fieldNumber": 1, - }, - "width": { - "dataType": "uint32", - "fieldNumber": 3, - }, - }, - "required": [ - "url", - "height", - "width", - ], - "type": "object", - }, - "type": "array", - }, - "name": { - "dataType": "string", - "fieldNumber": 3, - }, - "spotifyId": { - "dataType": "string", - "fieldNumber": 1, - }, - }, - "required": [ - "spotifyId", - "appleMusicId", - "name", - "album", - "artists", - "images", - ], - "title": "CreateAsset transaction asset for anchor module", - "type": "object", -} -`; diff --git a/test/unit/modules/anchor/commands/__snapshots__/vote_command.spec.ts.snap b/test/unit/modules/anchor/commands/__snapshots__/vote_command.spec.ts.snap deleted file mode 100644 index 47bf224..0000000 --- a/test/unit/modules/anchor/commands/__snapshots__/vote_command.spec.ts.snap +++ /dev/null @@ -1,18 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`VoteCommand constructor should have valid schema 1`] = ` -{ - "$id": "anchor/vote", - "properties": { - "anchorID": { - "dataType": "bytes", - "fieldNumber": 1, - }, - }, - "required": [ - "anchorID", - ], - "title": "VoteAsset transaction asset for anchor module", - "type": "object", -} -`; diff --git a/test/unit/modules/anchor/commands/create_command.spec.ts b/test/unit/modules/anchor/commands/create_command.spec.ts index ed284d7..c447592 100644 --- a/test/unit/modules/anchor/commands/create_command.spec.ts +++ b/test/unit/modules/anchor/commands/create_command.spec.ts @@ -2,37 +2,37 @@ import { CreateCommand } from '../../../../../src/app/modules/anchor/commands/cr import { AnchorModule } from '../../../../../src/app/modules/anchor/module'; describe('CreateCommand', () => { - let command: CreateCommand; - const module = new AnchorModule(); + let command: CreateCommand; + const module = new AnchorModule(); - beforeEach(() => { - command = new CreateCommand(module.stores, module.events); - }); + beforeEach(() => { + command = new CreateCommand(module.stores, module.events); + }); - describe('constructor', () => { - it('should have valid name', () => { - expect(command.name).toBe('create'); - }); + describe('constructor', () => { + it('should have valid name', () => { + expect(command.name).toBe('create'); + }); - it('should have valid schema', () => { - expect(command.schema).toMatchSnapshot(); - }); - }); + it('should have valid schema', () => { + expect(command.schema).toMatchSnapshot(); + }); + }); - describe('verify', () => { - describe('schema validation', () => { - it.todo('should throw errors for invalid schema'); - it.todo('should be ok for valid schema'); - }); - }); + describe('verify', () => { + describe('schema validation', () => { + it.todo('should throw errors for invalid schema'); + it.todo('should be ok for valid schema'); + }); + }); - describe('execute', () => { - describe('valid cases', () => { - it.todo('should update the state store'); - }); + describe('execute', () => { + describe('valid cases', () => { + it.todo('should update the state store'); + }); - describe('invalid cases', () => { - it.todo('should throw error'); - }); - }); + describe('invalid cases', () => { + it.todo('should throw error'); + }); + }); }); diff --git a/test/unit/modules/anchor/commands/vote_command.spec.ts b/test/unit/modules/anchor/commands/vote_command.spec.ts index d4db326..f5298aa 100644 --- a/test/unit/modules/anchor/commands/vote_command.spec.ts +++ b/test/unit/modules/anchor/commands/vote_command.spec.ts @@ -2,37 +2,37 @@ import { VoteCommand } from '../../../../../src/app/modules/anchor/commands/vote import { AnchorModule } from '../../../../../src/app/modules/anchor/module'; describe('VoteCommand', () => { - let command: VoteCommand; - const module = new AnchorModule(); + let command: VoteCommand; + const module = new AnchorModule(); - beforeEach(() => { - command = new VoteCommand(module.stores, module.events); - }); + beforeEach(() => { + command = new VoteCommand(module.stores, module.events); + }); - describe('constructor', () => { - it('should have valid name', () => { - expect(command.name).toBe('vote'); - }); + describe('constructor', () => { + it('should have valid name', () => { + expect(command.name).toBe('vote'); + }); - it('should have valid schema', () => { - expect(command.schema).toMatchSnapshot(); - }); - }); + it('should have valid schema', () => { + expect(command.schema).toMatchSnapshot(); + }); + }); - describe('verify', () => { - describe('schema validation', () => { - it.todo('should throw errors for invalid schema'); - it.todo('should be ok for valid schema'); - }); - }); + describe('verify', () => { + describe('schema validation', () => { + it.todo('should throw errors for invalid schema'); + it.todo('should be ok for valid schema'); + }); + }); - describe('execute', () => { - describe('valid cases', () => { - it.todo('should update the state store'); - }); + describe('execute', () => { + describe('valid cases', () => { + it.todo('should update the state store'); + }); - describe('invalid cases', () => { - it.todo('should throw error'); - }); - }); + describe('invalid cases', () => { + it.todo('should throw error'); + }); + }); }); diff --git a/test/unit/modules/anchor/module.spec.ts b/test/unit/modules/anchor/module.spec.ts index 659385c..c2bb2bf 100644 --- a/test/unit/modules/anchor/module.spec.ts +++ b/test/unit/modules/anchor/module.spec.ts @@ -1,26 +1,26 @@ // import * as modules from '../../../src/app/modules/anchor' describe('AnchorModule', () => { - describe('constructor', () => { - it.todo('should have valid name'); - }); + describe('constructor', () => { + it.todo('should have valid name'); + }); - describe('beforeTransactionsExecute', () => { - it.todo('should execute before block execute'); - }); - describe('afterTransactionsExecute', () => { - it.todo('should execute after block execute'); - }); - describe('beforeCommandExecute', () => { - it.todo('should execute before transaction execute'); - }); - describe('afterCommandExecute', () => { - it.todo('should execute after transaction execute'); - }); - describe('beforeTransactionsExecute Block', () => { - it.todo('should execute after genesis execute'); - }); - describe('afterTransactionsExecute Block', () => { - it.todo('should execute after genesis execute'); - }); + describe('beforeTransactionsExecute', () => { + it.todo('should execute before block execute'); + }); + describe('afterTransactionsExecute', () => { + it.todo('should execute after block execute'); + }); + describe('beforeCommandExecute', () => { + it.todo('should execute before transaction execute'); + }); + describe('afterCommandExecute', () => { + it.todo('should execute after transaction execute'); + }); + describe('beforeTransactionsExecute Block', () => { + it.todo('should execute after genesis execute'); + }); + describe('afterTransactionsExecute Block', () => { + it.todo('should execute after genesis execute'); + }); }); diff --git a/test/unit/modules/badge/commands/__snapshots__/create_command.spec.ts.snap b/test/unit/modules/badge/commands/__snapshots__/create_command.spec.ts.snap deleted file mode 100644 index a5db8a6..0000000 --- a/test/unit/modules/badge/commands/__snapshots__/create_command.spec.ts.snap +++ /dev/null @@ -1,39 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`CreateCommand constructor should have valid schema 1`] = ` -{ - "$id": "badge/create", - "properties": { - "anchorID": { - "dataType": "bytes", - "fieldNumber": 1, - }, - "awardDate": { - "dataType": "string", - "fieldNumber": 4, - }, - "awardedTo": { - "dataType": "bytes", - "fieldNumber": 2, - "format": "lisk32", - }, - "rank": { - "dataType": "uint32", - "fieldNumber": 5, - }, - "type": { - "dataType": "string", - "fieldNumber": 3, - }, - }, - "required": [ - "anchorID", - "awardedTo", - "type", - "awardDate", - "rank", - ], - "title": "CreateAsset transaction asset for badge module", - "type": "object", -} -`; diff --git a/test/unit/modules/badge/commands/__snapshots__/destroy_command.spec.ts.snap b/test/unit/modules/badge/commands/__snapshots__/destroy_command.spec.ts.snap deleted file mode 100644 index 138706a..0000000 --- a/test/unit/modules/badge/commands/__snapshots__/destroy_command.spec.ts.snap +++ /dev/null @@ -1,18 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`DestroyCommand constructor should have valid schema 1`] = ` -{ - "$id": "badge/destroy", - "properties": { - "badgeID": { - "dataType": "bytes", - "fieldNumber": 1, - }, - }, - "required": [ - "badgeID", - ], - "title": "DestroyAsset transaction asset for badge module", - "type": "object", -} -`; diff --git a/test/unit/modules/badge/commands/__snapshots__/reclaim_command.spec.ts.snap b/test/unit/modules/badge/commands/__snapshots__/reclaim_command.spec.ts.snap deleted file mode 100644 index 40f5104..0000000 --- a/test/unit/modules/badge/commands/__snapshots__/reclaim_command.spec.ts.snap +++ /dev/null @@ -1,18 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ClaimCommand constructor should have valid schema 1`] = ` -{ - "$id": "badge/claim", - "properties": { - "badgeID": { - "dataType": "bytes", - "fieldNumber": 1, - }, - }, - "required": [ - "badgeID", - ], - "title": "ClaimAsset transaction asset for badge module", - "type": "object", -} -`; diff --git a/test/unit/modules/badge/commands/claim_command.spec.ts b/test/unit/modules/badge/commands/claim_command.spec.ts new file mode 100644 index 0000000..74a7d88 --- /dev/null +++ b/test/unit/modules/badge/commands/claim_command.spec.ts @@ -0,0 +1,38 @@ +import { ClaimCommand } from '../../../../../src/app/modules/badge/commands/claim_command'; +import { BadgeModule } from '../../../../../src/app/modules/badge/module'; + +describe('ClaimCommand', () => { + let command: ClaimCommand; + const module = new BadgeModule(); + + beforeEach(() => { + command = new ClaimCommand(module.stores, module.events); + }); + + describe('constructor', () => { + it('should have valid name', () => { + expect(command.name).toBe('claim'); + }); + + it('should have valid schema', () => { + expect(command.schema).toMatchSnapshot(); + }); + }); + + describe('verify', () => { + describe('schema validation', () => { + it.todo('should throw errors for invalid schema'); + it.todo('should be ok for valid schema'); + }); + }); + + describe('execute', () => { + describe('valid cases', () => { + it.todo('should update the state store'); + }); + + describe('invalid cases', () => { + it.todo('should throw error'); + }); + }); +}); diff --git a/test/unit/modules/badge/commands/create_command.spec.ts b/test/unit/modules/badge/commands/create_command.spec.ts index 8b0d514..266181c 100644 --- a/test/unit/modules/badge/commands/create_command.spec.ts +++ b/test/unit/modules/badge/commands/create_command.spec.ts @@ -2,37 +2,37 @@ import { CreateCommand } from '../../../../../src/app/modules/badge/commands/cre import { BadgeModule } from '../../../../../src/app/modules/badge/module'; describe('CreateCommand', () => { - let command: CreateCommand; - const module = new BadgeModule(); + let command: CreateCommand; + const module = new BadgeModule(); - beforeEach(() => { - command = new CreateCommand(module.stores, module.events); - }); + beforeEach(() => { + command = new CreateCommand(module.stores, module.events); + }); - describe('constructor', () => { - it('should have valid name', () => { - expect(command.name).toBe('create'); - }); + describe('constructor', () => { + it('should have valid name', () => { + expect(command.name).toBe('create'); + }); - it('should have valid schema', () => { - expect(command.schema).toMatchSnapshot(); - }); - }); + it('should have valid schema', () => { + expect(command.schema).toMatchSnapshot(); + }); + }); - describe('verify', () => { - describe('schema validation', () => { - it.todo('should throw errors for invalid schema'); - it.todo('should be ok for valid schema'); - }); - }); + describe('verify', () => { + describe('schema validation', () => { + it.todo('should throw errors for invalid schema'); + it.todo('should be ok for valid schema'); + }); + }); - describe('execute', () => { - describe('valid cases', () => { - it.todo('should update the state store'); - }); + describe('execute', () => { + describe('valid cases', () => { + it.todo('should update the state store'); + }); - describe('invalid cases', () => { - it.todo('should throw error'); - }); - }); + describe('invalid cases', () => { + it.todo('should throw error'); + }); + }); }); diff --git a/test/unit/modules/badge/commands/destroy_command.spec.ts b/test/unit/modules/badge/commands/destroy_command.spec.ts index d28c2ca..513bc8b 100644 --- a/test/unit/modules/badge/commands/destroy_command.spec.ts +++ b/test/unit/modules/badge/commands/destroy_command.spec.ts @@ -2,37 +2,37 @@ import { DestroyCommand } from '../../../../../src/app/modules/badge/commands/de import { BadgeModule } from '../../../../../src/app/modules/badge/module'; describe('DestroyCommand', () => { - let command: DestroyCommand; - const module = new BadgeModule(); + let command: DestroyCommand; + const module = new BadgeModule(); - beforeEach(() => { - command = new DestroyCommand(module.stores, module.events); - }); + beforeEach(() => { + command = new DestroyCommand(module.stores, module.events); + }); - describe('constructor', () => { - it('should have valid name', () => { - expect(command.name).toBe('destroy'); - }); + describe('constructor', () => { + it('should have valid name', () => { + expect(command.name).toBe('destroy'); + }); - it('should have valid schema', () => { - expect(command.schema).toMatchSnapshot(); - }); - }); + it('should have valid schema', () => { + expect(command.schema).toMatchSnapshot(); + }); + }); - describe('verify', () => { - describe('schema validation', () => { - it.todo('should throw errors for invalid schema'); - it.todo('should be ok for valid schema'); - }); - }); + describe('verify', () => { + describe('schema validation', () => { + it.todo('should throw errors for invalid schema'); + it.todo('should be ok for valid schema'); + }); + }); - describe('execute', () => { - describe('valid cases', () => { - it.todo('should update the state store'); - }); + describe('execute', () => { + describe('valid cases', () => { + it.todo('should update the state store'); + }); - describe('invalid cases', () => { - it.todo('should throw error'); - }); - }); + describe('invalid cases', () => { + it.todo('should throw error'); + }); + }); }); diff --git a/test/unit/modules/badge/commands/reclaim_command.spec.ts b/test/unit/modules/badge/commands/reclaim_command.spec.ts deleted file mode 100644 index d86ef56..0000000 --- a/test/unit/modules/badge/commands/reclaim_command.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ClaimCommand } from '../../../../../src/app/modules/badge/commands/claim_command'; -import { BadgeModule } from '../../../../../src/app/modules/badge/module'; - -describe('ClaimCommand', () => { - let command: ClaimCommand; - const module = new BadgeModule(); - - beforeEach(() => { - command = new ClaimCommand(module.stores, module.events); - }); - - describe('constructor', () => { - it('should have valid name', () => { - expect(command.name).toBe('claim'); - }); - - it('should have valid schema', () => { - expect(command.schema).toMatchSnapshot(); - }); - }); - - describe('verify', () => { - describe('schema validation', () => { - it.todo('should throw errors for invalid schema'); - it.todo('should be ok for valid schema'); - }); - }); - - describe('execute', () => { - describe('valid cases', () => { - it.todo('should update the state store'); - }); - - describe('invalid cases', () => { - it.todo('should throw error'); - }); - }); -}); diff --git a/test/unit/modules/badge/module.spec.ts b/test/unit/modules/badge/module.spec.ts index 3cb1f4b..70c83c5 100644 --- a/test/unit/modules/badge/module.spec.ts +++ b/test/unit/modules/badge/module.spec.ts @@ -1,20 +1,20 @@ -// import { BadgeModule } from '../../../../src/app/modules/badge/module' +// import * as modules from '../../../src/app/modules/badge' describe('BadgeModule', () => { - describe('constructor', () => { - it.todo('should have valid name'); - }); + describe('constructor', () => { + it.todo('should have valid name'); + }); - describe('beforeTransactionsExecute', () => { - it.todo('should execute before block execute'); - }); - describe('afterTransactionsExecute', () => { - it.todo('should execute after block execute'); - }); - describe('beforeCommandExecute', () => { - it.todo('should execute before transaction execute'); - }); - describe('afterCommandExecute', () => { - it.todo('should execute after transaction execute'); - }); + describe('beforeTransactionsExecute', () => { + it.todo('should execute before block execute'); + }); + describe('afterTransactionsExecute', () => { + it.todo('should execute after block execute'); + }); + describe('beforeCommandExecute', () => { + it.todo('should execute before transaction execute'); + }); + describe('afterCommandExecute', () => { + it.todo('should execute after transaction execute'); + }); }); diff --git a/test/utils/config.ts b/test/utils/config.ts index 021283e..5b37b43 100644 --- a/test/utils/config.ts +++ b/test/utils/config.ts @@ -3,8 +3,8 @@ import { Config } from '@oclif/core'; import pJSON = require('../../package.json'); export const getConfig = async () => { - const config = await Config.load(); - config.pjson.lisk = { addressPrefix: 'lsk' }; - config.pjson.version = pJSON.version; - return config; + const config = await Config.load(); + config.pjson.lisk = { addressPrefix: 'lsk' }; + config.pjson.version = pJSON.version; + return config; }; diff --git a/tsconfig.json b/tsconfig.json index 8b52c33..8ab1138 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "rootDir": "./src", "outDir": "./dist", "skipLibCheck": true, - "esModuleInterop": true + "esModuleInterop": true }, "include": ["./src/**/*.ts", "./src/**/*.json"] }