From b8587fd8e7bff64e6f2c543ee4724c6972876bc4 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 13 Nov 2023 20:28:54 +1300 Subject: [PATCH] Sync @subql dependencies (#91) * Update @subql deps * Sync node core changes * pr number * update node-core --------- Co-authored-by: jiqiang90 Co-authored-by: JQQQ --- packages/node/CHANGELOG.md | 4 + packages/node/package.json | 2 +- .../src/indexer/dictionary.service.spec.ts | 4 +- .../node/src/indexer/dictionary.service.ts | 22 +- packages/node/src/indexer/fetch.module.ts | 17 +- packages/node/src/yargs.ts | 304 ++-------------- yarn.lock | 325 ++++++++---------- 7 files changed, 211 insertions(+), 467 deletions(-) diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index f9e9323c..f12ee642 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Updates to match changes in `@subql/node-core` (#91) + - Dictionary service to use dictionary registry + - Use yargs from node core ## [3.3.0] - 2023-11-06 ### Added diff --git a/packages/node/package.json b/packages/node/package.json index caff3e02..89aa4f7f 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -27,7 +27,7 @@ "@nestjs/schedule": "^3.0.1", "@subql/common": "^3.3.0", "@subql/common-algorand": "workspace:*", - "@subql/node-core": "^6.3.0", + "@subql/node-core": "^6.4.1", "@subql/types-algorand": "workspace:*", "algosdk": "^2.2.0", "axios": "^1.3.4", diff --git a/packages/node/src/indexer/dictionary.service.spec.ts b/packages/node/src/indexer/dictionary.service.spec.ts index 1f5a1f96..07093199 100644 --- a/packages/node/src/indexer/dictionary.service.spec.ts +++ b/packages/node/src/indexer/dictionary.service.spec.ts @@ -8,8 +8,8 @@ import { DictionaryService } from './dictionary.service'; describe('dictionary service', () => { let dictionaryService: DictionaryService; - beforeEach(() => { - dictionaryService = new DictionaryService( + beforeEach(async () => { + dictionaryService = await DictionaryService.create( { network: { chainId: 'wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=', diff --git a/packages/node/src/indexer/dictionary.service.ts b/packages/node/src/indexer/dictionary.service.ts index 755c4731..66c8b627 100644 --- a/packages/node/src/indexer/dictionary.service.ts +++ b/packages/node/src/indexer/dictionary.service.ts @@ -3,6 +3,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; +import { NETWORK_FAMILY } from '@subql/common'; import { NodeConfig, DictionaryService as CoreDictionaryService, @@ -12,13 +13,14 @@ import { SubqueryProject } from '../configure/SubqueryProject'; @Injectable() export class DictionaryService extends CoreDictionaryService { - constructor( + private constructor( @Inject('ISubqueryProject') protected project: SubqueryProject, nodeConfig: NodeConfig, eventEmitter: EventEmitter2, + dictionaryUrl?: string, ) { super( - project.network.dictionary, + dictionaryUrl ?? project.network.dictionary, project.network.chainId, nodeConfig, eventEmitter, @@ -29,4 +31,20 @@ export class DictionaryService extends CoreDictionaryService { // Chain id is used as genesis hash return this.project.network.chainId === metaData.genesisHash; } + + static async create( + project: SubqueryProject, + nodeConfig: NodeConfig, + eventEmitter: EventEmitter2, + ): Promise { + const url = + project.network.dictionary ?? + (await CoreDictionaryService.resolveDictionary( + NETWORK_FAMILY.algorand, + project.network.chainId, + nodeConfig.dictionaryRegistry, + )); + + return new DictionaryService(project, nodeConfig, eventEmitter, url); + } } diff --git a/packages/node/src/indexer/fetch.module.ts b/packages/node/src/indexer/fetch.module.ts index 555c997b..54ea0ed6 100644 --- a/packages/node/src/indexer/fetch.module.ts +++ b/packages/node/src/indexer/fetch.module.ts @@ -140,7 +140,22 @@ import { UnfinalizedBlocksService } from './unfinalizedBlocks.service'; ConnectionPoolService, IndexingBenchmarkService, PoiBenchmarkService, - DictionaryService, + { + provide: DictionaryService, + useFactory: async ( + project: SubqueryProject, + nodeConfig: NodeConfig, + eventEmitter: EventEmitter2, + ) => { + const dictionaryService = await DictionaryService.create( + project, + nodeConfig, + eventEmitter, + ); + return dictionaryService; + }, + inject: ['ISubqueryProject', NodeConfig, EventEmitter2], + }, SandboxService, DsProcessorService, DynamicDsService, diff --git a/packages/node/src/yargs.ts b/packages/node/src/yargs.ts index 90f23b65..978a67db 100644 --- a/packages/node/src/yargs.ts +++ b/packages/node/src/yargs.ts @@ -1,287 +1,25 @@ // Copyright 2020-2023 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { initLogger } from '@subql/node-core/logger'; -import { hideBin } from 'yargs/helpers'; -import yargs from 'yargs/yargs'; +import { yargsBuilder } from '@subql/node-core/yargs'; -export const yargsOptions = yargs(hideBin(process.argv)) - .env('SUBQL_NODE') - .command({ - command: 'test', - describe: 'Run tests for a SubQuery application', - builder: {}, - handler: (argv) => { - initLogger( - argv.debug as string, - argv.outputFmt as 'json' | 'colored', - argv.logLevel as string | undefined, - ); - // lazy import to make sure logger is instantiated before all other services - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { testingInit } = require('./subcommands/testing.init'); - return testingInit(); - }, - }) - .command({ - command: 'force-clean', - describe: - 'Clean the database dropping project schemas and tables. Once the command is executed, the application would exit upon completion.', - builder: {}, - handler: (argv) => { - initLogger( - argv.debug as string, - argv.outputFmt as 'json' | 'colored', - argv.logLevel as string | undefined, - ); - - // lazy import to make sure logger is instantiated before all other services - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { forceCleanInit } = require('./subcommands/forceClean.init'); - return forceCleanInit(); - }, - }) - .command({ - command: 'reindex', - describe: - 'Reindex to specified block height. Historical must be enabled for the targeted project (--disable-historical=false). Once the command is executed, the application would exit upon completion.', - builder: (yargs) => - yargs.options('targetHeight', { - type: 'number', - description: 'set targetHeight', - require: true, - }), - handler: (argv) => { - initLogger( - argv.debug as string, - argv.outputFmt as 'json' | 'colored', - argv.logLevel as string | undefined, - ); - // lazy import to make sure logger is instantiated before all other services - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { reindexInit } = require('./subcommands/reindex.init'); - return reindexInit(argv.targetHeight); - }, - }) - .options({ - 'batch-size': { - demandOption: false, - describe: 'Batch size of blocks to fetch in one round', - type: 'number', - }, - config: { - alias: 'c', - demandOption: false, - describe: 'Specify configuration file', - type: 'string', - }, - 'db-schema': { - demandOption: false, - describe: 'Db schema name of the project', - type: 'string', - }, - debug: { - demandOption: false, - describe: `Enable debug logging for specific scopes, this will override log-level. "*" will enable debug everywhere, or comma separated strings for specific scopes. e.g. "SQL,dictionary". To disable specific scopes you can prefix them with '-'. e.g. "*,-SQL"`, - type: 'string', - }, - 'dictionary-resolver': { - demandOption: false, - describe: 'Use SubQuery Network dictionary resolver', - type: 'boolean', - default: false, - }, - 'dictionary-timeout': { - demandOption: false, - describe: 'Max timeout for dictionary query', - type: 'number', - }, - 'dictionary-query-size': { - demandOption: false, - describe: - 'Dictionary query max block size, this specify the block height range of the dictionary query', - type: 'number', - }, - 'disable-historical': { - demandOption: false, - describe: 'Disable storing historical state entities', - type: 'boolean', - // NOTE: don't set a default for this. It will break apply args from manifest. The default should be set in NodeConfig - }, - ipfs: { - demandOption: false, - describe: 'IPFS gateway endpoint', - type: 'string', - }, - local: { - deprecated: true, - type: 'boolean', - demandOption: false, - describe: 'Use local mode', - }, - 'log-level': { - demandOption: false, - describe: 'Specify log level to print. Ignored when --debug is used', - type: 'string', - choices: ['fatal', 'error', 'warn', 'info', 'debug', 'trace', 'silent'], - }, - 'multi-chain': { - demandOption: false, - default: false, - describe: - 'Enables indexing multiple subquery projects into the same database schema', - type: 'boolean', - }, - 'network-dictionary': { - alias: 'd', - demandOption: false, - describe: 'Specify the dictionary api for this network', - type: 'string', - }, - 'network-endpoint': { - demandOption: false, - type: 'string', - describe: 'Blockchain network endpoint to connect', - }, - 'output-fmt': { - demandOption: false, - describe: 'Print log as json or plain text', - type: 'string', - choices: ['json', 'colored'], - }, - port: { - alias: 'p', - demandOption: false, - describe: 'The port the service will bind to', - type: 'number', - }, - profiler: { - demandOption: false, - describe: 'Show profiler information to console output', - type: 'boolean', - default: false, - }, - 'proof-of-index': { - demandOption: false, - describe: 'Enable/disable proof of index', - type: 'boolean', - default: false, - }, - 'query-limit': { - demandOption: false, - describe: - 'The limit of items a project can query with store.getByField at once', - type: 'number', - default: 100, - }, - 'scale-batch-size': { - type: 'boolean', - demandOption: false, - describe: 'scale batch size based on memory usage', - default: false, - }, - 'pg-ca': { - demandOption: false, - describe: - 'Postgres ca certificate - to enable TLS/SSL connections to your PostgreSQL, path to the server certificate file are required, e.g /path/to/server-certificates/root.crt', - type: 'string', - }, - 'pg-key': { - demandOption: false, - describe: - 'Postgres client key - Path to key file e.g /path/to/client-key/postgresql.key', - type: 'string', - }, - 'pg-cert': { - demandOption: false, - describe: - 'Postgres client certificate - Path to client certificate e.g /path/to/client-certificates/postgresql.crt', - type: 'string', - }, - 'store-cache-threshold': { - demandOption: false, - describe: - 'Store cache will flush data to the database when number of records excess this threshold', - type: 'number', - }, - 'store-get-cache-size': { - demandOption: false, - describe: 'Store get cache size for each model', - type: 'number', - }, - 'store-cache-upper-limit': { - demandOption: false, - describe: - 'Defines the upper limit to the store cache size. When this limit is reached indexing will wait for the cache to be flushed before continuing.', - type: 'number', - }, - 'store-cache-async': { - demandOption: false, - describe: - 'If enabled the store cache will flush data asyncronously relative to indexing data', - type: 'boolean', - }, - 'store-flush-interval': { - demandOption: false, - describe: - 'The interval, in seconds, at which data is flushed from the cache. ' + - 'This ensures that data is persisted regularly when there is either not much data or the project is up to date.', - type: 'number', - default: 5, - }, - subquery: { - alias: 'f', - demandOption: true, - default: process.cwd(), - describe: 'Local path or IPFS cid of the subquery project', - type: 'string', - }, - 'subquery-name': { - deprecated: true, - demandOption: false, - describe: 'Name of the subquery project', - type: 'string', - }, - subscription: { - demandOption: false, - describe: 'Enable subscription by create notification triggers', - type: 'boolean', - default: false, - }, - timeout: { - demandOption: false, - describe: 'Timeout for indexer sandbox to execute the mapping functions', - type: 'number', - }, - 'timestamp-field': { - demandOption: false, - describe: 'Enable/disable created_at and updated_at in schema', - type: 'boolean', - default: false, - }, - 'unfinalized-blocks': { - demandOption: false, - describe: 'Enable to fetch and index unfinalized blocks', - type: 'boolean', - // NOTE: don't set a default for this. It will break apply args from manifest. The default should be set in NodeConfig - }, - unsafe: { - type: 'boolean', - demandOption: false, - describe: 'Allows usage of any built-in module within the sandbox', - // NOTE: don't set a default for this. It will break apply args from manifest. The default should be set in NodeConfig - }, - workers: { - alias: 'w', - demandOption: false, - describe: - 'Number of worker threads to use for fetching and processing blocks. Disabled by default.', - type: 'number', - }, - root: { - describe: - 'This is a hidden flag only used from the main thread to workers. It provides a root directory for the project. This is a temp directory with IPFS and GitHub projects.', - type: 'string', - }, - }) - .hide('root'); // root is hidden because its for internal use +export const yargsOptions = yargsBuilder({ + initTesting: () => { + // lazy import to make sure logger is instantiated before all other services + // eslint-disable-next-line @typescript-eslint/no-var-requires + const { testingInit } = require('./subcommands/testing.init'); + return testingInit(); + }, + initForceClean: () => { + // lazy import to make sure logger is instantiated before all other services + // eslint-disable-next-line @typescript-eslint/no-var-requires + const { forceCleanInit } = require('./subcommands/forceClean.init'); + return forceCleanInit(); + }, + initReindex: (targetHeight: number) => { + // lazy import to make sure logger is instantiated before all other services + // eslint-disable-next-line @typescript-eslint/no-var-requires + const { reindexInit } = require('./subcommands/reindex.init'); + return reindexInit(targetHeight); + }, +}); diff --git a/yarn.lock b/yarn.lock index a834094f..7cbe766a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2506,6 +2506,15 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.2.0": + version: 1.2.0 + resolution: "@noble/curves@npm:1.2.0" + dependencies: + "@noble/hashes": 1.3.2 + checksum: bb798d7a66d8e43789e93bc3c2ddff91a1e19fdb79a99b86cd98f1e5eff0ee2024a2672902c2576ef3577b6f282f3b5c778bebd55761ddbb30e36bf275e83dd0 + languageName: node + linkType: hard + "@noble/hashes@npm:1.3.0": version: 1.3.0 resolution: "@noble/hashes@npm:1.3.0" @@ -2513,6 +2522,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:1.3.2, @noble/hashes@npm:^1.3.2": + version: 1.3.2 + resolution: "@noble/hashes@npm:1.3.2" + checksum: fe23536b436539d13f90e4b9be843cc63b1b17666a07634a2b1259dded6f490be3d050249e6af98076ea8f2ea0d56f578773c2197f2aa0eeaa5fba5bc18ba474 + languageName: node + linkType: hard + "@noble/hashes@npm:~1.3.0": version: 1.3.1 resolution: "@noble/hashes@npm:1.3.1" @@ -2690,235 +2706,181 @@ __metadata: languageName: node linkType: hard -"@polkadot/networks@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/networks@npm:12.2.1" +"@polkadot/networks@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/networks@npm:12.5.1" dependencies: - "@polkadot/util": 12.2.1 - "@substrate/ss58-registry": ^1.40.0 - tslib: ^2.5.0 - checksum: e3005a5c5045633784ffcf0dda91eb4aeab92dba30a255315743b2d49145c5b5c30edd1e997ecdb0c096d2423e1665fe44ad2c79be054b371a89bafdf2247950 + "@polkadot/util": 12.5.1 + "@substrate/ss58-registry": ^1.43.0 + tslib: ^2.6.2 + checksum: f8c64684f6806365c1aded6ebca52432050cc8caacd067faf339b2f37497b63b13cebb689f7b0f9c62a890566383cf1931552da82815cc52baa2166fb1772a43 languageName: node linkType: hard -"@polkadot/util-crypto@npm:^12.2.1": - version: 12.2.1 - resolution: "@polkadot/util-crypto@npm:12.2.1" +"@polkadot/util-crypto@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/util-crypto@npm:12.5.1" dependencies: - "@noble/curves": 1.0.0 - "@noble/hashes": 1.3.0 - "@polkadot/networks": 12.2.1 - "@polkadot/util": 12.2.1 - "@polkadot/wasm-crypto": ^7.2.1 - "@polkadot/wasm-util": ^7.2.1 - "@polkadot/x-bigint": 12.2.1 - "@polkadot/x-randomvalues": 12.2.1 - "@scure/base": 1.1.1 - tslib: ^2.5.0 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + "@polkadot/networks": 12.5.1 + "@polkadot/util": 12.5.1 + "@polkadot/wasm-crypto": ^7.2.2 + "@polkadot/wasm-util": ^7.2.2 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-randomvalues": 12.5.1 + "@scure/base": ^1.1.3 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.2.1 - checksum: d999d791b8b4d5834dec6de6a1e957482211d11753a27b112eaeb0a59a4502fcd85ad8fbcc46e55609d6d797de6cec78af0f90983b33898b63506ff2f9167f90 + "@polkadot/util": 12.5.1 + checksum: 4efb5ca6e48f7457d8dcfa02ac9f581ce23a90ba9e72c8f6fd7649296e92dcb3dfa3d2bdd0b5ed68b81bf15e32aabef34f60d47851249d8859dba7ebeb63501f languageName: node linkType: hard -"@polkadot/util@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/util@npm:12.2.1" +"@polkadot/util@npm:12.5.1, @polkadot/util@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/util@npm:12.5.1" dependencies: - "@polkadot/x-bigint": 12.2.1 - "@polkadot/x-global": 12.2.1 - "@polkadot/x-textdecoder": 12.2.1 - "@polkadot/x-textencoder": 12.2.1 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-global": 12.5.1 + "@polkadot/x-textdecoder": 12.5.1 + "@polkadot/x-textencoder": 12.5.1 "@types/bn.js": ^5.1.1 bn.js: ^5.2.1 - tslib: ^2.5.0 - checksum: 850f0c82ee9a76f2b3da78cd5d37568a045ee0b5da25f491f275290843b460eb383dc3c9058918522bf09f0c0e1acca67445ee49615c557e94f14c392048be40 + tslib: ^2.6.2 + checksum: 955d41c01cb3c7da72c4f5f8faed13e1af1fa9603a3a1dd9f282eb69b5ebbffb889e76c595d1252ff5f9665cb3c55f1a96f908b020dc79356f92b2d5ce1aa81e languageName: node linkType: hard -"@polkadot/util@npm:^12.2.1": - version: 12.3.2 - resolution: "@polkadot/util@npm:12.3.2" +"@polkadot/wasm-bridge@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-bridge@npm:7.2.2" dependencies: - "@polkadot/x-bigint": 12.3.2 - "@polkadot/x-global": 12.3.2 - "@polkadot/x-textdecoder": 12.3.2 - "@polkadot/x-textencoder": 12.3.2 - "@types/bn.js": ^5.1.1 - bn.js: ^5.2.1 - tslib: ^2.5.3 - checksum: 53b5ac58bbae5d3aa867e0f1483fc0fd40e811919e573051225ab32e031ab81649be0f969ecb7c7a094c588f381d8ec1fa67160a65e3e2ef2180afe5677136cc - languageName: node - linkType: hard - -"@polkadot/wasm-bridge@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-bridge@npm:7.2.1" - dependencies: - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 6f4d255665f6c1552df9abcf8e99ee36b220c446c74e4da7ac21f3c578c3736695db41e816ef83226d98231c535df8daea6d2266c3090bdd8e7609fa87447de9 + checksum: b998b21bca963699c2958de0558bad83d19ca72922b7ca74beb99b8c418bdc4be7af86f7ea231b3224de55eb8ec59e0626642d393fc90192659cccaf346d5d2b languageName: node linkType: hard -"@polkadot/wasm-crypto-asmjs@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-asmjs@npm:7.2.1" +"@polkadot/wasm-crypto-asmjs@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-asmjs@npm:7.2.2" dependencies: - tslib: ^2.5.0 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" - checksum: 9d7f2ac6f73cc2ed390941a35426763c73e6f20374eb11ed60b880a6f716c2773cb1fe1cddb9416ab669c75b25b7d99be25c8c91886bb676d6faf9b4658f8fd7 + checksum: 2eba52949b51adfa1e8183d406f40b935cdea1a3189994529febd9db4f1abf5f853782e2c15dad7ab0f2dd8641b3dbf40b221c0462b6a29ac11c38e8a70a8a5b languageName: node linkType: hard -"@polkadot/wasm-crypto-init@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-init@npm:7.2.1" +"@polkadot/wasm-crypto-init@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-init@npm:7.2.2" dependencies: - "@polkadot/wasm-bridge": 7.2.1 - "@polkadot/wasm-crypto-asmjs": 7.2.1 - "@polkadot/wasm-crypto-wasm": 7.2.1 - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-bridge": 7.2.2 + "@polkadot/wasm-crypto-asmjs": 7.2.2 + "@polkadot/wasm-crypto-wasm": 7.2.2 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: 97105a9e846e97d9d678526e5dd1b491cd71e705c759a8ace9e0e9a54aa045b2b512bdcdd524ea6684963b6cb0fc0a44043d2198bc680c893e1feaaf4d860e76 + checksum: 75e4cc6cfecef13942397c0b0cbcd2ebf8534589b0a22104df6352908efbdc78e6fa42df3ce1660c1b267c8b7c40667a42c0d986a7a3bc4a2b9ea17ba97608af languageName: node linkType: hard -"@polkadot/wasm-crypto-wasm@npm:7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto-wasm@npm:7.2.1" +"@polkadot/wasm-crypto-wasm@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-wasm@npm:7.2.2" dependencies: - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" - checksum: f000fab2fc682a4d4d2029b483701a64091b9be0d75df82f3337a48d65ffdac8d76c828f46810cb5aae6b9ec77bdf3963ae8b8668106ea9e5c0c19f57637655d + checksum: e3d0aeb59fb7e5d3d25a256ed57c4e05895e9d7e29cb22214d9b59ff6e400f25b0c5758f77a0513befd99ef33051b43bbff3d1def978e87668aa74f3f8799c0b languageName: node linkType: hard -"@polkadot/wasm-crypto@npm:^7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-crypto@npm:7.2.1" +"@polkadot/wasm-crypto@npm:^7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto@npm:7.2.2" dependencies: - "@polkadot/wasm-bridge": 7.2.1 - "@polkadot/wasm-crypto-asmjs": 7.2.1 - "@polkadot/wasm-crypto-init": 7.2.1 - "@polkadot/wasm-crypto-wasm": 7.2.1 - "@polkadot/wasm-util": 7.2.1 - tslib: ^2.5.0 + "@polkadot/wasm-bridge": 7.2.2 + "@polkadot/wasm-crypto-asmjs": 7.2.2 + "@polkadot/wasm-crypto-init": 7.2.2 + "@polkadot/wasm-crypto-wasm": 7.2.2 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" "@polkadot/x-randomvalues": "*" - checksum: f42f2bc34cf76d1438893f72a233080196c9a95dd3c53444f582150c7f56b75c80b8b8b9b4a3d9015438a6f7438c6e40def46b1fe7ce3a367bcd280f2bf29c98 + checksum: 25710154c1a25aea59a8cdba4cfe051249e83b86cbc0869be7b0680c86f2841131f7df76881d422fb4d179b9037320957e725bc50546e63273bc11b85751b5a6 languageName: node linkType: hard -"@polkadot/wasm-util@npm:7.2.1, @polkadot/wasm-util@npm:^7.2.1": - version: 7.2.1 - resolution: "@polkadot/wasm-util@npm:7.2.1" +"@polkadot/wasm-util@npm:7.2.2, @polkadot/wasm-util@npm:^7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-util@npm:7.2.2" dependencies: - tslib: ^2.5.0 + tslib: ^2.6.1 peerDependencies: "@polkadot/util": "*" - checksum: 8df30296664807c27b01d37a3e9f124fdc22aef61e633b1a538a7c533f485a2aa756c43e67aac8d0c8383273432783b78e5528c5bc1ffcf508e7faaa5009e618 - languageName: node - linkType: hard - -"@polkadot/x-bigint@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/x-bigint@npm:12.2.1" - dependencies: - "@polkadot/x-global": 12.2.1 - tslib: ^2.5.0 - checksum: 2e1603f576654876e38e84bbea16d6206cfad58b58de0ab70bd9a5e86a20e903cae3e271f4b247f3d9fbecbe8475f40866c0bbacb7700c01be732f9b85ec6d81 + checksum: b1ad387e5b2726183e1c141ac59f9e6e722d9c1e896dbe0069fb5ce46d30c3517f07b36c840c1d82d23256e111a3697ba3015e53073858e8e05ab3d0cbdbf05e languageName: node linkType: hard -"@polkadot/x-bigint@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-bigint@npm:12.3.2" +"@polkadot/x-bigint@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-bigint@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: 0c88e28f1072cd2e5bc0efa3b8ede13f1084c8d56bb78a91f031ee128e572a5f74faa99c22be64182950194647a2081899dcfaa7e7ab16bbb3f9b9761515eb85 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 295d00b17860196c43ac4957ffb052ca68bb4319990876238e3f0925ca6ca9106810204136315491116a11a277d8a1e1fae65cc43a168505ee5a69a27404d2e0 languageName: node linkType: hard -"@polkadot/x-global@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/x-global@npm:12.2.1" +"@polkadot/x-global@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-global@npm:12.5.1" dependencies: - tslib: ^2.5.0 - checksum: 49b784d20014b86616ff6ad02bd8680b685d1a004ad91476cc4c3cd08ecdc4d50d98bc141a6dfc80411301147aac68a36a09ae338002772afa3a6a8fdcb8e672 + tslib: ^2.6.2 + checksum: d45e3d6096674b7495992c6e45cf1a284db545c16107ba9adae241d6aefe13c27adfaf93d58a3079e6a6b63acb221eb3181c7f55dc34124b24b542154724c506 languageName: node linkType: hard -"@polkadot/x-global@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-global@npm:12.3.2" +"@polkadot/x-randomvalues@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-randomvalues@npm:12.5.1" dependencies: - tslib: ^2.5.3 - checksum: 85bd4a3e89bacdf8159fe505b875fad0ce8cfc5ba65377b14981166d973339a2fa3128582112af51dfecea4b68b0501a960056138110195b5bea69c3a8c88e11 - languageName: node - linkType: hard - -"@polkadot/x-randomvalues@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/x-randomvalues@npm:12.2.1" - dependencies: - "@polkadot/x-global": 12.2.1 - tslib: ^2.5.0 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.2.1 + "@polkadot/util": 12.5.1 "@polkadot/wasm-util": "*" - checksum: c4d2dd9ed672221e58fc08a18a5876b4c680c6355297582851a41164d8fcfdedec88fabe16e23e62612e50963fef7e3cf4c250233487422d2c647b66547cfa5a + checksum: 52ee4b4206a98cac9e97e3d194db01fb4a540046672784442926478eaa2b2a74cebae59d10432671f544d72df5d623aedf57c301bcf447a4c72688ec3cb82fd5 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/x-textdecoder@npm:12.2.1" +"@polkadot/x-textdecoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textdecoder@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.2.1 - tslib: ^2.5.0 - checksum: 0e20a59e9bc7738c7ad8f5be082bd1e26269e9f5128868df86f13e7eee93e488eff642868009501b242fceed397ad577e42e6ab07caef3c813f930a60ad422a2 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 202a9e216e9b89cc74012fa3f6c96eeb368dc3e6fa3c943f28c37c20941a6c678506cbc136946e9ff100123aa43846eab7765af074de94dfdd23f4ce2242c794 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-textdecoder@npm:12.3.2" +"@polkadot/x-textencoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textencoder@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: d5b8810b325bad317e10f631f0d7c9c91e0db92ca37db7935e41569df8c926534aa4668a14b9b12d1d5263569239665bca8ad0089bf3b789a09dbf6f0303108f - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:12.2.1": - version: 12.2.1 - resolution: "@polkadot/x-textencoder@npm:12.2.1" - dependencies: - "@polkadot/x-global": 12.2.1 - tslib: ^2.5.0 - checksum: 61d14f5c998baf2e896487a89b0eb4dd884bc88a05aa7a716cfd872029883c26cd3b790c920061d7b190e9a13a2a4b2a9c5b19de516ef4d0c369e119f9da445d - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:12.3.2": - version: 12.3.2 - resolution: "@polkadot/x-textencoder@npm:12.3.2" - dependencies: - "@polkadot/x-global": 12.3.2 - tslib: ^2.5.3 - checksum: c383fab93904f6c47f87b1b111a002542c701844c82a62ead6bbbd19f23b58f87ebd47ec8578de7ed18b45668b43491cc60e44c343b9d59e80696e5c9357e962 + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 7a8d99d203cbd9537e55405d737667ae8cd9ad40a9e3de52f2ef7580a23d27ebf7f7c52da4e0eca6ca34dc97aae33a97bab36afb54aaa7714f54a31931f94113 languageName: node linkType: hard @@ -2995,7 +2957,14 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:1.1.1, @scure/base@npm:~1.1.0": +"@scure/base@npm:^1.1.3": + version: 1.1.3 + resolution: "@scure/base@npm:1.1.3" + checksum: 1606ab8a4db898cb3a1ada16c15437c3bce4e25854fadc8eb03ae93cbbbac1ed90655af4b0be3da37e12056fef11c0374499f69b9e658c9e5b7b3e06353c630c + languageName: node + linkType: hard + +"@scure/base@npm:~1.1.0": version: 1.1.1 resolution: "@scure/base@npm:1.1.1" checksum: b4fc810b492693e7e8d0107313ac74c3646970c198bbe26d7332820886fa4f09441991023ec9aa3a2a51246b74409ab5ebae2e8ef148bbc253da79ac49130309 @@ -3122,7 +3091,7 @@ __metadata: "@nestjs/testing": ^9.4.0 "@subql/common": ^3.3.0 "@subql/common-algorand": "workspace:*" - "@subql/node-core": ^6.3.0 + "@subql/node-core": ^6.4.0 "@subql/types-algorand": "workspace:*" "@types/express": ^4.17.13 "@types/jest": ^27.4.0 @@ -3151,9 +3120,9 @@ __metadata: languageName: unknown linkType: soft -"@subql/node-core@npm:^6.3.0": - version: 6.3.0 - resolution: "@subql/node-core@npm:6.3.0" +"@subql/node-core@npm:^6.4.0": + version: 6.4.0 + resolution: "@subql/node-core@npm:6.4.0" dependencies: "@apollo/client": ^3.7.16 "@nestjs/common": ^9.4.0 @@ -3163,7 +3132,7 @@ __metadata: "@subql/common": 3.3.0 "@subql/testing": 2.1.0 "@subql/types": 3.3.0 - "@subql/utils": 2.5.0 + "@subql/utils": 2.6.0 "@subql/x-sequelize": 6.32.0-0.0.2 "@willsoto/nestjs-prometheus": ^5.4.0 async-lock: ^1.4.0 @@ -3178,7 +3147,7 @@ __metadata: tar: ^6.1.11 vm2: ^3.9.19 yargs: ^16.2.0 - checksum: a0961eb85a5bfb5ff521658563ef78e2db55969857295f4108a937377fbf81bb02567d8353be24b880e38e9b6c14d91ebad468fe555346faae7d8a0a5ae69f79 + checksum: 29208b471b1c41750905b5056fbaab16c88f5448ca4d525ccdc5156b513fe66debf9424519dbbf277ce47fe25e0cdde6186c12fdec233a8aedc1b269b56f8fde languageName: node linkType: hard @@ -3232,12 +3201,12 @@ __metadata: languageName: node linkType: hard -"@subql/utils@npm:2.5.0": - version: 2.5.0 - resolution: "@subql/utils@npm:2.5.0" +"@subql/utils@npm:2.6.0": + version: 2.6.0 + resolution: "@subql/utils@npm:2.6.0" dependencies: - "@polkadot/util": ^12.2.1 - "@polkadot/util-crypto": ^12.2.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 "@subql/x-sequelize": 6.32.0-0.0.2 ansi-styles: ^6.1.0 axios: ^0.27.1 @@ -3251,7 +3220,7 @@ __metadata: rotating-file-stream: ^3.0.2 semver: ^7.5.2 tar: ^6.1.11 - checksum: 27d958f916f519aba9257d5bb4d310f0bb08d628098643c417342fbf864e6138de28d7fd0c8a3b3177f93668544b0655a6b483c9b1fe5fabbd8b08babc2ea36a + checksum: 284b125beb62976bd6c5f49a82d8bd3da96f928bfbfde72f42773b62440c6b9ef1a68dfbae85cff7aee40f5f349ebb1a91f41a314cbfd2b98c905496543a1323 languageName: node linkType: hard @@ -3298,10 +3267,10 @@ __metadata: languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.40.0": - version: 1.40.0 - resolution: "@substrate/ss58-registry@npm:1.40.0" - checksum: 474cb16b350e95fa7ca1020b70c6885c5c3d739472f506d175f24e9fd5a6d337d3c7e7a7fa44962199ed03fffb5d3b44b8af79a9811cb55ec34b3b75bb8e7f97 +"@substrate/ss58-registry@npm:^1.43.0": + version: 1.44.0 + resolution: "@substrate/ss58-registry@npm:1.44.0" + checksum: 130fafc337a60bf22b1c01b8bd4fdbc2606a00483961bd173224478adb358a17b865d287cf99a2a32cb430d23d3a7969fce0457e8302dc48a98e1f666c7f6e40 languageName: node linkType: hard @@ -12225,17 +12194,17 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.5.0": +"tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0": version: 2.5.0 resolution: "tslib@npm:2.5.0" checksum: ae3ed5f9ce29932d049908ebfdf21b3a003a85653a9a140d614da6b767a93ef94f460e52c3d787f0e4f383546981713f165037dc2274df212ea9f8a4541004e1 languageName: node linkType: hard -"tslib@npm:^2.5.3": - version: 2.6.0 - resolution: "tslib@npm:2.6.0" - checksum: c01066038f950016a18106ddeca4649b4d76caa76ec5a31e2a26e10586a59fceb4ee45e96719bf6c715648e7c14085a81fee5c62f7e9ebee68e77a5396e5538f +"tslib@npm:^2.6.1, tslib@npm:^2.6.2": + version: 2.6.2 + resolution: "tslib@npm:2.6.2" + checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad languageName: node linkType: hard