Skip to content

Commit

Permalink
style: add 'Schema' postfix to names missing it
Browse files Browse the repository at this point in the history
  • Loading branch information
schaable committed Dec 23, 2024
1 parent 7786ee9 commit 30c008e
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ const edrNetworkAccountsUserConfigSchema = conditionalUnionType(
`Expected an array with with objects with private key and balance or Configuration Variables, or an object with HD account details`,
);

const hardforkHistoryUserConfig = z.map(z.string(), blockNumberSchema);
const hardforkHistoryUserConfigSchema = z.map(z.string(), blockNumberSchema);

const edrNetworkChainUserConfigSchema = z.object({
hardforkHistory: z.optional(hardforkHistoryUserConfig),
hardforkHistory: z.optional(hardforkHistoryUserConfigSchema),
});

const edrNetworkChainsUserConfigSchema = z.map(
chainIdSchema,
edrNetworkChainUserConfigSchema,
);

const edrNetworkForkingUserConfig = z.object({
const edrNetworkForkingUserConfigSchema = z.object({
enabled: z.optional(z.boolean()),
url: sensitiveUrlSchema,
blockNumber: z.optional(blockNumberSchema),
Expand Down Expand Up @@ -179,7 +179,7 @@ const edrNetworkUserConfigSchema = z.object({
coinbase: z.optional(z.string()),
enableRip7212: z.optional(z.boolean()),
enableTransientStorage: z.optional(z.boolean()),
forking: z.optional(edrNetworkForkingUserConfig),
forking: z.optional(edrNetworkForkingUserConfigSchema),
hardfork: z.optional(z.nativeEnum(HardforkName)),
initialBaseFeePerGas: z.optional(gasUnitUserConfigSchema),
initialDate: z.optional(
Expand Down Expand Up @@ -259,7 +259,7 @@ const edrNetworkAccountConfigSchema = z.object({
privateKey: resolvedConfigurationVariableSchema,
});

const edrNetworkHDAccountsConfig = z.object({
const edrNetworkHDAccountsConfigSchema = z.object({
mnemonic: z.string(),
accountsBalance: accountBalanceConfigSchema,
count: nonnegativeIntSchema,
Expand All @@ -271,23 +271,23 @@ const edrNetworkHDAccountsConfig = z.object({
const edrNetworkAccountsConfigSchema = conditionalUnionType(
[
[(data) => Array.isArray(data), z.array(edrNetworkAccountConfigSchema)],
[isObject, edrNetworkHDAccountsConfig],
[isObject, edrNetworkHDAccountsConfigSchema],
],
`Expected an array with with objects with private key and balance, or an object with HD account details`,
);

const hardforkHistoryConfig = z.map(z.string(), blockNumberSchema);
const hardforkHistoryConfigSchema = z.map(z.string(), blockNumberSchema);

const edrNetworkChainConfigSchema = z.object({
hardforkHistory: hardforkHistoryConfig,
hardforkHistory: hardforkHistoryConfigSchema,
});

const edrNetworkChainsConfigSchema = z.map(
chainIdSchema,
edrNetworkChainConfigSchema,
);

const edrNetworkForkingConfig = z.object({
const edrNetworkForkingConfigSchema = z.object({
enabled: z.boolean(),
url: resolvedConfigurationVariableSchema,
cacheDir: z.string(),
Expand Down Expand Up @@ -332,7 +332,7 @@ const edrNetworkConfigSchema = z.object({
coinbase: z.instanceof(Uint8Array),
enableRip7212: z.boolean(),
enableTransientStorage: z.boolean(),
forking: z.optional(edrNetworkForkingConfig),
forking: z.optional(edrNetworkForkingConfigSchema),
hardfork: z.nativeEnum(HardforkName),
initialBaseFeePerGas: z.optional(gasUnitConfigSchema),
initialDate: unionType(
Expand Down

0 comments on commit 30c008e

Please sign in to comment.