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
package/src/types/tasks.ts
CHANGED
|
@@ -5,6 +5,8 @@ import type {
|
|
|
5
5
|
PositionalArgumentDefinition,
|
|
6
6
|
} from "./arguments.js";
|
|
7
7
|
import type { HardhatRuntimeEnvironment } from "./hre.js";
|
|
8
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars -- used in JSDoc {@link} */
|
|
9
|
+
import type { Result } from "./utils.js";
|
|
8
10
|
|
|
9
11
|
// We add the TaskManager to the HRE with a module augmentation to avoid
|
|
10
12
|
// introducing a circular dependency that would look like this:
|
|
@@ -75,6 +77,17 @@ export enum TaskDefinitionType {
|
|
|
75
77
|
TASK_OVERRIDE = "TASK_OVERRIDE",
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
export type TaskAction =
|
|
81
|
+
| { action: LazyActionObject<NewTaskActionFunction>; inlineAction?: never }
|
|
82
|
+
| { inlineAction: NewTaskActionFunction; action?: never };
|
|
83
|
+
|
|
84
|
+
export type TaskOverrideAction =
|
|
85
|
+
| {
|
|
86
|
+
action: LazyActionObject<TaskOverrideActionFunction>;
|
|
87
|
+
inlineAction?: never;
|
|
88
|
+
}
|
|
89
|
+
| { inlineAction: TaskOverrideActionFunction; action?: never };
|
|
90
|
+
|
|
78
91
|
/**
|
|
79
92
|
* Empty task definition. It is meant to be used as a placeholder task that only
|
|
80
93
|
* prints information about its subtasks.
|
|
@@ -90,37 +103,44 @@ export interface EmptyTaskDefinition {
|
|
|
90
103
|
}
|
|
91
104
|
|
|
92
105
|
/**
|
|
93
|
-
* The definition of a new task.
|
|
106
|
+
* The base definition of a new task.
|
|
94
107
|
*/
|
|
95
|
-
export interface
|
|
108
|
+
export interface BaseTaskDefinition {
|
|
96
109
|
type: TaskDefinitionType.NEW_TASK;
|
|
97
110
|
|
|
98
111
|
id: string[];
|
|
99
112
|
|
|
100
113
|
description: string;
|
|
101
114
|
|
|
102
|
-
action: LazyActionObject<NewTaskActionFunction>;
|
|
103
|
-
|
|
104
115
|
options: Record<string, OptionDefinition>;
|
|
105
116
|
|
|
106
117
|
positionalArguments: PositionalArgumentDefinition[];
|
|
107
118
|
}
|
|
108
119
|
|
|
109
120
|
/**
|
|
110
|
-
*
|
|
121
|
+
* The definition of a new task.
|
|
122
|
+
*/
|
|
123
|
+
export type NewTaskDefinition = BaseTaskDefinition & TaskAction;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The base definition of an override of an existing task.
|
|
111
127
|
*/
|
|
112
|
-
export interface
|
|
128
|
+
export interface BaseTaskOverrideDefinition {
|
|
113
129
|
type: TaskDefinitionType.TASK_OVERRIDE;
|
|
114
130
|
|
|
115
131
|
id: string[];
|
|
116
132
|
|
|
117
133
|
description?: string;
|
|
118
134
|
|
|
119
|
-
action: LazyActionObject<TaskOverrideActionFunction>;
|
|
120
|
-
|
|
121
135
|
options: Record<string, OptionDefinition>;
|
|
122
136
|
}
|
|
123
137
|
|
|
138
|
+
/**
|
|
139
|
+
* An override of an existing task.
|
|
140
|
+
*/
|
|
141
|
+
export type TaskOverrideDefinition = BaseTaskOverrideDefinition &
|
|
142
|
+
TaskOverrideAction;
|
|
143
|
+
|
|
124
144
|
/**
|
|
125
145
|
* The definition of a task, as used in the plugins and user config. They are
|
|
126
146
|
* declarative descriptions of the task, which are later processed to create the
|
|
@@ -160,9 +180,16 @@ export interface EmptyTaskDefinitionBuilder {
|
|
|
160
180
|
|
|
161
181
|
/**
|
|
162
182
|
* A builder for creating NewTaskDefinitions.
|
|
183
|
+
*
|
|
184
|
+
* @template TaskArgumentsT The arguments of the task.
|
|
185
|
+
* @template ActionTypeT Tracks if the action is "LAZY_ACTION" (Plugin Safe) or "INLINE_ACTION".
|
|
163
186
|
*/
|
|
164
187
|
export interface NewTaskDefinitionBuilder<
|
|
165
188
|
TaskArgumentsT extends TaskArguments = TaskArguments,
|
|
189
|
+
ActionTypeT extends
|
|
190
|
+
| "LAZY_ACTION"
|
|
191
|
+
| "INLINE_ACTION"
|
|
192
|
+
| "MISSING_ACTION" = "MISSING_ACTION",
|
|
166
193
|
> {
|
|
167
194
|
/**
|
|
168
195
|
* Sets the description of the task.
|
|
@@ -172,15 +199,46 @@ export interface NewTaskDefinitionBuilder<
|
|
|
172
199
|
/**
|
|
173
200
|
* Sets the action of the task.
|
|
174
201
|
*
|
|
175
|
-
* It
|
|
176
|
-
*
|
|
202
|
+
* It must be provided as a lazy import function that returns a module with
|
|
203
|
+
* a default export, like `() => import("./my-action.js")`.
|
|
204
|
+
*
|
|
205
|
+
* Note that plugins cannot use inline actions (see {@link setInlineAction}).
|
|
206
|
+
* They must use this method with a lazy import.
|
|
177
207
|
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
208
|
+
* @remarks
|
|
209
|
+
* This method can only be called once per task definition. Calling it multiple
|
|
210
|
+
* times will result in a runtime error.
|
|
211
|
+
*
|
|
212
|
+
* This method cannot be used together with {@link setInlineAction} on the same
|
|
213
|
+
* task. Use one or the other.
|
|
214
|
+
*
|
|
215
|
+
* Task actions may return a {@link Result} to signal success or failure.
|
|
216
|
+
* If a task returns a failed `Result`, the CLI will set the process exit code
|
|
217
|
+
* to 1.
|
|
180
218
|
*/
|
|
181
219
|
setAction(
|
|
182
220
|
action: LazyActionObject<NewTaskActionFunction<TaskArgumentsT>>,
|
|
183
|
-
):
|
|
221
|
+
): NewTaskDefinitionBuilder<TaskArgumentsT, "LAZY_ACTION">;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Sets the inline action of the task.
|
|
225
|
+
*
|
|
226
|
+
* It must be provided as a function.
|
|
227
|
+
*
|
|
228
|
+
* @remarks
|
|
229
|
+
* This method can only be called once per task definition. Calling it multiple
|
|
230
|
+
* times will result in a runtime error.
|
|
231
|
+
*
|
|
232
|
+
* This method cannot be used together with {@link setAction} on the same
|
|
233
|
+
* task. Use one or the other.
|
|
234
|
+
*
|
|
235
|
+
* Task actions may return a {@link Result} to signal success or failure.
|
|
236
|
+
* If a task returns a failed `Result`, the CLI will set the process exit code
|
|
237
|
+
* to 1.
|
|
238
|
+
*/
|
|
239
|
+
setInlineAction(
|
|
240
|
+
inlineAction: NewTaskActionFunction<TaskArgumentsT>,
|
|
241
|
+
): NewTaskDefinitionBuilder<TaskArgumentsT, "INLINE_ACTION">;
|
|
184
242
|
|
|
185
243
|
/**
|
|
186
244
|
* Adds an option to the task.
|
|
@@ -202,7 +260,8 @@ export interface NewTaskDefinitionBuilder<
|
|
|
202
260
|
defaultValue: ArgumentTypeToValueType<TypeT>;
|
|
203
261
|
hidden?: boolean;
|
|
204
262
|
}): NewTaskDefinitionBuilder<
|
|
205
|
-
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT
|
|
263
|
+
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT>,
|
|
264
|
+
ActionTypeT
|
|
206
265
|
>;
|
|
207
266
|
|
|
208
267
|
/**
|
|
@@ -214,7 +273,8 @@ export interface NewTaskDefinitionBuilder<
|
|
|
214
273
|
description?: string;
|
|
215
274
|
hidden?: boolean;
|
|
216
275
|
}): NewTaskDefinitionBuilder<
|
|
217
|
-
ExtendTaskArguments<NameT, ArgumentType.FLAG, TaskArgumentsT
|
|
276
|
+
ExtendTaskArguments<NameT, ArgumentType.FLAG, TaskArgumentsT>,
|
|
277
|
+
ActionTypeT
|
|
218
278
|
>;
|
|
219
279
|
|
|
220
280
|
/**
|
|
@@ -226,7 +286,8 @@ export interface NewTaskDefinitionBuilder<
|
|
|
226
286
|
description?: string;
|
|
227
287
|
defaultValue?: number;
|
|
228
288
|
}): NewTaskDefinitionBuilder<
|
|
229
|
-
ExtendTaskArguments<NameT, ArgumentType.LEVEL, TaskArgumentsT
|
|
289
|
+
ExtendTaskArguments<NameT, ArgumentType.LEVEL, TaskArgumentsT>,
|
|
290
|
+
ActionTypeT
|
|
230
291
|
>;
|
|
231
292
|
|
|
232
293
|
/**
|
|
@@ -254,7 +315,8 @@ export interface NewTaskDefinitionBuilder<
|
|
|
254
315
|
type?: TypeT;
|
|
255
316
|
defaultValue?: ArgumentTypeToValueType<TypeT>;
|
|
256
317
|
}): NewTaskDefinitionBuilder<
|
|
257
|
-
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT
|
|
318
|
+
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT>,
|
|
319
|
+
ActionTypeT
|
|
258
320
|
>;
|
|
259
321
|
|
|
260
322
|
/**
|
|
@@ -280,20 +342,35 @@ export interface NewTaskDefinitionBuilder<
|
|
|
280
342
|
type?: TypeT;
|
|
281
343
|
defaultValue?: Array<ArgumentTypeToValueType<TypeT>>;
|
|
282
344
|
}): NewTaskDefinitionBuilder<
|
|
283
|
-
ExtendTaskArguments<NameT, TypeT[], TaskArgumentsT
|
|
345
|
+
ExtendTaskArguments<NameT, TypeT[], TaskArgumentsT>,
|
|
346
|
+
ActionTypeT
|
|
284
347
|
>;
|
|
285
348
|
|
|
286
349
|
/**
|
|
287
350
|
* Builds the NewTaskDefinition.
|
|
288
351
|
*/
|
|
289
|
-
build():
|
|
352
|
+
build(): ActionTypeT extends "LAZY_ACTION"
|
|
353
|
+
? Extract<
|
|
354
|
+
NewTaskDefinition,
|
|
355
|
+
{ action: LazyActionObject<NewTaskActionFunction> }
|
|
356
|
+
>
|
|
357
|
+
: ActionTypeT extends "INLINE_ACTION"
|
|
358
|
+
? Extract<NewTaskDefinition, { inlineAction: NewTaskActionFunction }>
|
|
359
|
+
: never;
|
|
290
360
|
}
|
|
291
361
|
|
|
292
362
|
/**
|
|
293
|
-
* A builder for overriding existing tasks
|
|
363
|
+
* A builder for overriding existing tasks
|
|
364
|
+
*
|
|
365
|
+
* @template TaskArgumentsT The arguments of the task.
|
|
366
|
+
* @template ActionTypeT Tracks if the action is "LAZY_ACTION" (Plugin Safe) or "INLINE_ACTION".
|
|
294
367
|
*/
|
|
295
368
|
export interface TaskOverrideDefinitionBuilder<
|
|
296
369
|
TaskArgumentsT extends TaskArguments = TaskArguments,
|
|
370
|
+
ActionTypeT extends
|
|
371
|
+
| "LAZY_ACTION"
|
|
372
|
+
| "INLINE_ACTION"
|
|
373
|
+
| "MISSING_ACTION" = "MISSING_ACTION",
|
|
297
374
|
> {
|
|
298
375
|
/**
|
|
299
376
|
* Sets a new description for the task.
|
|
@@ -307,7 +384,16 @@ export interface TaskOverrideDefinitionBuilder<
|
|
|
307
384
|
*/
|
|
308
385
|
setAction(
|
|
309
386
|
action: LazyActionObject<TaskOverrideActionFunction<TaskArgumentsT>>,
|
|
310
|
-
):
|
|
387
|
+
): TaskOverrideDefinitionBuilder<TaskArgumentsT, "LAZY_ACTION">;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Sets a new inline action for the task.
|
|
391
|
+
*
|
|
392
|
+
* @see NewTaskDefinitionBuilder.setInlineAction
|
|
393
|
+
*/
|
|
394
|
+
setInlineAction(
|
|
395
|
+
inlineAction: TaskOverrideActionFunction<TaskArgumentsT>,
|
|
396
|
+
): TaskOverrideDefinitionBuilder<TaskArgumentsT, "INLINE_ACTION">;
|
|
311
397
|
|
|
312
398
|
/**
|
|
313
399
|
* Adds a new option to the task.
|
|
@@ -325,7 +411,8 @@ export interface TaskOverrideDefinitionBuilder<
|
|
|
325
411
|
defaultValue: ArgumentTypeToValueType<TypeT>;
|
|
326
412
|
hidden?: boolean;
|
|
327
413
|
}): TaskOverrideDefinitionBuilder<
|
|
328
|
-
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT
|
|
414
|
+
ExtendTaskArguments<NameT, TypeT, TaskArgumentsT>,
|
|
415
|
+
ActionTypeT
|
|
329
416
|
>;
|
|
330
417
|
|
|
331
418
|
/**
|
|
@@ -337,7 +424,8 @@ export interface TaskOverrideDefinitionBuilder<
|
|
|
337
424
|
description?: string;
|
|
338
425
|
hidden?: boolean;
|
|
339
426
|
}): TaskOverrideDefinitionBuilder<
|
|
340
|
-
ExtendTaskArguments<NameT, ArgumentType.FLAG, TaskArgumentsT
|
|
427
|
+
ExtendTaskArguments<NameT, ArgumentType.FLAG, TaskArgumentsT>,
|
|
428
|
+
ActionTypeT
|
|
341
429
|
>;
|
|
342
430
|
|
|
343
431
|
/**
|
|
@@ -349,36 +437,55 @@ export interface TaskOverrideDefinitionBuilder<
|
|
|
349
437
|
description?: string;
|
|
350
438
|
defaultValue?: number;
|
|
351
439
|
}): TaskOverrideDefinitionBuilder<
|
|
352
|
-
ExtendTaskArguments<NameT, ArgumentType.LEVEL, TaskArgumentsT
|
|
440
|
+
ExtendTaskArguments<NameT, ArgumentType.LEVEL, TaskArgumentsT>,
|
|
441
|
+
ActionTypeT
|
|
353
442
|
>;
|
|
354
443
|
|
|
355
444
|
/**
|
|
356
445
|
* Builds the TaskOverrideDefinition.
|
|
357
446
|
*/
|
|
358
|
-
build():
|
|
447
|
+
build(): ActionTypeT extends "LAZY_ACTION"
|
|
448
|
+
? Extract<
|
|
449
|
+
TaskOverrideDefinition,
|
|
450
|
+
{ action: LazyActionObject<TaskOverrideActionFunction> }
|
|
451
|
+
>
|
|
452
|
+
: ActionTypeT extends "INLINE_ACTION"
|
|
453
|
+
? Extract<
|
|
454
|
+
TaskOverrideDefinition,
|
|
455
|
+
{ inlineAction: TaskOverrideActionFunction }
|
|
456
|
+
>
|
|
457
|
+
: never;
|
|
359
458
|
}
|
|
360
459
|
|
|
361
460
|
/**
|
|
362
461
|
* The actions associated to the task, in order.
|
|
363
462
|
*
|
|
364
463
|
* Each of them has the pluginId of the plugin that defined it, if any, and the
|
|
365
|
-
* action itself.
|
|
464
|
+
* action itself. The action is stored either in `action` or `inlineAction`.
|
|
465
|
+
* Note that `inlineAction` is reserved for user tasks and is not allowed for plugins.
|
|
366
466
|
*
|
|
367
|
-
* Note that the first action is a `NewTaskActionFunction
|
|
368
|
-
* `undefined
|
|
467
|
+
* Note that the first action is a `NewTaskActionFunction` or undefined.
|
|
468
|
+
* `undefined` is only used for empty tasks.
|
|
369
469
|
*
|
|
370
|
-
* The rest of the actions always have a `TaskOverrideActionFunction
|
|
371
|
-
* `string`.
|
|
470
|
+
* The rest of the actions always have a `TaskOverrideActionFunction`.
|
|
372
471
|
*/
|
|
373
472
|
export type TaskActions = [
|
|
473
|
+
// The Task Definition
|
|
374
474
|
{
|
|
375
475
|
pluginId?: string;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
476
|
+
} & (
|
|
477
|
+
| TaskAction
|
|
478
|
+
| {
|
|
479
|
+
action?: undefined;
|
|
480
|
+
inlineAction?: undefined;
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
// The Task Overrides
|
|
484
|
+
...Array<
|
|
485
|
+
{
|
|
486
|
+
pluginId?: string;
|
|
487
|
+
} & TaskOverrideAction
|
|
488
|
+
>,
|
|
382
489
|
];
|
|
383
490
|
|
|
384
491
|
/**
|
package/src/types/test.ts
CHANGED
|
@@ -5,3 +5,15 @@ export interface HardhatTestUserConfig {}
|
|
|
5
5
|
/* eslint-disable-next-line @typescript-eslint/no-empty-interface -- Empty
|
|
6
6
|
interface allow plugins to extend the Test configuration for Hardhat. */
|
|
7
7
|
export interface HardhatTestConfig {}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Summary of a test run, containing counts of test outcomes and optional
|
|
11
|
+
* failure output.
|
|
12
|
+
*/
|
|
13
|
+
export interface TestSummary {
|
|
14
|
+
failed: number;
|
|
15
|
+
passed: number;
|
|
16
|
+
skipped: number;
|
|
17
|
+
todo: number;
|
|
18
|
+
failureOutput?: string;
|
|
19
|
+
}
|
package/src/types/utils.ts
CHANGED
|
@@ -50,3 +50,17 @@ export type Return<T> = T extends (...args: any[]) => infer Ret ? Ret : never;
|
|
|
50
50
|
export type RequireField<T, K extends keyof T> = T & {
|
|
51
51
|
[P in K]-?: T[P];
|
|
52
52
|
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A result that can either have a value or an error.
|
|
56
|
+
*/
|
|
57
|
+
export type Result<ValueT, ErrorT> =
|
|
58
|
+
| { readonly success: true; readonly value: ValueT }
|
|
59
|
+
| { readonly success: false; readonly error: ErrorT };
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns the keys of T tht don't map to never.
|
|
63
|
+
*/
|
|
64
|
+
export type NonNeverKeys<T> = {
|
|
65
|
+
[K in keyof T]: T[K] extends never ? never : K;
|
|
66
|
+
}[keyof T];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Result } from "../types/utils.js";
|
|
2
|
+
|
|
3
|
+
import { isObject } from "@nomicfoundation/hardhat-utils/lang";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Creates a successful Result with the given value.
|
|
7
|
+
*
|
|
8
|
+
* @param value The value to include in the result.
|
|
9
|
+
* @returns A Result with success: true and the given value.
|
|
10
|
+
*/
|
|
11
|
+
export function successfulResult<ValueT = undefined>(
|
|
12
|
+
...args: ValueT extends undefined | void ? [] : [value: ValueT]
|
|
13
|
+
): { success: true; value: ValueT } {
|
|
14
|
+
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
15
|
+
-- Cast needed because TS loses the conditional rest parameter context */
|
|
16
|
+
return { success: true, value: args[0] as ValueT };
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Creates a failed Result with the given error.
|
|
21
|
+
*
|
|
22
|
+
* @param error The error to include in the result.
|
|
23
|
+
* @returns A Result with success: false and the given error.
|
|
24
|
+
*/
|
|
25
|
+
export function errorResult<ErrorT = undefined>(
|
|
26
|
+
...args: ErrorT extends undefined | void ? [] : [error: ErrorT]
|
|
27
|
+
): { success: false; error: ErrorT } {
|
|
28
|
+
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
29
|
+
-- Cast needed because TS loses the conditional rest parameter context */
|
|
30
|
+
return { success: false, error: args[0] as ErrorT };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A type guard that checks if a value is a Result.
|
|
35
|
+
*
|
|
36
|
+
* Optionally validates the value and error fields using type guard functions.
|
|
37
|
+
*
|
|
38
|
+
* @param value The value to check.
|
|
39
|
+
* @param isValue Optional type guard for the value field.
|
|
40
|
+
* @param isError Optional type guard for the error field.
|
|
41
|
+
* @returns true if the value is a Result.
|
|
42
|
+
*/
|
|
43
|
+
export function isResult<ValueT = unknown, ErrorT = unknown>(
|
|
44
|
+
value: unknown,
|
|
45
|
+
isValue?: (v: unknown) => v is ValueT,
|
|
46
|
+
isError?: (e: unknown) => e is ErrorT,
|
|
47
|
+
): value is Result<ValueT, ErrorT> {
|
|
48
|
+
if (!isObject(value) || typeof value.success !== "boolean") {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (value.success === true) {
|
|
53
|
+
return "value" in value && (isValue === undefined || isValue(value.value));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return "error" in value && (isError === undefined || isError(value.error));
|
|
57
|
+
}
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Node Test Runner and Viem",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.1.
|
|
9
|
-
"@nomicfoundation/hardhat-toolbox-viem": "workspace:^5.0.
|
|
10
|
-
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.
|
|
8
|
+
"hardhat": "workspace:^3.1.11",
|
|
9
|
+
"@nomicfoundation/hardhat-toolbox-viem": "workspace:^5.0.3",
|
|
10
|
+
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.9",
|
|
11
11
|
"@types/node": "^22.8.5",
|
|
12
12
|
"forge-std": "foundry-rs/forge-std#v1.9.4",
|
|
13
13
|
"typescript": "~5.8.0",
|
|
14
14
|
"viem": "^2.43.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.
|
|
18
|
-
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.
|
|
19
|
-
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.
|
|
20
|
-
"@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.
|
|
21
|
-
"@nomicfoundation/hardhat-viem": "workspace:^3.0.
|
|
22
|
-
"@nomicfoundation/hardhat-viem-assertions": "workspace:^3.0.
|
|
23
|
-
"@nomicfoundation/hardhat-verify": "workspace:^3.0.
|
|
24
|
-
"@nomicfoundation/ignition-core": "workspace:^3.0.
|
|
17
|
+
"@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.9",
|
|
18
|
+
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.5",
|
|
19
|
+
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.4",
|
|
20
|
+
"@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.10",
|
|
21
|
+
"@nomicfoundation/hardhat-viem": "workspace:^3.0.4",
|
|
22
|
+
"@nomicfoundation/hardhat-viem-assertions": "workspace:^3.0.7",
|
|
23
|
+
"@nomicfoundation/hardhat-verify": "workspace:^3.0.12",
|
|
24
|
+
"@nomicfoundation/ignition-core": "workspace:^3.0.9"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -5,30 +5,30 @@
|
|
|
5
5
|
"description": "A TypeScript Hardhat project using Mocha and Ethers.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"hardhat": "workspace:^3.1.
|
|
9
|
-
"@nomicfoundation/hardhat-toolbox-mocha-ethers": "workspace:^3.0.
|
|
10
|
-
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.
|
|
11
|
-
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.
|
|
12
|
-
"@types/chai": "^
|
|
8
|
+
"hardhat": "workspace:^3.1.11",
|
|
9
|
+
"@nomicfoundation/hardhat-toolbox-mocha-ethers": "workspace:^3.0.3",
|
|
10
|
+
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.6",
|
|
11
|
+
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.9",
|
|
12
|
+
"@types/chai": "^5.2.3",
|
|
13
13
|
"@types/chai-as-promised": "^8.0.1",
|
|
14
14
|
"@types/mocha": ">=10.0.10",
|
|
15
15
|
"@types/node": "^22.8.5",
|
|
16
|
-
"chai": "^
|
|
16
|
+
"chai": "^6.2.2",
|
|
17
17
|
"ethers": "^6.14.0",
|
|
18
18
|
"forge-std": "foundry-rs/forge-std#v1.9.4",
|
|
19
19
|
"mocha": "^11.0.0",
|
|
20
20
|
"typescript": "~5.8.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.
|
|
24
|
-
"@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.
|
|
25
|
-
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.
|
|
26
|
-
"@nomicfoundation/hardhat-ignition-ethers": "workspace:^3.0.
|
|
27
|
-
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.
|
|
28
|
-
"@nomicfoundation/hardhat-mocha": "workspace:^3.0.
|
|
29
|
-
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.
|
|
30
|
-
"@nomicfoundation/hardhat-typechain": "workspace:^3.0.
|
|
31
|
-
"@nomicfoundation/hardhat-verify": "workspace:^3.0.
|
|
32
|
-
"@nomicfoundation/ignition-core": "workspace:^3.0.
|
|
23
|
+
"@nomicfoundation/hardhat-ethers": "workspace:^4.0.6",
|
|
24
|
+
"@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.3",
|
|
25
|
+
"@nomicfoundation/hardhat-ignition": "workspace:^3.0.9",
|
|
26
|
+
"@nomicfoundation/hardhat-ignition-ethers": "workspace:^3.0.9",
|
|
27
|
+
"@nomicfoundation/hardhat-keystore": "workspace:^3.0.5",
|
|
28
|
+
"@nomicfoundation/hardhat-mocha": "workspace:^3.0.12",
|
|
29
|
+
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.4",
|
|
30
|
+
"@nomicfoundation/hardhat-typechain": "workspace:^3.0.4",
|
|
31
|
+
"@nomicfoundation/hardhat-verify": "workspace:^3.0.12",
|
|
32
|
+
"@nomicfoundation/ignition-core": "workspace:^3.0.9"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface RpcStructLog {
|
|
2
|
-
depth: number;
|
|
3
|
-
gas: number;
|
|
4
|
-
gasCost: number;
|
|
5
|
-
op: string;
|
|
6
|
-
pc: number;
|
|
7
|
-
memory?: string[];
|
|
8
|
-
stack?: string[];
|
|
9
|
-
storage?: Record<string, string>;
|
|
10
|
-
memSize?: number;
|
|
11
|
-
error?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface RpcDebugTraceOutput {
|
|
14
|
-
failed: boolean;
|
|
15
|
-
gas: number;
|
|
16
|
-
returnValue: string;
|
|
17
|
-
structLogs: RpcStructLog[];
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=output.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/builtin-plugins/network-manager/edr/types/output.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,YAAY,EAAE,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../../../../../src/internal/builtin-plugins/network-manager/edr/types/output.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface RpcStructLog {
|
|
2
|
-
depth: number;
|
|
3
|
-
gas: number;
|
|
4
|
-
gasCost: number;
|
|
5
|
-
op: string;
|
|
6
|
-
pc: number;
|
|
7
|
-
memory?: string[];
|
|
8
|
-
stack?: string[];
|
|
9
|
-
storage?: Record<string, string>;
|
|
10
|
-
memSize?: number;
|
|
11
|
-
error?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface RpcDebugTraceOutput {
|
|
15
|
-
failed: boolean;
|
|
16
|
-
gas: number;
|
|
17
|
-
returnValue: string;
|
|
18
|
-
structLogs: RpcStructLog[];
|
|
19
|
-
}
|