From 367f1691fccd7b420d3c0dfe1ab626134c77ae97 Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:18:24 +0600 Subject: [PATCH 01/15] fix: allow LogLevelName as logLevel --- src/api/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ae87004..0fcf108 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,6 +1,11 @@ import axios, {AxiosError} from 'axios'; import {NodeManager, NodeManagerOptions} from '../helpers/healthCheck'; -import {Logger, type CustomLogger, type LogLevel} from '../helpers/logger'; +import { + Logger, + type CustomLogger, + type LogLevel, + LogLevelName, +} from '../helpers/logger'; import { AdamantApiResult, admToSats, @@ -151,7 +156,7 @@ export interface AdamantApiOptions extends NodeManagerOptions { timeout?: number; logger?: CustomLogger; - logLevel?: LogLevel; + logLevel?: LogLevel | LogLevelName; } const publicKeysCache: { From a020c43efad1e4f6e039587ef1d87d4f37881ed8 Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:22:11 +0600 Subject: [PATCH 02/15] style: use type keyword in import statement --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 0fcf108..7a64c4a 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -4,7 +4,7 @@ import { Logger, type CustomLogger, type LogLevel, - LogLevelName, + type LogLevelName, } from '../helpers/logger'; import { AdamantApiResult, From 0f03a3d1f1f62f4da7154d2e26811a6d5bbe7add Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:24:37 +0600 Subject: [PATCH 03/15] chore: bump a version --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7cb7a7f..c4c15de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adamant-api", - "version": "2.0.0", + "version": "2.0.1", "description": "JavaScript API library for the ADAMANT Blockchain", "keywords": [ "adm", @@ -40,7 +40,9 @@ "main": "dist/index.js", "src": "src/index.ts", "types": "dist/index.d.ts", - "files": ["dist/"], + "files": [ + "dist/" + ], "scripts": { "test": "jest", "lint": "gts lint", From 5657ccb302acb48e585316192bdc8ce0f77d358c Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:31:29 +0600 Subject: [PATCH 04/15] docs: add the change into CHANGELOG --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f67c340..9b002b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [2.0.1] - 2023-10-12 + +### Fixed + +- Fixed typing for `AdamantApiOptions` by adding `LogLevelName` as possible value for `logLevel` property. + + For example, you can now use `'log'` instead of `LogLevel.Log` in TypeScript: + + ```ts + const api = new AdamantApi({ /* ... */ logLevel: 'log' }) + ``` + ## [2.0.0] - 2023-10-12 ### Added From 88e671ff2e894a4610b2aed8ec4a652c54458d21 Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:34:12 +0600 Subject: [PATCH 05/15] docs: add missing change into CHANGELOG --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f67c340..74ba4ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,18 @@ await api.post('transactions/process', { transaction }); ``` + +- **getTransactionId()** method + + Pass signed transaction with signature to get a transaction id as a string: + + ```js + import {getTransactionId} from 'adamant-api' + const id = getTransactionId(signedTransaction) + ``` + + _See [documentation](https://github.com/Adamant-im/adamant-api-jsclient/wiki/Calculating-transaction-id) for more information._ + ### Fixed - **Creating multiple instances** From 3d03d933abc36285639b7d4e5bda21fe6ad1f1a7 Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 02:45:32 +0600 Subject: [PATCH 06/15] feat: add more convenient way to init socket --- src/helpers/healthCheck.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/helpers/healthCheck.ts b/src/helpers/healthCheck.ts index c390f5c..eb4ddbb 100644 --- a/src/helpers/healthCheck.ts +++ b/src/helpers/healthCheck.ts @@ -71,8 +71,12 @@ export class NodeManager { this.onReadyCallback = callback; } - public initSocket(options: WsOptions) { - this.socket = new WebSocketClient({logger: this.logger, ...options}); + public initSocket(options: WebSocketClient | WsOptions) { + if (options instanceof WebSocketClient) { + this.socket = options; + } else { + this.socket = new WebSocketClient({logger: this.logger, ...options}); + } } private ready() { From d41d93c887a99df86c74de254537aa913d42a4ce Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 03:13:21 +0600 Subject: [PATCH 07/15] feat: export transaction handlers type utils --- src/helpers/wsClient.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/helpers/wsClient.ts b/src/helpers/wsClient.ts index 00debc8..66a71d9 100644 --- a/src/helpers/wsClient.ts +++ b/src/helpers/wsClient.ts @@ -47,16 +47,18 @@ type TransactionMap = { type EventType = keyof TransactionMap; -type TransactionHandler = (transaction: T) => void; +export type TransactionHandler = ( + transaction: T +) => void; -type SingleTransactionHandler = +export type SingleTransactionHandler = | TransactionHandler | TransactionHandler | TransactionHandler | TransactionHandler | TransactionHandler; -type AnyTransactionHandler = TransactionHandler; +export type AnyTransactionHandler = TransactionHandler; export class WebSocketClient { /** From 7557aa1c96823bc56431351d90bd7ae2e4f8e1df Mon Sep 17 00:00:00 2001 From: martiliones Date: Sat, 4 Nov 2023 05:38:03 +0600 Subject: [PATCH 08/15] fix(typescript): include declaration modules in npm --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7cb7a7f..afcc235 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,10 @@ "main": "dist/index.js", "src": "src/index.ts", "types": "dist/index.d.ts", - "files": ["dist/"], + "files": [ + "dist/", + "types/" + ], "scripts": { "test": "jest", "lint": "gts lint", From f89c1700eb43091540d0ac509b7a271869ac40fa Mon Sep 17 00:00:00 2001 From: martiliones Date: Mon, 6 Nov 2023 03:27:32 +0600 Subject: [PATCH 09/15] chore: describe changes in CHANGELOG --- CHANGELOG.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc1167c..dac273d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ # Changelog -## [2.0.1] - 2023-10-12 +## [2.0.1] - 2023-11-06 + +### Added + +- `api.initSocket()` now accepts an instance of `WebSocketClient` as an argument: + + ```js + const socket = new WebSocketClient({ /* ... */ }) + + api.initSocket(socket) + // instead of + api.socket = socket + ``` + +- Export transaction handlers TypeScript utils: `SingleTransactionHandler`, `AnyTransactionHandler`, `TransactionHandler` ### Fixed @@ -12,6 +26,13 @@ const api = new AdamantApi({ /* ... */ logLevel: 'log' }) ``` +- Added missing declaration modules to npm that led to the error: + + ``` + Could not find a declaration file for module 'coininfo'. + /// + ``` + ## [2.0.0] - 2023-10-12 ### Added From 21df82bdd4d49c03ac213ea74bbc0348cc4ba811 Mon Sep 17 00:00:00 2001 From: martiliones Date: Fri, 17 Nov 2023 19:08:22 +0600 Subject: [PATCH 10/15] feat(encryptor): allow Uint8Array and KeyPair as arguments in en/decode methods (#45) * chore: bump a version * feat(encryptor): allow to encode message with buffer public key * feat: allow to use buffer in `decodeMessage` as well * feat: allow key pair instead of passphrase in `decodeMessage` * refactor(encryptor): rewrite to ternary operator --- CHANGELOG.md | 2 +- package.json | 2 +- src/helpers/encryptor.ts | 35 +++++++++++++++++++++++++---------- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dac273d..8a24665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [2.0.1] - 2023-11-06 +## [2.1.0] - 2023-11-06 ### Added diff --git a/package.json b/package.json index 8816d69..0230871 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adamant-api", - "version": "2.0.1", + "version": "2.1.0", "description": "JavaScript API library for the ADAMANT Blockchain", "keywords": [ "adm", diff --git a/src/helpers/encryptor.ts b/src/helpers/encryptor.ts index d32c7fb..044bf7a 100644 --- a/src/helpers/encryptor.ts +++ b/src/helpers/encryptor.ts @@ -69,16 +69,21 @@ export const utf8ArrayToStr = (array: Uint8Array) => { export const encodeMessage = ( msg: string, keypair: KeyPair, - recipientPublicKey: string + recipientPublicKey: Uint8Array | string ) => { const nonce = Buffer.allocUnsafe(24); sodium.randombytes(nonce); const plainText = Buffer.from(msg.toString()); const DHSecretKey = ed2curve.convertSecretKey(keypair.privateKey); - const DHPublicKey = ed2curve.convertPublicKey( - new Uint8Array(hexToBytes(recipientPublicKey)) - ); + + let publicKey = recipientPublicKey; + + if (typeof publicKey === 'string') { + publicKey = hexToBytes(publicKey); + } + + const DHPublicKey = ed2curve.convertPublicKey(publicKey); if (!DHPublicKey) { throw new Error('encodeMessage: invalid key'); @@ -94,11 +99,19 @@ export const encodeMessage = ( export const decodeMessage = ( message: string, - senderPublicKey: string, - passphrase: string, + senderPublicKey: Uint8Array | string, + keyPairOrPassphrase: string | KeyPair, nonce: string ) => { - const keypair = createKeypairFromPassphrase(passphrase); + const keypair = + typeof keyPairOrPassphrase === 'string' + ? createKeypairFromPassphrase(keyPairOrPassphrase) + : keyPairOrPassphrase; + + const publicKey = + typeof senderPublicKey === 'string' + ? hexToBytes(senderPublicKey) + : senderPublicKey; if (typeof message !== 'string') { throw new Error('decodeMessage message should be a string'); @@ -108,11 +121,13 @@ export const decodeMessage = ( throw new Error('decodeMessage: nonce should be a string'); } - if (typeof senderPublicKey !== 'string') { - throw new Error('decodeMessage: senderPublicKey should be a string'); + if (!(publicKey instanceof Uint8Array)) { + throw new Error( + 'decodeMessage: senderPublicKey should be a string or an instance of Uint8Array' + ); } - const DHPublicKey = ed2curve.convertPublicKey(hexToBytes(senderPublicKey)); + const DHPublicKey = ed2curve.convertPublicKey(publicKey); if (!DHPublicKey) { throw new Error('decodeMessage: invalid key'); From 35fca8a0b50f5dc7851619cbdeae9b7c03709a84 Mon Sep 17 00:00:00 2001 From: martiliones Date: Fri, 17 Nov 2023 19:09:11 +0600 Subject: [PATCH 11/15] fix(transactions): make `amount` property optional (#46) --- src/helpers/transactions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/transactions/index.ts b/src/helpers/transactions/index.ts index 9f49aaa..4f26a72 100644 --- a/src/helpers/transactions/index.ts +++ b/src/helpers/transactions/index.ts @@ -29,7 +29,7 @@ export interface SendTransactionData extends BasicTransactionData { export interface ChatTransactionData extends BasicTransactionData { recipientId: AdamantAddress; message_type: MessageType; - amount: number | undefined; + amount?: number; message: string; own_message: string; } From eb436cf570a3dbf564d4fbca5f24e4ec757a8848 Mon Sep 17 00:00:00 2001 From: martiliones Date: Fri, 17 Nov 2023 19:27:18 +0600 Subject: [PATCH 12/15] docs: update CHANGELOG --- CHANGELOG.md | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a24665..a3abe24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,29 @@ api.socket = socket ``` -- Export transaction handlers TypeScript utils: `SingleTransactionHandler`, `AnyTransactionHandler`, `TransactionHandler` +- Improved the `encodeMessage()` and `decodeMessage()` functions to accept public keys as Uint8Array or Buffer + + ```js + import {encodeMessage, createKeypairFromPassphrase} from 'adamant-api' + + const {publicKey} = createKeypairFromPassphrase('...') + const message = encodeMessage(,, publicKey) // No need to convert public key to string + ``` + +- `decodeMessage()` allows passing a key pair instead of a passphrase: + + ```js + import {decodeMessage, createKeypairFromPassphrase} from 'adamant-api' + + const keyPair = createKeypairFromPassphrase('...') + const message = decodeMessage(,, keyPair,) // <- It won't create a key pair from passphrase again + ``` + +- TypeScript: Export transaction handlers TypeScript utils: `SingleTransactionHandler`, `AnyTransactionHandler`, `TransactionHandler` ### Fixed -- Fixed typing for `AdamantApiOptions` by adding `LogLevelName` as possible value for `logLevel` property. +- TypeScript: Fixed typing for `AdamantApiOptions` by adding `LogLevelName` as possible value for `logLevel` property. For example, you can now use `'log'` instead of `LogLevel.Log` in TypeScript: @@ -26,13 +44,20 @@ const api = new AdamantApi({ /* ... */ logLevel: 'log' }) ``` -- Added missing declaration modules to npm that led to the error: +- TypeScript: Added missing declaration modules to npm that led to the error: ``` Could not find a declaration file for module 'coininfo'. /// ``` +- TypeScript: `amount` property in `ChatTransactionData` (`createChatTransaction()` argument) is now truly optional: + + ```diff + - amount: number | undefined; + + amount?: number; + ``` + ## [2.0.0] - 2023-10-12 ### Added From b0f6bd3bc446d7ae5281527e2a79e15a01a45764 Mon Sep 17 00:00:00 2001 From: martiliones Date: Fri, 17 Nov 2023 19:30:21 +0600 Subject: [PATCH 13/15] chore: bump a date in CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3abe24..492d28f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [2.1.0] - 2023-11-06 +## [2.1.0] - 2023-11-17 ### Added From f0716f91a25378eb7e53eb2f4af569fb43a2dfe4 Mon Sep 17 00:00:00 2001 From: martiliones Date: Fri, 17 Nov 2023 19:32:47 +0600 Subject: [PATCH 14/15] docs: fix typo in CHANGELOG --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 492d28f..e255df6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,7 +143,7 @@ }); ``` - or specify `socket` option when initializing API: + Or specify `socket` option when initializing API: ```ts // socket.ts @@ -173,7 +173,7 @@ }); ``` -### Removeed +### Removed - `createTransaction()` From 13566c6baf9f30022ced2112ef1f65074c9ab1d0 Mon Sep 17 00:00:00 2001 From: martiliones Date: Sun, 19 Nov 2023 01:57:45 +0600 Subject: [PATCH 15/15] chore: update dependencies (#47) --- package.json | 26 +- pnpm-lock.yaml | 630 +++++++++++++++++++++++------------------------ src/coins/lsk.ts | 4 +- 3 files changed, 324 insertions(+), 336 deletions(-) diff --git a/package.json b/package.json index 0230871..864ab32 100644 --- a/package.json +++ b/package.json @@ -56,8 +56,8 @@ "posttest": "npm run lint" }, "dependencies": { - "@liskhq/lisk-cryptography": "3.3.0", - "axios": "^1.5.1", + "@liskhq/lisk-cryptography": "4.0.0", + "axios": "^1.6.2", "bignumber.js": "^9.1.2", "bip39": "^3.1.0", "bitcoinjs-lib": "^6.1.5", @@ -74,20 +74,20 @@ "tweetnacl": "^1.0.3" }, "devDependencies": { - "@commitlint/cli": "^17.7.2", - "@commitlint/config-conventional": "^17.7.0", - "@types/bytebuffer": "^5.0.45", - "@types/hdkey": "^2.0.1", - "@types/ed2curve": "^0.2.2", - "@types/jest": "^29.5.5", - "@types/node": "20.8.5", - "@types/pbkdf2": "^3.1.0", - "eslint": "^8.51.0", + "@commitlint/cli": "^18.4.2", + "@commitlint/config-conventional": "^18.4.2", + "@types/bytebuffer": "^5.0.47", + "@types/hdkey": "^2.0.3", + "@types/ed2curve": "^0.2.4", + "@types/jest": "^29.5.8", + "@types/node": "20.9.1", + "@types/pbkdf2": "^3.1.2", + "eslint": "^8.54.0", "eslint-config-google": "^0.14.0", - "eslint-plugin-jest": "^27.4.2", + "eslint-plugin-jest": "^27.6.0", "husky": "^8.0.3", "jest": "^29.7.0", - "prettier": "^3.0.3", + "prettier": "^3.1.0", "ts-jest": "^29.1.1", "gts": "^5.2.0", "typescript": "~5.1.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f710bad..9b43eda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,11 +6,11 @@ settings: dependencies: '@liskhq/lisk-cryptography': - specifier: 3.3.0 - version: 3.3.0 + specifier: 4.0.0 + version: 4.0.0 axios: - specifier: ^1.5.1 - version: 1.5.1 + specifier: ^1.6.2 + version: 1.6.2 bignumber.js: specifier: ^9.1.2 version: 9.1.2 @@ -56,38 +56,38 @@ dependencies: devDependencies: '@commitlint/cli': - specifier: ^17.7.2 - version: 17.7.2 + specifier: ^18.4.2 + version: 18.4.2(typescript@5.1.6) '@commitlint/config-conventional': - specifier: ^17.7.0 - version: 17.7.0 + specifier: ^18.4.2 + version: 18.4.2 '@types/bytebuffer': - specifier: ^5.0.45 - version: 5.0.45 + specifier: ^5.0.47 + version: 5.0.47 '@types/ed2curve': - specifier: ^0.2.2 - version: 0.2.2 + specifier: ^0.2.4 + version: 0.2.4 '@types/hdkey': - specifier: ^2.0.1 - version: 2.0.1 + specifier: ^2.0.3 + version: 2.0.3 '@types/jest': - specifier: ^29.5.5 - version: 29.5.5 + specifier: ^29.5.8 + version: 29.5.8 '@types/node': - specifier: 20.8.5 - version: 20.8.5 + specifier: 20.9.1 + version: 20.9.1 '@types/pbkdf2': - specifier: ^3.1.0 - version: 3.1.0 + specifier: ^3.1.2 + version: 3.1.2 eslint: - specifier: ^8.51.0 - version: 8.51.0 + specifier: ^8.54.0 + version: 8.54.0 eslint-config-google: specifier: ^0.14.0 - version: 0.14.0(eslint@8.51.0) + version: 0.14.0(eslint@8.54.0) eslint-plugin-jest: - specifier: ^27.4.2 - version: 27.4.2(eslint@8.51.0)(jest@29.7.0)(typescript@5.1.6) + specifier: ^27.6.0 + version: 27.6.0(eslint@8.54.0)(jest@29.7.0)(typescript@5.1.6) gts: specifier: ^5.2.0 version: 5.2.0(typescript@5.1.6) @@ -96,10 +96,10 @@ devDependencies: version: 8.0.3 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + version: 29.7.0(@types/node@20.9.1) prettier: - specifier: ^3.0.3 - version: 3.0.3 + specifier: ^3.1.0 + version: 3.1.0 ts-jest: specifier: ^29.1.1 version: 29.1.1(@babel/core@7.23.0)(jest@29.7.0)(typescript@5.1.6) @@ -451,46 +451,45 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@commitlint/cli@17.7.2: - resolution: {integrity: sha512-t3N7TZq7lOeqTOyEgfGcaltHqEJf7YDlPg75MldeVPPyz14jZq/+mbGF9tueDLFX8R6RwdymrN6D+U5XwZ8Iwg==} - engines: {node: '>=v14'} + /@commitlint/cli@18.4.2(typescript@5.1.6): + resolution: {integrity: sha512-dDfb2+wzeQe6ogdHNHOy0J0nraok+La0BoxamNMhBOng9/5GoESPDmKUJ1Lt1oivh5MfIgZh0Vm6f0rxkB8CoA==} + engines: {node: '>=v18'} hasBin: true dependencies: - '@commitlint/format': 17.4.4 - '@commitlint/lint': 17.7.0 - '@commitlint/load': 17.7.2 - '@commitlint/read': 17.5.1 - '@commitlint/types': 17.4.4 + '@commitlint/format': 18.4.0 + '@commitlint/lint': 18.4.2 + '@commitlint/load': 18.4.2(typescript@5.1.6) + '@commitlint/read': 18.4.0 + '@commitlint/types': 18.4.0 execa: 5.1.1 lodash.isfunction: 3.0.9 resolve-from: 5.0.0 resolve-global: 1.0.0 yargs: 17.7.2 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - typescript dev: true - /@commitlint/config-conventional@17.7.0: - resolution: {integrity: sha512-iicqh2o6et+9kWaqsQiEYZzfLbtoWv9uZl8kbI8EGfnc0HeGafQBF7AJ0ylN9D/2kj6txltsdyQs8+2fTMwWEw==} - engines: {node: '>=v14'} + /@commitlint/config-conventional@18.4.2: + resolution: {integrity: sha512-qFjIqgKGV89lzUGHxanq2WJDXk5wZIxoZmZvf0I4i4CirL06Xj8qRh1shPsXNyI15d8Rj2HExww6cGJSFU9DdA==} + engines: {node: '>=v18'} dependencies: - conventional-changelog-conventionalcommits: 6.1.0 + conventional-changelog-conventionalcommits: 7.0.2 dev: true - /@commitlint/config-validator@17.6.7: - resolution: {integrity: sha512-vJSncmnzwMvpr3lIcm0I8YVVDJTzyjy7NZAeXbTXy+MPUdAr9pKyyg7Tx/ebOQ9kqzE6O9WT6jg2164br5UdsQ==} - engines: {node: '>=v14'} + /@commitlint/config-validator@18.4.0: + resolution: {integrity: sha512-1y6qHMU3o4cYQSK+Y9EnmH6H1GRiwQGjnLIUOIKlekrmfc8MrMk1ByNmb8od4vK3qHJAaL/77/5n+1uyyIF5dA==} + engines: {node: '>=v18'} dependencies: - '@commitlint/types': 17.4.4 + '@commitlint/types': 18.4.0 ajv: 8.12.0 dev: true - /@commitlint/ensure@17.6.7: - resolution: {integrity: sha512-mfDJOd1/O/eIb/h4qwXzUxkmskXDL9vNPnZ4AKYKiZALz4vHzwMxBSYtyL2mUIDeU9DRSpEUins8SeKtFkYHSw==} - engines: {node: '>=v14'} + /@commitlint/ensure@18.4.0: + resolution: {integrity: sha512-N5cJo/n61ULSwz3W5Iz/IZJ0I9H/PaHc+OMcF2XcRVbLa6B3YwzEW66XGCRKVULlsBNSrIH6tk5un9ayXAXIdw==} + engines: {node: '>=v18'} dependencies: - '@commitlint/types': 17.4.4 + '@commitlint/types': 18.4.0 lodash.camelcase: 4.3.0 lodash.kebabcase: 4.1.1 lodash.snakecase: 4.1.1 @@ -498,134 +497,124 @@ packages: lodash.upperfirst: 4.3.1 dev: true - /@commitlint/execute-rule@17.4.0: - resolution: {integrity: sha512-LIgYXuCSO5Gvtc0t9bebAMSwd68ewzmqLypqI2Kke1rqOqqDbMpYcYfoPfFlv9eyLIh4jocHWwCK5FS7z9icUA==} - engines: {node: '>=v14'} + /@commitlint/execute-rule@18.4.0: + resolution: {integrity: sha512-g013SWki6ZWhURBLOSXTaVQGWHdA0QlPJGiW4a+YpThezmJOemvc4LiKVpn13AjSKQ40QnmBqpBrxujOaSo+3A==} + engines: {node: '>=v18'} dev: true - /@commitlint/format@17.4.4: - resolution: {integrity: sha512-+IS7vpC4Gd/x+uyQPTAt3hXs5NxnkqAZ3aqrHd5Bx/R9skyCAWusNlNbw3InDbAK6j166D9asQM8fnmYIa+CXQ==} - engines: {node: '>=v14'} + /@commitlint/format@18.4.0: + resolution: {integrity: sha512-MiAe4D5/ahty38CzULdQbpRa3ReKZtx0kyigOWcntq+N5uqez+Ac4/MO7H+3j1kC4G7nfJVfBu6TqcXeyNvhCQ==} + engines: {node: '>=v18'} dependencies: - '@commitlint/types': 17.4.4 + '@commitlint/types': 18.4.0 chalk: 4.1.2 dev: true - /@commitlint/is-ignored@17.7.0: - resolution: {integrity: sha512-043rA7m45tyEfW7Zv2vZHF++176MLHH9h70fnPoYlB1slKBeKl8BwNIlnPg4xBdRBVNPaCqvXxWswx2GR4c9Hw==} - engines: {node: '>=v14'} + /@commitlint/is-ignored@18.4.2: + resolution: {integrity: sha512-uujjyJlrXsMsQrv0r8HDGigAwJELPAMtA1Vxi2WUB54HbyAWa0Ue6ujMRZNKov2YeA96r6o72gLDnugb6yu8IA==} + engines: {node: '>=v18'} dependencies: - '@commitlint/types': 17.4.4 + '@commitlint/types': 18.4.0 semver: 7.5.4 dev: true - /@commitlint/lint@17.7.0: - resolution: {integrity: sha512-TCQihm7/uszA5z1Ux1vw+Nf3yHTgicus/+9HiUQk+kRSQawByxZNESeQoX9ujfVd3r4Sa+3fn0JQAguG4xvvbA==} - engines: {node: '>=v14'} + /@commitlint/lint@18.4.2: + resolution: {integrity: sha512-ljGOIH7w9SnjvZFoKjf30iWFxDnezfRtOc50+rNLdDP0TpLspaYYLPhDO/TeVdmii1/AJiDgBIuBboQlaIy7Bw==} + engines: {node: '>=v18'} dependencies: - '@commitlint/is-ignored': 17.7.0 - '@commitlint/parse': 17.7.0 - '@commitlint/rules': 17.7.0 - '@commitlint/types': 17.4.4 + '@commitlint/is-ignored': 18.4.2 + '@commitlint/parse': 18.4.0 + '@commitlint/rules': 18.4.0 + '@commitlint/types': 18.4.0 dev: true - /@commitlint/load@17.7.2: - resolution: {integrity: sha512-XA7WTnsjHZ4YH6ZYsrnxgLdXzriwMMq+utZUET6spbOEEIPBCDLdOQXS26P+v3TTO4hUHOEhzUquaBv3jbBixw==} - engines: {node: '>=v14'} + /@commitlint/load@18.4.2(typescript@5.1.6): + resolution: {integrity: sha512-CKmzXdF9XwZJoVijAqpUlV9qzZOkyiYni4KuSCtTZVAAVudi9H84cJ4FqZxSwEP9G21vmoJiNrW8G042AsduVg==} + engines: {node: '>=v18'} dependencies: - '@commitlint/config-validator': 17.6.7 - '@commitlint/execute-rule': 17.4.0 - '@commitlint/resolve-extends': 17.6.7 - '@commitlint/types': 17.4.4 - '@types/node': 20.5.1 + '@commitlint/config-validator': 18.4.0 + '@commitlint/execute-rule': 18.4.0 + '@commitlint/resolve-extends': 18.4.0 + '@commitlint/types': 18.4.0 + '@types/node': 18.18.9 chalk: 4.1.2 cosmiconfig: 8.3.6(typescript@5.1.6) - cosmiconfig-typescript-loader: 4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6)(ts-node@10.9.1)(typescript@5.1.6) + cosmiconfig-typescript-loader: 5.0.0(@types/node@18.18.9)(cosmiconfig@8.3.6)(typescript@5.1.6) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@types/node@20.8.5)(typescript@5.1.6) - typescript: 5.1.6 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - typescript dev: true - /@commitlint/message@17.4.2: - resolution: {integrity: sha512-3XMNbzB+3bhKA1hSAWPCQA3lNxR4zaeQAQcHj0Hx5sVdO6ryXtgUBGGv+1ZCLMgAPRixuc6en+iNAzZ4NzAa8Q==} - engines: {node: '>=v14'} + /@commitlint/message@18.4.0: + resolution: {integrity: sha512-3kg6NQO6pJ+VdBTWi51KInT8ngkxPJaW+iI7URtUALjKcO9K4XY3gf80ZPmS1hDessrjb7qCr1lau8eWMINAQw==} + engines: {node: '>=v18'} dev: true - /@commitlint/parse@17.7.0: - resolution: {integrity: sha512-dIvFNUMCUHqq5Abv80mIEjLVfw8QNuA4DS7OWip4pcK/3h5wggmjVnlwGCDvDChkw2TjK1K6O+tAEV78oxjxag==} - engines: {node: '>=v14'} + /@commitlint/parse@18.4.0: + resolution: {integrity: sha512-SxTCSUZH8CJNYWOlFg18YUQ2RLz8ubXKbpHUIiSNwCbiQx7UDCydp1JnhoB4sOYOxgV8d3nuDwYluRU5KnEY4A==} + engines: {node: '>=v18'} dependencies: - '@commitlint/types': 17.4.4 + '@commitlint/types': 18.4.0 conventional-changelog-angular: 6.0.0 - conventional-commits-parser: 4.0.0 + conventional-commits-parser: 5.0.0 dev: true - /@commitlint/read@17.5.1: - resolution: {integrity: sha512-7IhfvEvB//p9aYW09YVclHbdf1u7g7QhxeYW9ZHSO8Huzp8Rz7m05aCO1mFG7G8M+7yfFnXB5xOmG18brqQIBg==} - engines: {node: '>=v14'} + /@commitlint/read@18.4.0: + resolution: {integrity: sha512-IpnABCbDeOw5npZ09SZZGLfd3T7cFtsxUYm6wT3aGmIB2fXKE3fMeuj3jxXjMibiGIyA3Z5voCMuOcKWpkNySA==} + engines: {node: '>=v18'} dependencies: - '@commitlint/top-level': 17.4.0 - '@commitlint/types': 17.4.4 + '@commitlint/top-level': 18.4.0 + '@commitlint/types': 18.4.0 fs-extra: 11.1.1 git-raw-commits: 2.0.11 minimist: 1.2.8 dev: true - /@commitlint/resolve-extends@17.6.7: - resolution: {integrity: sha512-PfeoAwLHtbOaC9bGn/FADN156CqkFz6ZKiVDMjuC2N5N0740Ke56rKU7Wxdwya8R8xzLK9vZzHgNbuGhaOVKIg==} - engines: {node: '>=v14'} + /@commitlint/resolve-extends@18.4.0: + resolution: {integrity: sha512-qhgU6ach+S6sJMD9NjCYiEycOObGhxzWQLQzqlScJCv9zkPs15Bg0ffLXTQ3z7ipXv46XEKYMnSJzjLRw2Tlkg==} + engines: {node: '>=v18'} dependencies: - '@commitlint/config-validator': 17.6.7 - '@commitlint/types': 17.4.4 + '@commitlint/config-validator': 18.4.0 + '@commitlint/types': 18.4.0 import-fresh: 3.3.0 lodash.mergewith: 4.6.2 resolve-from: 5.0.0 resolve-global: 1.0.0 dev: true - /@commitlint/rules@17.7.0: - resolution: {integrity: sha512-J3qTh0+ilUE5folSaoK91ByOb8XeQjiGcdIdiB/8UT1/Rd1itKo0ju/eQVGyFzgTMYt8HrDJnGTmNWwcMR1rmA==} - engines: {node: '>=v14'} + /@commitlint/rules@18.4.0: + resolution: {integrity: sha512-T3ChRxQZ6g0iNCpVLc6KeQId0/86TnyQA8PFkng+dWElO2DAA5km/yirgKZV1Xlc+gF7Rf6d+a0ottxdKpOY+w==} + engines: {node: '>=v18'} dependencies: - '@commitlint/ensure': 17.6.7 - '@commitlint/message': 17.4.2 - '@commitlint/to-lines': 17.4.0 - '@commitlint/types': 17.4.4 + '@commitlint/ensure': 18.4.0 + '@commitlint/message': 18.4.0 + '@commitlint/to-lines': 18.4.0 + '@commitlint/types': 18.4.0 execa: 5.1.1 dev: true - /@commitlint/to-lines@17.4.0: - resolution: {integrity: sha512-LcIy/6ZZolsfwDUWfN1mJ+co09soSuNASfKEU5sCmgFCvX5iHwRYLiIuoqXzOVDYOy7E7IcHilr/KS0e5T+0Hg==} - engines: {node: '>=v14'} + /@commitlint/to-lines@18.4.0: + resolution: {integrity: sha512-bZXuCtfBPjNgtEnG3gwJrveIgfKK2UdhIhFvKpMTrQl/gAwoto/3mzmE7qGAHwmuP4eZ2U8X7iwMnqIlWmv2Tw==} + engines: {node: '>=v18'} dev: true - /@commitlint/top-level@17.4.0: - resolution: {integrity: sha512-/1loE/g+dTTQgHnjoCy0AexKAEFyHsR2zRB4NWrZ6lZSMIxAhBJnmCqwao7b4H8888PsfoTBCLBYIw8vGnej8g==} - engines: {node: '>=v14'} + /@commitlint/top-level@18.4.0: + resolution: {integrity: sha512-TfulcA8UHF7MZ6tm4Ci3aqZgMBZa1OoCg4prccWHvwG/hsHujZ7+0FKbeKqDbcSli/YWm4NJwEjl4uh5itIJeA==} + engines: {node: '>=v18'} dependencies: find-up: 5.0.0 dev: true - /@commitlint/types@17.4.4: - resolution: {integrity: sha512-amRN8tRLYOsxRr6mTnGGGvB5EmW/4DDjLMgiwK3CCVEmN6Sr/6xePGEpWaspKkckILuUORCwe6VfDBw6uj4axQ==} - engines: {node: '>=v14'} + /@commitlint/types@18.4.0: + resolution: {integrity: sha512-MKeaFxt0I9fhqUb2E+YIzX/gZtmkuodJET/XKiZIMvXUff8Ee4Ih86eLg+yAm2jf1pwGBmU02uNOp0y094w2Uw==} + engines: {node: '>=v18'} dependencies: chalk: 4.1.2 dev: true - /@cspotcode/source-map-support@0.8.1: - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.50.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -636,13 +625,13 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.51.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.54.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.51.0 + eslint: 8.54.0 eslint-visitor-keys: 3.4.3 dev: true @@ -668,13 +657,30 @@ packages: - supports-color dev: true + /@eslint/eslintrc@2.1.3: + resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.6.1 + globals: 13.22.0 + ignore: 5.2.4 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + /@eslint/js@8.50.0: resolution: {integrity: sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@eslint/js@8.51.0: - resolution: {integrity: sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==} + /@eslint/js@8.54.0: + resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -689,6 +695,17 @@ packages: - supports-color dev: true + /@humanwhocodes/config-array@0.11.13: + resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 2.0.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + /@humanwhocodes/module-importer@1.0.1: resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} @@ -698,6 +715,10 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@humanwhocodes/object-schema@2.0.1: + resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} + dev: true + /@istanbuljs/load-nyc-config@1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -719,14 +740,14 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 slash: 3.0.0 dev: true - /@jest/core@29.7.0(ts-node@10.9.1): + /@jest/core@29.7.0: resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -740,14 +761,14 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.8.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@20.9.1) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -775,7 +796,7 @@ packages: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 jest-mock: 29.7.0 dev: true @@ -802,7 +823,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 20.8.5 + '@types/node': 20.9.1 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -835,7 +856,7 @@ packages: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.19 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -923,7 +944,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.2 - '@types/node': 20.8.5 + '@types/node': 20.9.1 '@types/yargs': 17.0.26 chalk: 4.1.2 dev: true @@ -958,23 +979,29 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@jridgewell/trace-mapping@0.3.9: - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - dependencies: - '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.4.15 - dev: true - - /@liskhq/lisk-cryptography@3.3.0: - resolution: {integrity: sha512-nVd1dWjsL1rLNeVt1qCROpflaaZx6o93Aa+FXhnUTTyNqYrWy5OjCU9eqDYUsfqA3GnYCaIbuG9crmKWf6XHVQ==} + /@liskhq/lisk-cryptography@4.0.0: + resolution: {integrity: sha512-246hoey+sKx0/2GrECXfsjTmhv5PaD0z/vYpV1zTL4qPOHaDNqbKsSLg/uAt2OfM7et1KoG76jpYzaiifqCJiw==} engines: {node: '>=18.12.0 <=18', npm: '>=8.1.0'} + peerDependencies: + '@chainsafe/blst': 0.2.9 + sodium-native: 3.2.1 + peerDependenciesMeta: + '@chainsafe/blst': + optional: true + sodium-native: + optional: true dependencies: + '@liskhq/lisk-passphrase': 4.0.0 buffer-reverse: 1.0.1 - ed2curve: 0.3.0 + hash-wasm: 4.9.0 tweetnacl: 1.0.3 - varuint-bitcoin: 1.1.2 - optionalDependencies: - sodium-native: 3.2.1 + dev: false + + /@liskhq/lisk-passphrase@4.0.0: + resolution: {integrity: sha512-bohEKYtKSqMHyajWqQV3fES5Ejto5gUhAem7fZkLZpgyBIKfZt2xjjdVZRINuvvUixzNBvqpqwF3LQvAJl7SSw==} + engines: {node: '>=18.12.0 <=18', npm: '>=8.1.0'} + dependencies: + bip39: 3.0.3 dev: false /@noble/hashes@1.3.2: @@ -1035,22 +1062,6 @@ packages: resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==} dev: false - /@tsconfig/node10@1.0.9: - resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} - dev: true - - /@tsconfig/node12@1.0.11: - resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - dev: true - - /@tsconfig/node14@1.0.3: - resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - dev: true - - /@tsconfig/node16@1.0.4: - resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - dev: true - /@types/babel__core@7.20.2: resolution: {integrity: sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==} dependencies: @@ -1083,18 +1094,18 @@ packages: /@types/bn.js@5.1.2: resolution: {integrity: sha512-dkpZu0szUtn9UXTmw+e0AJFd4D2XAxDnsCLdc05SfqpqzPEBft8eQr8uaFitfo/dUUOZERaLec2hHMG87A4Dxg==} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 dev: false - /@types/bytebuffer@5.0.45: - resolution: {integrity: sha512-eqC6fZ9ZC3R37gKE5vH3S+SnMEVvGoaopn8sNwP2Xk1FDt6mn8hYxqFPgBS389SDBfxb6+j5Ss6VvffZI6YW1A==} + /@types/bytebuffer@5.0.47: + resolution: {integrity: sha512-1qIP5+JALYk3/PnqhgtdNJTtgLzNAx84cRqSGTtOhZWgv4WF0NhROoG13okmkVQjpY7X32Wnn/OCi4555yeO3w==} dependencies: '@types/long': 3.0.32 - '@types/node': 20.8.5 + '@types/node': 20.9.1 dev: true - /@types/ed2curve@0.2.2: - resolution: {integrity: sha512-G1sTX5xo91ydevQPINbL2nfgVAj/s1ZiqZxC8OCWduwu+edoNGUm5JXtTkg9F3LsBZbRI46/0HES4CPUE2wc9g==} + /@types/ed2curve@0.2.4: + resolution: {integrity: sha512-1m9IX8qypOa0K1NfdMsMxB3gjhKyXbr5Yl9FzzwWQjLSDFGLkvRvSfla1NYqzIt72ocIALMXsF+twRlzr1ov/g==} dependencies: tweetnacl: 1.0.3 dev: true @@ -1102,13 +1113,13 @@ packages: /@types/graceful-fs@4.1.7: resolution: {integrity: sha512-MhzcwU8aUygZroVwL2jeYk6JisJrPl/oov/gsgGCue9mkgl9wjGbzReYQClxiUgFDnib9FuHqTndccKeZKxTRw==} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 dev: true - /@types/hdkey@2.0.1: - resolution: {integrity: sha512-4s6jhP0BT3sWBaRo0BfA3BpFllQvuRlXUzIqnuvSNmPhmMCZYjhrDe31nJb8kJLc0ZVdqj9Ep9eH2RGBNCK9Sw==} + /@types/hdkey@2.0.3: + resolution: {integrity: sha512-U5W3b+f3KqCC7tge4WjV5MDzzYTcwbnufyL7RwEmxH2EyxtbfaQVlS8z6PZDp8XET304EEVhLWG76rF5ygUKHQ==} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 dev: true /@types/istanbul-lib-coverage@2.0.4: @@ -1127,8 +1138,8 @@ packages: '@types/istanbul-lib-report': 3.0.1 dev: true - /@types/jest@29.5.5: - resolution: {integrity: sha512-ebylz2hnsWR9mYvmBFbXJXr+33UPc4+ZdxyDXh5w0FlPBTfCVN3wPL+kuOiQt3xvrK419v7XWeAs+AeOksafXg==} + /@types/jest@29.5.8: + resolution: {integrity: sha512-fXEFTxMV2Co8ZF5aYFJv+YeA08RTYJfhtN5c9JSv/mFEMe+xxjufCb+PHL+bJcMs/ebPUsBu+UNTEz+ydXrR6g==} dependencies: expect: 29.7.0 pretty-format: 29.7.0 @@ -1146,28 +1157,34 @@ packages: resolution: {integrity: sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==} dev: true - /@types/node@20.5.1: - resolution: {integrity: sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==} + /@types/node@11.11.6: + resolution: {integrity: sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==} + dev: false + + /@types/node@18.18.9: + resolution: {integrity: sha512-0f5klcuImLnG4Qreu9hPj/rEfFq6YRc5n2mAjSsH+ec/mJL+3voBH0+8T7o8RpFjH7ovc+TRsL/c7OYIQsPTfQ==} + dependencies: + undici-types: 5.26.5 dev: true - /@types/node@20.8.5: - resolution: {integrity: sha512-SPlobFgbidfIeOYlzXiEjSYeIJiOCthv+9tSQVpvk4PAdIIc+2SmjNVzWXk9t0Y7dl73Zdf+OgXKHX9XtkqUpw==} + /@types/node@20.9.1: + resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==} dependencies: - undici-types: 5.25.3 + undici-types: 5.26.5 /@types/normalize-package-data@2.4.2: resolution: {integrity: sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==} dev: true - /@types/pbkdf2@3.1.0: - resolution: {integrity: sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==} + /@types/pbkdf2@3.1.2: + resolution: {integrity: sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 /@types/secp256k1@4.0.4: resolution: {integrity: sha512-oN0PFsYxDZnX/qSJ5S5OwaEDTYfekhvaM5vqui2bu1AA39pKofmgL104Q29KiOXizXS2yLjSzc5YdTyMKdcy4A==} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 dev: false /@types/semver@7.5.3: @@ -1200,7 +1217,7 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.9.1 - '@typescript-eslint/parser': 5.62.0(eslint@8.51.0)(typescript@5.1.6) + '@typescript-eslint/parser': 5.62.0(eslint@8.54.0)(typescript@5.1.6) '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@8.50.0)(typescript@5.1.6) '@typescript-eslint/utils': 5.62.0(eslint@8.50.0)(typescript@5.1.6) @@ -1216,7 +1233,7 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@5.62.0(eslint@8.51.0)(typescript@5.1.6): + /@typescript-eslint/parser@5.62.0(eslint@8.54.0)(typescript@5.1.6): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1230,7 +1247,7 @@ packages: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6) debug: 4.3.4 - eslint: 8.51.0 + eslint: 8.54.0 typescript: 5.1.6 transitivePeerDependencies: - supports-color @@ -1310,19 +1327,19 @@ packages: - typescript dev: true - /@typescript-eslint/utils@5.62.0(eslint@8.51.0)(typescript@5.1.6): + /@typescript-eslint/utils@5.62.0(eslint@8.54.0)(typescript@5.1.6): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@types/json-schema': 7.0.13 '@types/semver': 7.5.3 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6) - eslint: 8.51.0 + eslint: 8.54.0 eslint-scope: 5.1.1 semver: 7.5.4 transitivePeerDependencies: @@ -1338,6 +1355,10 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + /JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -1354,11 +1375,6 @@ packages: acorn: 8.10.0 dev: true - /acorn-walk@8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} - engines: {node: '>=0.4.0'} - dev: true - /acorn@8.10.0: resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} engines: {node: '>=0.4.0'} @@ -1422,10 +1438,6 @@ packages: picomatch: 2.3.1 dev: true - /arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true - /argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: @@ -1454,8 +1466,8 @@ packages: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: false - /axios@1.5.1: - resolution: {integrity: sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==} + /axios@1.6.2: + resolution: {integrity: sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==} dependencies: follow-redirects: 1.15.3 form-data: 4.0.0 @@ -1568,6 +1580,15 @@ packages: engines: {node: '>=8.0.0'} dev: false + /bip39@3.0.3: + resolution: {integrity: sha512-P0dKrz4g0V0BjXfx7d9QNkJ/Txcz/k+hM9TnjqjUaXtuOfAvxXSw2rJw8DX0e3ZPwnK/IgDxoRqf0bvoVCqbMg==} + dependencies: + '@types/node': 11.11.6 + create-hash: 1.2.0 + pbkdf2: 3.1.2 + randombytes: 2.1.0 + dev: false + /bip39@3.1.0: resolution: {integrity: sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==} dependencies: @@ -1869,22 +1890,22 @@ packages: compare-func: 2.0.0 dev: true - /conventional-changelog-conventionalcommits@6.1.0: - resolution: {integrity: sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==} - engines: {node: '>=14'} + /conventional-changelog-conventionalcommits@7.0.2: + resolution: {integrity: sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==} + engines: {node: '>=16'} dependencies: compare-func: 2.0.0 dev: true - /conventional-commits-parser@4.0.0: - resolution: {integrity: sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==} - engines: {node: '>=14'} + /conventional-commits-parser@5.0.0: + resolution: {integrity: sha512-ZPMl0ZJbw74iS9LuX9YIAiW8pfM5p3yh2o/NbXHbkFuZzY5jvdi5jFycEOkmBW5H5I7nA+D6f3UcsCLP2vvSEA==} + engines: {node: '>=16'} hasBin: true dependencies: JSONStream: 1.3.5 - is-text-path: 1.0.1 - meow: 8.1.2 - split2: 3.2.2 + is-text-path: 2.0.0 + meow: 12.1.1 + split2: 4.2.0 dev: true /convert-source-map@1.9.0: @@ -1895,18 +1916,17 @@ packages: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} dev: true - /cosmiconfig-typescript-loader@4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6)(ts-node@10.9.1)(typescript@5.1.6): - resolution: {integrity: sha512-BabizFdC3wBHhbI4kJh0VkQP9GkBfoHPydD0COMce1nJ1kJAB3F2TmJ/I7diULBKtmEWSwEbuN/KDtgnmUUVmw==} - engines: {node: '>=v14.21.3'} + /cosmiconfig-typescript-loader@5.0.0(@types/node@18.18.9)(cosmiconfig@8.3.6)(typescript@5.1.6): + resolution: {integrity: sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==} + engines: {node: '>=v16'} peerDependencies: '@types/node': '*' - cosmiconfig: '>=7' - ts-node: '>=10' + cosmiconfig: '>=8.2' typescript: '>=4' dependencies: - '@types/node': 20.5.1 + '@types/node': 18.18.9 cosmiconfig: 8.3.6(typescript@5.1.6) - ts-node: 10.9.1(@types/node@20.8.5)(typescript@5.1.6) + jiti: 1.21.0 typescript: 5.1.6 dev: true @@ -1947,7 +1967,7 @@ packages: sha.js: 2.4.11 dev: false - /create-jest@29.7.0(@types/node@20.8.5)(ts-node@10.9.1): + /create-jest@29.7.0(@types/node@20.9.1): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -1956,7 +1976,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@20.9.1) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -1966,10 +1986,6 @@ packages: - ts-node dev: true - /create-require@1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true - /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -2064,11 +2080,6 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true - /diff@4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - dev: true - /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -2181,13 +2192,13 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-google@0.14.0(eslint@8.51.0): + /eslint-config-google@0.14.0(eslint@8.54.0): resolution: {integrity: sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==} engines: {node: '>=0.10.0'} peerDependencies: eslint: '>=5.16.0' dependencies: - eslint: 8.51.0 + eslint: 8.54.0 dev: true /eslint-config-prettier@9.0.0(eslint@8.50.0): @@ -2210,8 +2221,8 @@ packages: regexpp: 3.2.0 dev: true - /eslint-plugin-jest@27.4.2(eslint@8.51.0)(jest@29.7.0)(typescript@5.1.6): - resolution: {integrity: sha512-3Nfvv3wbq2+PZlRTf2oaAWXWwbdBejFRBR2O8tAO67o+P8zno+QGbcDYaAXODlreXVg+9gvWhKKmG2rgfb8GEg==} + /eslint-plugin-jest@27.6.0(eslint@8.54.0)(jest@29.7.0)(typescript@5.1.6): + resolution: {integrity: sha512-MTlusnnDMChbElsszJvrwD1dN3x6nZl//s4JD23BxB6MgR66TZlL064su24xEIS3VACfAoHV1vgyMgPw8nkdng==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0 @@ -2223,9 +2234,9 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@8.51.0)(typescript@5.1.6) - eslint: 8.51.0 - jest: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + '@typescript-eslint/utils': 5.62.0(eslint@8.54.0)(typescript@5.1.6) + eslint: 8.54.0 + jest: 29.7.0(@types/node@20.9.1) transitivePeerDependencies: - supports-color - typescript @@ -2346,18 +2357,19 @@ packages: - supports-color dev: true - /eslint@8.51.0: - resolution: {integrity: sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==} + /eslint@8.54.0: + resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) '@eslint-community/regexpp': 4.9.1 - '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.51.0 - '@humanwhocodes/config-array': 0.11.11 + '@eslint/eslintrc': 2.1.3 + '@eslint/js': 8.54.0 + '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 @@ -2439,7 +2451,7 @@ packages: /ethereum-cryptography@0.1.3: resolution: {integrity: sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==} dependencies: - '@types/pbkdf2': 3.1.0 + '@types/pbkdf2': 3.1.2 '@types/secp256k1': 4.0.4 blakejs: 1.2.1 browserify-aes: 1.2.0 @@ -2766,7 +2778,7 @@ packages: typescript: '>=3' dependencies: '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.50.0)(typescript@5.1.6) - '@typescript-eslint/parser': 5.62.0(eslint@8.51.0)(typescript@5.1.6) + '@typescript-eslint/parser': 5.62.0(eslint@8.54.0)(typescript@5.1.6) chalk: 4.1.2 eslint: 8.50.0 eslint-config-prettier: 9.0.0(eslint@8.50.0) @@ -2817,6 +2829,10 @@ packages: safe-buffer: 5.2.1 dev: false + /hash-wasm@4.9.0: + resolution: {integrity: sha512-7SW7ejyfnRxuOc7ptQHSf4LDoZaWOivfzqw+5rpcQku0nHfmicPKE51ra9BiRLAmT8+gGLestr1XroUkqdjL6w==} + dev: false + /hash.js@1.1.7: resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} dependencies: @@ -2923,6 +2939,7 @@ packages: /ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + dev: true /inquirer@7.3.3: resolution: {integrity: sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==} @@ -3025,11 +3042,11 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true - /is-text-path@1.0.1: - resolution: {integrity: sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w==} - engines: {node: '>=0.10.0'} + /is-text-path@2.0.0: + resolution: {integrity: sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==} + engines: {node: '>=8'} dependencies: - text-extensions: 1.9.0 + text-extensions: 2.4.0 dev: true /is-wsl@2.2.0: @@ -3119,7 +3136,7 @@ packages: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.1 @@ -3140,7 +3157,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(@types/node@20.8.5)(ts-node@10.9.1): + /jest-cli@29.7.0(@types/node@20.9.1): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -3150,14 +3167,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.1) + '@jest/core': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + create-jest: 29.7.0(@types/node@20.9.1) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + jest-config: 29.7.0(@types/node@20.9.1) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -3168,7 +3185,7 @@ packages: - ts-node dev: true - /jest-config@29.7.0(@types/node@20.8.5)(ts-node@10.9.1): + /jest-config@29.7.0(@types/node@20.9.1): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -3183,7 +3200,7 @@ packages: '@babel/core': 7.23.0 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 babel-jest: 29.7.0(@babel/core@7.23.0) chalk: 4.1.2 ci-info: 3.8.0 @@ -3203,7 +3220,6 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@types/node@20.8.5)(typescript@5.1.6) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -3244,7 +3260,7 @@ packages: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 jest-mock: 29.7.0 jest-util: 29.7.0 dev: true @@ -3260,7 +3276,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.7 - '@types/node': 20.8.5 + '@types/node': 20.9.1 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -3311,7 +3327,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 jest-util: 29.7.0 dev: true @@ -3366,7 +3382,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -3397,7 +3413,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.2 @@ -3449,7 +3465,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -3474,7 +3490,7 @@ packages: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.8.5 + '@types/node': 20.9.1 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -3486,13 +3502,13 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.8.5 + '@types/node': 20.9.1 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.7.0(@types/node@20.8.5)(ts-node@10.9.1): + /jest@29.7.0(@types/node@20.9.1): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -3502,10 +3518,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0(ts-node@10.9.1) + '@jest/core': 29.7.0 '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + jest-cli: 29.7.0(@types/node@20.9.1) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -3513,6 +3529,11 @@ packages: - ts-node dev: true + /jiti@1.21.0: + resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} + hasBin: true + dev: true + /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true @@ -3739,6 +3760,11 @@ packages: safe-buffer: 5.2.1 dev: false + /meow@12.1.1: + resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} + engines: {node: '>=16.10'} + dev: true + /meow@8.1.2: resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} engines: {node: '>=10'} @@ -4096,6 +4122,12 @@ packages: hasBin: true dev: true + /prettier@3.1.0: + resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-format@29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4402,15 +4434,6 @@ packages: tweetnacl-auth: 0.3.1 dev: false - /sodium-native@3.2.1: - resolution: {integrity: sha512-EgDZ/Z7PxL2kCasKk7wnRkV8W9kvwuIlHuHXAxkQm3FF0MgVsjyLBXGjSRGhjE6u7rhSpk3KaMfFM23bfMysIQ==} - requiresBuild: true - dependencies: - ini: 1.3.8 - node-gyp-build: 4.6.1 - dev: false - optional: true - /source-map-support@0.5.13: resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} dependencies: @@ -4451,6 +4474,11 @@ packages: readable-stream: 3.6.2 dev: true + /split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + dev: true + /sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} dev: true @@ -4561,9 +4589,9 @@ packages: minimatch: 3.1.2 dev: true - /text-extensions@1.9.0: - resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==} - engines: {node: '>=0.10'} + /text-extensions@2.4.0: + resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} + engines: {node: '>=8'} dev: true /text-table@0.2.0: @@ -4644,7 +4672,7 @@ packages: '@babel/core': 7.23.0 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.8.5)(ts-node@10.9.1) + jest: 29.7.0(@types/node@20.9.1) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -4654,37 +4682,6 @@ packages: yargs-parser: 21.1.1 dev: true - /ts-node@10.9.1(@types/node@20.8.5)(typescript@5.1.6): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.9 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.8.5 - acorn: 8.10.0 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.1.6 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: true - /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true @@ -4768,8 +4765,8 @@ packages: engines: {node: '>=14.0.0'} dev: false - /undici-types@5.25.3: - resolution: {integrity: sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==} + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} /universalify@2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} @@ -4801,10 +4798,6 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - /v8-compile-cache-lib@3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - dev: true - /v8-to-istanbul@9.1.0: resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==} engines: {node: '>=10.12.0'} @@ -4922,11 +4915,6 @@ packages: yargs-parser: 21.1.1 dev: true - /yn@3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - dev: true - /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} diff --git a/src/coins/lsk.ts b/src/coins/lsk.ts index a52df93..b9e9c75 100644 --- a/src/coins/lsk.ts +++ b/src/coins/lsk.ts @@ -1,4 +1,4 @@ -import * as cryptography from '@liskhq/lisk-cryptography'; +import {address as cryptography} from '@liskhq/lisk-cryptography'; import sodium from 'sodium-browserify-tweetnacl'; import pbkdf2 from 'pbkdf2'; import {bytesToHex} from '../helpers/encryptor'; @@ -27,7 +27,7 @@ export const lsk = { LiskHashSettings.DIGEST ); const keyPair = sodium.crypto_sign_seed_keypair(liskSeed); - const address = cryptography.getBase32AddressFromPublicKey( + const address = cryptography.getLisk32AddressFromPublicKey( keyPair.publicKey ); const addressHexBinary = cryptography.getAddressFromPublicKey(