hardhat 3.11.1 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -2
- package/dist/src/internal/builtin-plugins/artifacts/artifact-manager.js.map +1 -1
- package/dist/src/internal/builtin-plugins/artifacts/hook-handlers/hre.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/artifacts/hook-handlers/hre.js +2 -1
- package/dist/src/internal/builtin-plugins/artifacts/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/hre.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/hre.js +2 -1
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.d.ts +3 -2
- package/dist/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.js +19 -10
- package/dist/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers/utils.d.ts +7 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers/utils.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers/utils.js +10 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers/utils.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/hre.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/hre.js +2 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/index.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/index.js +12 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/index.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.d.ts +3 -2
- package/dist/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.js +30 -9
- package/dist/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/tasks/solidity-test/task-action.d.ts +19 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/tasks/solidity-test/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/tasks/solidity-test/task-action.js +36 -11
- package/dist/src/internal/builtin-plugins/gas-analytics/tasks/solidity-test/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/hhu/types.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/accounts/derive-private-keys.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/edr-constants.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/edr-constants.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/edr-provider.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/edr-provider.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/network-connection.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/network-connection.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/network-manager.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/network-manager.js +9 -1
- package/dist/src/internal/builtin-plugins/network-manager/network-manager.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.js +10 -5
- package/dist/src/internal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/type-extensions/config.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/type-validation.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/type-validation.js +3 -1
- package/dist/src/internal/builtin-plugins/network-manager/type-validation.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-results.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-results.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js +2 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compilation-job.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compilation-job.js +2 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compilation-job.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/remapped-npm-packages-graph.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/remapped-npm-packages-graph.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/types.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/config.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/config.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/hook-handlers/hre.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/helpers.d.ts +2 -1
- package/dist/src/internal/builtin-plugins/solidity-test/helpers.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/helpers.js +5 -4
- package/dist/src/internal/builtin-plugins/solidity-test/helpers.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/index.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/index.js +6 -0
- package/dist/src/internal/builtin-plugins/solidity-test/index.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/index.js +4 -2
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/index.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/parsing.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/parsing.js +2 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/parsing.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/validation.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/validation.js +2 -1
- package/dist/src/internal/builtin-plugins/solidity-test/inline-config/validation.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/reporter.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/reporter.js +5 -3
- package/dist/src/internal/builtin-plugins/solidity-test/reporter.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/runner.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/runner.js +2 -1
- package/dist/src/internal/builtin-plugins/solidity-test/runner.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/task-action.d.ts +1 -0
- package/dist/src/internal/builtin-plugins/solidity-test/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/task-action.js +6 -3
- package/dist/src/internal/builtin-plugins/solidity-test/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/test/index.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/test/index.js +6 -0
- package/dist/src/internal/builtin-plugins/test/index.js.map +1 -1
- package/dist/src/internal/builtin-plugins/test/task-action.d.ts +1 -0
- package/dist/src/internal/builtin-plugins/test/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/test/task-action.js +7 -2
- package/dist/src/internal/builtin-plugins/test/task-action.js.map +1 -1
- package/dist/src/internal/cli/error-handling/error-handler.d.ts.map +1 -0
- package/dist/src/internal/cli/{error-handler.js → error-handling/error-handler.js} +14 -2
- package/dist/src/internal/cli/error-handling/error-handler.js.map +1 -0
- package/dist/src/internal/cli/error-handling/native-binding-error.d.ts +18 -0
- package/dist/src/internal/cli/error-handling/native-binding-error.d.ts.map +1 -0
- package/dist/src/internal/cli/error-handling/native-binding-error.js +57 -0
- package/dist/src/internal/cli/error-handling/native-binding-error.js.map +1 -0
- package/dist/src/internal/cli/hhu.js +1 -1
- package/dist/src/internal/cli/hhu.js.map +1 -1
- package/dist/src/internal/cli/init/template.d.ts.map +1 -1
- package/dist/src/internal/cli/init/template.js +15 -1
- package/dist/src/internal/cli/init/template.js.map +1 -1
- package/dist/src/internal/cli/main.d.ts.map +1 -1
- package/dist/src/internal/cli/main.js +3 -2
- package/dist/src/internal/cli/main.js.map +1 -1
- package/dist/src/internal/cli/telemetry/analytics/analytics.d.ts +1 -0
- package/dist/src/internal/cli/telemetry/analytics/analytics.d.ts.map +1 -1
- package/dist/src/internal/cli/telemetry/analytics/analytics.js +9 -0
- package/dist/src/internal/cli/telemetry/analytics/analytics.js.map +1 -1
- package/dist/src/internal/cli/telemetry/analytics/types.d.ts +5 -0
- package/dist/src/internal/cli/telemetry/analytics/types.d.ts.map +1 -1
- package/dist/src/internal/cli/telemetry/error-reporter/global-error-handlers.js.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/anonymizer.d.ts.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/anonymizer.js.map +1 -1
- package/dist/src/internal/constants.d.ts +10 -0
- package/dist/src/internal/constants.d.ts.map +1 -1
- package/dist/src/internal/constants.js +10 -0
- package/dist/src/internal/constants.js.map +1 -1
- package/dist/src/internal/core/config.d.ts +14 -1
- package/dist/src/internal/core/config.d.ts.map +1 -1
- package/dist/src/internal/core/config.js +15 -6
- package/dist/src/internal/core/config.js.map +1 -1
- package/dist/src/internal/core/configuration-variables.d.ts.map +1 -1
- package/dist/src/internal/core/configuration-variables.js +10 -1
- package/dist/src/internal/core/configuration-variables.js.map +1 -1
- package/dist/src/internal/core/hook-manager.d.ts.map +1 -1
- package/dist/src/internal/core/hook-manager.js.map +1 -1
- package/dist/src/internal/core/hre.d.ts.map +1 -1
- package/dist/src/internal/core/hre.js.map +1 -1
- package/dist/src/internal/core/lazy-user-interruptions.d.ts.map +1 -1
- package/dist/src/internal/core/lazy-user-interruptions.js +2 -1
- package/dist/src/internal/core/lazy-user-interruptions.js.map +1 -1
- package/dist/src/internal/core/tasks/builders.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/builders.js.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.js +2 -1
- package/dist/src/internal/core/tasks/resolved-task.js.map +1 -1
- package/dist/src/internal/core/tasks/task-manager.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/task-manager.js +2 -1
- package/dist/src/internal/core/tasks/task-manager.js.map +1 -1
- package/dist/src/internal/core/tasks/validations.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/validations.js +2 -1
- package/dist/src/internal/core/tasks/validations.js.map +1 -1
- package/dist/src/internal/core/user-interruptions.d.ts.map +1 -1
- package/dist/src/internal/core/user-interruptions.js.map +1 -1
- package/dist/src/internal/global-hre-instance.d.ts.map +1 -1
- package/dist/src/internal/global-hre-instance.js.map +1 -1
- package/dist/src/types/artifacts.d.ts.map +1 -1
- package/dist/src/types/config.d.ts +11 -0
- package/dist/src/types/config.d.ts.map +1 -1
- package/dist/src/types/solidity/build-system.d.ts.map +1 -1
- package/dist/src/types/solidity/build-system.js.map +1 -1
- package/dist/src/types/solidity/errors.d.ts.map +1 -1
- package/dist/src/types/solidity/errors.js.map +1 -1
- package/dist/src/types/tasks.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/internal/builtin-plugins/artifacts/artifact-manager.ts +2 -2
- package/src/internal/builtin-plugins/artifacts/hook-handlers/hre.ts +3 -5
- package/src/internal/builtin-plugins/coverage/hook-handlers/hre.ts +3 -5
- package/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.ts +29 -7
- package/src/internal/builtin-plugins/gas-analytics/helpers/utils.ts +15 -0
- package/src/internal/builtin-plugins/gas-analytics/hook-handlers/hre.ts +3 -5
- package/src/internal/builtin-plugins/gas-analytics/index.ts +13 -0
- package/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.ts +41 -6
- package/src/internal/builtin-plugins/gas-analytics/tasks/solidity-test/task-action.ts +61 -11
- package/src/internal/builtin-plugins/hhu/types.ts +1 -2
- package/src/internal/builtin-plugins/network-manager/accounts/derive-private-keys.ts +4 -6
- package/src/internal/builtin-plugins/network-manager/edr/edr-constants.ts +1 -2
- package/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts +2 -3
- package/src/internal/builtin-plugins/network-manager/hook-handlers/hre.ts +2 -3
- package/src/internal/builtin-plugins/network-manager/network-connection.ts +1 -2
- package/src/internal/builtin-plugins/network-manager/network-manager.ts +11 -1
- package/src/internal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.ts +10 -9
- package/src/internal/builtin-plugins/network-manager/type-extensions/config.ts +6 -14
- package/src/internal/builtin-plugins/network-manager/type-validation.ts +5 -1
- package/src/internal/builtin-plugins/solidity/build-results.ts +1 -2
- package/src/internal/builtin-plugins/solidity/build-system/build-system.ts +2 -1
- package/src/internal/builtin-plugins/solidity/build-system/compilation-job.ts +2 -1
- package/src/internal/builtin-plugins/solidity/build-system/resolver/remapped-npm-packages-graph.ts +1 -3
- package/src/internal/builtin-plugins/solidity/build-system/resolver/types.ts +1 -2
- package/src/internal/builtin-plugins/solidity/config.ts +2 -4
- package/src/internal/builtin-plugins/solidity/hook-handlers/hre.ts +1 -2
- package/src/internal/builtin-plugins/solidity/type-extensions.ts +16 -14
- package/src/internal/builtin-plugins/solidity-test/helpers.ts +11 -3
- package/src/internal/builtin-plugins/solidity-test/index.ts +6 -0
- package/src/internal/builtin-plugins/solidity-test/inline-config/index.ts +4 -2
- package/src/internal/builtin-plugins/solidity-test/inline-config/parsing.ts +2 -1
- package/src/internal/builtin-plugins/solidity-test/inline-config/validation.ts +2 -1
- package/src/internal/builtin-plugins/solidity-test/reporter.ts +6 -7
- package/src/internal/builtin-plugins/solidity-test/runner.ts +2 -1
- package/src/internal/builtin-plugins/solidity-test/task-action.ts +7 -3
- package/src/internal/builtin-plugins/solidity-test/type-extensions.ts +1 -2
- package/src/internal/builtin-plugins/test/index.ts +6 -0
- package/src/internal/builtin-plugins/test/task-action.ts +10 -2
- package/src/internal/cli/{error-handler.ts → error-handling/error-handler.ts} +21 -5
- package/src/internal/cli/error-handling/native-binding-error.ts +78 -0
- package/src/internal/cli/hhu.ts +1 -1
- package/src/internal/cli/init/template.ts +16 -1
- package/src/internal/cli/main.ts +6 -5
- package/src/internal/cli/telemetry/analytics/analytics.ts +13 -0
- package/src/internal/cli/telemetry/analytics/types.ts +6 -0
- package/src/internal/cli/telemetry/error-reporter/global-error-handlers.ts +2 -2
- package/src/internal/cli/telemetry/sentry/anonymizer.ts +2 -4
- package/src/internal/constants.ts +11 -0
- package/src/internal/core/config.ts +37 -3
- package/src/internal/core/configuration-variables.ts +12 -4
- package/src/internal/core/hook-manager.ts +2 -4
- package/src/internal/core/hre.ts +1 -3
- package/src/internal/core/lazy-user-interruptions.ts +3 -5
- package/src/internal/core/tasks/builders.ts +8 -17
- package/src/internal/core/tasks/resolved-task.ts +2 -1
- package/src/internal/core/tasks/task-manager.ts +2 -1
- package/src/internal/core/tasks/validations.ts +2 -1
- package/src/internal/core/user-interruptions.ts +1 -3
- package/src/internal/global-hre-instance.ts +1 -2
- package/src/types/artifacts.ts +1 -2
- package/src/types/config.ts +12 -0
- package/src/types/solidity/build-system.ts +8 -17
- package/src/types/solidity/errors.ts +3 -6
- package/src/types/tasks.ts +5 -11
- package/templates/01-node-test-runner-viem/package.json +1 -1
- package/templates/02-mocha-ethers/package.json +1 -1
- package/templates/03-minimal/package.json +1 -1
- package/dist/src/internal/cli/error-handler.d.ts.map +0 -1
- package/dist/src/internal/cli/error-handler.js.map +0 -1
- /package/dist/src/internal/cli/{error-handler.d.ts → error-handling/error-handler.d.ts} +0 -0
|
@@ -43,7 +43,8 @@ export function validateAction(
|
|
|
43
43
|
): void {
|
|
44
44
|
if (isPlugin && inlineAction !== undefined) {
|
|
45
45
|
throw new HardhatError(
|
|
46
|
-
HardhatError.ERRORS.CORE.TASK_DEFINITIONS
|
|
46
|
+
HardhatError.ERRORS.CORE.TASK_DEFINITIONS
|
|
47
|
+
.INLINE_ACTION_CANNOT_BE_USED_IN_PLUGINS,
|
|
47
48
|
{ task: formatTaskId(taskId) },
|
|
48
49
|
);
|
|
49
50
|
}
|
|
@@ -7,9 +7,7 @@ import { styleText } from "node:util";
|
|
|
7
7
|
import { assertHardhatInvariant } from "@nomicfoundation/hardhat-errors";
|
|
8
8
|
import { AsyncMutex } from "@nomicfoundation/hardhat-utils/synchronization";
|
|
9
9
|
|
|
10
|
-
export class UserInterruptionManagerImplementation
|
|
11
|
-
implements UserInterruptionManager
|
|
12
|
-
{
|
|
10
|
+
export class UserInterruptionManagerImplementation implements UserInterruptionManager {
|
|
13
11
|
readonly #hooks;
|
|
14
12
|
readonly #mutex = new AsyncMutex();
|
|
15
13
|
|
|
@@ -12,8 +12,7 @@ let hre: HardhatRuntimeEnvironment | undefined;
|
|
|
12
12
|
* are always using the same HRE instance.
|
|
13
13
|
*/
|
|
14
14
|
export function getGlobalHardhatRuntimeEnvironment():
|
|
15
|
-
|
|
|
16
|
-
| undefined {
|
|
15
|
+
HardhatRuntimeEnvironment | undefined {
|
|
17
16
|
return hre;
|
|
18
17
|
}
|
|
19
18
|
|
package/src/types/artifacts.ts
CHANGED
|
@@ -48,8 +48,7 @@ export type ArtifactContractNames = keyof ArtifactMap extends never
|
|
|
48
48
|
* @see {@link ArtifactContractNames}
|
|
49
49
|
*/
|
|
50
50
|
export type StringWithArtifactContractNamesAutocompletion =
|
|
51
|
-
|
|
|
52
|
-
| (string & {});
|
|
51
|
+
ArtifactContractNames | (string & {});
|
|
53
52
|
|
|
54
53
|
/**
|
|
55
54
|
* The ArtifactManager is responsible for reading and writing artifacts from
|
package/src/types/config.ts
CHANGED
|
@@ -8,6 +8,18 @@ export interface ConfigurationVariable {
|
|
|
8
8
|
_type: "ConfigurationVariable";
|
|
9
9
|
name: string;
|
|
10
10
|
format?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* An optional fallback value, used only when the variable can't be resolved
|
|
14
|
+
* from any other source (e.g. an environment variable or the keystore).
|
|
15
|
+
*
|
|
16
|
+
* By default, the value is resolved from the environment variable first, then
|
|
17
|
+
* any plugin source (like hardhat-keystore), and finally this default. Plugins
|
|
18
|
+
* can customize this, but the built-in resolver and bundled plugins follow this
|
|
19
|
+
* order. If none of them provide a value and no default is set, resolving the
|
|
20
|
+
* variable throws.
|
|
21
|
+
*/
|
|
22
|
+
default?: string;
|
|
11
23
|
}
|
|
12
24
|
|
|
13
25
|
/**
|
|
@@ -151,42 +151,35 @@ export interface BaseCompilationJobCreationError {
|
|
|
151
151
|
formattedReason: string;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithRoot
|
|
155
|
-
extends BaseCompilationJobCreationError {
|
|
154
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithRoot extends BaseCompilationJobCreationError {
|
|
156
155
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithDependency
|
|
160
|
-
extends BaseCompilationJobCreationError {
|
|
158
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithDependency extends BaseCompilationJobCreationError {
|
|
161
159
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY;
|
|
162
160
|
incompatibleImportPath: string[];
|
|
163
161
|
}
|
|
164
162
|
|
|
165
|
-
export interface CompilationJobCreationErrorImportOfIncompatibleFile
|
|
166
|
-
extends BaseCompilationJobCreationError {
|
|
163
|
+
export interface CompilationJobCreationErrorImportOfIncompatibleFile extends BaseCompilationJobCreationError {
|
|
167
164
|
reason: CompilationJobCreationErrorReason.IMPORT_OF_INCOMPATIBLE_FILE;
|
|
168
165
|
incompatibleImportPath: string[];
|
|
169
166
|
}
|
|
170
167
|
|
|
171
|
-
export interface CompilationJobCreationErrorNoCompatibleSolcVersionForTransitiveImportPath
|
|
172
|
-
extends BaseCompilationJobCreationError {
|
|
168
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionForTransitiveImportPath extends BaseCompilationJobCreationError {
|
|
173
169
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH;
|
|
174
170
|
incompatibleImportPath: string[];
|
|
175
171
|
}
|
|
176
172
|
|
|
177
|
-
export interface CompilationJobCreationErrorIncompatibleOverriddenSolcVersion
|
|
178
|
-
extends BaseCompilationJobCreationError {
|
|
173
|
+
export interface CompilationJobCreationErrorIncompatibleOverriddenSolcVersion extends BaseCompilationJobCreationError {
|
|
179
174
|
reason: CompilationJobCreationErrorReason.INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION;
|
|
180
175
|
}
|
|
181
176
|
|
|
182
|
-
export interface CompilationJobCreationErrorOverriddenSolcVersionIncompatibleWithDependency
|
|
183
|
-
extends BaseCompilationJobCreationError {
|
|
177
|
+
export interface CompilationJobCreationErrorOverriddenSolcVersionIncompatibleWithDependency extends BaseCompilationJobCreationError {
|
|
184
178
|
reason: CompilationJobCreationErrorReason.OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY;
|
|
185
179
|
incompatibleImportPath: string[];
|
|
186
180
|
}
|
|
187
181
|
|
|
188
|
-
export interface CompilationJobCreationErrorNoCompatibleSolcVersionFound
|
|
189
|
-
extends BaseCompilationJobCreationError {
|
|
182
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionFound extends BaseCompilationJobCreationError {
|
|
190
183
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_FOUND;
|
|
191
184
|
}
|
|
192
185
|
|
|
@@ -209,9 +202,7 @@ export enum FileBuildResultType {
|
|
|
209
202
|
}
|
|
210
203
|
|
|
211
204
|
export type FileBuildResult =
|
|
212
|
-
|
|
|
213
|
-
| SuccessfulFileBuildResult
|
|
214
|
-
| FailedFileBuildResult;
|
|
205
|
+
CacheHitFileBuildResult | SuccessfulFileBuildResult | FailedFileBuildResult;
|
|
215
206
|
|
|
216
207
|
export interface CacheHitFileBuildResult {
|
|
217
208
|
type: FileBuildResultType.CACHE_HIT;
|
|
@@ -104,14 +104,12 @@ export interface NpmRootResolutionWithRemappingErrors {
|
|
|
104
104
|
remappingErrors: UserRemappingError[];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export interface NpmRootFileDoesNotExistWithinPackageError
|
|
108
|
-
extends ResolvedFileReference {
|
|
107
|
+
export interface NpmRootFileDoesNotExistWithinPackageError extends ResolvedFileReference {
|
|
109
108
|
type: RootResolutionErrorType.NPM_ROOT_FILE_DOES_NOT_EXIST_WITHIN_ITS_PACKAGE;
|
|
110
109
|
npmModule: string;
|
|
111
110
|
}
|
|
112
111
|
|
|
113
|
-
export interface NpmRootFileWithIncorrectCasingError
|
|
114
|
-
extends ResolvedFileReference {
|
|
112
|
+
export interface NpmRootFileWithIncorrectCasingError extends ResolvedFileReference {
|
|
115
113
|
type: RootResolutionErrorType.NPM_ROOT_FILE_WITH_INCORRECT_CASING;
|
|
116
114
|
npmModule: string;
|
|
117
115
|
/**
|
|
@@ -141,8 +139,7 @@ export type NpmRootResolutionError =
|
|
|
141
139
|
| NpmRootFileNonExportedFileError;
|
|
142
140
|
|
|
143
141
|
export type RootResolutionError =
|
|
144
|
-
|
|
|
145
|
-
| NpmRootResolutionError;
|
|
142
|
+
ProjectRootResolutionError | NpmRootResolutionError;
|
|
146
143
|
|
|
147
144
|
/**
|
|
148
145
|
* The different types of errors that can happen when resolving an import.
|
package/src/types/tasks.ts
CHANGED
|
@@ -149,9 +149,7 @@ export type TaskOverrideDefinition = BaseTaskOverrideDefinition &
|
|
|
149
149
|
* actual `Task`s.
|
|
150
150
|
*/
|
|
151
151
|
export type TaskDefinition =
|
|
152
|
-
|
|
|
153
|
-
| NewTaskDefinition
|
|
154
|
-
| TaskOverrideDefinition;
|
|
152
|
+
EmptyTaskDefinition | NewTaskDefinition | TaskOverrideDefinition;
|
|
155
153
|
|
|
156
154
|
/**
|
|
157
155
|
* This helper type adds an argument to an existing TaskArgumentsT.
|
|
@@ -188,10 +186,8 @@ export interface EmptyTaskDefinitionBuilder {
|
|
|
188
186
|
*/
|
|
189
187
|
export interface NewTaskDefinitionBuilder<
|
|
190
188
|
TaskArgumentsT extends TaskArguments = TaskArguments,
|
|
191
|
-
ActionTypeT extends
|
|
192
|
-
|
|
193
|
-
| "INLINE_ACTION"
|
|
194
|
-
| "MISSING_ACTION" = "MISSING_ACTION",
|
|
189
|
+
ActionTypeT extends "LAZY_ACTION" | "INLINE_ACTION" | "MISSING_ACTION" =
|
|
190
|
+
"MISSING_ACTION",
|
|
195
191
|
> {
|
|
196
192
|
/**
|
|
197
193
|
* Sets the description of the task.
|
|
@@ -369,10 +365,8 @@ export interface NewTaskDefinitionBuilder<
|
|
|
369
365
|
*/
|
|
370
366
|
export interface TaskOverrideDefinitionBuilder<
|
|
371
367
|
TaskArgumentsT extends TaskArguments = TaskArguments,
|
|
372
|
-
ActionTypeT extends
|
|
373
|
-
|
|
374
|
-
| "INLINE_ACTION"
|
|
375
|
-
| "MISSING_ACTION" = "MISSING_ACTION",
|
|
368
|
+
ActionTypeT extends "LAZY_ACTION" | "INLINE_ACTION" | "MISSING_ACTION" =
|
|
369
|
+
"MISSING_ACTION",
|
|
376
370
|
> {
|
|
377
371
|
/**
|
|
378
372
|
* Sets a new description for the task.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Node Test Runner and Viem",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.
|
|
8
|
+
"hardhat": "workspace:^3.13.0",
|
|
9
9
|
"@nomicfoundation/hardhat-toolbox-viem": "workspace:^5.0.7",
|
|
10
10
|
"@nomicfoundation/hardhat-ignition": "workspace:^3.1.8",
|
|
11
11
|
"@types/node": "^22.8.5",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Mocha and Ethers.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.
|
|
8
|
+
"hardhat": "workspace:^3.13.0",
|
|
9
9
|
"@nomicfoundation/hardhat-toolbox-mocha-ethers": "workspace:^3.0.7",
|
|
10
10
|
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.15",
|
|
11
11
|
"@nomicfoundation/hardhat-ignition": "workspace:^3.1.8",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler.d.ts","sourceRoot":"","sources":["../../../../src/internal/cli/error-handler.ts"],"names":[],"mappings":"AAyDA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,EACZ,qBAAqB,GAAE,OAAe,EACtC,KAAK,GAAE,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,KAAK,IAAoB,GACvD,OAAO,CAAC,IAAI,CAAC,CA8Df"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../../src/internal/cli/error-handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,E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