Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = {
2,
'line',
[
//// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
//// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
{pattern: ' Copyright \\d{4}(-\\d{4})? SubQuery Pte Ltd authors & contributors'},
' SPDX-License-Identifier: GPL-3.0',
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/codegen-controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/common-cosmos/src/codegen/codegen-controller.ts at line 1,
Top-of-file comment has a duplicated comment prefix "// //" in the copyright
header; edit the header in codegen-controller.ts to remove the extra slash so it
reads "// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors" (i.e.,
replace "// //" with "//") at the top of the file.

// SPDX-License-Identifier: GPL-3.0

import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {TSBuilderInput, ContractFile} from '@cosmwasm/ts-codegen';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/common-cosmos/src/codegen/index.ts at line 1, The file header has a
duplicated comment prefix ("// //") in the copyright line; update the header in
packages common-cosmos codegen index.ts by replacing the double prefix with a
single "//" so the copyright begins with "//" (locate the malformed line at the
top of the file in index.ts and remove the extra slash).

// SPDX-License-Identifier: GPL-3.0

export * from './codegen-controller';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './codegen';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './load';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/load.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {CosmosProjectManifestVersioned, VersionedProjectManifest} from './versioned';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {BaseDataSource, ProcessorImpl} from '@subql/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/project.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {IProjectManifest, ProjectNetworkConfig} from '@subql/types-core';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {FileReference, BaseTemplateDataSource} from '@subql/types-core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {CosmosDatasource} from '@subql/types-cosmos';
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/project/versioned/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './ProjectManifestVersioned';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './model';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/blockchain.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/blockchain.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import assert from 'node:assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/configure/NodeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { SupportedChains } from '@kyvejs/sdk/src/constants';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/configure/SubqueryProject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue as other files - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/configure/SubqueryProject.ts at line 1, There's a typo in
the file header where the copyright line begins with a double comment prefix
("// //"); update the top-of-file comment in SubqueryProject.ts to a single-line
comment prefix ("//") so the header reads normally, ensuring the rest of the
header text and spacing remain unchanged.

// SPDX-License-Identifier: GPL-3.0

import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/configure/configure.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { DynamicModule, Global, Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/api.service.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/api.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/api.service.ts at line 1, The file header contains
a duplicated comment prefix ("// //") in the copyright line; replace the double
prefix with a single comment prefix so the line starts with "//" instead of "//
//". Ensure the rest of the header text remains unchanged.

// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/cosmosClient.connection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Registry } from '@cosmjs/proto-signing';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/dictionary/dictionary.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Inject, Injectable } from '@nestjs/common';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { CosmosMessageFilter } from '@subql/common-cosmos';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/dictionary/v1/dictionaryV1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/dictionary/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './dictionaryV1';
2 changes: 1 addition & 1 deletion packages/node/src/indexer/fetch.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the actual file content first
echo "=== Checking fetch.module.ts content ==="
head -5 packages/node/src/indexer/fetch.module.ts

echo -e "\n=== Checking copyright headers with single // ==="
rg -n "^// Copyright 20" --type ts | head -20

echo -e "\n=== Checking copyright headers with double // ==="
rg -n "^// // Copyright 20" --type ts | head -20

echo -e "\n=== Checking for any double comment patterns ==="
rg "^// //" --type ts | head -20

Repository: subquery/subql-cosmos

Length of output: 5327


Fix inconsistent copyright header formatting across the codebase.

The copyright header uses // // instead of the standard single //. This pattern is widespread across multiple files (packages/types/, packages/common-cosmos/, packages/node/src/), while others use the correct single //. Standardize all copyright headers to use a single // prefix.

🤖 Prompt for AI Agents
In @packages/node/src/indexer/fetch.module.ts at line 1, The file header in
packages/node/src/indexer/fetch.module.ts (and other files under
packages/types/, packages/common-cosmos/, packages/node/src/) uses a double
prefix "// //"; change those header comment lines to use a single "//" prefix
(e.g., replace the leading "// //" with "//") so the copyright header formatting
is consistent across the codebase; update all files with the same pattern to
match the standard single-line comment style.

// SPDX-License-Identifier: GPL-3.0

import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/indexer.manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Inject, Injectable } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/rpc-clients/HttpClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import http from 'http';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/rpc-clients/RpcClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

Same issue - // // should be //.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/rpc-clients/RpcClient.ts at line 1, Fix the
doubled comment prefix in the file header by changing the leading "// //" to a
single "//" at the top comment (the copyright header line in RpcClient.ts);
ensure the header now reads "// Copyright 2020-2026 SubQuery Pte Ltd authors &
contributors" so there is only one comment marker.

// SPDX-License-Identifier: GPL-3.0

import { JsonRpcRequest, JsonRpcSuccessResponse } from '@cosmjs/json-rpc';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/rpc-clients/WebsocketClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

/* WARNING
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/rpc-clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './HttpClient';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker-fetch.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Typo: Double comment prefix in copyright header.

The copyright header has // // instead of //. This appears to be unintentional.

Suggested fix
-// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
+// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
🤖 Prompt for AI Agents
In @packages/node/src/indexer/worker/worker.service.ts at line 1, The file
header contains a duplicated comment prefix ("// //") at the top; remove the
extra slash so the copyright line starts with a single comment marker ("//") to
correct the typo.

// SPDX-License-Identifier: GPL-3.0

import { threadId } from 'node:worker_threads';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

// initlogger and yargs must be imported before all other imports
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { NestFactory } from '@nestjs/core';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { initLogger } from '@subql/node-core/logger';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/forceClean.init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { forceClean } from '@subql/node-core';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/forceClean.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/reindex.init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/reindex.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/reindex.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/testing.init.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { exitWithError, getLogger } from '@subql/node-core';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/testing.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/testing.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/subcommands/testing.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { Inject, Injectable, Module } from '@nestjs/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/celestia.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { DecodedTxRaw, decodeTxRaw } from '@cosmjs/proto-signing';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/cosmos.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { GeneratedType, Registry, DecodedTxRaw } from '@cosmjs/proto-signing';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/cosmos.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/kyve/kyve.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/kyve/kyve.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import assert from 'assert';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/kyve/kyveTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

// Note: this is due to incorrect typings provided by kyvejs
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/project.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { makeTempDir } from '@subql/common';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/utils/project.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import os from 'os';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/yargs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import { yargsBuilder } from '@subql/node-core/yargs';
Expand Down
2 changes: 1 addition & 1 deletion packages/node/test/jsonfy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/types/src/global.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import type {CosmWasmClient} from '@cosmjs/cosmwasm-stargate';
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

export * from './interfaces';
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {DecodedTxRaw} from '@cosmjs/proto-signing';
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/modular.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// // Copyright 2020-2026 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {INetworkCommonModule, ProjectManifestV1_0_0} from '@subql/types-core';
Expand Down
Loading