From 7e733b609be5abc757876e0bcaa527ceeeeadfc9 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 3 Feb 2025 08:52:55 +1300 Subject: [PATCH] Update code headers to 2025 (#2659) --- .eslintrc.js | 2 +- packages/cli/CHANGELOG.md | 2 + packages/cli/src/commands/build/index.ts | 2 +- packages/cli/src/commands/codegen/generate.ts | 2 +- packages/cli/src/commands/codegen/index.ts | 2 +- .../cli/src/commands/deployment/delete.ts | 2 +- .../cli/src/commands/deployment/deploy.ts | 2 +- packages/cli/src/commands/deployment/index.ts | 2 +- .../cli/src/commands/deployment/promote.ts | 2 +- packages/cli/src/commands/init.ts | 2 +- packages/cli/src/commands/migrate.test.ts | 2 +- packages/cli/src/commands/migrate.ts | 2 +- packages/cli/src/commands/multi-chain/add.ts | 2 +- .../cli/src/commands/multi-chain/deploy.ts | 2 +- .../src/commands/project/create-project.ts | 2 +- .../src/commands/project/delete-project.ts | 2 +- packages/cli/src/commands/project/index.ts | 2 +- packages/cli/src/commands/publish.test.ts | 2 +- packages/cli/src/commands/publish.ts | 2 +- packages/cli/src/constants.ts | 2 +- .../controller/add-chain-controller.spec.ts | 2 +- .../src/controller/add-chain-controller.ts | 2 +- .../src/controller/build-controller.spec.ts | 2 +- .../cli/src/controller/build-controller.ts | 2 +- .../src/controller/codegen-controller.spec.ts | 2 +- .../src/controller/codegen-controller.test.ts | 2 +- .../cli/src/controller/codegen-controller.ts | 2 +- .../cli/src/controller/codegen-cosmos.test.ts | 2 +- .../src/controller/deploy-controller.spec.ts | 2 +- .../src/controller/deploy-controller.test.ts | 2 +- .../cli/src/controller/deploy-controller.ts | 2 +- .../controller/generate-controller.spec.ts | 2 +- .../controller/generate-controller.test.ts | 2 +- .../cli/src/controller/generate-controller.ts | 2 +- .../src/controller/init-controller.spec.ts | 2 +- .../src/controller/init-controller.test.ts | 2 +- .../cli/src/controller/init-controller.ts | 2 +- .../migrate/abis/migrate-abis.controller.ts | 2 +- .../cli/src/controller/migrate/constants.ts | 2 +- packages/cli/src/controller/migrate/index.ts | 2 +- .../migrate/manifest/ethereum.spec.ts | 2 +- .../controller/migrate/manifest/ethereum.ts | 2 +- .../migrate-manifest.controller.spec.ts | 2 +- .../manifest/migrate-manifest.controller.ts | 2 +- .../mapping/migrate-mapping.controller.ts | 2 +- .../migrate/migrate-controller.spec.ts | 2 +- .../controller/migrate/migrate-controller.ts | 2 +- .../controller/migrate/migrate.fixtures.ts | 2 +- .../schema/migrate-schema.controller.spec.ts | 2 +- .../schema/migrate-schema.controller.ts | 2 +- packages/cli/src/controller/migrate/types.ts | 2 +- .../src/controller/project-controller.spec.ts | 2 +- .../cli/src/controller/project-controller.ts | 2 +- .../src/controller/publish-controller.spec.ts | 2 +- .../cli/src/controller/publish-controller.ts | 2 +- packages/cli/src/controller/validate.spec.ts | 2 +- packages/cli/src/createProject.fixtures.ts | 2 +- packages/cli/src/index.ts | 2 +- packages/cli/src/jsonrpc/client/http.ts | 2 +- packages/cli/src/jsonrpc/client/index.ts | 2 +- packages/cli/src/jsonrpc/client/types.ts | 2 +- packages/cli/src/jsonrpc/client/ws.ts | 2 +- packages/cli/src/jsonrpc/index.ts | 2 +- packages/cli/src/jsonrpc/jsonrpc.test.ts | 2 +- packages/cli/src/modulars/config.ts | 2 +- packages/cli/src/modulars/index.ts | 2 +- packages/cli/src/modulars/moduleLoader.ts | 2 +- packages/cli/src/modulars/types.ts | 2 +- packages/cli/src/modulars/utils.ts | 2 +- packages/cli/src/types.ts | 2 +- packages/cli/src/utils/build.spec.ts | 2 +- packages/cli/src/utils/build.ts | 2 +- packages/cli/src/utils/index.ts | 2 +- packages/cli/src/utils/networkFamily.spec.ts | 2 +- packages/cli/src/utils/networkFamily.ts | 2 +- packages/cli/src/utils/utils.ts | 2 +- packages/common-substrate/CHANGELOG.md | 2 + packages/common-substrate/src/index.ts | 2 +- .../common-substrate/src/project/index.ts | 2 +- .../common-substrate/src/project/load.spec.ts | 2 +- packages/common-substrate/src/project/load.ts | 2 +- .../common-substrate/src/project/models.ts | 2 +- .../src/project/project.spec.ts | 2 +- .../common-substrate/src/project/types.ts | 2 +- .../common-substrate/src/project/utils.ts | 2 +- .../versioned/ProjectManifestVersioned.ts | 2 +- .../src/project/versioned/index.ts | 2 +- .../src/project/versioned/v1_0_0/index.ts | 2 +- .../src/project/versioned/v1_0_0/model.ts | 2 +- packages/common/CHANGELOG.md | 2 + packages/common/src/constants.ts | 2 +- packages/common/src/index.ts | 2 +- packages/common/src/multichain/index.ts | 2 +- packages/common/src/multichain/models.ts | 2 +- .../IpfsHttpClientLite/IPFSHTTPClientLite.ts | 2 +- .../IpfsHttpClientLite.spec.ts | 2 +- .../src/project/IpfsHttpClientLite/index.ts | 2 +- .../src/project/IpfsHttpClientLite/utils.ts | 2 +- packages/common/src/project/index.ts | 2 +- packages/common/src/project/load.ts | 2 +- .../src/project/readers/github-reader.spec.ts | 2 +- .../src/project/readers/github-reader.ts | 2 +- packages/common/src/project/readers/index.ts | 2 +- .../src/project/readers/ipfs-reader.spec.ts | 2 +- .../common/src/project/readers/ipfs-reader.ts | 2 +- .../src/project/readers/local-reader.spec.ts | 2 +- .../src/project/readers/local-reader.ts | 7 +- .../common/src/project/readers/reader.spec.ts | 2 +- packages/common/src/project/readers/reader.ts | 2 +- packages/common/src/project/utils.ts | 13 +- packages/common/src/project/versioned/base.ts | 2 +- .../common/src/project/versioned/index.ts | 2 +- .../src/project/versioned/v1_0_0/index.ts | 2 +- .../project/versioned/v1_0_0/model.spec.ts | 2 +- .../src/project/versioned/v1_0_0/models.ts | 2 +- packages/node-core/CHANGELOG.md | 2 + packages/node-core/logger.js | 2 +- .../src/admin/admin.controller.spec.ts | 2 +- .../node-core/src/admin/admin.controller.ts | 2 +- .../node-core/src/admin/blockRange.test.ts | 2 +- packages/node-core/src/admin/blockRange.ts | 13 +- packages/node-core/src/admin/index.ts | 2 +- .../node-core/src/api.connection.error.ts | 2 +- packages/node-core/src/api.service.spec.ts | 2 +- packages/node-core/src/api.service.ts | 2 +- .../src/configure/NodeConfig.spec.ts | 2 +- .../node-core/src/configure/NodeConfig.ts | 2 +- .../configure/ProjectUpgrade.service.spec.ts | 2 +- .../src/configure/ProjectUpgrade.service.ts | 2 +- .../src/configure/SubqueryProject.ts | 2 +- .../src/configure/configure.module.spec.ts | 2 +- .../src/configure/configure.module.ts | 2 +- packages/node-core/src/configure/index.ts | 2 +- packages/node-core/src/db/db.module.test.ts | 2 +- packages/node-core/src/db/db.module.ts | 2 +- packages/node-core/src/db/index.ts | 2 +- .../SchemaMigration.service.spec.ts | 2 +- .../SchemaMigration.service.test.ts | 2 +- .../SchemaMigration.service.ts | 2 +- .../src/db/migration-service/index.ts | 2 +- .../db/migration-service/migration-helpers.ts | 2 +- .../src/db/migration-service/migration.ts | 2 +- packages/node-core/src/db/sequelizeUtil.ts | 2 +- packages/node-core/src/db/sync-helper.spec.ts | 2 +- packages/node-core/src/db/sync-helper.test.ts | 2 +- packages/node-core/src/db/sync-helper.ts | 2 +- packages/node-core/src/events.ts | 2 +- packages/node-core/src/index.ts | 2 +- .../src/indexer/StoreOperations.spec.ts | 2 +- .../src/indexer/StoreOperations.test.ts | 2 +- .../node-core/src/indexer/StoreOperations.ts | 2 +- .../src/indexer/benchmark.service.ts | 2 +- .../blockDispatcher/base-block-dispatcher.ts | 2 +- .../blockDispatcher/block-dispatcher.ts | 2 +- .../src/indexer/blockDispatcher/index.ts | 2 +- .../worker-block-dispatcher.ts | 2 +- .../indexer/connectionPool.service.spec.ts | 2 +- .../src/indexer/connectionPool.service.ts | 2 +- .../connectionPoolState.manager.spec.ts | 2 +- .../indexer/connectionPoolState.manager.ts | 2 +- packages/node-core/src/indexer/core.module.ts | 2 +- .../src/indexer/dictionary/coreDictionary.ts | 7 +- .../indexer/dictionary/dictionary.fixtures.ts | 9 +- .../dictionary/dictionary.service.spec.ts | 2 +- .../indexer/dictionary/dictionary.service.ts | 2 +- .../node-core/src/indexer/dictionary/index.ts | 2 +- .../node-core/src/indexer/dictionary/types.ts | 2 +- .../src/indexer/dictionary/utils.spec.ts | 2 +- .../node-core/src/indexer/dictionary/utils.ts | 2 +- .../dictionary/v1/dictionaryV1.spec.ts | 2 +- .../src/indexer/dictionary/v1/dictionaryV1.ts | 2 +- .../src/indexer/dictionary/v1/index.ts | 2 +- .../src/indexer/dictionary/v1/utils.ts | 2 +- .../dictionary/v2/dictionaryV2.spec.ts | 2 +- .../src/indexer/dictionary/v2/dictionaryV2.ts | 10 +- .../src/indexer/dictionary/v2/index.ts | 2 +- .../src/indexer/dictionary/v2/types.ts | 2 +- .../src/indexer/ds-processor.service.ts | 12 +- .../src/indexer/dynamic-ds.service.spec.ts | 2 +- .../src/indexer/dynamic-ds.service.ts | 2 +- .../src/indexer/entities/Metadata.entity.ts | 2 +- .../src/indexer/entities/Poi.entity.ts | 2 +- .../node-core/src/indexer/entities/index.ts | 2 +- .../src/indexer/fetch.service.spec.ts | 2 +- .../node-core/src/indexer/fetch.service.ts | 2 +- .../src/indexer/inMemoryCache.service.spec.ts | 2 +- .../src/indexer/inMemoryCache.service.ts | 2 +- packages/node-core/src/indexer/index.ts | 2 +- .../node-core/src/indexer/indexer.manager.ts | 2 +- .../src/indexer/monitor.service.test.ts | 2 +- .../node-core/src/indexer/monitor.service.ts | 2 +- .../src/indexer/poi/PoiBlock.spec.ts | 2 +- .../node-core/src/indexer/poi/PoiBlock.ts | 2 +- packages/node-core/src/indexer/poi/index.ts | 2 +- .../src/indexer/poi/poi.service.spec.ts | 2 +- .../node-core/src/indexer/poi/poi.service.ts | 2 +- .../src/indexer/poi/poiSync.service.spec.ts | 2 +- .../src/indexer/poi/poiSync.service.ts | 2 +- .../src/indexer/project.service.spec.ts | 118 +++++++++--------- .../node-core/src/indexer/project.service.ts | 67 +++++----- .../node-core/src/indexer/sandbox.service.ts | 2 +- .../node-core/src/indexer/sandbox.spec.ts | 2 +- packages/node-core/src/indexer/sandbox.ts | 2 +- .../src/indexer/store.service.spec.ts | 2 +- .../src/indexer/store.service.test.ts | 2 +- .../node-core/src/indexer/store.service.ts | 86 ++++++------- .../node-core/src/indexer/store/entity.ts | 2 +- packages/node-core/src/indexer/store/index.ts | 2 +- packages/node-core/src/indexer/store/store.ts | 30 +++-- .../storeModelProvider/baseCache.service.ts | 2 +- .../baseStoreModel.service.ts | 2 +- .../indexer/storeModelProvider/cacheable.ts | 2 +- .../exporters/csvStore.spec.ts | 2 +- .../storeModelProvider/exporters/csvStore.ts | 2 +- .../storeModelProvider/exporters/exporter.ts | 2 +- .../storeModelProvider/exporters/index.ts | 2 +- .../src/indexer/storeModelProvider/index.ts | 2 +- .../metadata/cacheMetadata.spec.ts | 8 +- .../metadata/cacheMetadata.test.ts | 2 +- .../metadata/cacheMetadata.ts | 34 ++--- .../storeModelProvider/metadata/index.ts | 2 +- .../storeModelProvider/metadata/metadata.ts | 2 +- .../storeModelProvider/metadata/utils.ts | 2 +- .../model/cacheModel.spec.ts | 2 +- .../model/cacheModel.test.ts | 2 +- .../storeModelProvider/model/cacheModel.ts | 2 +- .../indexer/storeModelProvider/model/index.ts | 2 +- .../storeModelProvider/model/model.test.ts | 2 +- .../indexer/storeModelProvider/model/model.ts | 2 +- .../indexer/storeModelProvider/model/utils.ts | 2 +- .../storeModelProvider/poi/cachePoi.spec.ts | 2 +- .../storeModelProvider/poi/cachePoi.ts | 2 +- .../indexer/storeModelProvider/poi/index.ts | 2 +- .../src/indexer/storeModelProvider/poi/poi.ts | 2 +- .../storeModelProvider/setValueModel.spec.ts | 2 +- .../storeModelProvider/setValueModel.ts | 2 +- .../storeCache.service.spec.ts | 2 +- .../storeModelProvider/storeCache.service.ts | 2 +- .../storeModel.service.spec.ts | 2 +- .../storeModelProvider/storeModel.service.ts | 2 +- .../src/indexer/storeModelProvider/types.ts | 2 +- .../src/indexer/storeModelProvider/utils.ts | 2 +- .../node-core/src/indexer/test.runner.spec.ts | 10 +- packages/node-core/src/indexer/test.runner.ts | 24 ++-- .../node-core/src/indexer/testing.service.ts | 2 +- packages/node-core/src/indexer/types.ts | 2 +- .../indexer/unfinalizedBlocks.service.spec.ts | 2 +- .../src/indexer/unfinalizedBlocks.service.ts | 28 ++--- .../node-core/src/indexer/worker/index.ts | 2 +- .../src/indexer/worker/test.store.worker.ts | 2 +- .../node-core/src/indexer/worker/utils.ts | 2 +- .../src/indexer/worker/worker.builder.ts | 2 +- .../indexer/worker/worker.cache.service.ts | 2 +- .../worker.connectionPoolState.manager.ts | 2 +- .../src/indexer/worker/worker.core.module.ts | 2 +- .../worker/worker.dynamic-ds.service.ts | 2 +- .../indexer/worker/worker.monitor.service.ts | 2 +- .../src/indexer/worker/worker.service.ts | 2 +- .../worker/worker.store.service.test.ts | 7 +- .../indexer/worker/worker.store.service.ts | 2 +- .../node-core/src/indexer/worker/worker.ts | 2 +- .../worker.unfinalizedBlocks.service.ts | 2 +- packages/node-core/src/logger.ts | 2 +- packages/node-core/src/meta/event.listener.ts | 2 +- .../node-core/src/meta/health.controller.ts | 2 +- packages/node-core/src/meta/health.service.ts | 2 +- packages/node-core/src/meta/index.ts | 2 +- .../node-core/src/meta/meta.controller.ts | 2 +- packages/node-core/src/meta/meta.module.ts | 2 +- packages/node-core/src/meta/meta.service.ts | 2 +- packages/node-core/src/meta/meta.ts | 2 +- .../node-core/src/meta/ready.controller.ts | 2 +- packages/node-core/src/meta/ready.service.ts | 2 +- packages/node-core/src/process.ts | 2 +- packages/node-core/src/profiler.ts | 2 +- .../src/subcommands/forceClean.module.ts | 2 +- .../src/subcommands/forceClean.service.ts | 2 +- .../src/subcommands/foreceClean.init.ts | 2 +- packages/node-core/src/subcommands/index.ts | 2 +- .../node-core/src/subcommands/reindex.init.ts | 2 +- .../src/subcommands/reindex.service.ts | 26 ++-- packages/node-core/src/utils/bigint.ts | 2 +- .../src/utils/blockHeightMap.spec.ts | 2 +- .../node-core/src/utils/blockHeightMap.ts | 2 +- packages/node-core/src/utils/blocks.spec.ts | 2 +- packages/node-core/src/utils/blocks.ts | 2 +- .../node-core/src/utils/configure.spec.ts | 2 +- packages/node-core/src/utils/configure.ts | 2 +- packages/node-core/src/utils/decorators.ts | 2 +- .../node-core/src/utils/fetchHelper.spec.ts | 2 +- packages/node-core/src/utils/fetchHelpers.ts | 2 +- packages/node-core/src/utils/graphql.ts | 2 +- packages/node-core/src/utils/index.ts | 2 +- packages/node-core/src/utils/object.spec.ts | 2 +- packages/node-core/src/utils/object.ts | 2 +- packages/node-core/src/utils/project.ts | 2 +- packages/node-core/src/utils/promise.spec.ts | 2 +- packages/node-core/src/utils/promise.ts | 2 +- .../src/utils/queues/autoQueue.spec.ts | 2 +- .../node-core/src/utils/queues/autoQueue.ts | 2 +- packages/node-core/src/utils/queues/index.ts | 2 +- packages/node-core/src/utils/queues/queue.ts | 2 +- .../src/utils/queues/rampQueue.spec.ts | 6 +- .../node-core/src/utils/queues/rampQueue.ts | 2 +- packages/node-core/src/utils/reindex.ts | 16 +-- packages/node-core/src/utils/string.spec.ts | 2 +- packages/node-core/src/utils/string.ts | 2 +- packages/node-core/src/yargs.ts | 2 +- .../node-core/test/sandbox/buffer-test.js | 2 +- .../node-core/test/sandbox/buffer-test.ts | 2 +- packages/node-core/test/sandbox/main.js | 2 +- packages/node-core/test/sandbox/main.ts | 2 +- packages/node-core/yargs.js | 2 +- packages/node/CHANGELOG.md | 2 + packages/node/src/app.module.ts | 2 +- packages/node/src/configure/NodeConfig.ts | 2 +- .../configure/SchemaMigration.service.test.ts | 2 +- .../src/configure/SubqueryProject.spec.ts | 2 +- .../node/src/configure/SubqueryProject.ts | 2 +- .../node/src/configure/configure.module.ts | 2 +- packages/node/src/indexer/api.service.spec.ts | 2 +- packages/node/src/indexer/api.service.test.ts | 2 +- packages/node/src/indexer/api.service.ts | 2 +- .../node/src/indexer/apiPromise.connection.ts | 2 +- .../block-dispatcher.service.ts | 2 +- .../node/src/indexer/blockDispatcher/index.ts | 2 +- .../substrate-block-dispatcher.ts | 2 +- .../worker-block-dispatcher.service.ts | 2 +- packages/node/src/indexer/dictionary/index.ts | 2 +- .../substrateDictionary.service.spec.ts | 2 +- .../dictionary/substrateDictionary.service.ts | 2 +- packages/node/src/indexer/dictionary/types.ts | 2 +- .../node/src/indexer/dictionary/v1/index.ts | 2 +- .../v1/substrateDictionaryV1.spec.ts | 2 +- .../dictionary/v1/substrateDictionaryV1.ts | 2 +- .../node/src/indexer/dictionary/v2/index.ts | 2 +- .../dictionary/v2/substrateDictionaryV2.ts | 2 +- .../node/src/indexer/dictionary/v2/types.ts | 2 +- .../src/indexer/ds-processor.service.spec.ts | 2 +- .../node/src/indexer/ds-processor.service.ts | 2 +- .../node/src/indexer/dynamic-ds.service.ts | 2 +- packages/node/src/indexer/fetch.module.ts | 52 ++++---- .../node/src/indexer/fetch.service.spec.ts | 2 +- .../node/src/indexer/fetch.service.test.ts | 2 +- packages/node/src/indexer/fetch.service.ts | 2 +- .../node/src/indexer/indexer.manager.spec.ts | 2 +- packages/node/src/indexer/indexer.manager.ts | 2 +- .../node/src/indexer/project.service.spec.ts | 2 +- packages/node/src/indexer/project.service.ts | 2 +- .../indexer/runtime/base-runtime.service.ts | 2 +- .../indexer/runtime/runtime.service.spec.ts | 2 +- .../src/indexer/runtime/runtimeService.ts | 2 +- .../indexer/runtime/workerRuntimeService.ts | 2 +- .../node/src/indexer/store.service.test.ts | 2 +- packages/node/src/indexer/types.ts | 2 +- .../src/indexer/unfinalizedBlocks.service.ts | 2 +- .../src/indexer/worker/worker-fetch.module.ts | 2 +- .../node/src/indexer/worker/worker.module.ts | 2 +- .../node/src/indexer/worker/worker.service.ts | 2 +- packages/node/src/indexer/worker/worker.ts | 2 +- .../src/indexer/x-provider/cachedProvider.ts | 2 +- packages/node/src/indexer/x-provider/http.ts | 2 +- .../src/indexer/x-provider/x-provider.spec.ts | 2 +- packages/node/src/init.ts | 2 +- packages/node/src/main.ts | 2 +- .../node/src/subcommands/forceClean.init.ts | 2 +- .../node/src/subcommands/forceClean.module.ts | 2 +- packages/node/src/subcommands/reindex.init.ts | 2 +- .../node/src/subcommands/reindex.module.ts | 2 +- packages/node/src/subcommands/testing.init.ts | 2 +- .../node/src/subcommands/testing.module.ts | 2 +- .../node/src/subcommands/testing.service.ts | 2 +- packages/node/src/utils/project.ts | 2 +- packages/node/src/utils/substrate.test.ts | 2 +- packages/node/src/utils/substrate.ts | 2 +- packages/node/src/utils/test.utils.ts | 2 +- packages/node/src/yargs.ts | 2 +- packages/node/test/jsonfy.js | 2 +- packages/query/CHANGELOG.md | 2 + packages/query/src/app.module.ts | 2 +- packages/query/src/configure/config.ts | 2 +- .../query/src/configure/configure.module.ts | 2 +- packages/query/src/configure/index.ts | 2 +- .../configure/x-postgraphile/debugClient.ts | 2 +- .../src/graphql/graphql.historical.test.ts | 2 +- packages/query/src/graphql/graphql.module.ts | 2 +- packages/query/src/graphql/graphql.test.ts | 2 +- packages/query/src/graphql/limit.test.ts | 2 +- .../src/graphql/plugins/GetMetadataPlugin.ts | 6 +- .../graphql/plugins/PgAggregateSpecsPlugin.ts | 2 +- .../graphql/plugins/PgAggregationPlugin.ts | 2 +- .../plugins/PgBackwardRelationPlugin.ts | 2 +- .../PgConnectionArgFirstLastBeforeAfter.ts | 2 +- .../src/graphql/plugins/PgDistinctPlugin.ts | 2 +- .../plugins/PgOrderByAggregatesPlugin.ts | 2 +- .../src/graphql/plugins/PgOrderByUnique.ts | 2 +- .../graphql/plugins/PgRowByVirtualIdPlugin.ts | 2 +- .../src/graphql/plugins/PgSearchPlugin.ts | 2 +- .../graphql/plugins/PgSubscriptionPlugin.ts | 2 +- .../src/graphql/plugins/PlaygroundPlugin.ts | 2 +- .../graphql/plugins/QueryAliasLimitPlugin.ts | 2 +- .../graphql/plugins/QueryComplexityPlugin.ts | 2 +- .../plugins/QueryDepthLimitPlugin.spec.ts | 2 +- .../graphql/plugins/QueryDepthLimitPlugin.ts | 2 +- .../plugins/historical/PgBlockHeightPlugin.ts | 2 +- .../src/graphql/plugins/historical/index.ts | 2 +- .../src/graphql/plugins/historical/utils.ts | 2 +- packages/query/src/graphql/plugins/index.ts | 2 +- .../src/graphql/plugins/smartTagsPlugin.ts | 2 +- packages/query/src/graphql/project.service.ts | 7 +- packages/query/src/main.ts | 2 +- packages/query/src/utils/asyncInterval.ts | 2 +- packages/query/src/utils/logger.ts | 2 +- packages/query/src/yargs.ts | 2 +- packages/testing/CHANGELOG.md | 2 + packages/testing/src/index.ts | 2 +- packages/testing/src/interfaces.ts | 2 +- packages/types-core/CHANGELOG.md | 2 + packages/types-core/src/global.ts | 2 +- packages/types-core/src/index.ts | 2 +- packages/types-core/src/interfaces.ts | 2 +- packages/types-core/src/multichain/index.ts | 2 +- packages/types-core/src/multichain/types.ts | 2 +- .../src/project/datasourceProcessors.ts | 14 +-- packages/types-core/src/project/index.ts | 2 +- .../types-core/src/project/modulars/index.ts | 2 +- .../types-core/src/project/modulars/types.ts | 2 +- .../types-core/src/project/readers/index.ts | 2 +- .../types-core/src/project/readers/reader.ts | 2 +- packages/types-core/src/project/types.ts | 2 +- .../types-core/src/project/versioned/base.ts | 2 +- .../types-core/src/project/versioned/index.ts | 2 +- .../src/project/versioned/v1_0_0/index.ts | 2 +- .../src/project/versioned/v1_0_0/types.ts | 4 +- packages/types-core/src/store.ts | 2 +- packages/types/CHANGELOG.md | 2 + packages/types/src/global.ts | 2 +- packages/types/src/index.ts | 2 +- packages/types/src/interfaces.ts | 2 +- packages/types/src/project.ts | 16 +-- packages/utils/CHANGELOG.md | 2 + packages/utils/src/array/array.spec.ts | 2 +- packages/utils/src/array/array.ts | 2 +- packages/utils/src/array/index.ts | 2 +- packages/utils/src/buffer/buffer.spec.ts | 2 +- packages/utils/src/buffer/buffer.ts | 2 +- packages/utils/src/buffer/index.ts | 2 +- packages/utils/src/graphql/builder.spec.ts | 2 +- packages/utils/src/graphql/builder.ts | 19 +-- packages/utils/src/graphql/constant.ts | 2 +- packages/utils/src/graphql/entities.ts | 2 +- packages/utils/src/graphql/graphql.spec.ts | 2 +- packages/utils/src/graphql/index.ts | 2 +- packages/utils/src/graphql/schema.ts | 2 +- .../utils/src/graphql/schema/directives.ts | 2 +- packages/utils/src/graphql/schema/scalas.ts | 2 +- packages/utils/src/graphql/types.ts | 2 +- packages/utils/src/index.ts | 2 +- packages/utils/src/logger/colors.spec.ts | 2 +- packages/utils/src/logger/colors.ts | 2 +- packages/utils/src/logger/constants.ts | 2 +- packages/utils/src/logger/index.ts | 2 +- packages/utils/src/logger/logger.ts | 2 +- packages/utils/src/logger/util.ts | 2 +- packages/utils/src/networking.ts | 2 +- packages/utils/src/query/index.ts | 2 +- packages/utils/src/query/metadata.ts | 2 +- packages/utils/src/query/types.ts | 2 +- packages/utils/src/types/TypeClass.ts | 2 +- packages/utils/src/types/generalTypes.spec.ts | 2 +- packages/utils/src/types/generalTypes.ts | 2 +- packages/utils/src/types/index.ts | 2 +- packages/utils/src/types/supported/BigInt.ts | 2 +- packages/utils/src/types/supported/Boolean.ts | 2 +- packages/utils/src/types/supported/Bytes.ts | 2 +- packages/utils/src/types/supported/Date.ts | 2 +- packages/utils/src/types/supported/Float.ts | 2 +- packages/utils/src/types/supported/ID.ts | 2 +- packages/utils/src/types/supported/Int.ts | 2 +- packages/utils/src/types/supported/Json.ts | 2 +- packages/utils/src/types/supported/String.ts | 2 +- packages/utils/src/types/supported/index.ts | 2 +- packages/utils/src/types/u8aUtils.ts | 2 +- 483 files changed, 811 insertions(+), 750 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3a826d4a0a..a7afbf6ebf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -89,7 +89,7 @@ module.exports = { 2, 'line', [ - //Copyright 2020-2024 SubQuery Pte Ltd authors & contributors + //Copyright 2020-2025 SubQuery Pte Ltd authors & contributors { pattern: ' Copyright \\d{4}(-\\d{4})? SubQuery Pte Ltd authors & contributors' }, ' SPDX-License-Identifier: GPL-3.0', ], diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 09df5bec54..3eb8cafbfd 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [5.5.0] - 2025-01-28 ### Added diff --git a/packages/cli/src/commands/build/index.ts b/packages/cli/src/commands/build/index.ts index 8342365b06..5d6ef75c60 100644 --- a/packages/cli/src/commands/build/index.ts +++ b/packages/cli/src/commands/build/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/codegen/generate.ts b/packages/cli/src/commands/codegen/generate.ts index cec2e0588b..b865ff6922 100644 --- a/packages/cli/src/commands/codegen/generate.ts +++ b/packages/cli/src/commands/codegen/generate.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs, {lstatSync} from 'fs'; diff --git a/packages/cli/src/commands/codegen/index.ts b/packages/cli/src/commands/codegen/index.ts index dfd319ea7d..3cf15c9190 100644 --- a/packages/cli/src/commands/codegen/index.ts +++ b/packages/cli/src/commands/codegen/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Command, Flags} from '@oclif/core'; diff --git a/packages/cli/src/commands/deployment/delete.ts b/packages/cli/src/commands/deployment/delete.ts index 41786aff88..039f69fd75 100644 --- a/packages/cli/src/commands/deployment/delete.ts +++ b/packages/cli/src/commands/deployment/delete.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Command, Flags} from '@oclif/core'; diff --git a/packages/cli/src/commands/deployment/deploy.ts b/packages/cli/src/commands/deployment/deploy.ts index fd99cc5c0f..73f8626648 100644 --- a/packages/cli/src/commands/deployment/deploy.ts +++ b/packages/cli/src/commands/deployment/deploy.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/deployment/index.ts b/packages/cli/src/commands/deployment/index.ts index 5f0def8ad0..7e7eb76501 100644 --- a/packages/cli/src/commands/deployment/index.ts +++ b/packages/cli/src/commands/deployment/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {select} from '@inquirer/prompts'; diff --git a/packages/cli/src/commands/deployment/promote.ts b/packages/cli/src/commands/deployment/promote.ts index f9a0afb305..667fa8b36b 100644 --- a/packages/cli/src/commands/deployment/promote.ts +++ b/packages/cli/src/commands/deployment/promote.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Command, Flags} from '@oclif/core'; diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index d88b6af1cc..dd1026aab1 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/migrate.test.ts b/packages/cli/src/commands/migrate.test.ts index ecc26b3559..df65f87b5d 100644 --- a/packages/cli/src/commands/migrate.test.ts +++ b/packages/cli/src/commands/migrate.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/commands/migrate.ts b/packages/cli/src/commands/migrate.ts index 4d434eae1c..d26bb54ace 100644 --- a/packages/cli/src/commands/migrate.ts +++ b/packages/cli/src/commands/migrate.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/multi-chain/add.ts b/packages/cli/src/commands/multi-chain/add.ts index 3eb372e081..a69b993a3c 100644 --- a/packages/cli/src/commands/multi-chain/add.ts +++ b/packages/cli/src/commands/multi-chain/add.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/multi-chain/deploy.ts b/packages/cli/src/commands/multi-chain/deploy.ts index 48fde9bdac..6d3ab77077 100644 --- a/packages/cli/src/commands/multi-chain/deploy.ts +++ b/packages/cli/src/commands/multi-chain/deploy.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/project/create-project.ts b/packages/cli/src/commands/project/create-project.ts index 6bd3c87fc4..0ae8f7d435 100644 --- a/packages/cli/src/commands/project/create-project.ts +++ b/packages/cli/src/commands/project/create-project.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/commands/project/delete-project.ts b/packages/cli/src/commands/project/delete-project.ts index d51c941cdc..e26955290b 100644 --- a/packages/cli/src/commands/project/delete-project.ts +++ b/packages/cli/src/commands/project/delete-project.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Command, Flags} from '@oclif/core'; diff --git a/packages/cli/src/commands/project/index.ts b/packages/cli/src/commands/project/index.ts index 18a8f4df22..214103a09b 100644 --- a/packages/cli/src/commands/project/index.ts +++ b/packages/cli/src/commands/project/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {select} from '@inquirer/prompts'; diff --git a/packages/cli/src/commands/publish.test.ts b/packages/cli/src/commands/publish.test.ts index 5ae70e98ee..56743d4db2 100644 --- a/packages/cli/src/commands/publish.test.ts +++ b/packages/cli/src/commands/publish.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/commands/publish.ts b/packages/cli/src/commands/publish.ts index 76e4283669..ced4ac84a5 100644 --- a/packages/cli/src/commands/publish.ts +++ b/packages/cli/src/commands/publish.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/constants.ts b/packages/cli/src/constants.ts index e827348207..301decd327 100644 --- a/packages/cli/src/constants.ts +++ b/packages/cli/src/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/add-chain-controller.spec.ts b/packages/cli/src/controller/add-chain-controller.spec.ts index 9969441b71..0814413e12 100644 --- a/packages/cli/src/controller/add-chain-controller.spec.ts +++ b/packages/cli/src/controller/add-chain-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs, {existsSync} from 'fs'; diff --git a/packages/cli/src/controller/add-chain-controller.ts b/packages/cli/src/controller/add-chain-controller.ts index c067592ea3..a5b71850fb 100644 --- a/packages/cli/src/controller/add-chain-controller.ts +++ b/packages/cli/src/controller/add-chain-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as fs from 'fs'; diff --git a/packages/cli/src/controller/build-controller.spec.ts b/packages/cli/src/controller/build-controller.spec.ts index 070a777a90..258c5837de 100644 --- a/packages/cli/src/controller/build-controller.spec.ts +++ b/packages/cli/src/controller/build-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/cli/src/controller/build-controller.ts b/packages/cli/src/controller/build-controller.ts index 5bdcd12141..f4003bfd5e 100644 --- a/packages/cli/src/controller/build-controller.ts +++ b/packages/cli/src/controller/build-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/codegen-controller.spec.ts b/packages/cli/src/controller/codegen-controller.spec.ts index 035c03789c..844307d3b0 100644 --- a/packages/cli/src/controller/codegen-controller.spec.ts +++ b/packages/cli/src/controller/codegen-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/codegen-controller.test.ts b/packages/cli/src/controller/codegen-controller.test.ts index 46d6d7c26a..5ec6e6b7b1 100644 --- a/packages/cli/src/controller/codegen-controller.test.ts +++ b/packages/cli/src/controller/codegen-controller.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/codegen-controller.ts b/packages/cli/src/controller/codegen-controller.ts index 0daf5298d0..0382c3507a 100644 --- a/packages/cli/src/controller/codegen-controller.ts +++ b/packages/cli/src/controller/codegen-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/codegen-cosmos.test.ts b/packages/cli/src/controller/codegen-cosmos.test.ts index c9e1e583ce..2c015b97cc 100644 --- a/packages/cli/src/controller/codegen-cosmos.test.ts +++ b/packages/cli/src/controller/codegen-cosmos.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/deploy-controller.spec.ts b/packages/cli/src/controller/deploy-controller.spec.ts index 7e562c97e0..aa44f111ec 100644 --- a/packages/cli/src/controller/deploy-controller.spec.ts +++ b/packages/cli/src/controller/deploy-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {splitMultichainDataFields} from './deploy-controller'; diff --git a/packages/cli/src/controller/deploy-controller.test.ts b/packages/cli/src/controller/deploy-controller.test.ts index f979e29a85..f3f2945a57 100644 --- a/packages/cli/src/controller/deploy-controller.test.ts +++ b/packages/cli/src/controller/deploy-controller.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ROOT_API_URL_PROD} from '../constants'; diff --git a/packages/cli/src/controller/deploy-controller.ts b/packages/cli/src/controller/deploy-controller.ts index c7f8ed0769..42eba7b92e 100644 --- a/packages/cli/src/controller/deploy-controller.ts +++ b/packages/cli/src/controller/deploy-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/generate-controller.spec.ts b/packages/cli/src/controller/generate-controller.spec.ts index 05e58d8767..0647314b13 100644 --- a/packages/cli/src/controller/generate-controller.spec.ts +++ b/packages/cli/src/controller/generate-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/generate-controller.test.ts b/packages/cli/src/controller/generate-controller.test.ts index 0fe34f0a37..dc48dccfbf 100644 --- a/packages/cli/src/controller/generate-controller.test.ts +++ b/packages/cli/src/controller/generate-controller.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/generate-controller.ts b/packages/cli/src/controller/generate-controller.ts index 01197dc50a..639748fb08 100644 --- a/packages/cli/src/controller/generate-controller.ts +++ b/packages/cli/src/controller/generate-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/init-controller.spec.ts b/packages/cli/src/controller/init-controller.spec.ts index 9e649c54b2..8197b215ef 100644 --- a/packages/cli/src/controller/init-controller.spec.ts +++ b/packages/cli/src/controller/init-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as fs from 'fs'; diff --git a/packages/cli/src/controller/init-controller.test.ts b/packages/cli/src/controller/init-controller.test.ts index db796ec5ef..60d02ba5ef 100644 --- a/packages/cli/src/controller/init-controller.test.ts +++ b/packages/cli/src/controller/init-controller.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as fs from 'fs'; diff --git a/packages/cli/src/controller/init-controller.ts b/packages/cli/src/controller/init-controller.ts index c702145561..b1e3956850 100644 --- a/packages/cli/src/controller/init-controller.ts +++ b/packages/cli/src/controller/init-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import childProcess, {execSync} from 'child_process'; diff --git a/packages/cli/src/controller/migrate/abis/migrate-abis.controller.ts b/packages/cli/src/controller/migrate/abis/migrate-abis.controller.ts index 82897dc2e1..2105b3c633 100644 --- a/packages/cli/src/controller/migrate/abis/migrate-abis.controller.ts +++ b/packages/cli/src/controller/migrate/abis/migrate-abis.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/migrate/constants.ts b/packages/cli/src/controller/migrate/constants.ts index 9c7e02aae0..2997d02001 100644 --- a/packages/cli/src/controller/migrate/constants.ts +++ b/packages/cli/src/controller/migrate/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/controller/migrate/index.ts b/packages/cli/src/controller/migrate/index.ts index 4c8a6232a0..eaf4ec4603 100644 --- a/packages/cli/src/controller/migrate/index.ts +++ b/packages/cli/src/controller/migrate/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './migrate-controller'; diff --git a/packages/cli/src/controller/migrate/manifest/ethereum.spec.ts b/packages/cli/src/controller/migrate/manifest/ethereum.spec.ts index 2183f66b56..e3d171043a 100644 --- a/packages/cli/src/controller/migrate/manifest/ethereum.spec.ts +++ b/packages/cli/src/controller/migrate/manifest/ethereum.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EthereumDatasourceKind} from '@subql/types-ethereum'; diff --git a/packages/cli/src/controller/migrate/manifest/ethereum.ts b/packages/cli/src/controller/migrate/manifest/ethereum.ts index 25182f1618..512fa2d7bf 100644 --- a/packages/cli/src/controller/migrate/manifest/ethereum.ts +++ b/packages/cli/src/controller/migrate/manifest/ethereum.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {FileReference} from '@subql/types-core'; diff --git a/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.spec.ts b/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.spec.ts index 81470f4dc3..4b38d72c67 100644 --- a/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.spec.ts +++ b/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.ts b/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.ts index e5085c22b0..827fc63298 100644 --- a/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.ts +++ b/packages/cli/src/controller/migrate/manifest/migrate-manifest.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/migrate/mapping/migrate-mapping.controller.ts b/packages/cli/src/controller/migrate/mapping/migrate-mapping.controller.ts index 30afe893d3..300967301e 100644 --- a/packages/cli/src/controller/migrate/mapping/migrate-mapping.controller.ts +++ b/packages/cli/src/controller/migrate/mapping/migrate-mapping.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/migrate/migrate-controller.spec.ts b/packages/cli/src/controller/migrate/migrate-controller.spec.ts index c6462c53fd..852f3dc3fb 100644 --- a/packages/cli/src/controller/migrate/migrate-controller.spec.ts +++ b/packages/cli/src/controller/migrate/migrate-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/migrate/migrate-controller.ts b/packages/cli/src/controller/migrate/migrate-controller.ts index c32f5cacf0..0eee003136 100644 --- a/packages/cli/src/controller/migrate/migrate-controller.ts +++ b/packages/cli/src/controller/migrate/migrate-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/migrate/migrate.fixtures.ts b/packages/cli/src/controller/migrate/migrate.fixtures.ts index 51ed39b7c2..ccd70c520e 100644 --- a/packages/cli/src/controller/migrate/migrate.fixtures.ts +++ b/packages/cli/src/controller/migrate/migrate.fixtures.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {SubgraphProject} from './types'; diff --git a/packages/cli/src/controller/migrate/schema/migrate-schema.controller.spec.ts b/packages/cli/src/controller/migrate/schema/migrate-schema.controller.spec.ts index dcb4fd93d2..c3b024e82f 100644 --- a/packages/cli/src/controller/migrate/schema/migrate-schema.controller.spec.ts +++ b/packages/cli/src/controller/migrate/schema/migrate-schema.controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {migrateSchemaFromString} from './migrate-schema.controller'; diff --git a/packages/cli/src/controller/migrate/schema/migrate-schema.controller.ts b/packages/cli/src/controller/migrate/schema/migrate-schema.controller.ts index 86c5c249dd..689857eb56 100644 --- a/packages/cli/src/controller/migrate/schema/migrate-schema.controller.ts +++ b/packages/cli/src/controller/migrate/schema/migrate-schema.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/cli/src/controller/migrate/types.ts b/packages/cli/src/controller/migrate/types.ts index 960270f583..697da64b36 100644 --- a/packages/cli/src/controller/migrate/types.ts +++ b/packages/cli/src/controller/migrate/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/controller/project-controller.spec.ts b/packages/cli/src/controller/project-controller.spec.ts index d15d2768c9..f67284f38a 100644 --- a/packages/cli/src/controller/project-controller.spec.ts +++ b/packages/cli/src/controller/project-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ROOT_API_URL_PROD} from '../constants'; diff --git a/packages/cli/src/controller/project-controller.ts b/packages/cli/src/controller/project-controller.ts index b74d50cc88..2627d65202 100644 --- a/packages/cli/src/controller/project-controller.ts +++ b/packages/cli/src/controller/project-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import axios from 'axios'; diff --git a/packages/cli/src/controller/publish-controller.spec.ts b/packages/cli/src/controller/publish-controller.spec.ts index 1442b29a53..b84a448457 100644 --- a/packages/cli/src/controller/publish-controller.spec.ts +++ b/packages/cli/src/controller/publish-controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {mapToObject, ReaderFactory, toJsonObject} from '@subql/common'; diff --git a/packages/cli/src/controller/publish-controller.ts b/packages/cli/src/controller/publish-controller.ts index 5c330e0e8b..03c6dd4a18 100644 --- a/packages/cli/src/controller/publish-controller.ts +++ b/packages/cli/src/controller/publish-controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/controller/validate.spec.ts b/packages/cli/src/controller/validate.spec.ts index e79d08f14b..6dff9dab8e 100644 --- a/packages/cli/src/controller/validate.spec.ts +++ b/packages/cli/src/controller/validate.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/createProject.fixtures.ts b/packages/cli/src/createProject.fixtures.ts index 4c6a5d2248..0f370483f7 100644 --- a/packages/cli/src/createProject.fixtures.ts +++ b/packages/cli/src/createProject.fixtures.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 4dbf19859e..a14232d6e5 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export {run} from '@oclif/core'; diff --git a/packages/cli/src/jsonrpc/client/http.ts b/packages/cli/src/jsonrpc/client/http.ts index 86ade0f17c..6958cc1c93 100644 --- a/packages/cli/src/jsonrpc/client/http.ts +++ b/packages/cli/src/jsonrpc/client/http.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import axios, {AxiosInstance} from 'axios'; diff --git a/packages/cli/src/jsonrpc/client/index.ts b/packages/cli/src/jsonrpc/client/index.ts index af30baf9c3..7fc09c4e0b 100644 --- a/packages/cli/src/jsonrpc/client/index.ts +++ b/packages/cli/src/jsonrpc/client/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './http'; diff --git a/packages/cli/src/jsonrpc/client/types.ts b/packages/cli/src/jsonrpc/client/types.ts index cc2f38c8e8..c1f40462ec 100644 --- a/packages/cli/src/jsonrpc/client/types.ts +++ b/packages/cli/src/jsonrpc/client/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export interface Message { diff --git a/packages/cli/src/jsonrpc/client/ws.ts b/packages/cli/src/jsonrpc/client/ws.ts index 4393eed457..fe21165427 100644 --- a/packages/cli/src/jsonrpc/client/ws.ts +++ b/packages/cli/src/jsonrpc/client/ws.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ICloseEvent, IMessageEvent, w3cwebsocket as WebSocket} from 'websocket'; diff --git a/packages/cli/src/jsonrpc/index.ts b/packages/cli/src/jsonrpc/index.ts index fc0b68e765..1ba94b9aef 100644 --- a/packages/cli/src/jsonrpc/index.ts +++ b/packages/cli/src/jsonrpc/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {HttpJsonRpcClient, WsJsonRpcClient} from './client'; diff --git a/packages/cli/src/jsonrpc/jsonrpc.test.ts b/packages/cli/src/jsonrpc/jsonrpc.test.ts index 595b656d75..885ecd4528 100644 --- a/packages/cli/src/jsonrpc/jsonrpc.test.ts +++ b/packages/cli/src/jsonrpc/jsonrpc.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getGenesisHash} from './index'; diff --git a/packages/cli/src/modulars/config.ts b/packages/cli/src/modulars/config.ts index f159722f8c..53515b7687 100644 --- a/packages/cli/src/modulars/config.ts +++ b/packages/cli/src/modulars/config.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/modulars/index.ts b/packages/cli/src/modulars/index.ts index c9e429bd77..21c3c8d35d 100644 --- a/packages/cli/src/modulars/index.ts +++ b/packages/cli/src/modulars/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/cli/src/modulars/moduleLoader.ts b/packages/cli/src/modulars/moduleLoader.ts index 93b87798d5..fe2525fb21 100644 --- a/packages/cli/src/modulars/moduleLoader.ts +++ b/packages/cli/src/modulars/moduleLoader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {existsSync} from 'fs'; diff --git a/packages/cli/src/modulars/types.ts b/packages/cli/src/modulars/types.ts index bf4f6851ed..1b3871ecb7 100644 --- a/packages/cli/src/modulars/types.ts +++ b/packages/cli/src/modulars/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/modulars/utils.ts b/packages/cli/src/modulars/utils.ts index 538bbdb9bb..990836b860 100644 --- a/packages/cli/src/modulars/utils.ts +++ b/packages/cli/src/modulars/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY, runnerMapping} from '@subql/common'; diff --git a/packages/cli/src/types.ts b/packages/cli/src/types.ts index 949b64dae6..9f099b9a29 100644 --- a/packages/cli/src/types.ts +++ b/packages/cli/src/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ProjectNetworkConfig, RunnerSpecs} from '@subql/types-core'; diff --git a/packages/cli/src/utils/build.spec.ts b/packages/cli/src/utils/build.spec.ts index a38d17bb78..c19715fdda 100644 --- a/packages/cli/src/utils/build.spec.ts +++ b/packages/cli/src/utils/build.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {existsSync, readFileSync, writeFileSync} from 'fs'; diff --git a/packages/cli/src/utils/build.ts b/packages/cli/src/utils/build.ts index dfdcb93c99..535af036a4 100644 --- a/packages/cli/src/utils/build.ts +++ b/packages/cli/src/utils/build.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/cli/src/utils/index.ts b/packages/cli/src/utils/index.ts index 3d051f233b..cb82f04fa6 100644 --- a/packages/cli/src/utils/index.ts +++ b/packages/cli/src/utils/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './build'; diff --git a/packages/cli/src/utils/networkFamily.spec.ts b/packages/cli/src/utils/networkFamily.spec.ts index baf44637ae..6d06bf6661 100644 --- a/packages/cli/src/utils/networkFamily.spec.ts +++ b/packages/cli/src/utils/networkFamily.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY} from '@subql/common'; diff --git a/packages/cli/src/utils/networkFamily.ts b/packages/cli/src/utils/networkFamily.ts index ed5d13d62b..7699c74455 100644 --- a/packages/cli/src/utils/networkFamily.ts +++ b/packages/cli/src/utils/networkFamily.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NETWORK_FAMILY, runnerMapping} from '@subql/common'; diff --git a/packages/cli/src/utils/utils.ts b/packages/cli/src/utils/utils.ts index 2d7fcb81a6..e93bb60e62 100644 --- a/packages/cli/src/utils/utils.ts +++ b/packages/cli/src/utils/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/common-substrate/CHANGELOG.md b/packages/common-substrate/CHANGELOG.md index 861f1a794c..4647936227 100644 --- a/packages/common-substrate/CHANGELOG.md +++ b/packages/common-substrate/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [4.3.6] - 2025-01-28 ### Changed diff --git a/packages/common-substrate/src/index.ts b/packages/common-substrate/src/index.ts index d6d46aa7fd..7f6ef57aff 100644 --- a/packages/common-substrate/src/index.ts +++ b/packages/common-substrate/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './project'; diff --git a/packages/common-substrate/src/project/index.ts b/packages/common-substrate/src/project/index.ts index 1a03280990..66a8d688ee 100644 --- a/packages/common-substrate/src/project/index.ts +++ b/packages/common-substrate/src/project/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './load'; diff --git a/packages/common-substrate/src/project/load.spec.ts b/packages/common-substrate/src/project/load.spec.ts index 902742b257..b5727363e2 100644 --- a/packages/common-substrate/src/project/load.spec.ts +++ b/packages/common-substrate/src/project/load.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {parseChainTypes} from './load'; diff --git a/packages/common-substrate/src/project/load.ts b/packages/common-substrate/src/project/load.ts index b22fdad91b..9beb90c2b4 100644 --- a/packages/common-substrate/src/project/load.ts +++ b/packages/common-substrate/src/project/load.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {plainToClass} from 'class-transformer'; diff --git a/packages/common-substrate/src/project/models.ts b/packages/common-substrate/src/project/models.ts index 75803a99f3..7156024785 100644 --- a/packages/common-substrate/src/project/models.ts +++ b/packages/common-substrate/src/project/models.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {RegisteredTypes, RegistryTypes, OverrideModuleType, OverrideBundleType} from '@polkadot/types/types'; diff --git a/packages/common-substrate/src/project/project.spec.ts b/packages/common-substrate/src/project/project.spec.ts index 95775d9102..0df393b9a4 100644 --- a/packages/common-substrate/src/project/project.spec.ts +++ b/packages/common-substrate/src/project/project.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/common-substrate/src/project/types.ts b/packages/common-substrate/src/project/types.ts index cab95eb1ca..2f65bfc380 100644 --- a/packages/common-substrate/src/project/types.ts +++ b/packages/common-substrate/src/project/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {SubstrateDatasource} from '@subql/types'; diff --git a/packages/common-substrate/src/project/utils.ts b/packages/common-substrate/src/project/utils.ts index c88a27c377..d9be57d936 100644 --- a/packages/common-substrate/src/project/utils.ts +++ b/packages/common-substrate/src/project/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/common-substrate/src/project/versioned/ProjectManifestVersioned.ts b/packages/common-substrate/src/project/versioned/ProjectManifestVersioned.ts index 1c34088bac..a73fa4cfb5 100644 --- a/packages/common-substrate/src/project/versioned/ProjectManifestVersioned.ts +++ b/packages/common-substrate/src/project/versioned/ProjectManifestVersioned.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {SubstrateDatasource} from '@subql/types'; diff --git a/packages/common-substrate/src/project/versioned/index.ts b/packages/common-substrate/src/project/versioned/index.ts index e73a2d4ae6..84face2a2d 100644 --- a/packages/common-substrate/src/project/versioned/index.ts +++ b/packages/common-substrate/src/project/versioned/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './ProjectManifestVersioned'; diff --git a/packages/common-substrate/src/project/versioned/v1_0_0/index.ts b/packages/common-substrate/src/project/versioned/v1_0_0/index.ts index 373696515d..09f85b4dd1 100644 --- a/packages/common-substrate/src/project/versioned/v1_0_0/index.ts +++ b/packages/common-substrate/src/project/versioned/v1_0_0/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './model'; diff --git a/packages/common-substrate/src/project/versioned/v1_0_0/model.ts b/packages/common-substrate/src/project/versioned/v1_0_0/model.ts index 4189f283eb..92b0d72054 100644 --- a/packages/common-substrate/src/project/versioned/v1_0_0/model.ts +++ b/packages/common-substrate/src/project/versioned/v1_0_0/model.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 3bf6055fe5..b16bb5e67e 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [5.3.0] - 2025-01-28 ### Added diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts index 441727a09d..bf18fa6245 100644 --- a/packages/common/src/constants.ts +++ b/packages/common/src/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // APP API PORT diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index bcde12e45e..a38ce1599b 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import 'reflect-metadata'; diff --git a/packages/common/src/multichain/index.ts b/packages/common/src/multichain/index.ts index 8168f378ae..e3314eba34 100644 --- a/packages/common/src/multichain/index.ts +++ b/packages/common/src/multichain/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './models'; diff --git a/packages/common/src/multichain/models.ts b/packages/common/src/multichain/models.ts index 1c3453f891..ab1e5c3c98 100644 --- a/packages/common/src/multichain/models.ts +++ b/packages/common/src/multichain/models.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {MultichainProjectManifest, QuerySpec} from '@subql/types-core'; diff --git a/packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts b/packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts index d7d132ca8e..fa3aaf86cd 100644 --- a/packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts +++ b/packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import axios from 'axios'; diff --git a/packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts b/packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts index fca5f867b8..9e89f6a11d 100644 --- a/packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts +++ b/packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {IPFS_NODE_ENDPOINT, IPFS_WRITE_ENDPOINT} from '../../constants'; diff --git a/packages/common/src/project/IpfsHttpClientLite/index.ts b/packages/common/src/project/IpfsHttpClientLite/index.ts index c81d127670..6270d204db 100644 --- a/packages/common/src/project/IpfsHttpClientLite/index.ts +++ b/packages/common/src/project/IpfsHttpClientLite/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './IPFSHTTPClientLite'; diff --git a/packages/common/src/project/IpfsHttpClientLite/utils.ts b/packages/common/src/project/IpfsHttpClientLite/utils.ts index df26ad32d8..13dabf2c71 100644 --- a/packages/common/src/project/IpfsHttpClientLite/utils.ts +++ b/packages/common/src/project/IpfsHttpClientLite/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import axios from 'axios'; diff --git a/packages/common/src/project/index.ts b/packages/common/src/project/index.ts index e87c0facde..3404932212 100644 --- a/packages/common/src/project/index.ts +++ b/packages/common/src/project/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './load'; diff --git a/packages/common/src/project/load.ts b/packages/common/src/project/load.ts index 68ed15285c..67e0d401cf 100644 --- a/packages/common/src/project/load.ts +++ b/packages/common/src/project/load.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/common/src/project/readers/github-reader.spec.ts b/packages/common/src/project/readers/github-reader.spec.ts index c2b3694547..f401380859 100644 --- a/packages/common/src/project/readers/github-reader.spec.ts +++ b/packages/common/src/project/readers/github-reader.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Reader} from '@subql/types-core'; diff --git a/packages/common/src/project/readers/github-reader.ts b/packages/common/src/project/readers/github-reader.ts index f537f75f08..41d1a2a087 100644 --- a/packages/common/src/project/readers/github-reader.ts +++ b/packages/common/src/project/readers/github-reader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {assert} from 'console'; diff --git a/packages/common/src/project/readers/index.ts b/packages/common/src/project/readers/index.ts index 9f76b68e14..d8e6f14e55 100644 --- a/packages/common/src/project/readers/index.ts +++ b/packages/common/src/project/readers/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './reader'; diff --git a/packages/common/src/project/readers/ipfs-reader.spec.ts b/packages/common/src/project/readers/ipfs-reader.spec.ts index bd621c8733..7fa6a0b3d7 100644 --- a/packages/common/src/project/readers/ipfs-reader.spec.ts +++ b/packages/common/src/project/readers/ipfs-reader.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Reader} from '@subql/types-core'; diff --git a/packages/common/src/project/readers/ipfs-reader.ts b/packages/common/src/project/readers/ipfs-reader.ts index e735d260f1..d5cbec4316 100644 --- a/packages/common/src/project/readers/ipfs-reader.ts +++ b/packages/common/src/project/readers/ipfs-reader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Reader} from '@subql/types-core'; diff --git a/packages/common/src/project/readers/local-reader.spec.ts b/packages/common/src/project/readers/local-reader.spec.ts index a7bd42103b..734b41db44 100644 --- a/packages/common/src/project/readers/local-reader.spec.ts +++ b/packages/common/src/project/readers/local-reader.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as path from 'path'; diff --git a/packages/common/src/project/readers/local-reader.ts b/packages/common/src/project/readers/local-reader.ts index 4c78405c41..867a73a247 100644 --- a/packages/common/src/project/readers/local-reader.ts +++ b/packages/common/src/project/readers/local-reader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; @@ -10,7 +10,10 @@ import type {IPackageJson} from 'package-json-type'; import {extensionIsYamlOrJSON} from '../../project'; export class LocalReader implements Reader { - constructor(private readonly projectPath: string, private readonly manifestPath: string) {} + constructor( + private readonly projectPath: string, + private readonly manifestPath: string + ) {} get root(): string { return path.resolve(this.projectPath); diff --git a/packages/common/src/project/readers/reader.spec.ts b/packages/common/src/project/readers/reader.spec.ts index d706573f88..87748cd6f6 100644 --- a/packages/common/src/project/readers/reader.spec.ts +++ b/packages/common/src/project/readers/reader.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/common/src/project/readers/reader.ts b/packages/common/src/project/readers/reader.ts index c31f412c63..4cc79e2402 100644 --- a/packages/common/src/project/readers/reader.ts +++ b/packages/common/src/project/readers/reader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/common/src/project/utils.ts b/packages/common/src/project/utils.ts index 42f142f2a3..d0806917c7 100644 --- a/packages/common/src/project/utils.ts +++ b/packages/common/src/project/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; @@ -285,10 +285,13 @@ export function normalizeNetworkEndpoints { - acc[endpoint] = defaultConfig ?? {}; - return acc; - }, {} as Record); + return input.reduce( + (acc, endpoint) => { + acc[endpoint] = defaultConfig ?? {}; + return acc; + }, + {} as Record + ); } for (const key in input) { diff --git a/packages/common/src/project/versioned/base.ts b/packages/common/src/project/versioned/base.ts index af67df648c..473908c13b 100644 --- a/packages/common/src/project/versioned/base.ts +++ b/packages/common/src/project/versioned/base.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/common/src/project/versioned/index.ts b/packages/common/src/project/versioned/index.ts index 9b0d96bacd..e7f14cbd09 100644 --- a/packages/common/src/project/versioned/index.ts +++ b/packages/common/src/project/versioned/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './base'; diff --git a/packages/common/src/project/versioned/v1_0_0/index.ts b/packages/common/src/project/versioned/v1_0_0/index.ts index 8168f378ae..e3314eba34 100644 --- a/packages/common/src/project/versioned/v1_0_0/index.ts +++ b/packages/common/src/project/versioned/v1_0_0/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './models'; diff --git a/packages/common/src/project/versioned/v1_0_0/model.spec.ts b/packages/common/src/project/versioned/v1_0_0/model.spec.ts index d0bfb2440c..0ca2648161 100644 --- a/packages/common/src/project/versioned/v1_0_0/model.spec.ts +++ b/packages/common/src/project/versioned/v1_0_0/model.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {IProjectNetworkConfig} from '@subql/types-core'; diff --git a/packages/common/src/project/versioned/v1_0_0/models.ts b/packages/common/src/project/versioned/v1_0_0/models.ts index a8ac659917..c2465b045f 100644 --- a/packages/common/src/project/versioned/v1_0_0/models.ts +++ b/packages/common/src/project/versioned/v1_0_0/models.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md index 1ac0711eeb..8c71ec27f7 100644 --- a/packages/node-core/CHANGELOG.md +++ b/packages/node-core/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [16.2.0] - 2025-01-28 ### Changed diff --git a/packages/node-core/logger.js b/packages/node-core/logger.js index 8d5cfc3bf9..ab1cb97387 100644 --- a/packages/node-core/logger.js +++ b/packages/node-core/logger.js @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // A standalone entrypoint for logger so we can import `@subql/node-core/logger` diff --git a/packages/node-core/src/admin/admin.controller.spec.ts b/packages/node-core/src/admin/admin.controller.spec.ts index c91cb17c69..4ddf33ec31 100644 --- a/packages/node-core/src/admin/admin.controller.spec.ts +++ b/packages/node-core/src/admin/admin.controller.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {HttpException, HttpStatus} from '@nestjs/common'; diff --git a/packages/node-core/src/admin/admin.controller.ts b/packages/node-core/src/admin/admin.controller.ts index 324a83936d..3a3b015e05 100644 --- a/packages/node-core/src/admin/admin.controller.ts +++ b/packages/node-core/src/admin/admin.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/src/admin/blockRange.test.ts b/packages/node-core/src/admin/blockRange.test.ts index d8323ceee5..f462e6ee8c 100644 --- a/packages/node-core/src/admin/blockRange.test.ts +++ b/packages/node-core/src/admin/blockRange.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {plainToClass} from 'class-transformer'; diff --git a/packages/node-core/src/admin/blockRange.ts b/packages/node-core/src/admin/blockRange.ts index 58a530278e..6e0aa25ace 100644 --- a/packages/node-core/src/admin/blockRange.ts +++ b/packages/node-core/src/admin/blockRange.ts @@ -1,8 +1,17 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Type} from 'class-transformer'; -import {IsInt, IsPositive, Min, IsOptional, ValidateIf, registerDecorator, ValidationOptions, ValidationArguments} from 'class-validator'; +import { + IsInt, + IsPositive, + Min, + IsOptional, + ValidateIf, + registerDecorator, + ValidationOptions, + ValidationArguments, +} from 'class-validator'; export function IsGreaterThan(property: string, validationOptions?: ValidationOptions) { return function (object: any, propertyName: string) { diff --git a/packages/node-core/src/admin/index.ts b/packages/node-core/src/admin/index.ts index c37a3cffbd..5cc6ae1bc7 100644 --- a/packages/node-core/src/admin/index.ts +++ b/packages/node-core/src/admin/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './blockRange'; diff --git a/packages/node-core/src/api.connection.error.ts b/packages/node-core/src/api.connection.error.ts index 90163322ef..33a8a6d99b 100644 --- a/packages/node-core/src/api.connection.error.ts +++ b/packages/node-core/src/api.connection.error.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export enum ApiErrorType { diff --git a/packages/node-core/src/api.service.spec.ts b/packages/node-core/src/api.service.spec.ts index 8345668c7b..54d16fecd7 100644 --- a/packages/node-core/src/api.service.spec.ts +++ b/packages/node-core/src/api.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/api.service.ts b/packages/node-core/src/api.service.ts index 2e0db8a2ea..a97775e43f 100644 --- a/packages/node-core/src/api.service.ts +++ b/packages/node-core/src/api.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/configure/NodeConfig.spec.ts b/packages/node-core/src/configure/NodeConfig.spec.ts index f80b2c0b9e..127a4ed17a 100644 --- a/packages/node-core/src/configure/NodeConfig.spec.ts +++ b/packages/node-core/src/configure/NodeConfig.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as path from 'path'; diff --git a/packages/node-core/src/configure/NodeConfig.ts b/packages/node-core/src/configure/NodeConfig.ts index 315e78ef2e..073add4b8c 100644 --- a/packages/node-core/src/configure/NodeConfig.ts +++ b/packages/node-core/src/configure/NodeConfig.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/configure/ProjectUpgrade.service.spec.ts b/packages/node-core/src/configure/ProjectUpgrade.service.spec.ts index 92a03b7fd5..874bfa003e 100644 --- a/packages/node-core/src/configure/ProjectUpgrade.service.spec.ts +++ b/packages/node-core/src/configure/ProjectUpgrade.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Sequelize} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/configure/ProjectUpgrade.service.ts b/packages/node-core/src/configure/ProjectUpgrade.service.ts index 09f8d8a535..b7cde1e2c4 100644 --- a/packages/node-core/src/configure/ProjectUpgrade.service.ts +++ b/packages/node-core/src/configure/ProjectUpgrade.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/configure/SubqueryProject.ts b/packages/node-core/src/configure/SubqueryProject.ts index bba1f3bbe9..e328a6d66d 100644 --- a/packages/node-core/src/configure/SubqueryProject.ts +++ b/packages/node-core/src/configure/SubqueryProject.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/configure/configure.module.spec.ts b/packages/node-core/src/configure/configure.module.spec.ts index e54c8e9f54..a585bb206b 100644 --- a/packages/node-core/src/configure/configure.module.spec.ts +++ b/packages/node-core/src/configure/configure.module.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {validDbSchemaName, yargsToIConfig} from './configure.module'; diff --git a/packages/node-core/src/configure/configure.module.ts b/packages/node-core/src/configure/configure.module.ts index af4f1e1ef9..581fb91961 100644 --- a/packages/node-core/src/configure/configure.module.ts +++ b/packages/node-core/src/configure/configure.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node-core/src/configure/index.ts b/packages/node-core/src/configure/index.ts index ec3cce76b1..1121b5b9ce 100644 --- a/packages/node-core/src/configure/index.ts +++ b/packages/node-core/src/configure/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './configure.module'; diff --git a/packages/node-core/src/db/db.module.test.ts b/packages/node-core/src/db/db.module.test.ts index 4cf5823a7f..50f4aa56e4 100644 --- a/packages/node-core/src/db/db.module.test.ts +++ b/packages/node-core/src/db/db.module.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {INestApplication} from '@nestjs/common'; diff --git a/packages/node-core/src/db/db.module.ts b/packages/node-core/src/db/db.module.ts index 01a0fa35eb..4c91a071fa 100644 --- a/packages/node-core/src/db/db.module.ts +++ b/packages/node-core/src/db/db.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DynamicModule, Global} from '@nestjs/common'; diff --git a/packages/node-core/src/db/index.ts b/packages/node-core/src/db/index.ts index 9a126db764..a1ce382010 100644 --- a/packages/node-core/src/db/index.ts +++ b/packages/node-core/src/db/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './db.module'; diff --git a/packages/node-core/src/db/migration-service/SchemaMigration.service.spec.ts b/packages/node-core/src/db/migration-service/SchemaMigration.service.spec.ts index 6ea05f478d..b7785ded31 100644 --- a/packages/node-core/src/db/migration-service/SchemaMigration.service.spec.ts +++ b/packages/node-core/src/db/migration-service/SchemaMigration.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/node-core/src/db/migration-service/SchemaMigration.service.test.ts b/packages/node-core/src/db/migration-service/SchemaMigration.service.test.ts index cef14d1853..ac5eb44c63 100644 --- a/packages/node-core/src/db/migration-service/SchemaMigration.service.test.ts +++ b/packages/node-core/src/db/migration-service/SchemaMigration.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {readFileSync} from 'fs'; diff --git a/packages/node-core/src/db/migration-service/SchemaMigration.service.ts b/packages/node-core/src/db/migration-service/SchemaMigration.service.ts index e2a7472d56..8beb0939fe 100644 --- a/packages/node-core/src/db/migration-service/SchemaMigration.service.ts +++ b/packages/node-core/src/db/migration-service/SchemaMigration.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getAllEntitiesRelations, GraphQLModelsType, GraphQLRelationsType} from '@subql/utils'; diff --git a/packages/node-core/src/db/migration-service/index.ts b/packages/node-core/src/db/migration-service/index.ts index 6a9a52253d..93f09701b2 100644 --- a/packages/node-core/src/db/migration-service/index.ts +++ b/packages/node-core/src/db/migration-service/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './migration'; diff --git a/packages/node-core/src/db/migration-service/migration-helpers.ts b/packages/node-core/src/db/migration-service/migration-helpers.ts index 4b659c20a7..d36041fd63 100644 --- a/packages/node-core/src/db/migration-service/migration-helpers.ts +++ b/packages/node-core/src/db/migration-service/migration-helpers.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/src/db/migration-service/migration.ts b/packages/node-core/src/db/migration-service/migration.ts index 469e7cc02f..ccc47f06c7 100644 --- a/packages/node-core/src/db/migration-service/migration.ts +++ b/packages/node-core/src/db/migration-service/migration.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'node:assert'; diff --git a/packages/node-core/src/db/sequelizeUtil.ts b/packages/node-core/src/db/sequelizeUtil.ts index 9c0a1dce1f..1fd91a7170 100644 --- a/packages/node-core/src/db/sequelizeUtil.ts +++ b/packages/node-core/src/db/sequelizeUtil.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/db/sync-helper.spec.ts b/packages/node-core/src/db/sync-helper.spec.ts index c8ab8e8de4..56888b357c 100644 --- a/packages/node-core/src/db/sync-helper.spec.ts +++ b/packages/node-core/src/db/sync-helper.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {GraphQLModelsType} from '@subql/utils'; diff --git a/packages/node-core/src/db/sync-helper.test.ts b/packages/node-core/src/db/sync-helper.test.ts index 0c7a299d81..1751cd7ca5 100644 --- a/packages/node-core/src/db/sync-helper.test.ts +++ b/packages/node-core/src/db/sync-helper.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {INestApplication} from '@nestjs/common'; diff --git a/packages/node-core/src/db/sync-helper.ts b/packages/node-core/src/db/sync-helper.ts index 7d2a3d7b2d..bc3b6ac744 100644 --- a/packages/node-core/src/db/sync-helper.ts +++ b/packages/node-core/src/db/sync-helper.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/events.ts b/packages/node-core/src/events.ts index 95902a7c53..63900a0de4 100644 --- a/packages/node-core/src/events.ts +++ b/packages/node-core/src/events.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export enum IndexerEvent { diff --git a/packages/node-core/src/index.ts b/packages/node-core/src/index.ts index 47fe1649ba..8c82b86f6e 100644 --- a/packages/node-core/src/index.ts +++ b/packages/node-core/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import './utils/bigint'; diff --git a/packages/node-core/src/indexer/StoreOperations.spec.ts b/packages/node-core/src/indexer/StoreOperations.spec.ts index e47cb8af41..400dd2e483 100644 --- a/packages/node-core/src/indexer/StoreOperations.spec.ts +++ b/packages/node-core/src/indexer/StoreOperations.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {GraphQLJsonFieldType, u8aToHex} from '@subql/utils'; diff --git a/packages/node-core/src/indexer/StoreOperations.test.ts b/packages/node-core/src/indexer/StoreOperations.test.ts index c311628209..c868d983f2 100644 --- a/packages/node-core/src/indexer/StoreOperations.test.ts +++ b/packages/node-core/src/indexer/StoreOperations.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/StoreOperations.ts b/packages/node-core/src/indexer/StoreOperations.ts index 5f9a03f4c3..d908b0982c 100644 --- a/packages/node-core/src/indexer/StoreOperations.ts +++ b/packages/node-core/src/indexer/StoreOperations.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Entity} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/benchmark.service.ts b/packages/node-core/src/indexer/benchmark.service.ts index 551cc9f8df..859a60966c 100644 --- a/packages/node-core/src/indexer/benchmark.service.ts +++ b/packages/node-core/src/indexer/benchmark.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/blockDispatcher/base-block-dispatcher.ts b/packages/node-core/src/indexer/blockDispatcher/base-block-dispatcher.ts index f2b4eb862d..fcb2ce4108 100644 --- a/packages/node-core/src/indexer/blockDispatcher/base-block-dispatcher.ts +++ b/packages/node-core/src/indexer/blockDispatcher/base-block-dispatcher.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/blockDispatcher/block-dispatcher.ts b/packages/node-core/src/indexer/blockDispatcher/block-dispatcher.ts index 151aed8cb7..5d09e1de47 100644 --- a/packages/node-core/src/indexer/blockDispatcher/block-dispatcher.ts +++ b/packages/node-core/src/indexer/blockDispatcher/block-dispatcher.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {OnApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/blockDispatcher/index.ts b/packages/node-core/src/indexer/blockDispatcher/index.ts index e368cc1b7c..8f06ac0fe9 100644 --- a/packages/node-core/src/indexer/blockDispatcher/index.ts +++ b/packages/node-core/src/indexer/blockDispatcher/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './base-block-dispatcher'; diff --git a/packages/node-core/src/indexer/blockDispatcher/worker-block-dispatcher.ts b/packages/node-core/src/indexer/blockDispatcher/worker-block-dispatcher.ts index 9e90e47ba8..ac0e343abd 100644 --- a/packages/node-core/src/indexer/blockDispatcher/worker-block-dispatcher.ts +++ b/packages/node-core/src/indexer/blockDispatcher/worker-block-dispatcher.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/connectionPool.service.spec.ts b/packages/node-core/src/indexer/connectionPool.service.spec.ts index be89dccbf8..0b3a38224a 100644 --- a/packages/node-core/src/indexer/connectionPool.service.spec.ts +++ b/packages/node-core/src/indexer/connectionPool.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {delay} from '@subql/common'; diff --git a/packages/node-core/src/indexer/connectionPool.service.ts b/packages/node-core/src/indexer/connectionPool.service.ts index d9eebae592..cf8749a080 100644 --- a/packages/node-core/src/indexer/connectionPool.service.ts +++ b/packages/node-core/src/indexer/connectionPool.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/connectionPoolState.manager.spec.ts b/packages/node-core/src/indexer/connectionPoolState.manager.spec.ts index b476605385..337d79e032 100644 --- a/packages/node-core/src/indexer/connectionPoolState.manager.spec.ts +++ b/packages/node-core/src/indexer/connectionPoolState.manager.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ApiErrorType} from '../api.connection.error'; diff --git a/packages/node-core/src/indexer/connectionPoolState.manager.ts b/packages/node-core/src/indexer/connectionPoolState.manager.ts index dd170eb068..ce1a00d0c6 100644 --- a/packages/node-core/src/indexer/connectionPoolState.manager.ts +++ b/packages/node-core/src/indexer/connectionPoolState.manager.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {OnApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/core.module.ts b/packages/node-core/src/indexer/core.module.ts index 287a461d6e..75cc9e1fcc 100644 --- a/packages/node-core/src/indexer/core.module.ts +++ b/packages/node-core/src/indexer/core.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Module} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/dictionary/coreDictionary.ts b/packages/node-core/src/indexer/dictionary/coreDictionary.ts index b82aeacd25..48972756b7 100644 --- a/packages/node-core/src/indexer/dictionary/coreDictionary.ts +++ b/packages/node-core/src/indexer/dictionary/coreDictionary.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NodeConfig} from '../../configure'; @@ -15,7 +15,10 @@ export abstract class CoreDictionary { - constructor(endpoint: string, chainId: string, nodeConfig: NodeConfig, private queryEntry: DictionaryQueryEntry[]) { + constructor( + endpoint: string, + chainId: string, + nodeConfig: NodeConfig, + private queryEntry: DictionaryQueryEntry[] + ) { super(endpoint, chainId, nodeConfig); } diff --git a/packages/node-core/src/indexer/dictionary/dictionary.service.spec.ts b/packages/node-core/src/indexer/dictionary/dictionary.service.spec.ts index d4d2c0da4d..9cc3fdd86c 100644 --- a/packages/node-core/src/indexer/dictionary/dictionary.service.spec.ts +++ b/packages/node-core/src/indexer/dictionary/dictionary.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/dictionary/dictionary.service.ts b/packages/node-core/src/indexer/dictionary/dictionary.service.ts index adebf3a906..a61d52e0f0 100644 --- a/packages/node-core/src/indexer/dictionary/dictionary.service.ts +++ b/packages/node-core/src/indexer/dictionary/dictionary.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {OnApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/dictionary/index.ts b/packages/node-core/src/indexer/dictionary/index.ts index d15b7d2d3f..755ba2618a 100644 --- a/packages/node-core/src/indexer/dictionary/index.ts +++ b/packages/node-core/src/indexer/dictionary/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './v1'; diff --git a/packages/node-core/src/indexer/dictionary/types.ts b/packages/node-core/src/indexer/dictionary/types.ts index ec87cd4756..0d9c8b03a2 100644 --- a/packages/node-core/src/indexer/dictionary/types.ts +++ b/packages/node-core/src/indexer/dictionary/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BlockHeightMap} from '../../utils/blockHeightMap'; diff --git a/packages/node-core/src/indexer/dictionary/utils.spec.ts b/packages/node-core/src/indexer/dictionary/utils.spec.ts index df25711f0c..826a1d7b5a 100644 --- a/packages/node-core/src/indexer/dictionary/utils.spec.ts +++ b/packages/node-core/src/indexer/dictionary/utils.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {IBlock} from '../types'; diff --git a/packages/node-core/src/indexer/dictionary/utils.ts b/packages/node-core/src/indexer/dictionary/utils.ts index d603b79dd1..001d42382d 100644 --- a/packages/node-core/src/indexer/dictionary/utils.ts +++ b/packages/node-core/src/indexer/dictionary/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {uniq} from 'lodash'; diff --git a/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts b/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts index 93853d7834..9086e0ef72 100644 --- a/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts +++ b/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts b/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts index 61ff0486b7..ac2d50ccc3 100644 --- a/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts +++ b/packages/node-core/src/indexer/dictionary/v1/dictionaryV1.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ApolloClient, gql, HttpLink, InMemoryCache, NormalizedCacheObject} from '@apollo/client/core'; diff --git a/packages/node-core/src/indexer/dictionary/v1/index.ts b/packages/node-core/src/indexer/dictionary/v1/index.ts index 0e60cffb4c..83b8f8b200 100644 --- a/packages/node-core/src/indexer/dictionary/v1/index.ts +++ b/packages/node-core/src/indexer/dictionary/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './dictionaryV1'; diff --git a/packages/node-core/src/indexer/dictionary/v1/utils.ts b/packages/node-core/src/indexer/dictionary/v1/utils.ts index 5777ecbb7d..c862f46dbb 100644 --- a/packages/node-core/src/indexer/dictionary/v1/utils.ts +++ b/packages/node-core/src/indexer/dictionary/v1/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts b/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts index 60ac3e664d..4502e85993 100644 --- a/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts +++ b/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NodeConfig} from '../../../configure'; diff --git a/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts b/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts index 3ba157498d..f26c78c389 100644 --- a/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts +++ b/packages/node-core/src/indexer/dictionary/v2/dictionaryV2.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {hexStripZeros, hexToNumber, numberToHex} from '@subql/utils'; @@ -75,11 +75,15 @@ async function subqlFilterBlocksCapabilities( export abstract class DictionaryV2< FB, DS, - QE extends DictionaryV2QueryEntry = DictionaryV2QueryEntry + QE extends DictionaryV2QueryEntry = DictionaryV2QueryEntry, > extends CoreDictionary { protected dictionaryApi: AxiosInstance; - constructor(readonly dictionaryEndpoint: string, chainId: string, nodeConfig: NodeConfig) { + constructor( + readonly dictionaryEndpoint: string, + chainId: string, + nodeConfig: NodeConfig + ) { super(chainId, nodeConfig); this.dictionaryApi = axios.create({ baseURL: dictionaryEndpoint, diff --git a/packages/node-core/src/indexer/dictionary/v2/index.ts b/packages/node-core/src/indexer/dictionary/v2/index.ts index fa5f3efa65..aaadf649b2 100644 --- a/packages/node-core/src/indexer/dictionary/v2/index.ts +++ b/packages/node-core/src/indexer/dictionary/v2/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/node-core/src/indexer/dictionary/v2/types.ts b/packages/node-core/src/indexer/dictionary/v2/types.ts index 66d68a3e2c..f5e8eee4ba 100644 --- a/packages/node-core/src/indexer/dictionary/v2/types.ts +++ b/packages/node-core/src/indexer/dictionary/v2/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export interface V2MetadataFilters { diff --git a/packages/node-core/src/indexer/ds-processor.service.ts b/packages/node-core/src/indexer/ds-processor.service.ts index ad57868c2b..6a66aea22b 100644 --- a/packages/node-core/src/indexer/ds-processor.service.ts +++ b/packages/node-core/src/indexer/ds-processor.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; @@ -27,7 +27,7 @@ function isSecondLayerHandlerProcessor_0_0_0< F extends Record, E, API, - DS extends BaseCustomDataSource = BaseCustomDataSource + DS extends BaseCustomDataSource = BaseCustomDataSource, >( processor: | SecondLayerHandlerProcessor_0_0_0 @@ -44,7 +44,7 @@ function isSecondLayerHandlerProcessor_1_0_0< F extends Record, E, API, - DS extends BaseCustomDataSource = BaseCustomDataSource + DS extends BaseCustomDataSource = BaseCustomDataSource, >( processor: | SecondLayerHandlerProcessor_0_0_0 @@ -60,7 +60,7 @@ export function asSecondLayerHandlerProcessor_1_0_0< F extends Record, E, API, - DS extends BaseCustomDataSource = BaseCustomDataSource + DS extends BaseCustomDataSource = BaseCustomDataSource, >( processor: | SecondLayerHandlerProcessor_0_0_0 @@ -101,7 +101,7 @@ class DsPluginSandbox

extends Sandbox { export function getDsProcessor< P, DS extends BaseDataSource = BaseDataSource, - CDS extends DS & BaseCustomDataSource = DS & BaseCustomDataSource + CDS extends DS & BaseCustomDataSource = DS & BaseCustomDataSource, >( ds: CDS, isCustomDs: (ds: any) => boolean, @@ -135,7 +135,7 @@ export function getDsProcessor< export abstract class BaseDsProcessorService< DS extends BaseDataSource = BaseDataSource, CDS extends DS & BaseCustomDataSource = DS & BaseCustomDataSource, - P extends DsProcessor = DsProcessor + P extends DsProcessor = DsProcessor, > { private processorCache: Record = {}; diff --git a/packages/node-core/src/indexer/dynamic-ds.service.spec.ts b/packages/node-core/src/indexer/dynamic-ds.service.spec.ts index 6c7ca7be7d..48a49c94bf 100644 --- a/packages/node-core/src/indexer/dynamic-ds.service.spec.ts +++ b/packages/node-core/src/indexer/dynamic-ds.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DatasourceParams, DynamicDsService} from './dynamic-ds.service'; diff --git a/packages/node-core/src/indexer/dynamic-ds.service.ts b/packages/node-core/src/indexer/dynamic-ds.service.ts index 9dae8d6245..7fc13f4d5b 100644 --- a/packages/node-core/src/indexer/dynamic-ds.service.ts +++ b/packages/node-core/src/indexer/dynamic-ds.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Transaction} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/entities/Metadata.entity.ts b/packages/node-core/src/indexer/entities/Metadata.entity.ts index 60cdbbdf91..c46f3d44ff 100644 --- a/packages/node-core/src/indexer/entities/Metadata.entity.ts +++ b/packages/node-core/src/indexer/entities/Metadata.entity.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getMetadataTableName} from '@subql/utils'; diff --git a/packages/node-core/src/indexer/entities/Poi.entity.ts b/packages/node-core/src/indexer/entities/Poi.entity.ts index fecf8de2ad..d2196fce61 100644 --- a/packages/node-core/src/indexer/entities/Poi.entity.ts +++ b/packages/node-core/src/indexer/entities/Poi.entity.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {HexString} from '@polkadot/util/types'; diff --git a/packages/node-core/src/indexer/entities/index.ts b/packages/node-core/src/indexer/entities/index.ts index 7f479d87f7..cf880d9f41 100644 --- a/packages/node-core/src/indexer/entities/index.ts +++ b/packages/node-core/src/indexer/entities/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './Poi.entity'; diff --git a/packages/node-core/src/indexer/fetch.service.spec.ts b/packages/node-core/src/indexer/fetch.service.spec.ts index 14e912fe5a..ee384a7c27 100644 --- a/packages/node-core/src/indexer/fetch.service.spec.ts +++ b/packages/node-core/src/indexer/fetch.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/fetch.service.ts b/packages/node-core/src/indexer/fetch.service.ts index 481758ab24..dda121d976 100644 --- a/packages/node-core/src/indexer/fetch.service.ts +++ b/packages/node-core/src/indexer/fetch.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/inMemoryCache.service.spec.ts b/packages/node-core/src/indexer/inMemoryCache.service.spec.ts index 9105ee1fa7..3742958704 100644 --- a/packages/node-core/src/indexer/inMemoryCache.service.spec.ts +++ b/packages/node-core/src/indexer/inMemoryCache.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {InMemoryCacheService} from './inMemoryCache.service'; diff --git a/packages/node-core/src/indexer/inMemoryCache.service.ts b/packages/node-core/src/indexer/inMemoryCache.service.ts index e7e8506a21..f2adf609c4 100644 --- a/packages/node-core/src/indexer/inMemoryCache.service.ts +++ b/packages/node-core/src/indexer/inMemoryCache.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/index.ts b/packages/node-core/src/indexer/index.ts index 39791422b7..7a7a1ca7cf 100644 --- a/packages/node-core/src/indexer/index.ts +++ b/packages/node-core/src/indexer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './connectionPool.service'; diff --git a/packages/node-core/src/indexer/indexer.manager.ts b/packages/node-core/src/indexer/indexer.manager.ts index 545016ae53..dbccf8b0d7 100644 --- a/packages/node-core/src/indexer/indexer.manager.ts +++ b/packages/node-core/src/indexer/indexer.manager.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/monitor.service.test.ts b/packages/node-core/src/indexer/monitor.service.test.ts index 83c481ed5f..32c3a1a80d 100644 --- a/packages/node-core/src/indexer/monitor.service.test.ts +++ b/packages/node-core/src/indexer/monitor.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node-core/src/indexer/monitor.service.ts b/packages/node-core/src/indexer/monitor.service.ts index 91b716b4f0..c39959f5bb 100644 --- a/packages/node-core/src/indexer/monitor.service.ts +++ b/packages/node-core/src/indexer/monitor.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as fs from 'fs'; diff --git a/packages/node-core/src/indexer/poi/PoiBlock.spec.ts b/packages/node-core/src/indexer/poi/PoiBlock.spec.ts index dfd5ad2b13..4e3390e462 100644 --- a/packages/node-core/src/indexer/poi/PoiBlock.spec.ts +++ b/packages/node-core/src/indexer/poi/PoiBlock.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PoiBlock} from './PoiBlock'; diff --git a/packages/node-core/src/indexer/poi/PoiBlock.ts b/packages/node-core/src/indexer/poi/PoiBlock.ts index 97cef31a51..bd7ac4971e 100644 --- a/packages/node-core/src/indexer/poi/PoiBlock.ts +++ b/packages/node-core/src/indexer/poi/PoiBlock.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/src/indexer/poi/index.ts b/packages/node-core/src/indexer/poi/index.ts index 5a44f05960..21ed8c2f50 100644 --- a/packages/node-core/src/indexer/poi/index.ts +++ b/packages/node-core/src/indexer/poi/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './poi.service'; diff --git a/packages/node-core/src/indexer/poi/poi.service.spec.ts b/packages/node-core/src/indexer/poi/poi.service.spec.ts index da209b2e43..104b638c63 100644 --- a/packages/node-core/src/indexer/poi/poi.service.spec.ts +++ b/packages/node-core/src/indexer/poi/poi.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/poi/poi.service.ts b/packages/node-core/src/indexer/poi/poi.service.ts index 9f0fb8b890..a401e028d9 100644 --- a/packages/node-core/src/indexer/poi/poi.service.ts +++ b/packages/node-core/src/indexer/poi/poi.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Inject, Injectable, OnApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/poi/poiSync.service.spec.ts b/packages/node-core/src/indexer/poi/poiSync.service.spec.ts index fa30f84b18..137c350c27 100644 --- a/packages/node-core/src/indexer/poi/poiSync.service.spec.ts +++ b/packages/node-core/src/indexer/poi/poiSync.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/poi/poiSync.service.ts b/packages/node-core/src/indexer/poi/poiSync.service.ts index 93254b036d..8b7163d63a 100644 --- a/packages/node-core/src/indexer/poi/poiSync.service.ts +++ b/packages/node-core/src/indexer/poi/poiSync.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Inject, Injectable, OnApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/project.service.spec.ts b/packages/node-core/src/indexer/project.service.spec.ts index 49ae4bf431..4428050dbf 100644 --- a/packages/node-core/src/indexer/project.service.spec.ts +++ b/packages/node-core/src/indexer/project.service.spec.ts @@ -1,13 +1,13 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { EventEmitter2 } from '@nestjs/event-emitter'; -import { buildSchemaFromString } from '@subql/utils'; -import { NodeConfig, ProjectUpgradeService } from '../configure'; -import { BaseDsProcessorService } from './ds-processor.service'; -import { DynamicDsService } from './dynamic-ds.service'; -import { BaseProjectService } from './project.service'; -import { Header, ISubqueryProject } from './types'; +import {EventEmitter2} from '@nestjs/event-emitter'; +import {buildSchemaFromString} from '@subql/utils'; +import {NodeConfig, ProjectUpgradeService} from '../configure'; +import {BaseDsProcessorService} from './ds-processor.service'; +import {DynamicDsService} from './dynamic-ds.service'; +import {BaseProjectService} from './project.service'; +import {Header, ISubqueryProject} from './types'; import { BaseUnfinalizedBlocksService, METADATA_LAST_FINALIZED_PROCESSED_KEY, @@ -73,11 +73,11 @@ describe('BaseProjectService', () => { null as unknown as any, null as unknown as any, null as unknown as any, - { dataSources: [] } as unknown as ISubqueryProject, + {dataSources: []} as unknown as ISubqueryProject, null as unknown as any, null as unknown as any, - { unsafe: false } as unknown as NodeConfig, - { getDynamicDatasources: jest.fn() } as unknown as DynamicDsService, + {unsafe: false} as unknown as NodeConfig, + {getDynamicDatasources: jest.fn()} as unknown as DynamicDsService, null as unknown as any, null as unknown as any ); @@ -91,11 +91,11 @@ describe('BaseProjectService', () => { 1, { dataSources: [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 10, endBlock: 20 }, - { startBlock: 1, endBlock: 100 }, - { startBlock: 50, endBlock: 200 }, - { startBlock: 500 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 10, endBlock: 20}, + {startBlock: 1, endBlock: 100}, + {startBlock: 50, endBlock: 200}, + {startBlock: 500}, ], }, ], @@ -116,10 +116,10 @@ describe('BaseProjectService', () => { 1, { dataSources: [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 10, endBlock: 20 }, - { startBlock: 1, endBlock: 100 }, - { startBlock: 50, endBlock: 200 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 10, endBlock: 20}, + {startBlock: 1, endBlock: 100}, + {startBlock: 50, endBlock: 200}, ], }, ], @@ -132,17 +132,17 @@ describe('BaseProjectService', () => { it('getDataSources', async () => { (service as any).project.dataSources = [ - { startBlock: 100, endBlock: 200 }, - { startBlock: 1, endBlock: 100 }, + {startBlock: 100, endBlock: 200}, + {startBlock: 1, endBlock: 100}, ]; (service as any).dynamicDsService.getDynamicDatasources = jest .fn() - .mockResolvedValue([{ startBlock: 150, endBlock: 250 }]); + .mockResolvedValue([{startBlock: 150, endBlock: 250}]); const result = await service.getDataSources(175); expect(result).toEqual([ - { startBlock: 100, endBlock: 200 }, - { startBlock: 150, endBlock: 250 }, + {startBlock: 100, endBlock: 200}, + {startBlock: 150, endBlock: 250}, ]); }); @@ -155,11 +155,11 @@ describe('BaseProjectService', () => { 1, { dataSources: [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 10, endBlock: 20 }, - { startBlock: 1, endBlock: 100 }, - { startBlock: 50, endBlock: 200 }, - { startBlock: 500 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 10, endBlock: 20}, + {startBlock: 1, endBlock: 100}, + {startBlock: 50, endBlock: 200}, + {startBlock: 500}, ], }, ], @@ -172,43 +172,43 @@ describe('BaseProjectService', () => { [ 1, [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 1, endBlock: 100 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 1, endBlock: 100}, ], ], [ 10, [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 1, endBlock: 100 }, - { startBlock: 10, endBlock: 20 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 1, endBlock: 100}, + {startBlock: 10, endBlock: 20}, ], ], [ 21, [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 1, endBlock: 100 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 1, endBlock: 100}, ], ], [ 50, [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 1, endBlock: 100 }, - { startBlock: 50, endBlock: 200 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 1, endBlock: 100}, + {startBlock: 50, endBlock: 200}, ], ], [ 101, [ - { startBlock: 1, endBlock: 300 }, - { startBlock: 50, endBlock: 200 }, + {startBlock: 1, endBlock: 300}, + {startBlock: 50, endBlock: 200}, ], ], - [201, [{ startBlock: 1, endBlock: 300 }]], + [201, [{startBlock: 1, endBlock: 300}]], [301, []], - [500, [{ startBlock: 500 }]], + [500, [{startBlock: 500}]], ]) ); }); @@ -220,13 +220,13 @@ describe('BaseProjectService', () => { [ 1, { - dataSources: [{ startBlock: 1 }, { startBlock: 200 }], + dataSources: [{startBlock: 1}, {startBlock: 200}], }, ], [ 100, { - dataSources: [{ startBlock: 100 }], + dataSources: [{startBlock: 100}], }, ], ], @@ -235,8 +235,8 @@ describe('BaseProjectService', () => { const result = service.getDataSourcesMap(); expect(result.getAll()).toEqual( new Map([ - [1, [{ startBlock: 1 }]], - [100, [{ startBlock: 100 }]], + [1, [{startBlock: 1}]], + [100, [{startBlock: 100}]], ]) ); }); @@ -248,13 +248,13 @@ describe('BaseProjectService', () => { [ 7408909, { - dataSources: [{ startBlock: 7408909 }], + dataSources: [{startBlock: 7408909}], }, ], [ 7880532, { - dataSources: [{ startBlock: 7408909 }], + dataSources: [{startBlock: 7408909}], }, ], ], @@ -263,8 +263,8 @@ describe('BaseProjectService', () => { const result = service.getDataSourcesMap(); expect(result.getAll()).toEqual( new Map([ - [7408909, [{ startBlock: 7408909 }]], - [7880532, [{ startBlock: 7408909 }]], + [7408909, [{startBlock: 7408909}]], + [7880532, [{startBlock: 7408909}]], ]) ); }); @@ -283,7 +283,7 @@ describe('BaseProjectService', () => { network: { chainId: '1', }, - dataSources: [{ startBlock: 1 }], + dataSources: [{startBlock: 1}], schema: buildSchemaFromString(`type TestEntity @entity { id: ID! fieldOne: String @@ -306,7 +306,7 @@ describe('BaseProjectService', () => { Promise.resolve(projects[parseInt(id, 10)]) ); - const nodeConfig = { unsafe: false } as unknown as NodeConfig; + const nodeConfig = {unsafe: false} as unknown as NodeConfig; const storeService = { init: jest.fn(), @@ -328,7 +328,7 @@ describe('BaseProjectService', () => { result = startBlock - 1; break; case 'deployments': - result = JSON.stringify({ 1: '1' }); + result = JSON.stringify({1: '1'}); break; default: result = undefined; @@ -350,7 +350,7 @@ describe('BaseProjectService', () => { { validateProjectCustomDatasources: jest.fn(), } as unknown as BaseDsProcessorService, // dsProcessorService - { networkMeta: {} } as unknown as any, //apiService + {networkMeta: {}} as unknown as any, //apiService null as unknown as any, // poiService null as unknown as any, // poiSyncService { @@ -384,7 +384,7 @@ describe('BaseProjectService', () => { { ...defaultProjects[0], id: '0', - parent: { block: 20, untilBlock: 20, reference: '1' }, + parent: {block: 20, untilBlock: 20, reference: '1'}, schema: buildSchemaFromString(`type TestEntity @entity { id: ID! fieldOne: String @@ -406,8 +406,8 @@ describe('BaseProjectService', () => { await setupProject( 95, [ - { blockHeight: 100, blockHash: 'a100', parentHash: 'a99', timestamp: new Date() }, - { blockHeight: 99, blockHash: 'a99', parentHash: 'a98', timestamp: new Date() }, + {blockHeight: 100, blockHash: 'a100', parentHash: 'a99', timestamp: new Date()}, + {blockHeight: 99, blockHash: 'a99', parentHash: 'a98', timestamp: new Date()}, ], 90 ); diff --git a/packages/node-core/src/indexer/project.service.ts b/packages/node-core/src/indexer/project.service.ts index 6e847091f0..828287a02f 100644 --- a/packages/node-core/src/indexer/project.service.ts +++ b/packages/node-core/src/indexer/project.service.ts @@ -1,27 +1,27 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { isMainThread } from 'worker_threads'; -import { EventEmitter2 } from '@nestjs/event-emitter'; -import { BaseDataSource, IProjectNetworkConfig } from '@subql/types-core'; -import { Sequelize } from '@subql/x-sequelize'; -import { IApi } from '../api.service'; -import { IProjectUpgradeService, NodeConfig } from '../configure'; -import { IndexerEvent } from '../events'; -import { getLogger } from '../logger'; -import { exitWithError, monitorWrite } from '../process'; -import { getExistingProjectSchema, getStartHeight, hasValue, initDbSchema, mainThreadOnly, reindex } from '../utils'; -import { BlockHeightMap } from '../utils/blockHeightMap'; -import { BaseDsProcessorService } from './ds-processor.service'; -import { DynamicDsService } from './dynamic-ds.service'; -import { MetadataKeys } from './entities'; -import { PoiSyncService } from './poi'; -import { PoiService } from './poi/poi.service'; -import { StoreService } from './store.service'; -import { cacheProviderFlushData } from './storeModelProvider'; -import { ISubqueryProject, IProjectService, BypassBlocks, HistoricalMode, Header } from './types'; -import { IUnfinalizedBlocksService } from './unfinalizedBlocks.service'; +import {isMainThread} from 'worker_threads'; +import {EventEmitter2} from '@nestjs/event-emitter'; +import {BaseDataSource, IProjectNetworkConfig} from '@subql/types-core'; +import {Sequelize} from '@subql/x-sequelize'; +import {IApi} from '../api.service'; +import {IProjectUpgradeService, NodeConfig} from '../configure'; +import {IndexerEvent} from '../events'; +import {getLogger} from '../logger'; +import {exitWithError, monitorWrite} from '../process'; +import {getExistingProjectSchema, getStartHeight, hasValue, initDbSchema, mainThreadOnly, reindex} from '../utils'; +import {BlockHeightMap} from '../utils/blockHeightMap'; +import {BaseDsProcessorService} from './ds-processor.service'; +import {DynamicDsService} from './dynamic-ds.service'; +import {MetadataKeys} from './entities'; +import {PoiSyncService} from './poi'; +import {PoiService} from './poi/poi.service'; +import {StoreService} from './store.service'; +import {cacheProviderFlushData} from './storeModelProvider'; +import {ISubqueryProject, IProjectService, BypassBlocks, HistoricalMode, Header} from './types'; +import {IUnfinalizedBlocksService} from './unfinalizedBlocks.service'; const logger = getLogger('Project'); @@ -35,7 +35,8 @@ export abstract class BaseProjectService< API extends IApi, DS extends BaseDataSource, UnfinalizedBlocksService extends IUnfinalizedBlocksService = IUnfinalizedBlocksService, -> implements IProjectService { +> implements IProjectService +{ private _schema?: string; private _startHeight?: number; private _blockOffset?: number; @@ -218,16 +219,16 @@ export abstract class BaseProjectService< const existing = await metadata.findMany(keys); - const { chain, genesisHash, specName } = this.apiService.networkMeta; + const {chain, genesisHash, specName} = this.apiService.networkMeta; if (this.project.runner) { - const { node, query } = this.project.runner; + const {node, query} = this.project.runner; await metadata.setBulk([ - { key: 'runnerNode', value: node.name }, - { key: 'runnerNodeVersion', value: node.version }, - { key: 'runnerQuery', value: query.name }, - { key: 'runnerQueryVersion', value: query.version }, + {key: 'runnerNode', value: node.name}, + {key: 'runnerNodeVersion', value: node.version}, + {key: 'runnerQuery', value: query.name}, + {key: 'runnerQueryVersion', value: query.version}, ]); } if (!existing.genesisHash) { @@ -340,7 +341,7 @@ export abstract class BaseProjectService< const nextProject = projects[i + 1][1]; nextMinStartHeight = Math.max( nextProject.dataSources - .filter((ds): ds is DS & { startBlock: number } => !!ds.startBlock) + .filter((ds): ds is DS & {startBlock: number} => !!ds.startBlock) .sort((a, b) => a.startBlock - b.startBlock)[0].startBlock, projects[i + 1][0] ); @@ -355,12 +356,12 @@ export abstract class BaseProjectService< }[] = []; [...project.dataSources, ...dynamicDs] - .filter((ds): ds is DS & { startBlock: number } => { + .filter((ds): ds is DS & {startBlock: number} => { return !!ds.startBlock && (!nextMinStartHeight || nextMinStartHeight > ds.startBlock); }) .forEach((ds) => { - events.push({ block: Math.max(height, ds.startBlock), start: true, ds }); - if (ds.endBlock) events.push({ block: ds.endBlock + 1, start: false, ds }); + events.push({block: Math.max(height, ds.startBlock), start: true, ds}); + if (ds.endBlock) events.push({block: ds.endBlock + 1, start: false, ds}); }); // sort events by block in ascending order, start events come before end events @@ -467,7 +468,7 @@ export abstract class BaseProjectService< return reindex( this.getStartBlockFromDataSources(), targetBlockHeader, - { height, timestamp }, + {height, timestamp}, this.storeService, this.unfinalizedBlockService, this.dynamicDsService, diff --git a/packages/node-core/src/indexer/sandbox.service.ts b/packages/node-core/src/indexer/sandbox.service.ts index 13ee9e1a7b..cb45766ab2 100644 --- a/packages/node-core/src/indexer/sandbox.service.ts +++ b/packages/node-core/src/indexer/sandbox.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'worker_threads'; diff --git a/packages/node-core/src/indexer/sandbox.spec.ts b/packages/node-core/src/indexer/sandbox.spec.ts index 2fd5b4cca7..27b079f580 100644 --- a/packages/node-core/src/indexer/sandbox.spec.ts +++ b/packages/node-core/src/indexer/sandbox.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as path from 'path'; diff --git a/packages/node-core/src/indexer/sandbox.ts b/packages/node-core/src/indexer/sandbox.ts index 0f9dad2e82..73f0836e02 100644 --- a/packages/node-core/src/indexer/sandbox.ts +++ b/packages/node-core/src/indexer/sandbox.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {existsSync, readFileSync} from 'fs'; diff --git a/packages/node-core/src/indexer/store.service.spec.ts b/packages/node-core/src/indexer/store.service.spec.ts index c715ff069b..345528ad4f 100644 --- a/packages/node-core/src/indexer/store.service.spec.ts +++ b/packages/node-core/src/indexer/store.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DataTypes, Model, ModelAttributes} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/store.service.test.ts b/packages/node-core/src/indexer/store.service.test.ts index 68674d3fb0..3305176726 100644 --- a/packages/node-core/src/indexer/store.service.test.ts +++ b/packages/node-core/src/indexer/store.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/store.service.ts b/packages/node-core/src/indexer/store.service.ts index 306ea896e9..a2307b0a82 100644 --- a/packages/node-core/src/indexer/store.service.ts +++ b/packages/node-core/src/indexer/store.service.ts @@ -1,9 +1,9 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { Inject, Injectable } from '@nestjs/common'; -import { IProjectNetworkConfig } from '@subql/types-core'; +import {Inject, Injectable} from '@nestjs/common'; +import {IProjectNetworkConfig} from '@subql/types-core'; import { GraphQLModelsRelationsEnums, hashName, @@ -22,8 +22,8 @@ import { Transaction, Deferrable, } from '@subql/x-sequelize'; -import { camelCase, flatten, last, upperFirst } from 'lodash'; -import { NodeConfig } from '../configure'; +import {camelCase, flatten, last, upperFirst} from 'lodash'; +import {NodeConfig} from '../configure'; import { BTREE_GIST_EXTENSION_EXIST_QUERY, createSchemaTrigger, @@ -32,14 +32,14 @@ import { getTriggers, SchemaMigrationService, } from '../db'; -import { getLogger } from '../logger'; -import { exitWithError } from '../process'; -import { camelCaseObjectKey, customCamelCaseGraphqlKey, getHistoricalUnit } from '../utils'; -import { MetadataFactory, MetadataRepo, PoiFactory, PoiFactoryDeprecate, PoiRepo } from './entities'; -import { Store } from './store'; -import { IMetadata, IStoreModelProvider, PlainStoreModelService } from './storeModelProvider'; -import { StoreOperations } from './StoreOperations'; -import { Header, HistoricalMode, ISubqueryProject } from './types'; +import {getLogger} from '../logger'; +import {exitWithError} from '../process'; +import {camelCaseObjectKey, customCamelCaseGraphqlKey, getHistoricalUnit} from '../utils'; +import {MetadataFactory, MetadataRepo, PoiFactory, PoiFactoryDeprecate, PoiRepo} from './entities'; +import {Store} from './store'; +import {IMetadata, IStoreModelProvider, PlainStoreModelService} from './storeModelProvider'; +import {StoreOperations} from './StoreOperations'; +import {Header, HistoricalMode, ISubqueryProject} from './types'; const logger = getLogger('StoreService'); const NULL_MERKEL_ROOT = hexToU8a('0x00'); @@ -204,7 +204,7 @@ export class StoreService { await this.metadataModel.setIncrement('schemaMigrationCount'); } } catch (e: any) { - exitWithError(new Error(`Having a problem when syncing schema`, { cause: e }), logger); + exitWithError(new Error(`Having a problem when syncing schema`, {cause: e}), logger); } } @@ -233,7 +233,7 @@ export class StoreService { try { this._modelIndexedFields = await this.getAllIndexFields(schema); } catch (e: any) { - exitWithError(new Error(`Having a problem when getting indexed fields`, { cause: e }), logger); + exitWithError(new Error(`Having a problem when getting indexed fields`, {cause: e}), logger); } } @@ -285,17 +285,17 @@ export class StoreService { private async useDeprecatePoi(schema: string): Promise { const sql = `SELECT * FROM information_schema.columns WHERE table_schema = ? AND table_name = '_poi' AND column_name = 'projectId'`; - const [result] = await this.sequelize.query(sql, { replacements: [schema] }); + const [result] = await this.sequelize.query(sql, {replacements: [schema]}); return !!result.length; } async getHistoricalStateEnabled(schema: string): Promise { - const { historical, multiChain } = this.config; + const {historical, multiChain} = this.config; try { const tableRes = await this.sequelize.query>( `SELECT table_name FROM information_schema.tables where table_schema='${schema}'`, - { type: QueryTypes.SELECT } + {type: QueryTypes.SELECT} ); const metadataTableNames = flatten(tableRes).filter( @@ -306,9 +306,9 @@ export class StoreService { throw new Error('Metadata table does not exist'); } - const res = await this.sequelize.query<{ key: string; value: boolean | string }>( + const res = await this.sequelize.query<{key: string; value: boolean | string}>( `SELECT key, value FROM "${schema}"."${metadataTableNames[0]}" WHERE (key = 'historicalStateEnabled')`, - { type: QueryTypes.SELECT } + {type: QueryTypes.SELECT} ); if (res[0]?.key !== 'historicalStateEnabled') { @@ -495,33 +495,33 @@ async function batchDeleteAndThenUpdate( destroyCompleted ? 0 : model.destroy({ - transaction, - hooks: false, - limit: batchSize, - where: sequelize.where(sequelize.fn('lower', sequelize.col('_block_range')), Op.gt, targetBlockUnit), - }), + transaction, + hooks: false, + limit: batchSize, + where: sequelize.where(sequelize.fn('lower', sequelize.col('_block_range')), Op.gt, targetBlockUnit), + }), updateCompleted ? [0] : model.update( - { - __block_range: sequelize.fn('int8range', sequelize.fn('lower', sequelize.col('_block_range')), null), - }, - { - transaction, - limit: batchSize, - hooks: false, - where: { - [Op.and]: [ - { - __block_range: { - [Op.contains]: targetBlockUnit, - }, - }, - sequelize.where(sequelize.fn('upper', sequelize.col('_block_range')), Op.not, null), - ], + { + __block_range: sequelize.fn('int8range', sequelize.fn('lower', sequelize.col('_block_range')), null), }, - } - ), + { + transaction, + limit: batchSize, + hooks: false, + where: { + [Op.and]: [ + { + __block_range: { + [Op.contains]: targetBlockUnit, + }, + }, + sequelize.where(sequelize.fn('upper', sequelize.col('_block_range')), Op.not, null), + ], + }, + } + ), ]); logger.debug(`${model.name} deleted ${numDestroyRows} records, updated ${numUpdatedRows} records`); if (numDestroyRows === 0) { diff --git a/packages/node-core/src/indexer/store/entity.ts b/packages/node-core/src/indexer/store/entity.ts index a1cd391990..e75e48229a 100644 --- a/packages/node-core/src/indexer/store/entity.ts +++ b/packages/node-core/src/indexer/store/entity.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Store, Entity} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/store/index.ts b/packages/node-core/src/indexer/store/index.ts index 3520316398..ebcdd9d481 100644 --- a/packages/node-core/src/indexer/store/index.ts +++ b/packages/node-core/src/indexer/store/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './store'; diff --git a/packages/node-core/src/indexer/store/store.ts b/packages/node-core/src/indexer/store/store.ts index c305eccc01..9582a06291 100644 --- a/packages/node-core/src/indexer/store/store.ts +++ b/packages/node-core/src/indexer/store/store.ts @@ -1,16 +1,16 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { Store as IStore, Entity, FieldsExpression, GetOptions } from '@subql/types-core'; -import { Transaction } from '@subql/x-sequelize'; -import { NodeConfig } from '../../configure'; -import { monitorWrite } from '../../process'; -import { handledStringify } from '../../utils'; -import { IStoreModelProvider } from '../storeModelProvider'; -import { StoreOperations } from '../StoreOperations'; -import { OperationType } from '../types'; -import { EntityClass } from './entity'; +import {Store as IStore, Entity, FieldsExpression, GetOptions} from '@subql/types-core'; +import {Transaction} from '@subql/x-sequelize'; +import {NodeConfig} from '../../configure'; +import {monitorWrite} from '../../process'; +import {handledStringify} from '../../utils'; +import {IStoreModelProvider} from '../storeModelProvider'; +import {StoreOperations} from '../StoreOperations'; +import {OperationType} from '../types'; +import {EntityClass} from './entity'; /* A context is provided to allow it to be updated by the owner of the class instance */ type Context = { @@ -101,7 +101,7 @@ export class Store implements IStore { assert(indexed, `to query by field ${String(field)}, a unique index must be created on model ${entity}`); const [raw] = await this.#modelProvider .getModel(entity) - .getByFields([Array.isArray(value) ? [field, 'in', value] : [field, '=', value]], { limit: 1 }); + .getByFields([Array.isArray(value) ? [field, 'in', value] : [field, '=', value]], {limit: 1}); monitorWrite(() => `-- [Store][getOneByField] Entity ${entity}, data: ${handledStringify(raw)}`); return EntityClass.create(entity, raw, this); } catch (e) { @@ -113,7 +113,9 @@ export class Store implements IStore { try { const historicalUnit = this.#context.getHistoricalUnit(); await this.#modelProvider.getModel(entity).set(_id, data, historicalUnit, this.#context.transaction); - monitorWrite(() => `-- [Store][set] Entity ${entity}, height: ${historicalUnit}, data: ${handledStringify(data)}`); + monitorWrite( + () => `-- [Store][set] Entity ${entity}, height: ${historicalUnit}, data: ${handledStringify(data)}` + ); this.#context.operationStack?.put(OperationType.Set, entity, data); } catch (e) { throw new Error(`Failed to set Entity ${entity} with _id ${_id}: ${e}`); @@ -162,7 +164,9 @@ export class Store implements IStore { for (const id of ids) { this.#context.operationStack?.put(OperationType.Remove, entity, id); } - monitorWrite(() => `-- [Store][remove] Entity ${entity}, height: ${historicalUnit}, ids: ${handledStringify(ids)}`); + monitorWrite( + () => `-- [Store][remove] Entity ${entity}, height: ${historicalUnit}, ids: ${handledStringify(ids)}` + ); } catch (e) { throw new Error(`Failed to bulkRemove Entity ${entity}: ${e}`); } diff --git a/packages/node-core/src/indexer/storeModelProvider/baseCache.service.ts b/packages/node-core/src/indexer/storeModelProvider/baseCache.service.ts index 1b59470b29..0c6f4ee262 100644 --- a/packages/node-core/src/indexer/storeModelProvider/baseCache.service.ts +++ b/packages/node-core/src/indexer/storeModelProvider/baseCache.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BeforeApplicationShutdown, Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts b/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts index 08e011002c..00bbf69ae7 100644 --- a/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts +++ b/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BeforeApplicationShutdown} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/cacheable.ts b/packages/node-core/src/indexer/storeModelProvider/cacheable.ts index 702d75ed0a..052625617e 100644 --- a/packages/node-core/src/indexer/storeModelProvider/cacheable.ts +++ b/packages/node-core/src/indexer/storeModelProvider/cacheable.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Transaction} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.spec.ts b/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.spec.ts index 45b8b01d1c..f06faf0681 100644 --- a/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.ts b/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.ts index 3481e57a82..035a01203f 100644 --- a/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.ts +++ b/packages/node-core/src/indexer/storeModelProvider/exporters/csvStore.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node-core/src/indexer/storeModelProvider/exporters/exporter.ts b/packages/node-core/src/indexer/storeModelProvider/exporters/exporter.ts index 2e0107e8ad..39494f2d65 100644 --- a/packages/node-core/src/indexer/storeModelProvider/exporters/exporter.ts +++ b/packages/node-core/src/indexer/storeModelProvider/exporters/exporter.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BaseEntity} from '../model'; diff --git a/packages/node-core/src/indexer/storeModelProvider/exporters/index.ts b/packages/node-core/src/indexer/storeModelProvider/exporters/index.ts index 40d275c919..ee41dde79c 100644 --- a/packages/node-core/src/indexer/storeModelProvider/exporters/index.ts +++ b/packages/node-core/src/indexer/storeModelProvider/exporters/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './exporter'; diff --git a/packages/node-core/src/indexer/storeModelProvider/index.ts b/packages/node-core/src/indexer/storeModelProvider/index.ts index 58bfa8248b..be9c740ba0 100644 --- a/packages/node-core/src/indexer/storeModelProvider/index.ts +++ b/packages/node-core/src/indexer/storeModelProvider/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './storeCache.service'; diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.spec.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.spec.ts index eabc05c1e0..eff8cfa3a7 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.spec.ts @@ -1,7 +1,7 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { CacheMetadataModel } from './cacheMetadata'; +import {CacheMetadataModel} from './cacheMetadata'; const incrementKey = 'processedBlockCount'; @@ -48,7 +48,7 @@ describe('CacheMetadata', () => { false ); - (cacheMetadata as any).appendDynamicDatasources([{ foo: 'bar' }]); + (cacheMetadata as any).appendDynamicDatasources([{foo: 'bar'}]); expect(queryFn).toHaveBeenCalledWith( ` UPDATE "Schema"."_metadata" @@ -59,7 +59,7 @@ describe('CacheMetadata', () => { undefined ); - (cacheMetadata as any).appendDynamicDatasources([{ foo: 'bar' }, { baz: 'buzz' }]); + (cacheMetadata as any).appendDynamicDatasources([{foo: 'bar'}, {baz: 'buzz'}]); expect(queryFn).toHaveBeenCalledWith( ` UPDATE "Schema"."_metadata" diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.test.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.test.ts index e262e0c4e5..062be710c4 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.test.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Sequelize} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.ts index 7816a6d58e..ce1ecfe730 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/cacheMetadata.ts @@ -1,16 +1,16 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { Transaction } from '@subql/x-sequelize'; -import { hasValue } from '../../../utils'; -import { DatasourceParams } from '../../dynamic-ds.service'; -import { Metadata, MetadataKeys, MetadataRepo } from '../../entities'; -import { HistoricalMode } from '../../types'; -import { Cacheable } from '../cacheable'; -import { ICachedModelControl } from '../types'; -import { IMetadata } from './metadata'; -import { MetadataKey, incrementKeys, IncrementalMetadataKey, INCREMENT_QUERY, APPEND_DS_QUERY } from './utils'; +import {Transaction} from '@subql/x-sequelize'; +import {hasValue} from '../../../utils'; +import {DatasourceParams} from '../../dynamic-ds.service'; +import {Metadata, MetadataKeys, MetadataRepo} from '../../entities'; +import {HistoricalMode} from '../../types'; +import {Cacheable} from '../cacheable'; +import {ICachedModelControl} from '../types'; +import {IMetadata} from './metadata'; +import {MetadataKey, incrementKeys, IncrementalMetadataKey, INCREMENT_QUERY, APPEND_DS_QUERY} from './utils'; // type MetadataKey = keyof MetadataKeys; // const incrementKeys: MetadataKey[] = ['processedBlockCount', 'schemaMigrationCount']; @@ -121,7 +121,7 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM assert(this.model.sequelize, `Sequelize is not available on ${this.model.name}`); - await this.model.sequelize.query(INCREMENT_QUERY(schemaTable, key, amount), tx && { transaction: tx }); + await this.model.sequelize.query(INCREMENT_QUERY(schemaTable, key, amount), tx && {transaction: tx}); } private async appendDynamicDatasources(items: DatasourceParams[], tx?: Transaction): Promise { @@ -129,7 +129,7 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM assert(this.model.sequelize, `Sequelize is not available on ${this.model.name}`); - await this.model.sequelize.query(APPEND_DS_QUERY(schemaTable, items), tx && { transaction: tx }); + await this.model.sequelize.query(APPEND_DS_QUERY(schemaTable, items), tx && {transaction: tx}); } private async handleSpecialKeys(tx?: Transaction): Promise { @@ -144,7 +144,7 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM **/ const val = this.setCache[key]; if (val !== undefined) { - await this.model.bulkCreate([{ key, value: val }], { transaction: tx, updateOnDuplicate: ['key', 'value'] }); + await this.model.bulkCreate([{key, value: val}], {transaction: tx, updateOnDuplicate: ['key', 'value']}); } else if (this.datasourceUpdates.length) { await this.appendDynamicDatasources(this.datasourceUpdates, tx); } @@ -171,7 +171,7 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM async runFlush(tx: Transaction, blockHeight?: number): Promise { const ops = Object.entries(this.setCache) .filter(([key]) => !specialKeys.includes(key as MetadataKey)) - .map(([key, value]) => ({ key, value }) as Metadata); + .map(([key, value]) => ({key, value}) as Metadata); const key = this.historical === 'timestamp' ? 'lastProcessedBlockTimestamp' : 'lastProcessedHeight'; @@ -194,7 +194,7 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM updateOnDuplicate: ['key', 'value'], }), this.handleSpecialKeys(tx), - this.model.destroy({ where: { key: this.removeCache } }), + this.model.destroy({where: {key: this.removeCache}}), ]); } @@ -220,8 +220,8 @@ export class CacheMetadataModel extends Cacheable implements IMetadata, ICachedM newSetCache.lastProcessedHeight = this.setCache.lastProcessedHeight; this.flushableRecordCounter = 1; } - this.setCache = { ...newSetCache }; - this.getCache = { ...newSetCache }; + this.setCache = {...newSetCache}; + this.getCache = {...newSetCache}; this.datasourceUpdates = []; } } diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/index.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/index.ts index 94df86710c..6ddb79c980 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/index.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './cacheMetadata'; diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/metadata.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/metadata.ts index 07772d1df7..c11c0eb9a9 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/metadata.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/metadata.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/storeModelProvider/metadata/utils.ts b/packages/node-core/src/indexer/storeModelProvider/metadata/utils.ts index e08b909279..f3dd001e08 100644 --- a/packages/node-core/src/indexer/storeModelProvider/metadata/utils.ts +++ b/packages/node-core/src/indexer/storeModelProvider/metadata/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DatasourceParams} from '../../dynamic-ds.service'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.spec.ts b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.spec.ts index 981c7d0a17..eb99cde0b7 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {delay} from '@subql/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.test.ts b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.test.ts index a7163ecfe5..dc4babdb43 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.test.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {GraphQLModelsType} from '@subql/utils'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.ts b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.ts index 372ed50e21..67290a7b4e 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/cacheModel.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/index.ts b/packages/node-core/src/indexer/storeModelProvider/model/index.ts index c32b7b677c..5af293a387 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/index.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './cacheModel'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/model.test.ts b/packages/node-core/src/indexer/storeModelProvider/model/model.test.ts index a086d549b3..7e472d7033 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/model.test.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/model.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DataTypes, Sequelize} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/model.ts b/packages/node-core/src/indexer/storeModelProvider/model/model.ts index baa6820488..85c38304d6 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/model.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/model.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {FieldsExpression, GetOptions} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/storeModelProvider/model/utils.ts b/packages/node-core/src/indexer/storeModelProvider/model/utils.ts index 5c1aa9c564..56e78e7fd2 100644 --- a/packages/node-core/src/indexer/storeModelProvider/model/utils.ts +++ b/packages/node-core/src/indexer/storeModelProvider/model/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {FieldOperators, GetOptions} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.spec.ts b/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.spec.ts index f31ad5e3a7..631545582d 100644 --- a/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {delay} from '@subql/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.ts b/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.ts index c098563c48..44cc7afafc 100644 --- a/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.ts +++ b/packages/node-core/src/indexer/storeModelProvider/poi/cachePoi.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DEFAULT_FETCH_RANGE} from '@subql/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/poi/index.ts b/packages/node-core/src/indexer/storeModelProvider/poi/index.ts index 8c876af2bd..6cb22a08aa 100644 --- a/packages/node-core/src/indexer/storeModelProvider/poi/index.ts +++ b/packages/node-core/src/indexer/storeModelProvider/poi/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './cachePoi'; diff --git a/packages/node-core/src/indexer/storeModelProvider/poi/poi.ts b/packages/node-core/src/indexer/storeModelProvider/poi/poi.ts index 5be2d37662..00ed8bba69 100644 --- a/packages/node-core/src/indexer/storeModelProvider/poi/poi.ts +++ b/packages/node-core/src/indexer/storeModelProvider/poi/poi.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DEFAULT_FETCH_RANGE} from '@subql/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/setValueModel.spec.ts b/packages/node-core/src/indexer/storeModelProvider/setValueModel.spec.ts index 3b8166b6a3..87b9c5ce01 100644 --- a/packages/node-core/src/indexer/storeModelProvider/setValueModel.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/setValueModel.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {SetValueModel} from './setValueModel'; diff --git a/packages/node-core/src/indexer/storeModelProvider/setValueModel.ts b/packages/node-core/src/indexer/storeModelProvider/setValueModel.ts index 4d5f512b42..8dcca445f1 100644 --- a/packages/node-core/src/indexer/storeModelProvider/setValueModel.ts +++ b/packages/node-core/src/indexer/storeModelProvider/setValueModel.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {FieldsExpression} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/storeModelProvider/storeCache.service.spec.ts b/packages/node-core/src/indexer/storeModelProvider/storeCache.service.spec.ts index c83bdb7390..06a0ebd20e 100644 --- a/packages/node-core/src/indexer/storeModelProvider/storeCache.service.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/storeCache.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/storeModelProvider/storeCache.service.ts b/packages/node-core/src/indexer/storeModelProvider/storeCache.service.ts index 85a9895dc2..47ebad2b87 100644 --- a/packages/node-core/src/indexer/storeModelProvider/storeCache.service.ts +++ b/packages/node-core/src/indexer/storeModelProvider/storeCache.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node-core/src/indexer/storeModelProvider/storeModel.service.spec.ts b/packages/node-core/src/indexer/storeModelProvider/storeModel.service.spec.ts index 5456c765a4..95ab47ee4f 100644 --- a/packages/node-core/src/indexer/storeModelProvider/storeModel.service.spec.ts +++ b/packages/node-core/src/indexer/storeModelProvider/storeModel.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {delay} from '@subql/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/storeModel.service.ts b/packages/node-core/src/indexer/storeModelProvider/storeModel.service.ts index bb49535b95..d398f252ba 100644 --- a/packages/node-core/src/indexer/storeModelProvider/storeModel.service.ts +++ b/packages/node-core/src/indexer/storeModelProvider/storeModel.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/storeModelProvider/types.ts b/packages/node-core/src/indexer/storeModelProvider/types.ts index d6c5250a5f..4a23861046 100644 --- a/packages/node-core/src/indexer/storeModelProvider/types.ts +++ b/packages/node-core/src/indexer/storeModelProvider/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ModelStatic, Transaction} from '@subql/x-sequelize'; diff --git a/packages/node-core/src/indexer/storeModelProvider/utils.ts b/packages/node-core/src/indexer/storeModelProvider/utils.ts index 7043a219e5..7b9ec5e209 100644 --- a/packages/node-core/src/indexer/storeModelProvider/utils.ts +++ b/packages/node-core/src/indexer/storeModelProvider/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/test.runner.spec.ts b/packages/node-core/src/indexer/test.runner.spec.ts index 0be0cd3846..d1c75aba36 100644 --- a/packages/node-core/src/indexer/test.runner.spec.ts +++ b/packages/node-core/src/indexer/test.runner.spec.ts @@ -1,14 +1,14 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { Sequelize } from '@subql/x-sequelize'; -import { TestRunner } from './test.runner'; +import {Sequelize} from '@subql/x-sequelize'; +import {TestRunner} from './test.runner'; jest.mock('@subql/x-sequelize'); const mockStoreCache = { flushCache: jest.fn().mockResolvedValue(undefined), - metadata: { set: jest.fn() }, + metadata: {set: jest.fn()}, }; describe('TestRunner', () => { @@ -21,7 +21,7 @@ describe('TestRunner', () => { beforeEach(() => { sequelizeMock = new Sequelize() as any; apiServiceMock = { - fetchBlocks: jest.fn().mockResolvedValue([{ getHeader: jest.fn() }]), + fetchBlocks: jest.fn().mockResolvedValue([{getHeader: jest.fn()}]), }; storeServiceMock = { diff --git a/packages/node-core/src/indexer/test.runner.ts b/packages/node-core/src/indexer/test.runner.ts index 001c4de94d..6795b2a99c 100644 --- a/packages/node-core/src/indexer/test.runner.ts +++ b/packages/node-core/src/indexer/test.runner.ts @@ -1,18 +1,18 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { Inject, Injectable } from '@nestjs/common'; -import { SubqlTest } from '@subql/testing'; -import { Sequelize } from '@subql/x-sequelize'; +import {Inject, Injectable} from '@nestjs/common'; +import {SubqlTest} from '@subql/testing'; +import {Sequelize} from '@subql/x-sequelize'; import chalk from 'chalk'; -import { isEqual } from 'lodash'; -import { IApi } from '../api.service'; -import { NodeConfig } from '../configure/NodeConfig'; -import { getLogger } from '../logger'; -import { TestSandbox } from './sandbox'; -import { StoreService } from './store.service'; -import { cacheProviderFlushData } from './storeModelProvider'; -import { IBlock, IIndexerManager } from './types'; +import {isEqual} from 'lodash'; +import {IApi} from '../api.service'; +import {NodeConfig} from '../configure/NodeConfig'; +import {getLogger} from '../logger'; +import {TestSandbox} from './sandbox'; +import {StoreService} from './store.service'; +import {cacheProviderFlushData} from './storeModelProvider'; +import {IBlock, IIndexerManager} from './types'; const logger = getLogger('test-runner'); diff --git a/packages/node-core/src/indexer/testing.service.ts b/packages/node-core/src/indexer/testing.service.ts index 6f497e03f8..ee9cbbbae7 100644 --- a/packages/node-core/src/indexer/testing.service.ts +++ b/packages/node-core/src/indexer/testing.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {existsSync, readdirSync, statSync} from 'fs'; diff --git a/packages/node-core/src/indexer/types.ts b/packages/node-core/src/indexer/types.ts index b5ef954888..c3b3cd420b 100644 --- a/packages/node-core/src/indexer/types.ts +++ b/packages/node-core/src/indexer/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts b/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts index 6d3622e823..45354c3443 100644 --- a/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts +++ b/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/indexer/unfinalizedBlocks.service.ts b/packages/node-core/src/indexer/unfinalizedBlocks.service.ts index b1724b2653..8978e556af 100644 --- a/packages/node-core/src/indexer/unfinalizedBlocks.service.ts +++ b/packages/node-core/src/indexer/unfinalizedBlocks.service.ts @@ -1,17 +1,17 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { Transaction } from '@subql/x-sequelize'; -import { isEqual, last } from 'lodash'; -import { NodeConfig } from '../configure'; -import { Header, IBlock } from '../indexer/types'; -import { getLogger } from '../logger'; -import { exitWithError } from '../process'; -import { mainThreadOnly } from '../utils'; -import { ProofOfIndex } from './entities'; -import { PoiBlock } from './poi'; -import { IStoreModelProvider } from './storeModelProvider'; +import {Transaction} from '@subql/x-sequelize'; +import {isEqual, last} from 'lodash'; +import {NodeConfig} from '../configure'; +import {Header, IBlock} from '../indexer/types'; +import {getLogger} from '../logger'; +import {exitWithError} from '../process'; +import {mainThreadOnly} from '../utils'; +import {ProofOfIndex} from './entities'; +import {PoiBlock} from './poi'; +import {IStoreModelProvider} from './storeModelProvider'; const logger = getLogger('UnfinalizedBlocks'); @@ -164,7 +164,7 @@ export abstract class BaseUnfinalizedBlocksService implements IUnfinalizedBlo // remove any records less and equal than input finalized blockHeight private removeFinalized(blockHeight: number): void { - this.unfinalizedBlocks = this.unfinalizedBlocks.filter(({ blockHeight: height }) => height > blockHeight); + this.unfinalizedBlocks = this.unfinalizedBlocks.filter(({blockHeight: height}) => height > blockHeight); } // find closest record from block heights @@ -172,7 +172,7 @@ export abstract class BaseUnfinalizedBlocksService implements IUnfinalizedBlo // Have the block in the best block, can be verified return [...this.unfinalizedBlocks] // Copy so we can reverse .reverse() // Reverse the list to find the largest block - .find(({ blockHeight: height }) => height <= blockHeight); + .find(({blockHeight: height}) => height <= blockHeight); } // check unfinalized blocks for a fork, returns the header where a fork happened @@ -225,7 +225,7 @@ export abstract class BaseUnfinalizedBlocksService implements IUnfinalizedBlo protected async getLastCorrectFinalizedBlock(forkedHeader: Header): Promise

{ const bestVerifiableBlocks = this.unfinalizedBlocks.filter( - ({ blockHeight }) => blockHeight <= this.finalizedBlockNumber + ({blockHeight}) => blockHeight <= this.finalizedBlockNumber ); let checkingHeader = forkedHeader; diff --git a/packages/node-core/src/indexer/worker/index.ts b/packages/node-core/src/indexer/worker/index.ts index 19907d86f4..1b1d20b267 100644 --- a/packages/node-core/src/indexer/worker/index.ts +++ b/packages/node-core/src/indexer/worker/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './worker.builder'; diff --git a/packages/node-core/src/indexer/worker/test.store.worker.ts b/packages/node-core/src/indexer/worker/test.store.worker.ts index e7fa614323..eaa8e8f998 100644 --- a/packages/node-core/src/indexer/worker/test.store.worker.ts +++ b/packages/node-core/src/indexer/worker/test.store.worker.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Store} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/worker/utils.ts b/packages/node-core/src/indexer/worker/utils.ts index acd93ed47f..c1c9528654 100644 --- a/packages/node-core/src/indexer/worker/utils.ts +++ b/packages/node-core/src/indexer/worker/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as util from 'util'; diff --git a/packages/node-core/src/indexer/worker/worker.builder.ts b/packages/node-core/src/indexer/worker/worker.builder.ts index 12b5b7d2c6..0f87165e2c 100644 --- a/packages/node-core/src/indexer/worker/worker.builder.ts +++ b/packages/node-core/src/indexer/worker/worker.builder.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as workers from 'worker_threads'; diff --git a/packages/node-core/src/indexer/worker/worker.cache.service.ts b/packages/node-core/src/indexer/worker/worker.cache.service.ts index f00135af3d..48c0f2f6b6 100644 --- a/packages/node-core/src/indexer/worker/worker.cache.service.ts +++ b/packages/node-core/src/indexer/worker/worker.cache.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'worker_threads'; diff --git a/packages/node-core/src/indexer/worker/worker.connectionPoolState.manager.ts b/packages/node-core/src/indexer/worker/worker.connectionPoolState.manager.ts index 33c2b8aa68..7d892cfc9f 100644 --- a/packages/node-core/src/indexer/worker/worker.connectionPoolState.manager.ts +++ b/packages/node-core/src/indexer/worker/worker.connectionPoolState.manager.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'node:worker_threads'; diff --git a/packages/node-core/src/indexer/worker/worker.core.module.ts b/packages/node-core/src/indexer/worker/worker.core.module.ts index 0aada5be69..4088bf2a87 100644 --- a/packages/node-core/src/indexer/worker/worker.core.module.ts +++ b/packages/node-core/src/indexer/worker/worker.core.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Module} from '@nestjs/common'; diff --git a/packages/node-core/src/indexer/worker/worker.dynamic-ds.service.ts b/packages/node-core/src/indexer/worker/worker.dynamic-ds.service.ts index 4da37bd59c..3c6e456a08 100644 --- a/packages/node-core/src/indexer/worker/worker.dynamic-ds.service.ts +++ b/packages/node-core/src/indexer/worker/worker.dynamic-ds.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'node:worker_threads'; diff --git a/packages/node-core/src/indexer/worker/worker.monitor.service.ts b/packages/node-core/src/indexer/worker/worker.monitor.service.ts index 9b766e92c4..62d7b55e16 100644 --- a/packages/node-core/src/indexer/worker/worker.monitor.service.ts +++ b/packages/node-core/src/indexer/worker/worker.monitor.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'worker_threads'; diff --git a/packages/node-core/src/indexer/worker/worker.service.ts b/packages/node-core/src/indexer/worker/worker.service.ts index 6f6fa7b6cc..ac4b477d4d 100644 --- a/packages/node-core/src/indexer/worker/worker.service.ts +++ b/packages/node-core/src/indexer/worker/worker.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BaseDataSource} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/worker/worker.store.service.test.ts b/packages/node-core/src/indexer/worker/worker.store.service.test.ts index a387b795a5..97109de1f3 100644 --- a/packages/node-core/src/indexer/worker/worker.store.service.test.ts +++ b/packages/node-core/src/indexer/worker/worker.store.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; @@ -10,7 +10,10 @@ import {HostStore, storeHostFunctions} from './worker.store.service'; type EntityProps = Omit> | '_name'>; class EntityCls implements Entity { - constructor(public id: string, public field: string) {} + constructor( + public id: string, + public field: string + ) {} get _name(): string { return 'EntityCls'; diff --git a/packages/node-core/src/indexer/worker/worker.store.service.ts b/packages/node-core/src/indexer/worker/worker.store.service.ts index 07a07026e1..dba0b653af 100644 --- a/packages/node-core/src/indexer/worker/worker.store.service.ts +++ b/packages/node-core/src/indexer/worker/worker.store.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Store, FieldsExpression, GetOptions, Entity} from '@subql/types-core'; diff --git a/packages/node-core/src/indexer/worker/worker.ts b/packages/node-core/src/indexer/worker/worker.ts index d68036b210..e5a0a4409c 100644 --- a/packages/node-core/src/indexer/worker/worker.ts +++ b/packages/node-core/src/indexer/worker/worker.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'node:assert'; diff --git a/packages/node-core/src/indexer/worker/worker.unfinalizedBlocks.service.ts b/packages/node-core/src/indexer/worker/worker.unfinalizedBlocks.service.ts index 884f05c5e8..ce37066bb8 100644 --- a/packages/node-core/src/indexer/worker/worker.unfinalizedBlocks.service.ts +++ b/packages/node-core/src/indexer/worker/worker.unfinalizedBlocks.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'node:worker_threads'; diff --git a/packages/node-core/src/logger.ts b/packages/node-core/src/logger.ts index b2b1f1fc67..f3fa960799 100644 --- a/packages/node-core/src/logger.ts +++ b/packages/node-core/src/logger.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread, threadId} from 'node:worker_threads'; diff --git a/packages/node-core/src/meta/event.listener.ts b/packages/node-core/src/meta/event.listener.ts index 4ee1178b93..b341d75b7d 100644 --- a/packages/node-core/src/meta/event.listener.ts +++ b/packages/node-core/src/meta/event.listener.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {OnEvent} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/meta/health.controller.ts b/packages/node-core/src/meta/health.controller.ts index c6c9148e18..35bfa27da4 100644 --- a/packages/node-core/src/meta/health.controller.ts +++ b/packages/node-core/src/meta/health.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Controller, Get, HttpException, HttpStatus} from '@nestjs/common'; diff --git a/packages/node-core/src/meta/health.service.ts b/packages/node-core/src/meta/health.service.ts index f6b7bdb2f2..1d4fa0645c 100644 --- a/packages/node-core/src/meta/health.service.ts +++ b/packages/node-core/src/meta/health.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/meta/index.ts b/packages/node-core/src/meta/index.ts index b7773acc0c..843c64f680 100644 --- a/packages/node-core/src/meta/index.ts +++ b/packages/node-core/src/meta/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './meta.module'; diff --git a/packages/node-core/src/meta/meta.controller.ts b/packages/node-core/src/meta/meta.controller.ts index d3d0f8d7d1..a39d950eb3 100644 --- a/packages/node-core/src/meta/meta.controller.ts +++ b/packages/node-core/src/meta/meta.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Controller, Get} from '@nestjs/common'; diff --git a/packages/node-core/src/meta/meta.module.ts b/packages/node-core/src/meta/meta.module.ts index dc19756438..8411d0ec83 100644 --- a/packages/node-core/src/meta/meta.module.ts +++ b/packages/node-core/src/meta/meta.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DynamicModule, Module} from '@nestjs/common'; diff --git a/packages/node-core/src/meta/meta.service.ts b/packages/node-core/src/meta/meta.service.ts index 5d310107a7..5d8d0b3970 100644 --- a/packages/node-core/src/meta/meta.service.ts +++ b/packages/node-core/src/meta/meta.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {OnEvent} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/meta/meta.ts b/packages/node-core/src/meta/meta.ts index 12907d9000..a0c8811f86 100644 --- a/packages/node-core/src/meta/meta.ts +++ b/packages/node-core/src/meta/meta.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {makeGaugeProvider} from '@willsoto/nestjs-prometheus'; diff --git a/packages/node-core/src/meta/ready.controller.ts b/packages/node-core/src/meta/ready.controller.ts index 949d9bea35..0cef63b6f9 100644 --- a/packages/node-core/src/meta/ready.controller.ts +++ b/packages/node-core/src/meta/ready.controller.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Controller, Get, HttpException, HttpStatus} from '@nestjs/common'; diff --git a/packages/node-core/src/meta/ready.service.ts b/packages/node-core/src/meta/ready.service.ts index a7780d87ac..36f89b8b87 100644 --- a/packages/node-core/src/meta/ready.service.ts +++ b/packages/node-core/src/meta/ready.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/process.ts b/packages/node-core/src/process.ts index 0c4eef78da..b5264471aa 100644 --- a/packages/node-core/src/process.ts +++ b/packages/node-core/src/process.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import Pino from 'pino'; diff --git a/packages/node-core/src/profiler.ts b/packages/node-core/src/profiler.ts index 2acc333590..b252cff540 100644 --- a/packages/node-core/src/profiler.ts +++ b/packages/node-core/src/profiler.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 /* class decorator */ diff --git a/packages/node-core/src/subcommands/forceClean.module.ts b/packages/node-core/src/subcommands/forceClean.module.ts index d933068751..14d9a6e933 100644 --- a/packages/node-core/src/subcommands/forceClean.module.ts +++ b/packages/node-core/src/subcommands/forceClean.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Module} from '@nestjs/common'; diff --git a/packages/node-core/src/subcommands/forceClean.service.ts b/packages/node-core/src/subcommands/forceClean.service.ts index 54ad7289dc..a9873b0d52 100644 --- a/packages/node-core/src/subcommands/forceClean.service.ts +++ b/packages/node-core/src/subcommands/forceClean.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Inject, Injectable} from '@nestjs/common'; diff --git a/packages/node-core/src/subcommands/foreceClean.init.ts b/packages/node-core/src/subcommands/foreceClean.init.ts index 664d3d8063..6efbfe1b0f 100644 --- a/packages/node-core/src/subcommands/foreceClean.init.ts +++ b/packages/node-core/src/subcommands/foreceClean.init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NestFactory} from '@nestjs/core'; diff --git a/packages/node-core/src/subcommands/index.ts b/packages/node-core/src/subcommands/index.ts index 9badc6fa70..985d8e589e 100644 --- a/packages/node-core/src/subcommands/index.ts +++ b/packages/node-core/src/subcommands/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './forceClean.service'; diff --git a/packages/node-core/src/subcommands/reindex.init.ts b/packages/node-core/src/subcommands/reindex.init.ts index 949c81fda6..08b820e298 100644 --- a/packages/node-core/src/subcommands/reindex.init.ts +++ b/packages/node-core/src/subcommands/reindex.init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {NestFactory} from '@nestjs/core'; diff --git a/packages/node-core/src/subcommands/reindex.service.ts b/packages/node-core/src/subcommands/reindex.service.ts index f117172155..0480354d0b 100644 --- a/packages/node-core/src/subcommands/reindex.service.ts +++ b/packages/node-core/src/subcommands/reindex.service.ts @@ -1,11 +1,11 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; -import { Inject, Injectable } from '@nestjs/common'; -import { BaseDataSource } from '@subql/types-core'; -import { Sequelize } from '@subql/x-sequelize'; -import { NodeConfig, ProjectUpgradeService } from '../configure'; +import {Inject, Injectable} from '@nestjs/common'; +import {BaseDataSource} from '@subql/types-core'; +import {Sequelize} from '@subql/x-sequelize'; +import {NodeConfig, ProjectUpgradeService} from '../configure'; import { IUnfinalizedBlocksService, StoreService, @@ -15,18 +15,18 @@ import { cacheProviderFlushData, Header, } from '../indexer'; -import { DynamicDsService } from '../indexer/dynamic-ds.service'; -import { getLogger } from '../logger'; -import { exitWithError, monitorWrite } from '../process'; -import { getExistingProjectSchema, initDbSchema, reindex } from '../utils'; -import { ForceCleanService } from './forceClean.service'; +import {DynamicDsService} from '../indexer/dynamic-ds.service'; +import {getLogger} from '../logger'; +import {exitWithError, monitorWrite} from '../process'; +import {getExistingProjectSchema, initDbSchema, reindex} from '../utils'; +import {ForceCleanService} from './forceClean.service'; const logger = getLogger('Reindex'); @Injectable() export class ReindexService

{ private _metadataRepo?: IMetadata; - private _lastProcessedHeader?: { height: number; timestamp?: number }; + private _lastProcessedHeader?: {height: number; timestamp?: number}; constructor( private readonly sequelize: Sequelize, @@ -90,7 +90,7 @@ export class ReindexService

blockHeight <= inputHeight); + const bestBlocks = unfinalizedBlocks.filter(({blockHeight}) => blockHeight <= inputHeight); if (bestBlocks.length && inputHeight >= bestBlocks[0].blockHeight) { return bestBlocks[0]; } @@ -101,7 +101,7 @@ export class ReindexService

= {value: T; startHeight: number; endHeight?: number}; diff --git a/packages/node-core/src/utils/blocks.spec.ts b/packages/node-core/src/utils/blocks.spec.ts index 3bed025899..7f91df5a6f 100644 --- a/packages/node-core/src/utils/blocks.spec.ts +++ b/packages/node-core/src/utils/blocks.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {range} from 'lodash'; diff --git a/packages/node-core/src/utils/blocks.ts b/packages/node-core/src/utils/blocks.ts index 7bec3c566d..7cb7d4f16f 100644 --- a/packages/node-core/src/utils/blocks.ts +++ b/packages/node-core/src/utils/blocks.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Schedule} from 'cron-converter'; diff --git a/packages/node-core/src/utils/configure.spec.ts b/packages/node-core/src/utils/configure.spec.ts index 212aa4238f..8788f0ad12 100644 --- a/packages/node-core/src/utils/configure.spec.ts +++ b/packages/node-core/src/utils/configure.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/node-core/src/utils/configure.ts b/packages/node-core/src/utils/configure.ts index fea6a0e10d..8e6d095f59 100644 --- a/packages/node-core/src/utils/configure.ts +++ b/packages/node-core/src/utils/configure.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/node-core/src/utils/decorators.ts b/packages/node-core/src/utils/decorators.ts index f2cdf8cd7a..a3aa7706fd 100644 --- a/packages/node-core/src/utils/decorators.ts +++ b/packages/node-core/src/utils/decorators.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isMainThread} from 'worker_threads'; diff --git a/packages/node-core/src/utils/fetchHelper.spec.ts b/packages/node-core/src/utils/fetchHelper.spec.ts index add3fcb1d8..d971b5e845 100644 --- a/packages/node-core/src/utils/fetchHelper.spec.ts +++ b/packages/node-core/src/utils/fetchHelper.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {retryOnFailAxios} from './fetchHelpers'; diff --git a/packages/node-core/src/utils/fetchHelpers.ts b/packages/node-core/src/utils/fetchHelpers.ts index b52f08e2be..d7a91f1b1e 100644 --- a/packages/node-core/src/utils/fetchHelpers.ts +++ b/packages/node-core/src/utils/fetchHelpers.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getLogger} from '../logger'; diff --git a/packages/node-core/src/utils/graphql.ts b/packages/node-core/src/utils/graphql.ts index 62fd243294..6d92f04a4f 100644 --- a/packages/node-core/src/utils/graphql.ts +++ b/packages/node-core/src/utils/graphql.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node-core/src/utils/index.ts b/packages/node-core/src/utils/index.ts index 5eace77924..1ccf5996e0 100644 --- a/packages/node-core/src/utils/index.ts +++ b/packages/node-core/src/utils/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './decorators'; diff --git a/packages/node-core/src/utils/object.spec.ts b/packages/node-core/src/utils/object.spec.ts index 395644227c..34559438e1 100644 --- a/packages/node-core/src/utils/object.spec.ts +++ b/packages/node-core/src/utils/object.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {camelCaseObjectKey} from './object'; diff --git a/packages/node-core/src/utils/object.ts b/packages/node-core/src/utils/object.ts index d66832bf05..3bb775d2e3 100644 --- a/packages/node-core/src/utils/object.ts +++ b/packages/node-core/src/utils/object.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {assignWith, camelCase, isUndefined} from 'lodash'; diff --git a/packages/node-core/src/utils/project.ts b/packages/node-core/src/utils/project.ts index ddf68d030e..f5fbd86bef 100644 --- a/packages/node-core/src/utils/project.ts +++ b/packages/node-core/src/utils/project.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node-core/src/utils/promise.spec.ts b/packages/node-core/src/utils/promise.spec.ts index 558c42d665..4d25c83bd6 100644 --- a/packages/node-core/src/utils/promise.spec.ts +++ b/packages/node-core/src/utils/promise.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BackoffError, backoffRetry, delay, timeout} from './promise'; diff --git a/packages/node-core/src/utils/promise.ts b/packages/node-core/src/utils/promise.ts index 8aace7b3ff..b6e55e87db 100644 --- a/packages/node-core/src/utils/promise.ts +++ b/packages/node-core/src/utils/promise.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 //deprecate method, use delay from @subql/common diff --git a/packages/node-core/src/utils/queues/autoQueue.spec.ts b/packages/node-core/src/utils/queues/autoQueue.spec.ts index 2e564e2e5e..f0df09d68d 100644 --- a/packages/node-core/src/utils/queues/autoQueue.spec.ts +++ b/packages/node-core/src/utils/queues/autoQueue.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {AutoQueue} from './autoQueue'; diff --git a/packages/node-core/src/utils/queues/autoQueue.ts b/packages/node-core/src/utils/queues/autoQueue.ts index cb810df43e..7f126ed812 100644 --- a/packages/node-core/src/utils/queues/autoQueue.ts +++ b/packages/node-core/src/utils/queues/autoQueue.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {EventEmitter2} from '@nestjs/event-emitter'; diff --git a/packages/node-core/src/utils/queues/index.ts b/packages/node-core/src/utils/queues/index.ts index 043c0f0fac..4016ccf844 100644 --- a/packages/node-core/src/utils/queues/index.ts +++ b/packages/node-core/src/utils/queues/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './autoQueue'; diff --git a/packages/node-core/src/utils/queues/queue.ts b/packages/node-core/src/utils/queues/queue.ts index 7adda4a252..8e2353a9f3 100644 --- a/packages/node-core/src/utils/queues/queue.ts +++ b/packages/node-core/src/utils/queues/queue.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export interface IQueue { diff --git a/packages/node-core/src/utils/queues/rampQueue.spec.ts b/packages/node-core/src/utils/queues/rampQueue.spec.ts index e144084a05..5c523bd424 100644 --- a/packages/node-core/src/utils/queues/rampQueue.spec.ts +++ b/packages/node-core/src/utils/queues/rampQueue.spec.ts @@ -1,8 +1,8 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { Task } from './autoQueue'; -import { RampQueue } from './rampQueue'; +import {Task} from './autoQueue'; +import {RampQueue} from './rampQueue'; const testSizes = [ 4.448733415947499, 8.956082893010741, 1.0740251087438613, 7.874408027526685, 2.095588330681719, 9.877603058371257, diff --git a/packages/node-core/src/utils/queues/rampQueue.ts b/packages/node-core/src/utils/queues/rampQueue.ts index a39a6f3fe7..d0da74e1db 100644 --- a/packages/node-core/src/utils/queues/rampQueue.ts +++ b/packages/node-core/src/utils/queues/rampQueue.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getLogger} from '../../logger'; diff --git a/packages/node-core/src/utils/reindex.ts b/packages/node-core/src/utils/reindex.ts index 9e03844b92..690268c156 100644 --- a/packages/node-core/src/utils/reindex.ts +++ b/packages/node-core/src/utils/reindex.ts @@ -1,8 +1,8 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import { Sequelize } from '@subql/x-sequelize'; -import { IProjectUpgradeService } from '../configure'; +import {Sequelize} from '@subql/x-sequelize'; +import {IProjectUpgradeService} from '../configure'; import { DynamicDsService, IUnfinalizedBlocksService, @@ -14,10 +14,10 @@ import { cacheProviderResetData, Header, } from '../indexer'; -import { getLogger } from '../logger'; -import { exitWithError } from '../process'; -import { ForceCleanService } from '../subcommands/forceClean.service'; -import { getHistoricalUnit } from './blocks'; +import {getLogger} from '../logger'; +import {exitWithError} from '../process'; +import {ForceCleanService} from '../subcommands/forceClean.service'; +import {getHistoricalUnit} from './blocks'; const logger = getLogger('Reindex'); @@ -43,7 +43,7 @@ const logger = getLogger('Reindex'); export async function reindex( startHeight: number, targetBlockHeader: Header, - lastProcessed: { height: number; timestamp?: number }, + lastProcessed: {height: number; timestamp?: number}, storeService: StoreService, unfinalizedBlockService: IUnfinalizedBlocksService, dynamicDsService: DynamicDsService, diff --git a/packages/node-core/src/utils/string.spec.ts b/packages/node-core/src/utils/string.spec.ts index 4f190e3174..eb82d13abd 100644 --- a/packages/node-core/src/utils/string.spec.ts +++ b/packages/node-core/src/utils/string.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {handledStringify} from './string'; diff --git a/packages/node-core/src/utils/string.ts b/packages/node-core/src/utils/string.ts index c2f29b41f1..6660471fdb 100644 --- a/packages/node-core/src/utils/string.ts +++ b/packages/node-core/src/utils/string.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 function truncateObject(value: any, currentDepth: number, maxDepth: number, seen: Set = new Set()): any { diff --git a/packages/node-core/src/yargs.ts b/packages/node-core/src/yargs.ts index 77c6a40227..c1c0316eee 100644 --- a/packages/node-core/src/yargs.ts +++ b/packages/node-core/src/yargs.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import yargs, {demandOption} from 'yargs'; diff --git a/packages/node-core/test/sandbox/buffer-test.js b/packages/node-core/test/sandbox/buffer-test.js index aa096f7f6b..c56bc91037 100644 --- a/packages/node-core/test/sandbox/buffer-test.js +++ b/packages/node-core/test/sandbox/buffer-test.js @@ -1,5 +1,5 @@ 'use strict'; -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 Object.defineProperty(exports, '__esModule', {value: true}); exports.testUin8Array = exports.testSandbox = void 0; diff --git a/packages/node-core/test/sandbox/buffer-test.ts b/packages/node-core/test/sandbox/buffer-test.ts index f62fd7f907..6ea27eb2bd 100644 --- a/packages/node-core/test/sandbox/buffer-test.ts +++ b/packages/node-core/test/sandbox/buffer-test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export async function testSandbox(): Promise { diff --git a/packages/node-core/test/sandbox/main.js b/packages/node-core/test/sandbox/main.js index 645542f379..6894df8ff7 100644 --- a/packages/node-core/test/sandbox/main.js +++ b/packages/node-core/test/sandbox/main.js @@ -1,5 +1,5 @@ 'use strict'; -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 Object.defineProperty(exports, '__esModule', {value: true}); exports.testSandbox = void 0; diff --git a/packages/node-core/test/sandbox/main.ts b/packages/node-core/test/sandbox/main.ts index 8f80e1b64c..8b02f3155d 100644 --- a/packages/node-core/test/sandbox/main.ts +++ b/packages/node-core/test/sandbox/main.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export async function testSandbox(): Promise { diff --git a/packages/node-core/yargs.js b/packages/node-core/yargs.js index 4e6288bd0e..3337d43582 100644 --- a/packages/node-core/yargs.js +++ b/packages/node-core/yargs.js @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // A standalone entrypoint for logger so we can import `@subql/node-core/logger` diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 1f757d103b..c5ef9ce00c 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [5.7.1] - 2025-01-30 ### Fixed diff --git a/packages/node/src/app.module.ts b/packages/node/src/app.module.ts index 996aa8d97b..3cbe2d85b5 100644 --- a/packages/node/src/app.module.ts +++ b/packages/node/src/app.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/configure/NodeConfig.ts b/packages/node/src/configure/NodeConfig.ts index faf2d307ce..346ca62c29 100644 --- a/packages/node/src/configure/NodeConfig.ts +++ b/packages/node/src/configure/NodeConfig.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { IConfig, NodeConfig } from '@subql/node-core'; diff --git a/packages/node/src/configure/SchemaMigration.service.test.ts b/packages/node/src/configure/SchemaMigration.service.test.ts index 4ef4bb3c89..63a594ed98 100644 --- a/packages/node/src/configure/SchemaMigration.service.test.ts +++ b/packages/node/src/configure/SchemaMigration.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { INestApplication } from '@nestjs/common'; diff --git a/packages/node/src/configure/SubqueryProject.spec.ts b/packages/node/src/configure/SubqueryProject.spec.ts index 12b3ef295a..72c4eb5ef3 100644 --- a/packages/node/src/configure/SubqueryProject.spec.ts +++ b/packages/node/src/configure/SubqueryProject.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node/src/configure/SubqueryProject.ts b/packages/node/src/configure/SubqueryProject.ts index a361fc85ea..ea76bd1c4d 100644 --- a/packages/node/src/configure/SubqueryProject.ts +++ b/packages/node/src/configure/SubqueryProject.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { RegisteredTypes } from '@polkadot/types/types'; diff --git a/packages/node/src/configure/configure.module.ts b/packages/node/src/configure/configure.module.ts index 4716d8c00e..f5c5f8c464 100644 --- a/packages/node/src/configure/configure.module.ts +++ b/packages/node/src/configure/configure.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { DynamicModule, Global, Module } from '@nestjs/common'; diff --git a/packages/node/src/indexer/api.service.spec.ts b/packages/node/src/indexer/api.service.spec.ts index 564c36f1ee..71223f68f1 100644 --- a/packages/node/src/indexer/api.service.spec.ts +++ b/packages/node/src/indexer/api.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { EventEmitter2 } from '@nestjs/event-emitter'; diff --git a/packages/node/src/indexer/api.service.test.ts b/packages/node/src/indexer/api.service.test.ts index 8d6099cef9..b85c45fe36 100644 --- a/packages/node/src/indexer/api.service.test.ts +++ b/packages/node/src/indexer/api.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { INestApplication } from '@nestjs/common'; diff --git a/packages/node/src/indexer/api.service.ts b/packages/node/src/indexer/api.service.ts index 459a51de30..1b12a92e02 100644 --- a/packages/node/src/indexer/api.service.ts +++ b/packages/node/src/indexer/api.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/apiPromise.connection.ts b/packages/node/src/indexer/apiPromise.connection.ts index abffca8b31..86adeb6989 100644 --- a/packages/node/src/indexer/apiPromise.connection.ts +++ b/packages/node/src/indexer/apiPromise.connection.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { ApiPromise, WsProvider } from '@polkadot/api'; diff --git a/packages/node/src/indexer/blockDispatcher/block-dispatcher.service.ts b/packages/node/src/indexer/blockDispatcher/block-dispatcher.service.ts index c3301de374..88d2eb5de7 100644 --- a/packages/node/src/indexer/blockDispatcher/block-dispatcher.service.ts +++ b/packages/node/src/indexer/blockDispatcher/block-dispatcher.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/blockDispatcher/index.ts b/packages/node/src/indexer/blockDispatcher/index.ts index 8b646d2a9c..d3a708ecd5 100644 --- a/packages/node/src/indexer/blockDispatcher/index.ts +++ b/packages/node/src/indexer/blockDispatcher/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { BlockDispatcherService } from './block-dispatcher.service'; diff --git a/packages/node/src/indexer/blockDispatcher/substrate-block-dispatcher.ts b/packages/node/src/indexer/blockDispatcher/substrate-block-dispatcher.ts index a81b4e6b03..ed833ffda8 100644 --- a/packages/node/src/indexer/blockDispatcher/substrate-block-dispatcher.ts +++ b/packages/node/src/indexer/blockDispatcher/substrate-block-dispatcher.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { IBlockDispatcher } from '@subql/node-core'; diff --git a/packages/node/src/indexer/blockDispatcher/worker-block-dispatcher.service.ts b/packages/node/src/indexer/blockDispatcher/worker-block-dispatcher.service.ts index fc92ebca9e..14a429ac5f 100644 --- a/packages/node/src/indexer/blockDispatcher/worker-block-dispatcher.service.ts +++ b/packages/node/src/indexer/blockDispatcher/worker-block-dispatcher.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/dictionary/index.ts b/packages/node/src/indexer/dictionary/index.ts index f068f3d4aa..039e15c089 100644 --- a/packages/node/src/indexer/dictionary/index.ts +++ b/packages/node/src/indexer/dictionary/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/node/src/indexer/dictionary/substrateDictionary.service.spec.ts b/packages/node/src/indexer/dictionary/substrateDictionary.service.spec.ts index f0c29297a1..defff99fcc 100644 --- a/packages/node/src/indexer/dictionary/substrateDictionary.service.spec.ts +++ b/packages/node/src/indexer/dictionary/substrateDictionary.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { EventEmitter2 } from '@nestjs/event-emitter'; diff --git a/packages/node/src/indexer/dictionary/substrateDictionary.service.ts b/packages/node/src/indexer/dictionary/substrateDictionary.service.ts index 8c09f6f037..b7c62c43e0 100644 --- a/packages/node/src/indexer/dictionary/substrateDictionary.service.ts +++ b/packages/node/src/indexer/dictionary/substrateDictionary.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/dictionary/types.ts b/packages/node/src/indexer/dictionary/types.ts index a93961cf7b..346afd9250 100644 --- a/packages/node/src/indexer/dictionary/types.ts +++ b/packages/node/src/indexer/dictionary/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { MetaData } from '@subql/utils'; diff --git a/packages/node/src/indexer/dictionary/v1/index.ts b/packages/node/src/indexer/dictionary/v1/index.ts index bf4424b708..0532dfcb37 100644 --- a/packages/node/src/indexer/dictionary/v1/index.ts +++ b/packages/node/src/indexer/dictionary/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './substrateDictionaryV1'; diff --git a/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.spec.ts b/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.spec.ts index b648e85730..598f8994b6 100644 --- a/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.spec.ts +++ b/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { EventEmitter2 } from '@nestjs/event-emitter'; diff --git a/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.ts b/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.ts index 15b0b94eb0..524afeb72e 100644 --- a/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.ts +++ b/packages/node/src/indexer/dictionary/v1/substrateDictionaryV1.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/dictionary/v2/index.ts b/packages/node/src/indexer/dictionary/v2/index.ts index e4646bbc5c..5c020f6cd9 100644 --- a/packages/node/src/indexer/dictionary/v2/index.ts +++ b/packages/node/src/indexer/dictionary/v2/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './substrateDictionaryV2'; diff --git a/packages/node/src/indexer/dictionary/v2/substrateDictionaryV2.ts b/packages/node/src/indexer/dictionary/v2/substrateDictionaryV2.ts index 3c1739945f..a54ed364e7 100644 --- a/packages/node/src/indexer/dictionary/v2/substrateDictionaryV2.ts +++ b/packages/node/src/indexer/dictionary/v2/substrateDictionaryV2.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { SubstrateDataSource } from '@subql/common-substrate'; diff --git a/packages/node/src/indexer/dictionary/v2/types.ts b/packages/node/src/indexer/dictionary/v2/types.ts index d4d4d26e3e..681533ebe2 100644 --- a/packages/node/src/indexer/dictionary/v2/types.ts +++ b/packages/node/src/indexer/dictionary/v2/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { DictionaryV2QueryEntry } from '@subql/node-core'; diff --git a/packages/node/src/indexer/ds-processor.service.spec.ts b/packages/node/src/indexer/ds-processor.service.spec.ts index 66edc8e82a..1f7915fe3d 100644 --- a/packages/node/src/indexer/ds-processor.service.spec.ts +++ b/packages/node/src/indexer/ds-processor.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/node/src/indexer/ds-processor.service.ts b/packages/node/src/indexer/ds-processor.service.ts index cead77c1bd..6dd561c946 100644 --- a/packages/node/src/indexer/ds-processor.service.ts +++ b/packages/node/src/indexer/ds-processor.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/dynamic-ds.service.ts b/packages/node/src/indexer/dynamic-ds.service.ts index 0db1c87b27..91933bab4f 100644 --- a/packages/node/src/indexer/dynamic-ds.service.ts +++ b/packages/node/src/indexer/dynamic-ds.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Inject, Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/fetch.module.ts b/packages/node/src/indexer/fetch.module.ts index 3d4e411961..8b5ddae7f1 100644 --- a/packages/node/src/indexer/fetch.module.ts +++ b/packages/node/src/indexer/fetch.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; @@ -66,32 +66,32 @@ import { UnfinalizedBlocksService } from './unfinalizedBlocks.service'; ) => nodeConfig.workers ? new WorkerBlockDispatcherService( - nodeConfig, - eventEmitter, - projectService, - projectUpgradeService, - cacheService, - storeService, - storeModelProvider, - poiSyncService, - project, - dynamicDsService, - unfinalizedBlocks, - connectionPoolState, - monitorService, - ) + nodeConfig, + eventEmitter, + projectService, + projectUpgradeService, + cacheService, + storeService, + storeModelProvider, + poiSyncService, + project, + dynamicDsService, + unfinalizedBlocks, + connectionPoolState, + monitorService, + ) : new BlockDispatcherService( - apiService, - nodeConfig, - indexerManager, - eventEmitter, - projectService, - projectUpgradeService, - storeService, - storeModelProvider, - poiSyncService, - project, - ), + apiService, + nodeConfig, + indexerManager, + eventEmitter, + projectService, + projectUpgradeService, + storeService, + storeModelProvider, + poiSyncService, + project, + ), inject: [ NodeConfig, EventEmitter2, diff --git a/packages/node/src/indexer/fetch.service.spec.ts b/packages/node/src/indexer/fetch.service.spec.ts index fdd7f6fe8b..30f6c7d5fe 100644 --- a/packages/node/src/indexer/fetch.service.spec.ts +++ b/packages/node/src/indexer/fetch.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { diff --git a/packages/node/src/indexer/fetch.service.test.ts b/packages/node/src/indexer/fetch.service.test.ts index 4f2027ba9e..eda6b33041 100644 --- a/packages/node/src/indexer/fetch.service.test.ts +++ b/packages/node/src/indexer/fetch.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { ApiPromise, HttpProvider } from '@polkadot/api'; diff --git a/packages/node/src/indexer/fetch.service.ts b/packages/node/src/indexer/fetch.service.ts index 9f2eacd163..e765869d22 100644 --- a/packages/node/src/indexer/fetch.service.ts +++ b/packages/node/src/indexer/fetch.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Inject, Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/indexer.manager.spec.ts b/packages/node/src/indexer/indexer.manager.spec.ts index 0d1ec7fb99..e3108b5371 100644 --- a/packages/node/src/indexer/indexer.manager.spec.ts +++ b/packages/node/src/indexer/indexer.manager.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { EventEmitter2 } from '@nestjs/event-emitter'; diff --git a/packages/node/src/indexer/indexer.manager.ts b/packages/node/src/indexer/indexer.manager.ts index bc19f5ffed..feb6c7a133 100644 --- a/packages/node/src/indexer/indexer.manager.ts +++ b/packages/node/src/indexer/indexer.manager.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/project.service.spec.ts b/packages/node/src/indexer/project.service.spec.ts index d148a804f1..89e9cf7712 100644 --- a/packages/node/src/indexer/project.service.spec.ts +++ b/packages/node/src/indexer/project.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { EventEmitter2, EventEmitterModule } from '@nestjs/event-emitter'; diff --git a/packages/node/src/indexer/project.service.ts b/packages/node/src/indexer/project.service.ts index eb9c4ebe03..24b3707985 100644 --- a/packages/node/src/indexer/project.service.ts +++ b/packages/node/src/indexer/project.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { isMainThread } from 'worker_threads'; diff --git a/packages/node/src/indexer/runtime/base-runtime.service.ts b/packages/node/src/indexer/runtime/base-runtime.service.ts index 49dbdf7d04..55fd72e8a2 100644 --- a/packages/node/src/indexer/runtime/base-runtime.service.ts +++ b/packages/node/src/indexer/runtime/base-runtime.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/runtime/runtime.service.spec.ts b/packages/node/src/indexer/runtime/runtime.service.spec.ts index 0c4434dc10..abc97b4438 100644 --- a/packages/node/src/indexer/runtime/runtime.service.spec.ts +++ b/packages/node/src/indexer/runtime/runtime.service.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/indexer/runtime/runtimeService.ts b/packages/node/src/indexer/runtime/runtimeService.ts index 231153d811..5a67874a5c 100644 --- a/packages/node/src/indexer/runtime/runtimeService.ts +++ b/packages/node/src/indexer/runtime/runtimeService.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/runtime/workerRuntimeService.ts b/packages/node/src/indexer/runtime/workerRuntimeService.ts index 41a6b1c321..c85d1e77e1 100644 --- a/packages/node/src/indexer/runtime/workerRuntimeService.ts +++ b/packages/node/src/indexer/runtime/workerRuntimeService.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/store.service.test.ts b/packages/node/src/indexer/store.service.test.ts index 3278789dda..ca2b01f144 100644 --- a/packages/node/src/indexer/store.service.test.ts +++ b/packages/node/src/indexer/store.service.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { INestApplication } from '@nestjs/common'; diff --git a/packages/node/src/indexer/types.ts b/packages/node/src/indexer/types.ts index b13e8bf070..23cbf544ea 100644 --- a/packages/node/src/indexer/types.ts +++ b/packages/node/src/indexer/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { ApiPromise } from '@polkadot/api'; diff --git a/packages/node/src/indexer/unfinalizedBlocks.service.ts b/packages/node/src/indexer/unfinalizedBlocks.service.ts index 67c7455058..9fa8e7943b 100644 --- a/packages/node/src/indexer/unfinalizedBlocks.service.ts +++ b/packages/node/src/indexer/unfinalizedBlocks.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Inject, Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/worker/worker-fetch.module.ts b/packages/node/src/indexer/worker/worker-fetch.module.ts index 8455afae1f..7a35c64223 100644 --- a/packages/node/src/indexer/worker/worker-fetch.module.ts +++ b/packages/node/src/indexer/worker/worker-fetch.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/indexer/worker/worker.module.ts b/packages/node/src/indexer/worker/worker.module.ts index ce900adec5..51ab9dbaf7 100644 --- a/packages/node/src/indexer/worker/worker.module.ts +++ b/packages/node/src/indexer/worker/worker.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/indexer/worker/worker.service.ts b/packages/node/src/indexer/worker/worker.service.ts index 6ea497f36e..e2d573d956 100644 --- a/packages/node/src/indexer/worker/worker.service.ts +++ b/packages/node/src/indexer/worker/worker.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Inject, Injectable } from '@nestjs/common'; diff --git a/packages/node/src/indexer/worker/worker.ts b/packages/node/src/indexer/worker/worker.ts index 07cb8534e2..5b95e31d6c 100644 --- a/packages/node/src/indexer/worker/worker.ts +++ b/packages/node/src/indexer/worker/worker.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // initlogger and yargs must be imported before all other imports diff --git a/packages/node/src/indexer/x-provider/cachedProvider.ts b/packages/node/src/indexer/x-provider/cachedProvider.ts index 8593b9158a..55f0be9648 100644 --- a/packages/node/src/indexer/x-provider/cachedProvider.ts +++ b/packages/node/src/indexer/x-provider/cachedProvider.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { ProviderInterface } from '@polkadot/rpc-provider/types'; diff --git a/packages/node/src/indexer/x-provider/http.ts b/packages/node/src/indexer/x-provider/http.ts index e2ea2a1516..d8269c8ddd 100644 --- a/packages/node/src/indexer/x-provider/http.ts +++ b/packages/node/src/indexer/x-provider/http.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // overwrite the official Polkadot HttpProvider: https://github.com/polkadot-js/api/blob/master/packages/rpc-provider/src/http/index.ts diff --git a/packages/node/src/indexer/x-provider/x-provider.spec.ts b/packages/node/src/indexer/x-provider/x-provider.spec.ts index 24333cdea0..b554ff231e 100644 --- a/packages/node/src/indexer/x-provider/x-provider.spec.ts +++ b/packages/node/src/indexer/x-provider/x-provider.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { WsProvider } from '@polkadot/rpc-provider'; diff --git a/packages/node/src/init.ts b/packages/node/src/init.ts index 469f3056a0..460e6ef54c 100644 --- a/packages/node/src/init.ts +++ b/packages/node/src/init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { NestFactory } from '@nestjs/core'; diff --git a/packages/node/src/main.ts b/packages/node/src/main.ts index a9fc010f35..279b1f4769 100644 --- a/packages/node/src/main.ts +++ b/packages/node/src/main.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { initLogger } from '@subql/node-core/logger'; diff --git a/packages/node/src/subcommands/forceClean.init.ts b/packages/node/src/subcommands/forceClean.init.ts index 2fadff28de..e8e7314c87 100644 --- a/packages/node/src/subcommands/forceClean.init.ts +++ b/packages/node/src/subcommands/forceClean.init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { forceClean } from '@subql/node-core'; diff --git a/packages/node/src/subcommands/forceClean.module.ts b/packages/node/src/subcommands/forceClean.module.ts index faa9cbe294..3ba8a8f508 100644 --- a/packages/node/src/subcommands/forceClean.module.ts +++ b/packages/node/src/subcommands/forceClean.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/subcommands/reindex.init.ts b/packages/node/src/subcommands/reindex.init.ts index 2f9fc10053..821d3d447b 100644 --- a/packages/node/src/subcommands/reindex.init.ts +++ b/packages/node/src/subcommands/reindex.init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { reindexInit as baseReindexInit } from '@subql/node-core'; diff --git a/packages/node/src/subcommands/reindex.module.ts b/packages/node/src/subcommands/reindex.module.ts index 8ee8cb238f..b98cd8ee19 100644 --- a/packages/node/src/subcommands/reindex.module.ts +++ b/packages/node/src/subcommands/reindex.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/subcommands/testing.init.ts b/packages/node/src/subcommands/testing.init.ts index 9e6b73d99b..1125ad4780 100644 --- a/packages/node/src/subcommands/testing.init.ts +++ b/packages/node/src/subcommands/testing.init.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { exitWithError, getLogger } from '@subql/node-core'; diff --git a/packages/node/src/subcommands/testing.module.ts b/packages/node/src/subcommands/testing.module.ts index c454a440c3..5c4c857ba7 100644 --- a/packages/node/src/subcommands/testing.module.ts +++ b/packages/node/src/subcommands/testing.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Module } from '@nestjs/common'; diff --git a/packages/node/src/subcommands/testing.service.ts b/packages/node/src/subcommands/testing.service.ts index 1ae9933a48..2a7fda8458 100644 --- a/packages/node/src/subcommands/testing.service.ts +++ b/packages/node/src/subcommands/testing.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { Inject, Injectable } from '@nestjs/common'; diff --git a/packages/node/src/utils/project.ts b/packages/node/src/utils/project.ts index 12e779a336..769562f910 100644 --- a/packages/node/src/utils/project.ts +++ b/packages/node/src/utils/project.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/node/src/utils/substrate.test.ts b/packages/node/src/utils/substrate.test.ts index bcf2ddbef9..257bd32879 100644 --- a/packages/node/src/utils/substrate.test.ts +++ b/packages/node/src/utils/substrate.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { ApiPromise, WsProvider } from '@polkadot/api'; diff --git a/packages/node/src/utils/substrate.ts b/packages/node/src/utils/substrate.ts index 493fd5fee8..fc1899c255 100644 --- a/packages/node/src/utils/substrate.ts +++ b/packages/node/src/utils/substrate.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/node/src/utils/test.utils.ts b/packages/node/src/utils/test.utils.ts index 9916816590..b7d8fc300d 100644 --- a/packages/node/src/utils/test.utils.ts +++ b/packages/node/src/utils/test.utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // Utils for integration tests diff --git a/packages/node/src/yargs.ts b/packages/node/src/yargs.ts index 857d19a71b..025df72873 100644 --- a/packages/node/src/yargs.ts +++ b/packages/node/src/yargs.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import { yargsBuilder } from '@subql/node-core/yargs'; diff --git a/packages/node/test/jsonfy.js b/packages/node/test/jsonfy.js index 4cb58a04b2..9acc86dffd 100644 --- a/packages/node/test/jsonfy.js +++ b/packages/node/test/jsonfy.js @@ -1,5 +1,5 @@ 'use strict'; -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 Object.defineProperty(exports, '__esModule', { value: true }); exports.JsonfyDatasourcePlugin = void 0; diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index e2880744fd..a48e878722 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [2.20.0] - 2025-01-28 ### Fixed diff --git a/packages/query/src/app.module.ts b/packages/query/src/app.module.ts index 3d5a248019..91306f6ead 100644 --- a/packages/query/src/app.module.ts +++ b/packages/query/src/app.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Module} from '@nestjs/common'; diff --git a/packages/query/src/configure/config.ts b/packages/query/src/configure/config.ts index 920718b04c..27116430b0 100644 --- a/packages/query/src/configure/config.ts +++ b/packages/query/src/configure/config.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {get} from 'lodash'; diff --git a/packages/query/src/configure/configure.module.ts b/packages/query/src/configure/configure.module.ts index 930bf5f509..9ab093a424 100644 --- a/packages/query/src/configure/configure.module.ts +++ b/packages/query/src/configure/configure.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ConnectionOptions} from 'tls'; diff --git a/packages/query/src/configure/index.ts b/packages/query/src/configure/index.ts index 4eedc0f2b8..c749e5e493 100644 --- a/packages/query/src/configure/index.ts +++ b/packages/query/src/configure/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './config'; diff --git a/packages/query/src/configure/x-postgraphile/debugClient.ts b/packages/query/src/configure/x-postgraphile/debugClient.ts index e5116923f9..561785531f 100644 --- a/packages/query/src/configure/x-postgraphile/debugClient.ts +++ b/packages/query/src/configure/x-postgraphile/debugClient.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // overwrite the method plugin: https://github.com/graphile/postgraphile/blob/263ba7477bc2133eebdf89d29acd0460e58501ec/src/postgraphile/withPostGraphileContext.ts#L473 diff --git a/packages/query/src/graphql/graphql.historical.test.ts b/packages/query/src/graphql/graphql.historical.test.ts index 69e6ce03f3..79588c8d52 100644 --- a/packages/query/src/graphql/graphql.historical.test.ts +++ b/packages/query/src/graphql/graphql.historical.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getPostGraphileBuilder} from '@subql/x-postgraphile-core'; diff --git a/packages/query/src/graphql/graphql.module.ts b/packages/query/src/graphql/graphql.module.ts index 7c39378ba2..4a21da0d5b 100644 --- a/packages/query/src/graphql/graphql.module.ts +++ b/packages/query/src/graphql/graphql.module.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/query/src/graphql/graphql.test.ts b/packages/query/src/graphql/graphql.test.ts index 7e03d537ca..98ededc1c5 100644 --- a/packages/query/src/graphql/graphql.test.ts +++ b/packages/query/src/graphql/graphql.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getPostGraphileBuilder} from '@subql/x-postgraphile-core'; diff --git a/packages/query/src/graphql/limit.test.ts b/packages/query/src/graphql/limit.test.ts index bb952f221a..6605000b17 100644 --- a/packages/query/src/graphql/limit.test.ts +++ b/packages/query/src/graphql/limit.test.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {getPostGraphileBuilder} from '@subql/x-postgraphile-core'; diff --git a/packages/query/src/graphql/plugins/GetMetadataPlugin.ts b/packages/query/src/graphql/plugins/GetMetadataPlugin.ts index 1411a3504c..c03c7fd5b7 100644 --- a/packages/query/src/graphql/plugins/GetMetadataPlugin.ts +++ b/packages/query/src/graphql/plugins/GetMetadataPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {URL} from 'url'; @@ -241,8 +241,8 @@ export const GetMetadataPlugin = makeExtendSchemaPlugin((build: Build, options) _metadatas( after: Cursor before: Cursor # distinct: [_mmr_distinct_enum] = null # filter: _MetadataFilter # first: Int # offset: Int - # orderBy: [_MetadatasOrderBy!] = [PRIMARY_KEY_ASC] - ): # last: Int + # last: Int + ): # orderBy: [_MetadatasOrderBy!] = [PRIMARY_KEY_ASC] _Metadatas } `, diff --git a/packages/query/src/graphql/plugins/PgAggregateSpecsPlugin.ts b/packages/query/src/graphql/plugins/PgAggregateSpecsPlugin.ts index a9e193c910..3f67d4be7f 100644 --- a/packages/query/src/graphql/plugins/PgAggregateSpecsPlugin.ts +++ b/packages/query/src/graphql/plugins/PgAggregateSpecsPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // overwrite the official plugin: https://github.com/graphile/pg-aggregates/blob/main/src/AggregateSpecsPlugin.ts diff --git a/packages/query/src/graphql/plugins/PgAggregationPlugin.ts b/packages/query/src/graphql/plugins/PgAggregationPlugin.ts index 9a87505c0e..b00ce6ae9b 100644 --- a/packages/query/src/graphql/plugins/PgAggregationPlugin.ts +++ b/packages/query/src/graphql/plugins/PgAggregationPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import AddAggregateTypesPlugin from '@graphile/pg-aggregates/dist/AddAggregateTypesPlugin'; diff --git a/packages/query/src/graphql/plugins/PgBackwardRelationPlugin.ts b/packages/query/src/graphql/plugins/PgBackwardRelationPlugin.ts index 02ae07029e..2e2515ad56 100644 --- a/packages/query/src/graphql/plugins/PgBackwardRelationPlugin.ts +++ b/packages/query/src/graphql/plugins/PgBackwardRelationPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // overwrite the official plugin: https://github.com/graphile/graphile-engine/blob/v4/packages/graphile-build-pg/src/plugins/PgBackwardRelationPlugin.js diff --git a/packages/query/src/graphql/plugins/PgConnectionArgFirstLastBeforeAfter.ts b/packages/query/src/graphql/plugins/PgConnectionArgFirstLastBeforeAfter.ts index 7ee93d9907..aa764353d7 100644 --- a/packages/query/src/graphql/plugins/PgConnectionArgFirstLastBeforeAfter.ts +++ b/packages/query/src/graphql/plugins/PgConnectionArgFirstLastBeforeAfter.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // overwrite the official plugin: https://github.com/graphile/graphile-engine/blob/v4/packages/graphile-build-pg/src/plugins/PgConnectionArgFirstLastBeforeAfter.js diff --git a/packages/query/src/graphql/plugins/PgDistinctPlugin.ts b/packages/query/src/graphql/plugins/PgDistinctPlugin.ts index b1f248633b..b9c35acb5c 100644 --- a/packages/query/src/graphql/plugins/PgDistinctPlugin.ts +++ b/packages/query/src/graphql/plugins/PgDistinctPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PgClass, QueryBuilder} from '@subql/x-graphile-build-pg'; diff --git a/packages/query/src/graphql/plugins/PgOrderByAggregatesPlugin.ts b/packages/query/src/graphql/plugins/PgOrderByAggregatesPlugin.ts index c2855b72cf..4463f96932 100644 --- a/packages/query/src/graphql/plugins/PgOrderByAggregatesPlugin.ts +++ b/packages/query/src/graphql/plugins/PgOrderByAggregatesPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 /* WARNING diff --git a/packages/query/src/graphql/plugins/PgOrderByUnique.ts b/packages/query/src/graphql/plugins/PgOrderByUnique.ts index 93d2ab1a03..7991821a05 100644 --- a/packages/query/src/graphql/plugins/PgOrderByUnique.ts +++ b/packages/query/src/graphql/plugins/PgOrderByUnique.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PgClass} from '@subql/x-graphile-build-pg'; diff --git a/packages/query/src/graphql/plugins/PgRowByVirtualIdPlugin.ts b/packages/query/src/graphql/plugins/PgRowByVirtualIdPlugin.ts index 66f9c67128..c077ad4e51 100644 --- a/packages/query/src/graphql/plugins/PgRowByVirtualIdPlugin.ts +++ b/packages/query/src/graphql/plugins/PgRowByVirtualIdPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Plugin} from 'graphile-build'; diff --git a/packages/query/src/graphql/plugins/PgSearchPlugin.ts b/packages/query/src/graphql/plugins/PgSearchPlugin.ts index 4688f194aa..e958eefaad 100644 --- a/packages/query/src/graphql/plugins/PgSearchPlugin.ts +++ b/packages/query/src/graphql/plugins/PgSearchPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PgEntity, PgEntityKind, PgProc} from '@subql/x-graphile-build-pg'; diff --git a/packages/query/src/graphql/plugins/PgSubscriptionPlugin.ts b/packages/query/src/graphql/plugins/PgSubscriptionPlugin.ts index 5e61d52341..4ca5b6df59 100644 --- a/packages/query/src/graphql/plugins/PgSubscriptionPlugin.ts +++ b/packages/query/src/graphql/plugins/PgSubscriptionPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {hashName} from '@subql/utils'; diff --git a/packages/query/src/graphql/plugins/PlaygroundPlugin.ts b/packages/query/src/graphql/plugins/PlaygroundPlugin.ts index 1487c44f61..f8ca1aacd3 100644 --- a/packages/query/src/graphql/plugins/PlaygroundPlugin.ts +++ b/packages/query/src/graphql/plugins/PlaygroundPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import type {ApolloServerPlugin, GraphQLServerListener} from 'apollo-server-plugin-base'; diff --git a/packages/query/src/graphql/plugins/QueryAliasLimitPlugin.ts b/packages/query/src/graphql/plugins/QueryAliasLimitPlugin.ts index 3c81d94b6f..6331e59177 100644 --- a/packages/query/src/graphql/plugins/QueryAliasLimitPlugin.ts +++ b/packages/query/src/graphql/plugins/QueryAliasLimitPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import type {ApolloServerPlugin} from 'apollo-server-plugin-base'; diff --git a/packages/query/src/graphql/plugins/QueryComplexityPlugin.ts b/packages/query/src/graphql/plugins/QueryComplexityPlugin.ts index cb706f8852..d5c571428b 100644 --- a/packages/query/src/graphql/plugins/QueryComplexityPlugin.ts +++ b/packages/query/src/graphql/plugins/QueryComplexityPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import type {ApolloServerPlugin} from 'apollo-server-plugin-base'; diff --git a/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.spec.ts b/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.spec.ts index a33736bdae..63f2ebc3df 100644 --- a/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.spec.ts +++ b/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ASTNode, Kind} from 'graphql'; diff --git a/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.ts b/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.ts index 0b28fb492f..c390ce7137 100644 --- a/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.ts +++ b/packages/query/src/graphql/plugins/QueryDepthLimitPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import type {ApolloServerPlugin} from 'apollo-server-plugin-base'; diff --git a/packages/query/src/graphql/plugins/historical/PgBlockHeightPlugin.ts b/packages/query/src/graphql/plugins/historical/PgBlockHeightPlugin.ts index 7c2661db69..2b75818566 100644 --- a/packages/query/src/graphql/plugins/historical/PgBlockHeightPlugin.ts +++ b/packages/query/src/graphql/plugins/historical/PgBlockHeightPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {QueryBuilder} from '@subql/x-graphile-build-pg'; diff --git a/packages/query/src/graphql/plugins/historical/index.ts b/packages/query/src/graphql/plugins/historical/index.ts index 66beaf283e..6a2acbda7c 100644 --- a/packages/query/src/graphql/plugins/historical/index.ts +++ b/packages/query/src/graphql/plugins/historical/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PgBlockHeightPlugin} from './PgBlockHeightPlugin'; diff --git a/packages/query/src/graphql/plugins/historical/utils.ts b/packages/query/src/graphql/plugins/historical/utils.ts index f9a8cafa01..ed21c10ad3 100644 --- a/packages/query/src/graphql/plugins/historical/utils.ts +++ b/packages/query/src/graphql/plugins/historical/utils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {PgEntity, PgEntityKind, SQL} from '@subql/x-graphile-build-pg'; diff --git a/packages/query/src/graphql/plugins/index.ts b/packages/query/src/graphql/plugins/index.ts index 31c285808f..f5eab7008d 100644 --- a/packages/query/src/graphql/plugins/index.ts +++ b/packages/query/src/graphql/plugins/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 /* eslint-disable */ diff --git a/packages/query/src/graphql/plugins/smartTagsPlugin.ts b/packages/query/src/graphql/plugins/smartTagsPlugin.ts index 698f86ef87..33c2521c6e 100644 --- a/packages/query/src/graphql/plugins/smartTagsPlugin.ts +++ b/packages/query/src/graphql/plugins/smartTagsPlugin.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {MULTI_METADATA_REGEX, METADATA_REGEX} from '@subql/utils'; diff --git a/packages/query/src/graphql/project.service.ts b/packages/query/src/graphql/project.service.ts index ff50b65ed8..6656153aea 100644 --- a/packages/query/src/graphql/project.service.ts +++ b/packages/query/src/graphql/project.service.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Injectable} from '@nestjs/common'; @@ -7,7 +7,10 @@ import {Config} from '../configure'; @Injectable() export class ProjectService { - constructor(private readonly pool: Pool, private readonly config: Config) {} + constructor( + private readonly pool: Pool, + private readonly config: Config + ) {} async getProjectSchema(name: string): Promise { // After subqueries table has been deprecated, project may not be present in subqueries table diff --git a/packages/query/src/main.ts b/packages/query/src/main.ts index 9ec2c57d8a..1e3f0f75ec 100644 --- a/packages/query/src/main.ts +++ b/packages/query/src/main.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // import rxjs from 'rxjs'; This is a reminder that rxjs is a peer dependency of @nestjs/common diff --git a/packages/query/src/utils/asyncInterval.ts b/packages/query/src/utils/asyncInterval.ts index 5e7706d6de..1ad90a1ea6 100644 --- a/packages/query/src/utils/asyncInterval.ts +++ b/packages/query/src/utils/asyncInterval.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 //improve util method from : https://dev.to/jsmccrumb/asynchronous-setinterval-4j69 diff --git a/packages/query/src/utils/logger.ts b/packages/query/src/utils/logger.ts index 56a9a1680e..5ca4431fa6 100644 --- a/packages/query/src/utils/logger.ts +++ b/packages/query/src/utils/logger.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {LoggerService} from '@nestjs/common'; diff --git a/packages/query/src/yargs.ts b/packages/query/src/yargs.ts index 9489ab80dd..7267433ff5 100644 --- a/packages/query/src/yargs.ts +++ b/packages/query/src/yargs.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 // import {argv as yargv} from 'yargs'; diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index f517416834..4cf72f159f 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [2.2.2] - 2024-10-23 ### Fixed diff --git a/packages/testing/src/index.ts b/packages/testing/src/index.ts index 8977085250..fe1c710fe2 100644 --- a/packages/testing/src/index.ts +++ b/packages/testing/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './interfaces'; diff --git a/packages/testing/src/interfaces.ts b/packages/testing/src/interfaces.ts index 2abd0c0dbc..1775586017 100644 --- a/packages/testing/src/interfaces.ts +++ b/packages/testing/src/interfaces.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {Entity} from '@subql/types-core'; diff --git a/packages/types-core/CHANGELOG.md b/packages/types-core/CHANGELOG.md index b17ef1b30b..73991e00f2 100644 --- a/packages/types-core/CHANGELOG.md +++ b/packages/types-core/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [2.0.0] - 2024-10-21 ### Changed diff --git a/packages/types-core/src/global.ts b/packages/types-core/src/global.ts index 9e83821d27..e76dc08cc3 100644 --- a/packages/types-core/src/global.ts +++ b/packages/types-core/src/global.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import Pino from 'pino'; diff --git a/packages/types-core/src/index.ts b/packages/types-core/src/index.ts index 9de076aa4b..2f1e30c93e 100644 --- a/packages/types-core/src/index.ts +++ b/packages/types-core/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './interfaces'; diff --git a/packages/types-core/src/interfaces.ts b/packages/types-core/src/interfaces.ts index 8776284aaf..bde78e77ac 100644 --- a/packages/types-core/src/interfaces.ts +++ b/packages/types-core/src/interfaces.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export type DynamicDatasourceCreator = (name: string, args: Record) => Promise; diff --git a/packages/types-core/src/multichain/index.ts b/packages/types-core/src/multichain/index.ts index 0626e01a8a..71f6e5b965 100644 --- a/packages/types-core/src/multichain/index.ts +++ b/packages/types-core/src/multichain/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/types-core/src/multichain/types.ts b/packages/types-core/src/multichain/types.ts index 1594a6364a..8bcb759003 100644 --- a/packages/types-core/src/multichain/types.ts +++ b/packages/types-core/src/multichain/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {QuerySpec} from '../project'; diff --git a/packages/types-core/src/project/datasourceProcessors.ts b/packages/types-core/src/project/datasourceProcessors.ts index c348b91281..3502dff8f0 100644 --- a/packages/types-core/src/project/datasourceProcessors.ts +++ b/packages/types-core/src/project/datasourceProcessors.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DictionaryQueryEntry} from './types'; @@ -17,7 +17,7 @@ export interface HandlerInputTransformer_0_0_0< Input, DS extends BaseCustomDataSource, API, - E // Output type + E, // Output type > { (input: Input, ds: DS, api: API, assets?: Record): Promise; } @@ -27,7 +27,7 @@ export interface HandlerInputTransformer_1_0_0< DS extends BaseCustomDataSource, API, F extends Record, - E // Output type + E, // Output type > { (params: {input: Input; ds: DS; api: API; filter?: F; assets?: Record}): Promise; } @@ -36,7 +36,7 @@ interface SecondLayerHandlerProcessorBase< BaseFilterMap extends HandlerInputMap, K extends keyof BaseFilterMap, F extends Record, - DS extends BaseCustomDataSource + DS extends BaseCustomDataSource, > { baseHandlerKind: K; baseFilter: BaseFilterMap[K] | BaseFilterMap[K][]; @@ -52,7 +52,7 @@ export interface SecondLayerHandlerProcessor_0_0_0< F extends Record, E, DS extends BaseCustomDataSource, - API + API, > extends SecondLayerHandlerProcessorBase { specVersion: undefined; transformer: HandlerInputTransformer_0_0_0; @@ -66,7 +66,7 @@ export interface SecondLayerHandlerProcessor_1_0_0< F extends Record, E, DS extends BaseCustomDataSource, - API + API, > extends SecondLayerHandlerProcessorBase { specVersion: '1.0.0'; transformer: HandlerInputTransformer_1_0_0; @@ -80,7 +80,7 @@ export type SecondLayerHandlerProcessor< F extends Record, E, DS extends BaseCustomDataSource, - API + API, > = | SecondLayerHandlerProcessor_0_0_0 | SecondLayerHandlerProcessor_1_0_0; diff --git a/packages/types-core/src/project/index.ts b/packages/types-core/src/project/index.ts index d7a4d868e1..ecdd7b89a4 100644 --- a/packages/types-core/src/project/index.ts +++ b/packages/types-core/src/project/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/types-core/src/project/modulars/index.ts b/packages/types-core/src/project/modulars/index.ts index 0626e01a8a..71f6e5b965 100644 --- a/packages/types-core/src/project/modulars/index.ts +++ b/packages/types-core/src/project/modulars/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/types-core/src/project/modulars/types.ts b/packages/types-core/src/project/modulars/types.ts index 9663939ca7..4329e42bad 100644 --- a/packages/types-core/src/project/modulars/types.ts +++ b/packages/types-core/src/project/modulars/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BaseCustomDataSource, BaseDataSource, IProjectManifest, ProjectManifestBaseImplInterface} from '../index'; diff --git a/packages/types-core/src/project/readers/index.ts b/packages/types-core/src/project/readers/index.ts index 4edf373640..1ce71ce868 100644 --- a/packages/types-core/src/project/readers/index.ts +++ b/packages/types-core/src/project/readers/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './reader'; diff --git a/packages/types-core/src/project/readers/reader.ts b/packages/types-core/src/project/readers/reader.ts index 51d674b248..355260fc76 100644 --- a/packages/types-core/src/project/readers/reader.ts +++ b/packages/types-core/src/project/readers/reader.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import type {IPackageJson} from 'package-json-type'; diff --git a/packages/types-core/src/project/types.ts b/packages/types-core/src/project/types.ts index d35c8feb6c..c6f636b099 100644 --- a/packages/types-core/src/project/types.ts +++ b/packages/types-core/src/project/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {BaseDataSource, BaseTemplateDataSource, ParentProject, RunnerSpecs} from './versioned'; diff --git a/packages/types-core/src/project/versioned/base.ts b/packages/types-core/src/project/versioned/base.ts index 0fc86021e3..8b5f122caa 100644 --- a/packages/types-core/src/project/versioned/base.ts +++ b/packages/types-core/src/project/versioned/base.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ParentProject} from '../../project'; diff --git a/packages/types-core/src/project/versioned/index.ts b/packages/types-core/src/project/versioned/index.ts index 9b0d96bacd..e7f14cbd09 100644 --- a/packages/types-core/src/project/versioned/index.ts +++ b/packages/types-core/src/project/versioned/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './base'; diff --git a/packages/types-core/src/project/versioned/v1_0_0/index.ts b/packages/types-core/src/project/versioned/v1_0_0/index.ts index 0626e01a8a..71f6e5b965 100644 --- a/packages/types-core/src/project/versioned/v1_0_0/index.ts +++ b/packages/types-core/src/project/versioned/v1_0_0/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/types-core/src/project/versioned/v1_0_0/types.ts b/packages/types-core/src/project/versioned/v1_0_0/types.ts index 5407e38ac6..97b13c3f77 100644 --- a/packages/types-core/src/project/versioned/v1_0_0/types.ts +++ b/packages/types-core/src/project/versioned/v1_0_0/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {IProjectNetworkConfig} from '../../types'; @@ -147,7 +147,7 @@ export interface ParentProject { export interface ProjectManifestV1_0_0< D extends BaseDataSource = BaseDataSource, T extends BaseTemplateDataSource = BaseTemplateDataSource, - C extends IProjectNetworkConfig = IProjectNetworkConfig + C extends IProjectNetworkConfig = IProjectNetworkConfig, > { name?: string; version: string; diff --git a/packages/types-core/src/store.ts b/packages/types-core/src/store.ts index 1774e510df..441b5c5a42 100644 --- a/packages/types-core/src/store.ts +++ b/packages/types-core/src/store.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export type FunctionPropertyNames = { diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 76d8504a8b..6f5689ea11 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [3.11.4] - 2024-11-25 ### Added diff --git a/packages/types/src/global.ts b/packages/types/src/global.ts index 7ffed670cd..aa1b513a53 100644 --- a/packages/types/src/global.ts +++ b/packages/types/src/global.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ApiPromise} from '@polkadot/api'; diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 8d163673f2..984e1f2eea 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './interfaces'; diff --git a/packages/types/src/interfaces.ts b/packages/types/src/interfaces.ts index 9dfdb73cec..db74d91ef3 100644 --- a/packages/types/src/interfaces.ts +++ b/packages/types/src/interfaces.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {AnyTuple, Codec} from '@polkadot/types-codec/types'; diff --git a/packages/types/src/project.ts b/packages/types/src/project.ts index 81d3198656..6d81d9acc9 100644 --- a/packages/types/src/project.ts +++ b/packages/types/src/project.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {ApiPromise} from '@polkadot/api'; @@ -237,7 +237,7 @@ type ISubstrateDatasource = BaseDataSource). */ export interface SubstrateRuntimeDatasource< - M extends SubstrateMapping = SubstrateMapping + M extends SubstrateMapping = SubstrateMapping, > extends ISubstrateDatasource { /** * The kind of the datasource, which is `substrate/Runtime`. @@ -262,7 +262,7 @@ export type SubstrateDatasource = SubstrateRuntimeDatasource | SubstrateCustomDa export interface SubstrateCustomDatasource< K extends string = string, M extends SubstrateMapping = SubstrateMapping, - O = any + O = any, > extends BaseCustomDataSource { /** * The kind of the custom datasource. This should follow the pattern `substrate/*`. @@ -293,7 +293,7 @@ export type HandlerInputTransformer_0_0_0< IM extends RuntimeHandlerInputMap, T extends SubstrateHandlerKind, E, - DS extends SubstrateCustomDatasource = SubstrateCustomDatasource + DS extends SubstrateCustomDatasource = SubstrateCustomDatasource, > = BaseHandlerInputTransformer_0_0_0; /** @@ -305,14 +305,14 @@ export type HandlerInputTransformer_1_0_0< T extends SubstrateHandlerKind, F extends Record, E, - DS extends SubstrateCustomDatasource = SubstrateCustomDatasource + DS extends SubstrateCustomDatasource = SubstrateCustomDatasource, > = BaseHandlerInputTransformer_1_0_0; export type SecondLayerHandlerProcessorArray< K extends string, F extends Record, T, - DS extends SubstrateCustomDatasource = SubstrateCustomDatasource + DS extends SubstrateCustomDatasource = SubstrateCustomDatasource, > = | SecondLayerHandlerProcessor | SecondLayerHandlerProcessor @@ -328,14 +328,14 @@ export type SubstrateDatasourceProcessor< P extends Record> = Record< string, SecondLayerHandlerProcessorArray - > + >, > = DsProcessor; export type SecondLayerHandlerProcessor< K extends SubstrateHandlerKind, F extends Record, E, - DS extends SubstrateCustomDatasource = SubstrateCustomDatasource + DS extends SubstrateCustomDatasource = SubstrateCustomDatasource, > = | SecondLayerHandlerProcessor_0_0_0 | SecondLayerHandlerProcessor_1_0_0; diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index d3adc67f94..38e9cb9528 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -5,6 +5,8 @@ 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 +- Update copyright header to 2025 ## [2.17.1] - 2025-01-28 ### Fixed diff --git a/packages/utils/src/array/array.spec.ts b/packages/utils/src/array/array.spec.ts index 99a593c835..a8833488ef 100644 --- a/packages/utils/src/array/array.spec.ts +++ b/packages/utils/src/array/array.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {findDuplicateStringArray} from './array'; diff --git a/packages/utils/src/array/array.ts b/packages/utils/src/array/array.ts index 8f89ddaf88..cd62597c87 100644 --- a/packages/utils/src/array/array.ts +++ b/packages/utils/src/array/array.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {uniqWith, isEqual} from 'lodash'; diff --git a/packages/utils/src/array/index.ts b/packages/utils/src/array/index.ts index 0cbda23fce..c47c1a787f 100644 --- a/packages/utils/src/array/index.ts +++ b/packages/utils/src/array/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './array'; diff --git a/packages/utils/src/buffer/buffer.spec.ts b/packages/utils/src/buffer/buffer.spec.ts index 6c901fb804..4ccc02d918 100644 --- a/packages/utils/src/buffer/buffer.spec.ts +++ b/packages/utils/src/buffer/buffer.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {hexStripZeros, numberToHex} from './buffer'; diff --git a/packages/utils/src/buffer/buffer.ts b/packages/utils/src/buffer/buffer.ts index 994ead08d9..7c27e35029 100644 --- a/packages/utils/src/buffer/buffer.ts +++ b/packages/utils/src/buffer/buffer.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isHex} from '@polkadot/util'; diff --git a/packages/utils/src/buffer/index.ts b/packages/utils/src/buffer/index.ts index 6d0bc7c6ae..8834aece8f 100644 --- a/packages/utils/src/buffer/index.ts +++ b/packages/utils/src/buffer/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './buffer'; diff --git a/packages/utils/src/graphql/builder.spec.ts b/packages/utils/src/graphql/builder.spec.ts index 12d5af4d8b..70f24e905e 100644 --- a/packages/utils/src/graphql/builder.spec.ts +++ b/packages/utils/src/graphql/builder.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {validate} from 'graphql/validation'; diff --git a/packages/utils/src/graphql/builder.ts b/packages/utils/src/graphql/builder.ts index 357650528d..533b1baa2d 100644 --- a/packages/utils/src/graphql/builder.ts +++ b/packages/utils/src/graphql/builder.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export interface GqlVar { @@ -67,13 +67,16 @@ const toVarDefs = (vars: GqlVar[]): string => { }; const toVariables = (vars: GqlVar[]) => - vars.reduce((acc, v) => { - if (acc[v.name]) { - throw new Error(`Graphql variables conflicts $${v.name}`); - } - acc[v.name] = v.value; - return acc; - }, {} as Record); + vars.reduce( + (acc, v) => { + if (acc[v.name]) { + throw new Error(`Graphql variables conflicts $${v.name}`); + } + acc[v.name] = v.value; + return acc; + }, + {} as Record + ); export function buildQuery(vars: GqlVar[], nodes: GqlNode[]): GqlQuery { return { diff --git a/packages/utils/src/graphql/constant.ts b/packages/utils/src/graphql/constant.ts index c0ab27eea2..49bf2e7c0a 100644 --- a/packages/utils/src/graphql/constant.ts +++ b/packages/utils/src/graphql/constant.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export enum DirectiveName { diff --git a/packages/utils/src/graphql/entities.ts b/packages/utils/src/graphql/entities.ts index ba3c80b746..dea490c860 100644 --- a/packages/utils/src/graphql/entities.ts +++ b/packages/utils/src/graphql/entities.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/utils/src/graphql/graphql.spec.ts b/packages/utils/src/graphql/graphql.spec.ts index 72489b7f72..caa1020281 100644 --- a/packages/utils/src/graphql/graphql.spec.ts +++ b/packages/utils/src/graphql/graphql.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import gql from 'graphql-tag'; diff --git a/packages/utils/src/graphql/index.ts b/packages/utils/src/graphql/index.ts index 1ef0bfa60f..7283d51a0f 100644 --- a/packages/utils/src/graphql/index.ts +++ b/packages/utils/src/graphql/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './entities'; diff --git a/packages/utils/src/graphql/schema.ts b/packages/utils/src/graphql/schema.ts index 563492e66f..6c5772d137 100644 --- a/packages/utils/src/graphql/schema.ts +++ b/packages/utils/src/graphql/schema.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import fs from 'fs'; diff --git a/packages/utils/src/graphql/schema/directives.ts b/packages/utils/src/graphql/schema/directives.ts index 4adb3d814c..1ba077e69c 100644 --- a/packages/utils/src/graphql/schema/directives.ts +++ b/packages/utils/src/graphql/schema/directives.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import gql from 'graphql-tag'; diff --git a/packages/utils/src/graphql/schema/scalas.ts b/packages/utils/src/graphql/schema/scalas.ts index 527c25d96e..d0b01cdb2b 100644 --- a/packages/utils/src/graphql/schema/scalas.ts +++ b/packages/utils/src/graphql/schema/scalas.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import gql from 'graphql-tag'; diff --git a/packages/utils/src/graphql/types.ts b/packages/utils/src/graphql/types.ts index 4461a256f4..1b5733f422 100644 --- a/packages/utils/src/graphql/types.ts +++ b/packages/utils/src/graphql/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export interface GraphQLJsonObjectType { diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 249f7d3a35..ee9ed33c2a 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './graphql'; diff --git a/packages/utils/src/logger/colors.spec.ts b/packages/utils/src/logger/colors.spec.ts index 1e64ed3514..d6a3a92d97 100644 --- a/packages/utils/src/logger/colors.spec.ts +++ b/packages/utils/src/logger/colors.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {colorizeLevel} from './colors'; diff --git a/packages/utils/src/logger/colors.ts b/packages/utils/src/logger/colors.ts index 4c5efc1a5b..b24d02ee4b 100644 --- a/packages/utils/src/logger/colors.ts +++ b/packages/utils/src/logger/colors.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import chalk from 'chalk'; diff --git a/packages/utils/src/logger/constants.ts b/packages/utils/src/logger/constants.ts index 4f4fbf7155..ed1fa22689 100644 --- a/packages/utils/src/logger/constants.ts +++ b/packages/utils/src/logger/constants.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export const LEVELS = { diff --git a/packages/utils/src/logger/index.ts b/packages/utils/src/logger/index.ts index 60c27492b3..7d84bc66ca 100644 --- a/packages/utils/src/logger/index.ts +++ b/packages/utils/src/logger/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './logger'; diff --git a/packages/utils/src/logger/logger.ts b/packages/utils/src/logger/logger.ts index b43a34b301..0d723f22fc 100644 --- a/packages/utils/src/logger/logger.ts +++ b/packages/utils/src/logger/logger.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import path from 'path'; diff --git a/packages/utils/src/logger/util.ts b/packages/utils/src/logger/util.ts index f11327102f..d96e7fd37c 100644 --- a/packages/utils/src/logger/util.ts +++ b/packages/utils/src/logger/util.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {LevelWithSilent} from 'pino'; diff --git a/packages/utils/src/networking.ts b/packages/utils/src/networking.ts index e71fb68021..5a6a9d77a8 100644 --- a/packages/utils/src/networking.ts +++ b/packages/utils/src/networking.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import detectPort from 'detect-port'; diff --git a/packages/utils/src/query/index.ts b/packages/utils/src/query/index.ts index 69adba20a2..5d8be1573d 100644 --- a/packages/utils/src/query/index.ts +++ b/packages/utils/src/query/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './types'; diff --git a/packages/utils/src/query/metadata.ts b/packages/utils/src/query/metadata.ts index 3ead2ff8d3..364fd87b53 100644 --- a/packages/utils/src/query/metadata.ts +++ b/packages/utils/src/query/metadata.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {blake2AsHex} from '@polkadot/util-crypto'; diff --git a/packages/utils/src/query/types.ts b/packages/utils/src/query/types.ts index 2c81292c76..82595bc507 100644 --- a/packages/utils/src/query/types.ts +++ b/packages/utils/src/query/types.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export type TableEstimate = { diff --git a/packages/utils/src/types/TypeClass.ts b/packages/utils/src/types/TypeClass.ts index b22d2929a6..04aed0c95f 100644 --- a/packages/utils/src/types/TypeClass.ts +++ b/packages/utils/src/types/TypeClass.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/utils/src/types/generalTypes.spec.ts b/packages/utils/src/types/generalTypes.spec.ts index b0285a1f20..1a333349f0 100644 --- a/packages/utils/src/types/generalTypes.spec.ts +++ b/packages/utils/src/types/generalTypes.spec.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isU8a, numberToU8a, u8aConcat} from '@polkadot/util'; diff --git a/packages/utils/src/types/generalTypes.ts b/packages/utils/src/types/generalTypes.ts index fff6ed0824..c38fcd92a6 100644 --- a/packages/utils/src/types/generalTypes.ts +++ b/packages/utils/src/types/generalTypes.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import * as supportedTypes from './supported'; diff --git a/packages/utils/src/types/index.ts b/packages/utils/src/types/index.ts index 7764d5b075..14680e33a4 100644 --- a/packages/utils/src/types/index.ts +++ b/packages/utils/src/types/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './generalTypes'; diff --git a/packages/utils/src/types/supported/BigInt.ts b/packages/utils/src/types/supported/BigInt.ts index a82b9c39ab..cd4ad8ca4f 100644 --- a/packages/utils/src/types/supported/BigInt.ts +++ b/packages/utils/src/types/supported/BigInt.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import BN from 'bn.js'; diff --git a/packages/utils/src/types/supported/Boolean.ts b/packages/utils/src/types/supported/Boolean.ts index db7cb3a39a..f281a72187 100644 --- a/packages/utils/src/types/supported/Boolean.ts +++ b/packages/utils/src/types/supported/Boolean.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {numberToU8a} from '@polkadot/util'; diff --git a/packages/utils/src/types/supported/Bytes.ts b/packages/utils/src/types/supported/Bytes.ts index bde96a28fe..c6fbc2e67f 100644 --- a/packages/utils/src/types/supported/Bytes.ts +++ b/packages/utils/src/types/supported/Bytes.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {isHex, hexToU8a} from '@polkadot/util'; diff --git a/packages/utils/src/types/supported/Date.ts b/packages/utils/src/types/supported/Date.ts index 2e6cb21da6..db31118a4a 100644 --- a/packages/utils/src/types/supported/Date.ts +++ b/packages/utils/src/types/supported/Date.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import assert from 'assert'; diff --git a/packages/utils/src/types/supported/Float.ts b/packages/utils/src/types/supported/Float.ts index fd6228658a..cc5434fe83 100644 --- a/packages/utils/src/types/supported/Float.ts +++ b/packages/utils/src/types/supported/Float.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DataTypes} from '@subql/x-sequelize'; diff --git a/packages/utils/src/types/supported/ID.ts b/packages/utils/src/types/supported/ID.ts index 6a4c529db2..4aa828c6a4 100644 --- a/packages/utils/src/types/supported/ID.ts +++ b/packages/utils/src/types/supported/ID.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {TypeClass} from '../TypeClass'; diff --git a/packages/utils/src/types/supported/Int.ts b/packages/utils/src/types/supported/Int.ts index ec03cd4f21..02b0aee7e2 100644 --- a/packages/utils/src/types/supported/Int.ts +++ b/packages/utils/src/types/supported/Int.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {numberToU8a} from '@polkadot/util'; diff --git a/packages/utils/src/types/supported/Json.ts b/packages/utils/src/types/supported/Json.ts index 93b0db6f23..f1a6a0f873 100644 --- a/packages/utils/src/types/supported/Json.ts +++ b/packages/utils/src/types/supported/Json.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {DataTypes} from '@subql/x-sequelize'; diff --git a/packages/utils/src/types/supported/String.ts b/packages/utils/src/types/supported/String.ts index 80a819139f..72a0875e8b 100644 --- a/packages/utils/src/types/supported/String.ts +++ b/packages/utils/src/types/supported/String.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {TypeClass} from '../TypeClass'; diff --git a/packages/utils/src/types/supported/index.ts b/packages/utils/src/types/supported/index.ts index 3130676e9d..0f0a4ab798 100644 --- a/packages/utils/src/types/supported/index.ts +++ b/packages/utils/src/types/supported/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 export * from './BigInt'; diff --git a/packages/utils/src/types/u8aUtils.ts b/packages/utils/src/types/u8aUtils.ts index 3f4ec8d527..9ac4cdab85 100644 --- a/packages/utils/src/types/u8aUtils.ts +++ b/packages/utils/src/types/u8aUtils.ts @@ -1,4 +1,4 @@ -// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors +// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 import {numberToU8a, u8aConcat} from '@polkadot/util';