From 4f9026ec783915da5a0e58284e738792d116aa8d Mon Sep 17 00:00:00 2001 From: luchenhan Date: Sat, 4 Jan 2025 18:24:39 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: luchenhan --- packages/indexer-agent/src/commands/common-options.ts | 4 ++-- packages/indexer-agent/src/commands/start.ts | 2 +- packages/indexer-cli/src/commands/indexer/actions/queue.ts | 2 +- packages/indexer-cli/src/commands/indexer/rules/get.ts | 2 +- packages/indexer-common/src/subgraphs.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/indexer-agent/src/commands/common-options.ts b/packages/indexer-agent/src/commands/common-options.ts index 0ed8e67c7..f5198e31b 100644 --- a/packages/indexer-agent/src/commands/common-options.ts +++ b/packages/indexer-agent/src/commands/common-options.ts @@ -145,7 +145,7 @@ export function injectCommonStartupOptions(argv: Argv): Argv { }) .check(argv => { // Unset arguments set to empty strings. - // This can happen when users set their options as enviroment variables and don't + // This can happen when users set their options as environment variables and don't // assign any value to them. // // For example: @@ -154,7 +154,7 @@ export function injectCommonStartupOptions(argv: Argv): Argv { // export INDEXER_AGENT_OFFCHAIN_SUBGRAPHS= // ``` // - // In NodeJs, those enviroment variables will be set as an empty string instead of + // In NodeJs, those environment variables will be set as an empty string instead of // being undefined, which can cause parse errors when the Agent is building a // NetworkSpecification. for (const [key, value] of Object.entries(argv)) { diff --git a/packages/indexer-agent/src/commands/start.ts b/packages/indexer-agent/src/commands/start.ts index 08dc0a5ff..23326a784 100644 --- a/packages/indexer-agent/src/commands/start.ts +++ b/packages/indexer-agent/src/commands/start.ts @@ -127,7 +127,7 @@ export const start = { coordinates: string | [string, string], ): [number, number] { if (typeof coordinates === 'string') { - // When this value is set in an enviromnent variable, yarns passes + // When this value is set in an environment variable, yarns passes // it as a single string. // Yargs should have passed 2 arguments to this functions, so we diff --git a/packages/indexer-cli/src/commands/indexer/actions/queue.ts b/packages/indexer-cli/src/commands/indexer/actions/queue.ts index f334b40ea..ef1d74ddb 100644 --- a/packages/indexer-cli/src/commands/indexer/actions/queue.ts +++ b/packages/indexer-cli/src/commands/indexer/actions/queue.ts @@ -28,7 +28,7 @@ ${chalk.bold( ${chalk.dim('Options:')} - -h, --help Show usage informatio + -h, --help Show usage information -n, --network [Required] The protocol network for this action (mainnet, arbitrum-one, sepolia, arbitrum-sepolia) -o, --output table|json|yaml Choose the output format: table (default), JSON, or YAML -s, --source Specify the source of the action decision diff --git a/packages/indexer-cli/src/commands/indexer/rules/get.ts b/packages/indexer-cli/src/commands/indexer/rules/get.ts index cd42aba97..401c28e11 100644 --- a/packages/indexer-cli/src/commands/indexer/rules/get.ts +++ b/packages/indexer-cli/src/commands/indexer/rules/get.ts @@ -62,7 +62,7 @@ module.exports = { } else { if (!protocolNetwork) { throw Error( - 'The --network option must be used when quering for a single Indexing Rule', + 'The --network option must be used when querying for a single Indexing Rule', ) } const ruleIdentifier = { identifier, protocolNetwork } diff --git a/packages/indexer-common/src/subgraphs.ts b/packages/indexer-common/src/subgraphs.ts index 78aaa9074..19a09f4d6 100644 --- a/packages/indexer-common/src/subgraphs.ts +++ b/packages/indexer-common/src/subgraphs.ts @@ -503,7 +503,7 @@ export class SubgraphFreshnessChecker { return subgraphQueryResult } - // Checks if the query result has the expecte + // Checks if the query result has the expected // eslint-disable-next-line @typescript-eslint/no-explicit-any checkMalformedQueryResult(subgraphQueryResult: any): string | undefined { if (!subgraphQueryResult) {