hardhat 3.1.9 → 3.1.11
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 +33 -0
- package/dist/src/config.d.ts +20 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +31 -0
- package/dist/src/config.js.map +1 -1
- package/dist/src/internal/builtin-plugins/artifacts/artifact-manager.d.ts +2 -2
- package/dist/src/internal/builtin-plugins/artifacts/artifact-manager.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/coverage-manager.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/coverage-manager.js +33 -21
- package/dist/src/internal/builtin-plugins/coverage/coverage-manager.js.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/helpers.d.ts +3 -5
- package/dist/src/internal/builtin-plugins/coverage/helpers.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/helpers.js +7 -19
- package/dist/src/internal/builtin-plugins/coverage/helpers.js.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/test.d.ts +7 -0
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/test.d.ts.map +1 -0
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/test.js +42 -0
- package/dist/src/internal/builtin-plugins/coverage/hook-handlers/test.js.map +1 -0
- package/dist/src/internal/builtin-plugins/coverage/index.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/coverage/index.js +1 -0
- package/dist/src/internal/builtin-plugins/coverage/index.js.map +1 -1
- package/dist/src/internal/builtin-plugins/flatten/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/flatten/task-action.js +1 -1
- package/dist/src/internal/builtin-plugins/flatten/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.js +2 -2
- package/dist/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers.d.ts +3 -5
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers.js +7 -19
- package/dist/src/internal/builtin-plugins/gas-analytics/helpers.js.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/test.d.ts +7 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/test.d.ts.map +1 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/test.js +42 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/hook-handlers/test.js.map +1 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/index.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/gas-analytics/index.js +1 -0
- package/dist/src/internal/builtin-plugins/gas-analytics/index.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 +17 -20
- package/dist/src/internal/builtin-plugins/network-manager/edr/edr-provider.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-generation-errors.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-generation-errors.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-generation-errors.js +2 -2
- package/dist/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-generation-errors.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/type-validation.d.ts +0 -2
- package/dist/src/internal/builtin-plugins/network-manager/edr/type-validation.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/type-validation.js +0 -6
- package/dist/src/internal/builtin-plugins/network-manager/edr/type-validation.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/utils/convert-to-edr.d.ts +1 -3
- package/dist/src/internal/builtin-plugins/network-manager/edr/utils/convert-to-edr.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/utils/convert-to-edr.js +0 -49
- package/dist/src/internal/builtin-plugins/network-manager/edr/utils/convert-to-edr.js.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/hook-handlers/config.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/hook-handlers/config.js +58 -20
- package/dist/src/internal/builtin-plugins/network-manager/hook-handlers/config.js.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 +8 -0
- package/dist/src/internal/builtin-plugins/network-manager/type-validation.js.map +1 -1
- package/dist/src/internal/builtin-plugins/node/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/node/task-action.js +1 -2
- package/dist/src/internal/builtin-plugins/node/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-results.d.ts +2 -2
- package/dist/src/internal/builtin-plugins/solidity/build-results.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-results.js +2 -2
- 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 +1 -0
- 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 +14 -6
- package/dist/src/internal/builtin-plugins/solidity/build-system/build-system.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/compiler.js +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/compiler.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.d.ts +0 -3
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.js +3 -5
- package/dist/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.d.ts +2 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.js +4 -2
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/dependency-graph.js +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.d.ts +5 -2
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.js +8 -2
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/error-messages.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/error-messages.js +19 -5
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/error-messages.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/remapped-npm-packages-graph.d.ts +21 -2
- 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 +84 -25
- 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 +3 -12
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/types.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/types.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/utils.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/resolver/utils.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/solc-config-selection.d.ts +8 -6
- package/dist/src/internal/builtin-plugins/solidity/build-system/solc-config-selection.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/build-system/solc-config-selection.js +103 -27
- package/dist/src/internal/builtin-plugins/solidity/build-system/solc-config-selection.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/config.js +2 -2
- 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 +5 -0
- package/dist/src/internal/builtin-plugins/solidity/hook-handlers/hre.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/tasks/build.js +1 -1
- package/dist/src/internal/builtin-plugins/solidity/tasks/build.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts +22 -0
- package/dist/src/internal/builtin-plugins/solidity/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/config.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/config.js +1 -0
- package/dist/src/internal/builtin-plugins/solidity-test/config.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/edr-artifacts.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/edr-artifacts.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/edr-artifacts.js +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/edr-artifacts.js.map +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/runner.d.ts +1 -1
- package/dist/src/internal/builtin-plugins/solidity-test/runner.js +1 -1
- 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 +16 -27
- 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 +1 -0
- package/dist/src/internal/builtin-plugins/solidity-test/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/telemetry/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/telemetry/task-action.js +3 -2
- package/dist/src/internal/builtin-plugins/telemetry/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/test/task-action.d.ts.map +1 -1
- package/dist/src/internal/builtin-plugins/test/task-action.js +40 -13
- package/dist/src/internal/builtin-plugins/test/task-action.js.map +1 -1
- package/dist/src/internal/builtin-plugins/test/type-extensions.d.ts +27 -0
- package/dist/src/internal/builtin-plugins/test/type-extensions.d.ts.map +1 -1
- package/dist/src/internal/cli/banner-manager.d.ts +26 -0
- package/dist/src/internal/cli/banner-manager.d.ts.map +1 -0
- package/dist/src/internal/cli/banner-manager.js +146 -0
- package/dist/src/internal/cli/banner-manager.js.map +1 -0
- package/dist/src/internal/cli/error-handler.d.ts.map +1 -1
- package/dist/src/internal/cli/error-handler.js +15 -0
- package/dist/src/internal/cli/error-handler.js.map +1 -1
- package/dist/src/internal/cli/init/init.d.ts.map +1 -1
- package/dist/src/internal/cli/init/init.js +8 -0
- package/dist/src/internal/cli/init/init.js.map +1 -1
- package/dist/src/internal/cli/main.d.ts.map +1 -1
- package/dist/src/internal/cli/main.js +18 -1
- package/dist/src/internal/cli/main.js.map +1 -1
- package/dist/src/internal/cli/telemetry/analytics/subprocess.js +2 -0
- package/dist/src/internal/cli/telemetry/analytics/subprocess.js.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/anonymize-paths.js +1 -1
- package/dist/src/internal/cli/telemetry/sentry/reporter.d.ts.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/reporter.js +4 -0
- package/dist/src/internal/cli/telemetry/sentry/reporter.js.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/vendor/integrations/contextlines.d.ts +1 -1
- package/dist/src/internal/cli/telemetry/sentry/vendor/integrations/contextlines.d.ts.map +1 -1
- package/dist/src/internal/cli/telemetry/sentry/vendor/integrations/contextlines.js +47 -38
- package/dist/src/internal/cli/telemetry/sentry/vendor/integrations/contextlines.js.map +1 -1
- package/dist/src/internal/core/config-validation.d.ts +3 -3
- package/dist/src/internal/core/config-validation.d.ts.map +1 -1
- package/dist/src/internal/core/config-validation.js +48 -18
- package/dist/src/internal/core/config-validation.js.map +1 -1
- package/dist/src/internal/core/tasks/builders.d.ts +26 -16
- package/dist/src/internal/core/tasks/builders.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/builders.js +65 -6
- package/dist/src/internal/core/tasks/builders.js.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.d.ts +2 -2
- package/dist/src/internal/core/tasks/resolved-task.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/resolved-task.js +23 -9
- 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 +14 -6
- package/dist/src/internal/core/tasks/task-manager.js.map +1 -1
- package/dist/src/internal/core/tasks/validations.d.ts +2 -0
- package/dist/src/internal/core/tasks/validations.d.ts.map +1 -1
- package/dist/src/internal/core/tasks/validations.js +11 -0
- package/dist/src/internal/core/tasks/validations.js.map +1 -1
- package/dist/src/internal/core/user-interruptions.js +1 -1
- package/dist/src/internal/deprecated-module-imported-from-hardhat2-plugin.d.ts +2 -0
- package/dist/src/internal/deprecated-module-imported-from-hardhat2-plugin.d.ts.map +1 -0
- package/dist/src/internal/deprecated-module-imported-from-hardhat2-plugin.js +12 -0
- package/dist/src/internal/deprecated-module-imported-from-hardhat2-plugin.js.map +1 -0
- package/dist/src/internal/using-hardhat2-plugin-errors.d.ts +35 -0
- package/dist/src/internal/using-hardhat2-plugin-errors.d.ts.map +1 -0
- package/dist/src/internal/using-hardhat2-plugin-errors.js +98 -0
- package/dist/src/internal/using-hardhat2-plugin-errors.js.map +1 -0
- package/dist/src/plugins.d.ts +8 -0
- package/dist/src/plugins.d.ts.map +1 -1
- package/dist/src/plugins.js +13 -0
- package/dist/src/plugins.js.map +1 -1
- package/dist/src/types/artifacts.d.ts +32 -3
- package/dist/src/types/artifacts.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +15 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +15 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/network.d.ts +1 -1
- package/dist/src/types/plugins.d.ts +2 -2
- package/dist/src/types/solidity/build-system.d.ts +56 -10
- package/dist/src/types/solidity/build-system.d.ts.map +1 -1
- package/dist/src/types/solidity/build-system.js +26 -2
- package/dist/src/types/solidity/build-system.js.map +1 -1
- package/dist/src/types/solidity/errors.d.ts +18 -0
- 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/solidity/resolved-file.d.ts +2 -2
- package/dist/src/types/tasks.d.ts +103 -34
- package/dist/src/types/tasks.d.ts.map +1 -1
- package/dist/src/types/tasks.js.map +1 -1
- package/dist/src/types/test.d.ts +11 -0
- package/dist/src/types/test.d.ts.map +1 -1
- package/dist/src/types/utils.d.ts +16 -0
- package/dist/src/types/utils.d.ts.map +1 -1
- package/dist/src/utils/result.d.ts +33 -0
- package/dist/src/utils/result.d.ts.map +1 -0
- package/dist/src/utils/result.js +43 -0
- package/dist/src/utils/result.js.map +1 -0
- package/package.json +12 -7
- package/src/config.ts +37 -0
- package/src/internal/builtin-plugins/artifacts/artifact-manager.ts +4 -1
- package/src/internal/builtin-plugins/artifacts/hook-handlers/hre.ts +4 -1
- package/src/internal/builtin-plugins/coverage/coverage-manager.ts +57 -50
- package/src/internal/builtin-plugins/coverage/helpers.ts +11 -29
- package/src/internal/builtin-plugins/coverage/hook-handlers/test.ts +68 -0
- package/src/internal/builtin-plugins/coverage/index.ts +1 -0
- package/src/internal/builtin-plugins/flatten/task-action.ts +1 -0
- package/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.ts +4 -4
- package/src/internal/builtin-plugins/gas-analytics/helpers.ts +11 -29
- package/src/internal/builtin-plugins/gas-analytics/hook-handlers/test.ts +68 -0
- package/src/internal/builtin-plugins/gas-analytics/index.ts +1 -0
- package/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts +21 -28
- package/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-generation-errors.ts +5 -2
- package/src/internal/builtin-plugins/network-manager/edr/type-validation.ts +0 -13
- package/src/internal/builtin-plugins/network-manager/edr/utils/convert-to-edr.ts +0 -64
- package/src/internal/builtin-plugins/network-manager/hook-handlers/config.ts +65 -21
- package/src/internal/builtin-plugins/network-manager/type-validation.ts +9 -0
- package/src/internal/builtin-plugins/node/task-action.ts +2 -2
- package/src/internal/builtin-plugins/solidity/build-results.ts +3 -1
- package/src/internal/builtin-plugins/solidity/build-system/build-system.ts +16 -5
- package/src/internal/builtin-plugins/solidity/build-system/compiler/compiler.ts +1 -1
- package/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts +7 -6
- package/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.ts +23 -1
- package/src/internal/builtin-plugins/solidity/build-system/dependency-graph.ts +1 -1
- package/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.ts +17 -3
- package/src/internal/builtin-plugins/solidity/build-system/resolver/error-messages.ts +19 -5
- package/src/internal/builtin-plugins/solidity/build-system/resolver/remapped-npm-packages-graph.ts +139 -35
- package/src/internal/builtin-plugins/solidity/build-system/resolver/types.ts +3 -9
- package/src/internal/builtin-plugins/solidity/build-system/resolver/utils.ts +1 -1
- package/src/internal/builtin-plugins/solidity/build-system/solc-config-selection.ts +125 -28
- package/src/internal/builtin-plugins/solidity/config.ts +2 -2
- package/src/internal/builtin-plugins/solidity/hook-handlers/hre.ts +8 -0
- package/src/internal/builtin-plugins/solidity/tasks/build.ts +1 -1
- package/src/internal/builtin-plugins/solidity/type-extensions.ts +28 -0
- package/src/internal/builtin-plugins/solidity-test/config.ts +1 -0
- package/src/internal/builtin-plugins/solidity-test/edr-artifacts.ts +2 -2
- package/src/internal/builtin-plugins/solidity-test/runner.ts +1 -1
- package/src/internal/builtin-plugins/solidity-test/task-action.ts +36 -38
- package/src/internal/builtin-plugins/solidity-test/type-extensions.ts +1 -0
- package/src/internal/builtin-plugins/telemetry/task-action.ts +4 -2
- package/src/internal/builtin-plugins/test/task-action.ts +71 -25
- package/src/internal/builtin-plugins/test/type-extensions.ts +42 -0
- package/src/internal/cli/banner-manager.ts +234 -0
- package/src/internal/cli/error-handler.ts +18 -0
- package/src/internal/cli/init/init.ts +8 -0
- package/src/internal/cli/main.ts +19 -1
- package/src/internal/cli/telemetry/analytics/subprocess.ts +2 -0
- package/src/internal/cli/telemetry/sentry/anonymize-paths.ts +1 -1
- package/src/internal/cli/telemetry/sentry/reporter.ts +5 -0
- package/src/internal/cli/telemetry/sentry/vendor/integrations/contextlines.ts +98 -50
- package/src/internal/core/config-validation.ts +67 -18
- package/src/internal/core/tasks/builders.ts +174 -30
- package/src/internal/core/tasks/resolved-task.ts +31 -13
- package/src/internal/core/tasks/task-manager.ts +23 -5
- package/src/internal/core/tasks/validations.ts +40 -0
- package/src/internal/core/user-interruptions.ts +1 -1
- package/src/internal/deprecated-module-imported-from-hardhat2-plugin.ts +12 -0
- package/src/internal/using-hardhat2-plugin-errors.ts +108 -0
- package/src/plugins.ts +16 -0
- package/src/types/artifacts.ts +40 -3
- package/src/types/hre.ts +1 -1
- package/src/types/index.ts +14 -0
- package/src/types/network.ts +1 -1
- package/src/types/plugins.ts +2 -2
- package/src/types/solidity/build-system.ts +75 -14
- package/src/types/solidity/errors.ts +22 -0
- package/src/types/solidity/resolved-file.ts +2 -2
- package/src/types/tasks.ts +143 -36
- package/src/types/test.ts +12 -0
- package/src/types/utils.ts +14 -0
- package/src/utils/result.ts +57 -0
- package/templates/hardhat-3/01-node-test-runner-viem/package.json +11 -11
- package/templates/hardhat-3/02-mocha-ethers/package.json +16 -16
- package/templates/hardhat-3/03-minimal/package.json +1 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/types/output.d.ts +0 -19
- package/dist/src/internal/builtin-plugins/network-manager/edr/types/output.d.ts.map +0 -1
- package/dist/src/internal/builtin-plugins/network-manager/edr/types/output.js +0 -2
- package/dist/src/internal/builtin-plugins/network-manager/edr/types/output.js.map +0 -1
- package/src/internal/builtin-plugins/network-manager/edr/types/output.ts +0 -19
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { CustomError } from "@nomicfoundation/hardhat-utils/error";
|
|
3
|
+
import { shortenPath } from "@nomicfoundation/hardhat-utils/path";
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
export class UsingHardhat2PluginError extends CustomError {
|
|
6
|
+
callerRelativePath;
|
|
7
|
+
constructor() {
|
|
8
|
+
const callerPath = getCallerRelativePath();
|
|
9
|
+
let message;
|
|
10
|
+
if (callerPath !== undefined) {
|
|
11
|
+
message = `You are trying to use a Hardhat 2 plugin in a Hardhat 3 project.
|
|
12
|
+
|
|
13
|
+
This file is part of a Hardhat 2 plugin calling an API that was removed in Hardhat 3: ${chalk.bold(callerPath)}
|
|
14
|
+
|
|
15
|
+
Please read https://hardhat.org/migrate-from-hardhat2 to learn how to migrate your project to Hardhat 3.
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
message = `You are trying to use a Hardhat 2 plugin in a Hardhat 3 project.
|
|
20
|
+
|
|
21
|
+
Check the stack trace below to identify which plugin is causing this.
|
|
22
|
+
|
|
23
|
+
Please read https://hardhat.org/migrate-from-hardhat2 to learn how to migrate your project to Hardhat 3.
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
super(message);
|
|
27
|
+
this.callerRelativePath = callerPath;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the relative path of the file that called a deprecated Hardhat
|
|
32
|
+
* plugin API, based on the stack trace. This helps identify which plugin
|
|
33
|
+
* file is triggering usage of Hardhat 2 APIs in a Hardhat 3 project.
|
|
34
|
+
*
|
|
35
|
+
* @param {number} [depth=5] The stack trace depth to locate the caller's
|
|
36
|
+
* source file. By default, depth 5 is used because:
|
|
37
|
+
* 0 = message
|
|
38
|
+
* 1 = getCallerRelativePath
|
|
39
|
+
* 2 = UsingHardhat2PluginError constructor
|
|
40
|
+
* 3 = throwUsingHardhat2PluginError
|
|
41
|
+
* 4 = deprecated function
|
|
42
|
+
* 5 = actual caller (the plugin file)
|
|
43
|
+
*
|
|
44
|
+
* @returns {string|undefined} The shortened relative path of the caller file,
|
|
45
|
+
* or undefined if not found.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* If the stack trace is:
|
|
49
|
+
* // Error
|
|
50
|
+
* // at getCallerRelativePath (src/internal/using-hardhat2-plugin-errors.ts:34:15)
|
|
51
|
+
* // at UsingHardhat2PluginError.constructor (src/internal/using-hardhat2-plugin-errors.ts:7:3)
|
|
52
|
+
* // at throwUsingHardhat2PluginError (src/internal/using-hardhat2-plugin-errors.ts:90:3)
|
|
53
|
+
* // at deprecatedFunction (plugins/example-plugin/deprecated.js:50:10)
|
|
54
|
+
* // at main (plugins/example-plugin/index.js:100:5)
|
|
55
|
+
* Calling getCallerRelativePath() returns 'plugins/example-plugin/index.js'
|
|
56
|
+
*/
|
|
57
|
+
export function getCallerRelativePath(depth = 5) {
|
|
58
|
+
try {
|
|
59
|
+
const stack = new Error().stack;
|
|
60
|
+
if (stack === undefined) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
const lines = stack.split("\n");
|
|
64
|
+
const callerLine = lines[depth];
|
|
65
|
+
if (callerLine === undefined) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Matches a single stack trace line:
|
|
70
|
+
*
|
|
71
|
+
* at FunctionName (path/to/file.ts:10:5)
|
|
72
|
+
* at path/to/file.ts:10:5
|
|
73
|
+
*
|
|
74
|
+
* Captures:
|
|
75
|
+
* - group 1: file location (without line/column)
|
|
76
|
+
*/
|
|
77
|
+
const STACK_TRACE_LINE_REGEX = /^at (?:.+? \()?([^\(].*?)(?::\d+)?(?::\d+)?\)?$/;
|
|
78
|
+
const match = callerLine.trim().match(STACK_TRACE_LINE_REGEX);
|
|
79
|
+
if (match === null || match[1] === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
let filePath = match[1];
|
|
83
|
+
// Handle file:// URLs from ESM stack traces
|
|
84
|
+
if (filePath.startsWith("file://")) {
|
|
85
|
+
filePath = fileURLToPath(filePath);
|
|
86
|
+
}
|
|
87
|
+
return shortenPath(filePath);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export function throwUsingHardhat2PluginError() {
|
|
94
|
+
/* eslint-disable-next-line no-restricted-syntax -- Intentionally throwing a
|
|
95
|
+
custom error here so that we always print the stack trace */
|
|
96
|
+
throw new UsingHardhat2PluginError();
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=using-hardhat2-plugin-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"using-hardhat2-plugin-errors.js","sourceRoot":"","sources":["../../../src/internal/using-hardhat2-plugin-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,wBAAyB,SAA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;YACnC,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;QAED,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,6BAA6B;IAC3C;kEAC8D;IAC9D,MAAM,IAAI,wBAAwB,EAAE,CAAC;AACvC,CAAC"}
|
package/dist/src/plugins.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export { HardhatPluginError } from "@nomicfoundation/hardhat-errors";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated This function is part of the Hardhat 2 plugin API.
|
|
4
|
+
*/
|
|
5
|
+
export declare function lazyFunction(..._args: any): any;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated This function is part of the Hardhat 2 plugin API.
|
|
8
|
+
*/
|
|
9
|
+
export declare function lazyObject(..._args: any): any;
|
|
2
10
|
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAIrE;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,KAAK,EAAE,GAAG,GAAG,GAAG,CAE/C;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,KAAK,EAAE,GAAG,GAAG,GAAG,CAE7C"}
|
package/dist/src/plugins.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
export { HardhatPluginError } from "@nomicfoundation/hardhat-errors";
|
|
2
|
+
import { throwUsingHardhat2PluginError } from "./internal/using-hardhat2-plugin-errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This function is part of the Hardhat 2 plugin API.
|
|
5
|
+
*/
|
|
6
|
+
export function lazyFunction(..._args) {
|
|
7
|
+
throwUsingHardhat2PluginError();
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This function is part of the Hardhat 2 plugin API.
|
|
11
|
+
*/
|
|
12
|
+
export function lazyObject(..._args) {
|
|
13
|
+
throwUsingHardhat2PluginError();
|
|
14
|
+
}
|
|
2
15
|
//# sourceMappingURL=plugins.js.map
|
package/dist/src/plugins.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAE3F;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,GAAG,KAAU;IACxC,6BAA6B,EAAE,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,GAAG,KAAU;IACtC,6BAA6B,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SolidityBuildInfo } from "./solidity/solidity-artifacts.js";
|
|
2
|
+
import type { NonNeverKeys } from "./utils.js";
|
|
2
3
|
/**
|
|
3
4
|
* A map of bare contract names and fully qualified contract names to their
|
|
4
5
|
* artifacts that will be completed by Hardhat's build system using module
|
|
@@ -10,6 +11,31 @@ export interface ArtifactMap {
|
|
|
10
11
|
* Returns the artifact type for the bare or fully qualified contract name.
|
|
11
12
|
*/
|
|
12
13
|
export type GetArtifactByName<ContractNameT extends string> = ContractNameT extends keyof ArtifactMap ? ArtifactMap[ContractNameT] : Artifact;
|
|
14
|
+
/**
|
|
15
|
+
* A type that represents the contract names (bare and fully qualified) of all
|
|
16
|
+
* the artifacts that have been built in a project. This enables the
|
|
17
|
+
* autocomplete of the TS Language Server to list the actual contracts, without
|
|
18
|
+
* leading to a compilation error for general strings, so it doesn't fail
|
|
19
|
+
* before `hardhat build` is run.
|
|
20
|
+
*
|
|
21
|
+
* This is meant to be used in functions like this:
|
|
22
|
+
* @example
|
|
23
|
+
* ```
|
|
24
|
+
* function doSomething<ContractNameT extends ArtifactContractNames>(
|
|
25
|
+
* contractName: ContractNameT,
|
|
26
|
+
* ...
|
|
27
|
+
* ): DoSomethingReturnType<ContractNameT> {
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
export type ArtifactContractNames = keyof ArtifactMap extends never ? string : NonNeverKeys<ArtifactMap>;
|
|
31
|
+
/**
|
|
32
|
+
* A type that represents a string that should match an artifact contract name,
|
|
33
|
+
* but it doesn't fail if the string is not a contract name. It's mostly used
|
|
34
|
+
* to offer autocompletion.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ArtifactContractNames}
|
|
37
|
+
*/
|
|
38
|
+
export type StringWithArtifactContractNamesAutocompletion = ArtifactContractNames | (string & {});
|
|
13
39
|
/**
|
|
14
40
|
* The ArtifactManager is responsible for reading and writing artifacts from
|
|
15
41
|
* the Hardhat build system.
|
|
@@ -21,13 +47,16 @@ export interface ArtifactManager {
|
|
|
21
47
|
* @param contractNameOrFullyQualifiedName The name of the contract.
|
|
22
48
|
* It can be a contract bare contract name (e.g. "Token") if it's
|
|
23
49
|
* unique in your project, or a fully qualified contract name
|
|
24
|
-
* (e.g. "contract/token.sol:Token") otherwise.
|
|
50
|
+
* (e.g. "contract/token.sol:Token") otherwise. TypeScript's language server
|
|
51
|
+
* autocompletes the names of the contracts that have already been built. If
|
|
52
|
+
* your contract name isn't in the list, you can still use it, and/or run
|
|
53
|
+
* `hardhat build` to get it in the list.
|
|
25
54
|
*
|
|
26
55
|
* @throws Throws an error if a non-unique contract name is used,
|
|
27
56
|
* indicating which fully qualified names can be used instead.
|
|
28
57
|
* @throws Throws an error if the artifact doesn't exist.
|
|
29
58
|
*/
|
|
30
|
-
readArtifact<ContractNameT extends
|
|
59
|
+
readArtifact<ContractNameT extends StringWithArtifactContractNamesAutocompletion>(contractNameOrFullyQualifiedName: ContractNameT): Promise<GetArtifactByName<ContractNameT>>;
|
|
31
60
|
/**
|
|
32
61
|
* Returns the absolute path to the given artifact.
|
|
33
62
|
*
|
|
@@ -208,7 +237,7 @@ export interface LinkReferences {
|
|
|
208
237
|
* is the id of the AST node that represents the variable.
|
|
209
238
|
*/
|
|
210
239
|
export interface ImmutableReferences {
|
|
211
|
-
[
|
|
240
|
+
[immutableId: string]: Array<{
|
|
212
241
|
start: number;
|
|
213
242
|
length: number;
|
|
214
243
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/types/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/types/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;GAIG;AAGH,MAAM,WAAW,WAAW;CAAG;AAE/B;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,aAAa,SAAS,MAAM,IACxD,aAAa,SAAS,MAAM,WAAW,GACnC,WAAW,CAAC,aAAa,CAAC,GAC1B,QAAQ,CAAC;AAEf;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,WAAW,SAAS,KAAK,GAC/D,MAAM,GACN,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15 @@
|
|
|
1
|
+
export * from "./arguments.js";
|
|
2
|
+
export * from "./artifacts.js";
|
|
3
|
+
export * from "./config.js";
|
|
4
|
+
export * from "./global-options.js";
|
|
5
|
+
export * from "./hooks.js";
|
|
6
|
+
export * from "./hre.js";
|
|
7
|
+
export * from "./network.js";
|
|
8
|
+
export * from "./plugins.js";
|
|
9
|
+
export * from "./providers.js";
|
|
10
|
+
export * from "./solidity.js";
|
|
11
|
+
export * from "./tasks.js";
|
|
12
|
+
export * from "./test.js";
|
|
13
|
+
export * from "./user-interruptions.js";
|
|
14
|
+
export * from "./utils.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./arguments.js";
|
|
2
|
+
export * from "./artifacts.js";
|
|
3
|
+
export * from "./config.js";
|
|
4
|
+
export * from "./global-options.js";
|
|
5
|
+
export * from "./hooks.js";
|
|
6
|
+
export * from "./hre.js";
|
|
7
|
+
export * from "./network.js";
|
|
8
|
+
export * from "./plugins.js";
|
|
9
|
+
export * from "./providers.js";
|
|
10
|
+
export * from "./solidity.js";
|
|
11
|
+
export * from "./tasks.js";
|
|
12
|
+
export * from "./test.js";
|
|
13
|
+
export * from "./user-interruptions.js";
|
|
14
|
+
export * from "./utils.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
|
@@ -57,8 +57,8 @@ export interface HardhatPlugin {
|
|
|
57
57
|
* returning an object with a handler for the `extendUserConfig` hook.
|
|
58
58
|
*
|
|
59
59
|
* You can define each factory in two ways:
|
|
60
|
-
*
|
|
61
|
-
*
|
|
60
|
+
* - As an inline function.
|
|
61
|
+
* - As a string with the path to a file that exports the factory as `default`.
|
|
62
62
|
*
|
|
63
63
|
* The first option should only be used for development. You MUST use the second
|
|
64
64
|
* option for production.
|
|
@@ -57,7 +57,7 @@ export type RunCompilationJobOptions = Pick<BuildOptions, "quiet" | "buildProfil
|
|
|
57
57
|
*/
|
|
58
58
|
export interface CompileBuildInfoOptions {
|
|
59
59
|
/**
|
|
60
|
-
* If `true`, this option
|
|
60
|
+
* If `true`, this option forces the build system to recompile the build info,
|
|
61
61
|
* even if its output is cached.
|
|
62
62
|
*/
|
|
63
63
|
force?: boolean;
|
|
@@ -67,33 +67,67 @@ export interface CompileBuildInfoOptions {
|
|
|
67
67
|
quiet?: boolean;
|
|
68
68
|
}
|
|
69
69
|
export declare enum CompilationJobCreationErrorReason {
|
|
70
|
-
|
|
70
|
+
/**
|
|
71
|
+
* The root file's own pragmas are incompatible with all configured compilers.
|
|
72
|
+
*/
|
|
71
73
|
NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT = "NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT",
|
|
74
|
+
/**
|
|
75
|
+
* A dependency's own pragmas are incompatible with all configured compilers.
|
|
76
|
+
*/
|
|
77
|
+
NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY = "NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY",
|
|
78
|
+
/**
|
|
79
|
+
* Root and a transitive import path have contradictory pragmas (invalid range / empty intersection).
|
|
80
|
+
*/
|
|
81
|
+
IMPORT_OF_INCOMPATIBLE_FILE = "IMPORT_OF_INCOMPATIBLE_FILE",
|
|
82
|
+
/**
|
|
83
|
+
* Root and a transitive import path have a valid range but no configured compiler satisfies it.
|
|
84
|
+
*/
|
|
85
|
+
NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH = "NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH",
|
|
86
|
+
/**
|
|
87
|
+
* The override version doesn't satisfy the root file's own pragmas.
|
|
88
|
+
*/
|
|
72
89
|
INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION = "INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION",
|
|
73
|
-
|
|
90
|
+
/**
|
|
91
|
+
* A dependency's pragmas are incompatible with the override version.
|
|
92
|
+
*/
|
|
93
|
+
OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY = "OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY",
|
|
94
|
+
/**
|
|
95
|
+
* Generic fallback — no single compiler works for root + all dependencies.
|
|
96
|
+
*/
|
|
97
|
+
NO_COMPATIBLE_SOLC_VERSION_FOUND = "NO_COMPATIBLE_SOLC_VERSION_FOUND"
|
|
74
98
|
}
|
|
75
99
|
export interface BaseCompilationJobCreationError {
|
|
100
|
+
success: false;
|
|
76
101
|
buildProfile: string;
|
|
77
102
|
rootFilePath: string;
|
|
78
103
|
formattedReason: string;
|
|
79
104
|
}
|
|
80
|
-
export interface
|
|
105
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithRoot extends BaseCompilationJobCreationError {
|
|
81
106
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT;
|
|
82
107
|
}
|
|
83
|
-
export interface
|
|
84
|
-
reason: CompilationJobCreationErrorReason.
|
|
108
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionWithDependency extends BaseCompilationJobCreationError {
|
|
109
|
+
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY;
|
|
110
|
+
incompatibleImportPath: string[];
|
|
111
|
+
}
|
|
112
|
+
export interface CompilationJobCreationErrorImportOfIncompatibleFile extends BaseCompilationJobCreationError {
|
|
113
|
+
reason: CompilationJobCreationErrorReason.IMPORT_OF_INCOMPATIBLE_FILE;
|
|
114
|
+
incompatibleImportPath: string[];
|
|
115
|
+
}
|
|
116
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionForTransitiveImportPath extends BaseCompilationJobCreationError {
|
|
117
|
+
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH;
|
|
118
|
+
incompatibleImportPath: string[];
|
|
85
119
|
}
|
|
86
120
|
export interface CompilationJobCreationErrorIncompatibleOverriddenSolcVersion extends BaseCompilationJobCreationError {
|
|
87
121
|
reason: CompilationJobCreationErrorReason.INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION;
|
|
88
122
|
}
|
|
89
|
-
export interface
|
|
90
|
-
reason: CompilationJobCreationErrorReason.
|
|
123
|
+
export interface CompilationJobCreationErrorOverriddenSolcVersionIncompatibleWithDependency extends BaseCompilationJobCreationError {
|
|
124
|
+
reason: CompilationJobCreationErrorReason.OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY;
|
|
91
125
|
incompatibleImportPath: string[];
|
|
92
126
|
}
|
|
93
|
-
export interface
|
|
127
|
+
export interface CompilationJobCreationErrorNoCompatibleSolcVersionFound extends BaseCompilationJobCreationError {
|
|
94
128
|
reason: CompilationJobCreationErrorReason.NO_COMPATIBLE_SOLC_VERSION_FOUND;
|
|
95
129
|
}
|
|
96
|
-
export type CompilationJobCreationError =
|
|
130
|
+
export type CompilationJobCreationError = CompilationJobCreationErrorNoCompatibleSolcVersionWithRoot | CompilationJobCreationErrorNoCompatibleSolcVersionWithDependency | CompilationJobCreationErrorImportOfIncompatibleFile | CompilationJobCreationErrorNoCompatibleSolcVersionForTransitiveImportPath | CompilationJobCreationErrorIncompatibleOverriddenSolcVersion | CompilationJobCreationErrorOverriddenSolcVersionIncompatibleWithDependency | CompilationJobCreationErrorNoCompatibleSolcVersionFound;
|
|
97
131
|
/**
|
|
98
132
|
* The restult of building a file.
|
|
99
133
|
*/
|
|
@@ -129,6 +163,10 @@ export interface CacheHitInfo {
|
|
|
129
163
|
* The keys in the maps of this interface are Root File Paths, which means either absolute paths or `npm:<package>/<file>` URIs.
|
|
130
164
|
*/
|
|
131
165
|
export interface GetCompilationJobsResult {
|
|
166
|
+
/**
|
|
167
|
+
* A flag to distinguish between a successful and a failed result.
|
|
168
|
+
*/
|
|
169
|
+
success: true;
|
|
132
170
|
/**
|
|
133
171
|
* Map from root file path to compilation job for files that need compilation.
|
|
134
172
|
*/
|
|
@@ -191,8 +229,16 @@ export interface SolidityBuildSystem {
|
|
|
191
229
|
* @param options The options to use when building the files.
|
|
192
230
|
* @returns An `Map` of the files to their build results, or an error if
|
|
193
231
|
* there was a problem when trying to create the necessary compilation jobs.
|
|
232
|
+
* @see `isSuccessfulBuildResult` to check if the build result is successful.
|
|
194
233
|
*/
|
|
195
234
|
build(rootFilePaths: string[], options?: BuildOptions): Promise<CompilationJobCreationError | Map<string, FileBuildResult>>;
|
|
235
|
+
/**
|
|
236
|
+
* Returns true if the given build result is successful.
|
|
237
|
+
*
|
|
238
|
+
* @param buildResult Result of the `build` method.
|
|
239
|
+
* @returns True if the build result is successful.
|
|
240
|
+
*/
|
|
241
|
+
isSuccessfulBuildResult(buildResult: CompilationJobCreationError | Map<string, FileBuildResult>): buildResult is Map<string, FileBuildResult>;
|
|
196
242
|
/**
|
|
197
243
|
* Returns the CompilationJobs that would be used to build the provided files.
|
|
198
244
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-system.d.ts","sourceRoot":"","sources":["../../../../src/types/solidity/build-system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,YAAY,EACZ,uBAAuB,CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,YAAY,EACZ,OAAO,GAAG,cAAc,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAG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C,EAAE,OAAO,GAC3B,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;OAOG;IACH,aAAa,CACX,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,UAAU,CAAA;KAAE,GAC/B,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC;;;;;;;;;;;;OAYG;IACH,gBAAgB,CACd,aAAa,EAAE,MAAM,EAAE,EACvB,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,UAAU,CAAA;KAAE,GAC/B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,gBAAgB,CACd,SAAS,EAAE,iBAAiB,EAC5B,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3D;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
export var CompilationJobCreationErrorReason;
|
|
2
2
|
(function (CompilationJobCreationErrorReason) {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The root file's own pragmas are incompatible with all configured compilers.
|
|
5
|
+
*/
|
|
4
6
|
CompilationJobCreationErrorReason["NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT"] = "NO_COMPATIBLE_SOLC_VERSION_WITH_ROOT";
|
|
5
|
-
|
|
7
|
+
/**
|
|
8
|
+
* A dependency's own pragmas are incompatible with all configured compilers.
|
|
9
|
+
*/
|
|
10
|
+
CompilationJobCreationErrorReason["NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY"] = "NO_COMPATIBLE_SOLC_VERSION_WITH_DEPENDENCY";
|
|
11
|
+
/**
|
|
12
|
+
* Root and a transitive import path have contradictory pragmas (invalid range / empty intersection).
|
|
13
|
+
*/
|
|
6
14
|
CompilationJobCreationErrorReason["IMPORT_OF_INCOMPATIBLE_FILE"] = "IMPORT_OF_INCOMPATIBLE_FILE";
|
|
15
|
+
/**
|
|
16
|
+
* Root and a transitive import path have a valid range but no configured compiler satisfies it.
|
|
17
|
+
*/
|
|
18
|
+
CompilationJobCreationErrorReason["NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH"] = "NO_COMPATIBLE_SOLC_VERSION_FOR_TRANSITIVE_IMPORT_PATH";
|
|
19
|
+
/**
|
|
20
|
+
* The override version doesn't satisfy the root file's own pragmas.
|
|
21
|
+
*/
|
|
22
|
+
CompilationJobCreationErrorReason["INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION"] = "INCOMPATIBLE_OVERRIDDEN_SOLC_VERSION";
|
|
23
|
+
/**
|
|
24
|
+
* A dependency's pragmas are incompatible with the override version.
|
|
25
|
+
*/
|
|
26
|
+
CompilationJobCreationErrorReason["OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY"] = "OVERRIDDEN_SOLC_VERSION_INCOMPATIBLE_WITH_DEPENDENCY";
|
|
27
|
+
/**
|
|
28
|
+
* Generic fallback — no single compiler works for root + all dependencies.
|
|
29
|
+
*/
|
|
30
|
+
CompilationJobCreationErrorReason["NO_COMPATIBLE_SOLC_VERSION_FOUND"] = "NO_COMPATIBLE_SOLC_VERSION_FOUND";
|
|
7
31
|
})(CompilationJobCreationErrorReason || (CompilationJobCreationErrorReason = {}));
|
|
8
32
|
/**
|
|
9
33
|
* The restult of building a file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-system.js","sourceRoot":"","sources":["../../../../src/types/solidity/build-system.ts"],"names":[],"mappings":"AAqFA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"build-system.js","sourceRoot":"","sources":["../../../../src/types/solidity/build-system.ts"],"names":[],"mappings":"AAqFA,MAAM,CAAN,IAAY,iCAmCX;AAnCD,WAAY,iCAAiC;IAC3C;;OAEG;IACH,kHAA6E,CAAA;IAE7E;;OAEG;IACH,8HAAyF,CAAA;IAEzF;;OAEG;IACH,gGAA2D,CAAA;IAE3D;;OAEG;IACH,oJAA+G,CAAA;IAE/G;;OAEG;IACH,kHAA6E,CAAA;IAE7E;;OAEG;IACH,kJAA6G,CAAA;IAE7G;;OAEG;IACH,0GAAqE,CAAA;AACvE,CAAC,EAnCW,iCAAiC,KAAjC,iCAAiC,QAmC5C;AAyDD;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,sDAA+B,CAAA;IAC/B,sDAA+B,CAAA;AACjC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B"}
|
|
@@ -75,6 +75,11 @@ export interface NpmRootFileOfUninstalledPackageError {
|
|
|
75
75
|
type: RootResolutionErrorType.NPM_ROOT_FILE_OF_UNINSTALLED_PACKAGE;
|
|
76
76
|
npmModule: string;
|
|
77
77
|
installationName: string;
|
|
78
|
+
/**
|
|
79
|
+
* A boolean indicating if the Hardhat project has a foundry.toml file in its
|
|
80
|
+
* root.
|
|
81
|
+
*/
|
|
82
|
+
projectHasFoundryToml?: boolean;
|
|
78
83
|
}
|
|
79
84
|
export interface NpmRootResolutionWithRemappingErrors {
|
|
80
85
|
type: RootResolutionErrorType.NPM_ROOT_FILE_RESOLUTION_WITH_REMAPPING_ERRORS;
|
|
@@ -88,6 +93,10 @@ export interface NpmRootFileDoesNotExistWithinPackageError extends ResolvedFileR
|
|
|
88
93
|
export interface NpmRootFileWithIncorrectCasingError extends ResolvedFileReference {
|
|
89
94
|
type: RootResolutionErrorType.NPM_ROOT_FILE_WITH_INCORRECT_CASING;
|
|
90
95
|
npmModule: string;
|
|
96
|
+
/**
|
|
97
|
+
* The correct casing of the file, expressed as the relative fs path from the
|
|
98
|
+
* package's root, using forward slashes, and without a leading "./".
|
|
99
|
+
*/
|
|
91
100
|
correctCasing: string;
|
|
92
101
|
}
|
|
93
102
|
export interface NpmRootFileNonExportedFileError extends ResolvedFileReference {
|
|
@@ -171,6 +180,10 @@ export interface ImportInvalidCasingError extends ResolvedFileReference {
|
|
|
171
180
|
type: ImportResolutionErrorType.IMPORT_INVALID_CASING;
|
|
172
181
|
fromFsPath: string;
|
|
173
182
|
importPath: string;
|
|
183
|
+
/**
|
|
184
|
+
* The correct casing of the file, expressed as the relative fs path from the
|
|
185
|
+
* package's root, using forward slashes, and without a leading "./".
|
|
186
|
+
*/
|
|
174
187
|
correctCasing: string;
|
|
175
188
|
}
|
|
176
189
|
export interface ImportWithInvalidNpmSyntaxError {
|
|
@@ -183,6 +196,11 @@ export interface ImportOfUninstalledPackageError {
|
|
|
183
196
|
fromFsPath: string;
|
|
184
197
|
importPath: string;
|
|
185
198
|
installationName: string;
|
|
199
|
+
/**
|
|
200
|
+
* A boolean indicating weather the import is from a source file whose package
|
|
201
|
+
* has a foundry.toml file in its root.
|
|
202
|
+
*/
|
|
203
|
+
importerPackageHasFoundryToml?: boolean;
|
|
186
204
|
}
|
|
187
205
|
export interface ImportWithRemappingErrorsError {
|
|
188
206
|
type: ImportResolutionErrorType.IMPORT_WITH_REMAPPING_ERRORS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/types/solidity/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,oBAAY,uBAAuB;IACjC;;OAEG;IACH,gCAAgC,qCAAqC;IAErE;;OAEG;IACH,gCAAgC,qCAAqC;IAErE;;;OAGG;IACH,iCAAiC,sCAAsC;IAEvE;;;OAGG;IACH,sCAAsC,2CAA2C;IAEjF;;;;;OAKG;IACH,sCAAsC,2CAA2C;IAEjF;;OAEG;IACH,oCAAoC,yCAAyC;IAE7E;;OAEG;IACH,8CA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G;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAKhC,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAavC,OAAO,EAAE,MAAM,CAAC;IAOhB,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/types/solidity/errors.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,uBA0DX;AA1DD,WAAY,uBAAuB;IACjC;;OAEG;IACH,gGAAqE,CAAA;IAErE;;OAEG;IACH,gGAAqE,CAAA;IAErE;;;OAGG;IACH,kGAAuE,CAAA;IAEvE;;;OAGG;IACH,4GAAiF,CAAA;IAEjF;;;;;OAKG;IACH,4GAAiF,CAAA;IAEjF;;OAEG;IACH,wGAA6E,CAAA;IAE7E;;OAEG;IACH,4HAAiG,CAAA;IAEjG;;;OAGG;IACH,8HAAmG,CAAA;IAEnG;;;OAGG;IACH,sGAA2E,CAAA;IAE3E;;;OAGG;IACH,8FAAmE,CAAA;AACrE,CAAC,EA1DW,uBAAuB,KAAvB,uBAAuB,QA0DlC;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/types/solidity/errors.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,uBA0DX;AA1DD,WAAY,uBAAuB;IACjC;;OAEG;IACH,gGAAqE,CAAA;IAErE;;OAEG;IACH,gGAAqE,CAAA;IAErE;;;OAGG;IACH,kGAAuE,CAAA;IAEvE;;;OAGG;IACH,4GAAiF,CAAA;IAEjF;;;;;OAKG;IACH,4GAAiF,CAAA;IAEjF;;OAEG;IACH,wGAA6E,CAAA;IAE7E;;OAEG;IACH,4HAAiG,CAAA;IAEjG;;;OAGG;IACH,8HAAmG,CAAA;IAEnG;;;OAGG;IACH,sGAA2E,CAAA;IAE3E;;;OAGG;IACH,8FAAmE,CAAA;AACrE,CAAC,EA1DW,uBAAuB,KAAvB,uBAAuB,QA0DlC;AAsFD;;GAEG;AACH,MAAM,CAAN,IAAY,yBAgDX;AAhDD,WAAY,yBAAyB;IACnC;;OAEG;IACH,wGAA2E,CAAA;IAC3E;;OAEG;IACH,gFAAmD,CAAA;IACnD;;;OAGG;IACH,oGAAuE,CAAA;IACvE;;OAEG;IACH,4EAA+C,CAAA;IAC/C;;OAEG;IACH,4EAA+C,CAAA;IAC/C;;OAEG;IACH,8FAAiE,CAAA;IACjE;;OAEG;IACH,4FAA+D,CAAA;IAC/D;;OAEG;IACH,mFAAsD,CAAA;IACtD;;OAEG;IACH,gGAAmE,CAAA;IAEnE;;OAEG;IACH,wHAA2F,CAAA;IAE3F;;OAEG;IACH,wFAA2D,CAAA;AAC7D,CAAC,EAhDW,yBAAyB,KAAzB,yBAAyB,QAgDpC;AAgGD;;;GAGG;AACH,MAAM,CAAN,IAAY,sBAUX;AAVD,WAAY,sBAAsB;IAChC;;OAEG;IACH,yFAA+D,CAAA;IAE/D;;OAEG;IACH,+FAAqE,CAAA;AACvE,CAAC,EAVW,sBAAsB,KAAtB,sBAAsB,QAUjC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface ResolvedNpmPackage {
|
|
5
5
|
/**
|
|
6
|
-
* The name of the package, potentially
|
|
6
|
+
* The name of the package, potentially scoped.
|
|
7
7
|
*/
|
|
8
8
|
name: string;
|
|
9
9
|
/**
|
|
@@ -87,7 +87,7 @@ export interface NpmPackageResolvedFile {
|
|
|
87
87
|
package: ResolvedNpmPackage;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* The
|
|
90
|
+
* The result of resolving a file or import using a Resolver.
|
|
91
91
|
*/
|
|
92
92
|
export type ResolvedFile = ProjectResolvedFile | NpmPackageResolvedFile;
|
|
93
93
|
/**
|