Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #1072

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions packages/indexer-agent/src/commands/common-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-agent/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/src/commands/indexer/actions/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${chalk.bold(

${chalk.dim('Options:')}

-h, --help Show usage informatio
-h, --help Show usage information
-n, --network <STRING> [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 <STRING> Specify the source of the action decision
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/src/commands/indexer/rules/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down