Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NomicFoundation/hardhat
/ functions
Functions
4,382 in github.com/NomicFoundation/hardhat
⨍
Functions
4,382
◇
Types & classes
1,383
↓ 4 callers
Function
getUnusedColumnsWidth
( columnWidths: number[], previousCellCount: number, )
packages/hardhat-utils/src/internal/format.ts:75
↓ 4 callers
Function
getUserFqn
(inputFqn: string)
packages/hardhat/src/internal/builtin-plugins/gas-analytics/helpers/utils.ts:8
↓ 4 callers
Function
git
(args: string[])
scripts/verdaccio/helpers/shell.ts:43
↓ 4 callers
Function
handleError
(e: Error, requestUrl: string)
packages/hardhat-utils/src/internal/request.ts:348
↓ 4 callers
Function
hasArm64MirrorBuild
(version: string)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/solc-info.ts:37
↓ 4 callers
Function
hasOfficialArm64Build
(version: string)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/solc-info.ts:22
↓ 4 callers
Method
hexEqual
* Assert that two hexadecimal strings represent the same numerical value. * @param other The other hexadecimal string to compare. * @exa
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:93
↓ 4 callers
Method
impersonateAccount
* Allows Hardhat Network to sign transactions as the given address. * * @param address The address to impersonate. * @returns A promise that
packages/hardhat-network-helpers/src/types.ts:61
↓ 4 callers
Method
increase
* Mines a new block whose timestamp is `amountInSeconds` after the latest block's timestamp. * * @param amountInSeconds Number of seconds to inc
packages/hardhat-network-helpers/src/types.ts:260
↓ 4 callers
Method
init
(retryAttempts: number = 0)
packages/hardhat-ledger/src/internal/handler.ts:261
↓ 4 callers
Function
initializeTestDispatcher
(options: InitializeOptions = {})
packages/hardhat-verify/test/utils.ts:72
↓ 4 callers
Function
isAnvilNetwork
( provider: EthereumProvider, )
packages/hardhat-viem/src/internal/chains.ts:128
↓ 4 callers
Function
isArgumentRequired
( type: ArgumentType, defaultValue: ArgumentValue | ArgumentValue[] | undefined, )
packages/hardhat/src/internal/core/tasks/utils.ts:19
↓ 4 callers
Function
isEncodeFunctionCallFuture
( potential: unknown, )
packages/ignition-core/src/type-guards.ts:174
↓ 4 callers
Function
isHardhatNetwork
( provider: EthereumProvider, )
packages/hardhat-viem/src/internal/chains.ts:102
↓ 4 callers
Function
isNpmParsedRootPath
( parsedRootPath: ParsedRootPath, )
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/root-paths-utils.ts:58
↓ 4 callers
Function
isResult
( value: unknown, isValue?: (v: unknown) => v is ValueT, isError?: (e: unknown) => e is ErrorT, )
packages/hardhat/src/utils/result.ts:43
↓ 4 callers
Function
isTelemetryAllowed
( telemetryConfigFilePath?: string, )
packages/hardhat/src/internal/cli/telemetry/telemetry-permissions.ts:26
↓ 4 callers
Function
isWord
(token: string)
packages/hardhat-utils/src/internal/abi-signature.ts:426
↓ 4 callers
Function
loadScenario
( e2eCloneDirectory: string, scenarioFilePath: string, )
scripts/end-to-end/helpers/directory.ts:10
↓ 4 callers
Function
logError
(msg: string)
scripts/benchmark/helpers/log.ts:25
↓ 4 callers
Function
lowerThanOrEqual
( compared: SemverVersion, comparator: SemverVersion, )
packages/hardhat-utils/src/fast-semver.ts:70
↓ 4 callers
Method
merge
* A method to merge two dependency graphs. The resulting graph will have all * the files of both graphs, with all the dependencies of the files in
packages/hardhat/src/types/solidity/dependency-graph.ts:65
↓ 4 callers
Function
mineSuccessfulTransaction
( provider: EthereumProvider, ethers: HardhatEthers, )
packages/hardhat-ethers-chai-matchers/test/helpers/helpers.ts:88
↓ 4 callers
Function
mkdtemp
(prefix: string)
packages/hardhat-utils/src/fs.ts:730
↓ 4 callers
Function
nestingToIndentationLength
(nesting: number)
packages/hardhat-node-test-reporter/src/formatting.ts:155
↓ 4 callers
Function
numberToJsonRpcQuantity
* Converts a number to a JSON-RPC quantity string. * * @param value The number to convert. * @returns The JSON-RPC quantity string.
packages/ignition-core/src/internal/execution/jsonrpc-client.ts:827
↓ 4 callers
Function
panicErrorCodeToMessage
(errorCode: bigint)
packages/hardhat-utils/src/panic-errors.ts:17
↓ 4 callers
Function
parseArgumentValue
( value: string, type: ArgumentType, name: string, )
packages/hardhat/src/internal/core/arguments.ts:167
↓ 4 callers
Function
parseFrontMatter
(markdown: string)
scripts/lib/changesets.ts:39
↓ 4 callers
Function
parseRootPath
( rootPath: string, )
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/root-paths-utils.ts:29
↓ 4 callers
Method
populateCall
( tx: TransactionRequest, )
packages/hardhat-ethers/src/internal/signers/signers.ts:138
↓ 4 callers
Function
postFormRequest
( url: string, body: unknown, requestOptions: RequestOptions = {}, dispatcherOrDispatcherOptions?: Und
packages/hardhat-utils/src/request.ts:184
↓ 4 callers
Function
postJsonRequest
( url: string, body: unknown, requestOptions: RequestOptions = {}, dispatcherOrDispatcherOptions?: Und
packages/hardhat-utils/src/request.ts:137
↓ 4 callers
Function
printErrorMessages
( error: Error, shouldShowStackTraces: boolean = false, print: (message: string | Error) => void = conso
packages/hardhat/src/internal/cli/error-handling/error-handler.ts:81
↓ 4 callers
Function
readDeploymentParameters
( filepath: string, )
packages/hardhat-ignition/src/helpers/read-deployment-parameters.ts:9
↓ 4 callers
Function
readPackageInfo
(packageDir: string)
scripts/verdaccio/publish.ts:164
↓ 4 callers
Function
reconcileLibraries
( future: | NamedArtifactContractDeploymentFuture<string> | ContractDeploymentFuture | NamedArti
packages/ignition-core/src/internal/reconciliation/helpers/reconcile-libraries.ts:16
↓ 4 callers
Function
reconcileValue
( future: | NamedArtifactContractDeploymentFuture<string> | ContractDeploymentFuture | ContractC
packages/ignition-core/src/internal/reconciliation/helpers/reconcile-value.ts:21
↓ 4 callers
Function
relativeTemplateToWorkspacePath
(file: string)
packages/hardhat/src/internal/cli/init/init.ts:484
↓ 4 callers
Method
removeAllListeners
( ethersEvent?: ProviderEvent | undefined, )
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:712
↓ 4 callers
Function
renderRuleSegment
( columnWidths: number[], char: string, joiner: string, )
packages/hardhat-utils/src/internal/format.ts:87
↓ 4 callers
Function
reportPathsIn
(dir: string, stem: string)
scripts/benchmark/helpers/runner.ts:54
↓ 4 callers
Function
resetGlobalHardhatRuntimeEnvironment
()
packages/hardhat/src/internal/global-hre-instance.ts:38
↓ 4 callers
Function
resolveAccountRuntimeValue
( arv: AccountRuntimeValue, accounts: string[], )
packages/ignition-core/src/internal/execution/future-processor/helpers/future-resolvers.ts:151
↓ 4 callers
Function
resolveAddressLike
( addressLike: string | AddressResolvableFuture | ModuleParameterRuntimeValue<string>, deploymentState
packages/ignition-core/src/internal/execution/future-processor/helpers/future-resolvers.ts:223
↓ 4 callers
Function
resolveConstructorArgs
( constructorArgs: string[], constructorArgsPath?: string, )
packages/hardhat-verify/src/internal/tasks/arg-resolution.ts:8
↓ 4 callers
Function
resolveDeploymentId
( givenDeploymentId: string | undefined, chainId: number, )
packages/hardhat-ignition/src/helpers/resolve-deployment-id.ts:21
↓ 4 callers
Method
revert
* Assert that a transaction reverted for any reason. * Replaces `.reverted` in Hardhat v3 and requires the `ethers` instance. * @param e
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:38
↓ 4 callers
Method
revertWithCustomError
* Assert that executing a contract function reverts with a specific custom error defined in the given contract. * * The contract's ABI is used t
packages/hardhat-viem-assertions/src/types.ts:111
↓ 4 callers
Method
revertWithCustomErrorWithArgs
* Assert that executing a contract function reverts with a specific custom error and arguments. * * Arguments are matched positionally in the sa
packages/hardhat-viem-assertions/src/types.ts:131
↓ 4 callers
Method
revertedWith
* Assert that a transaction reverted with a specific reason string or matching regex. * @param reason The expected revert reason or regex patte
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:49
↓ 4 callers
Function
runCounter
(index: number, total: number)
scripts/benchmark/helpers/report.ts:42
↓ 4 callers
Function
runPlain
( command: string, options: RunOptions, )
scripts/benchmark/helpers/runner.ts:208
↓ 4 callers
Method
saveKeystoreToFile
()
packages/hardhat-keystore/src/internal/loaders/keystore-file-loader.ts:78
↓ 4 callers
Method
serialize
( ignitionModule: IgnitionModule< string, string, IgnitionModuleResult<string> >,
packages/ignition-core/src/ignition-module-serializer.ts:84
↓ 4 callers
Function
setGlobalOptionsAsEnvVariables
(globalOptions: T)
packages/hardhat-utils/src/env.ts:9
↓ 4 callers
Function
sourceNamePathToFsPath
(sourceNamePath: string)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver/source-name-utils.ts:27
↓ 4 callers
Function
symlink
(target: string, linkPath: string)
packages/hardhat-utils/src/fs.ts:933
↓ 4 callers
Method
takeSnapshot
* Takes a snapshot of the blockchain state at the current block. * @returns A promise that resolves to a `SnapshotRestorer` object, which contains
packages/hardhat-network-helpers/src/types.ts:244
↓ 4 callers
Function
testFormat
(expected: string)
packages/hardhat-ignition/test/ui/helpers/test-format.ts:6
↓ 4 callers
Function
throwRevertDataNotRetrievedError
( message: string, cause?: unknown, )
packages/hardhat-ethers-chai-matchers/src/internal/matchers/reverted/utils.ts:238
↓ 4 callers
Function
trimFullStop
(str: string)
packages/hardhat/src/internal/cli/help/utils.ts:145
↓ 4 callers
Function
validateFsPath
( resolver: TrueCasePathResolver, from: string, relative: string, )
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver/utils.ts:18
↓ 4 callers
Function
validateId
(id: string | string[])
packages/hardhat/src/internal/core/tasks/validations.ts:24
↓ 4 callers
Function
validateOptions
( options: Record<string, OptionDefinition>, path: Array<string | number>, )
packages/hardhat/src/internal/core/config-validation.ts:398
↓ 4 callers
Function
which
(command: string)
scripts/end-to-end/helpers/shell.ts:8
↓ 4 callers
Function
withAutomineOff
( provider: EthereumProvider, body: () => Promise<void>, )
packages/hardhat-ethers-chai-matchers/test/helpers/helpers.ts:122
↓ 4 callers
Function
withReportDir
( prefix: string, fn: (dir: string) => Promise<T>, )
scripts/benchmark/helpers/runner.ts:67
↓ 4 callers
Method
writeFile
* returns a content writer for writing content to the supplied file. * @param {String|null} file the relative path to the file or the special *
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/file-writer.cjs:173
↓ 3 callers
Method
#commonImportResolution
* Once the other methods selected which file to import, the rest of the logic * is shared in this method.
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver/dependency-resolver.ts:839
↓ 3 callers
Method
#downloadConfiguredCompilers
(quiet = false)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts:1392
↓ 3 callers
Method
#getBuildProfile
(buildProfileName: string = DEFAULT_BUILD_PROFILE)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts:858
↓ 3 callers
Method
#getCompilerBuild
(version: string)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts:287
↓ 3 callers
Method
#getCompilerDownloadPathFromBuild
(build: CompilerBuild)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts:320
↓ 3 callers
Method
#getCompilerListPath
()
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts:312
↓ 3 callers
Method
#getDataPath
(id: string)
packages/hardhat/src/internal/builtin-plugins/coverage/coverage-manager.ts:89
↓ 3 callers
Method
#getGasMeasurementsPath
(id: string)
packages/hardhat/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.ts:163
↓ 3 callers
Method
#getPrivateKeyForAddress
(address: Uint8Array)
packages/hardhat/src/internal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.ts:334
↓ 3 callers
Method
#getQueryParams
* Returns the query params of a request: the `apiUrl`'s query params, * overridden by the given ones and by the API key, if one is configured. *
packages/hardhat-verify/src/internal/blockscout.ts:222
↓ 3 callers
Method
#isHardhatNetwork
()
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:1035
↓ 3 callers
Method
#toRpcSig
(sig: Signature)
packages/hardhat-ledger/src/internal/handler.ts:584
↓ 3 callers
Method
_assertValidAddress
( address: | string | AddressResolvableFuture | ModuleParameterRuntimeValue<string>
packages/ignition-core/src/internal/module-builder.ts:1217
↓ 3 callers
Method
_assertValidArtifact
( artifact: Artifact, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1173
↓ 3 callers
Method
_assertValidCallableContract
( contract: CallableContractFuture<string>, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1184
↓ 3 callers
Method
_assertValidFunctionName
( functionName: string, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1083
↓ 3 callers
Method
_calculateGasStats
* @private exposed for testing purposes only
packages/hardhat/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.ts:190
↓ 3 callers
Method
_convertFutureToFutureToken
(future: Future)
packages/ignition-core/src/ignition-module-serializer.ts:431
↓ 3 callers
Method
_deserializedBigint
(n: SerializedBigInt)
packages/ignition-core/src/ignition-module-serializer.ts:654
↓ 3 callers
Function
_handleError
(error: Error)
packages/hardhat/src/internal/builtin-plugins/node/json-rpc/handler.ts:252
↓ 3 callers
Method
_loadGasMeasurements
* @private exposed for testing purposes only
packages/hardhat/src/internal/builtin-plugins/gas-analytics/gas-analytics-manager.ts:172
↓ 3 callers
Method
_lookup
(lookupTable: Map<string, T>, key: string)
packages/ignition-core/src/ignition-module-serializer.ts:938
↓ 3 callers
Function
abbrev
(longString: string)
packages/hardhat-ethers-chai-matchers/test/matchers/events.ts:234
↓ 3 callers
Method
acquire
* Acquires the mutex, returning an async function to release it. * The function MUST be called after using the mutex. * * If this function th
packages/hardhat-utils/src/synchronization.ts:186
↓ 3 callers
Method
addChild
(child)
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:34
↓ 3 callers
Method
addDependency
* Add a dependency from `from` to `to`. If A depends on B * then {`from`: A, `to`: B} should be passed.
packages/ignition-core/src/internal/utils/adjacency-list.ts:30
↓ 3 callers
Method
addLevel
* Adds an option of level type and default value 0.
packages/hardhat/src/types/tasks.ts:281
↓ 3 callers
Method
addMetadata
(metadata: CoverageMetadata)
packages/hardhat/src/internal/builtin-plugins/coverage/types.ts:17
↓ 3 callers
Function
anonymizeUserPaths
(str: string)
packages/hardhat/src/internal/cli/telemetry/sentry/anonymize-paths.ts:27
↓ 3 callers
Function
argumentTypeToString
(argument: ArgumentType)
packages/ignition-ui/src/utils/argumentTypeToString.tsx:8
← previous
next →
501–600 of 4,382, ranked by callers