Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NomicFoundation/hardhat
/ functions
Functions
3,947 in github.com/NomicFoundation/hardhat
⨍
Functions
3,947
◇
Types & classes
1,275
↓ 167 callers
Method
get
* Returns the raw value of the configuration variable.
packages/hardhat/src/types/config.ts:23
↓ 159 callers
Method
request
(args: RequestArguments)
packages/ignition-core/src/types/provider.ts:17
↓ 141 callers
Function
assertHardhatInvariant
( invariant: boolean, message: string, )
packages/hardhat-errors/src/errors.ts:232
↓ 114 callers
Method
filter
* filter the coveragemap based on the callback provided * @param {Function (filename)} callback - Returns true if the path * should be included
packages/hardhat-vendored/src/coverage-module/istanbul-lib-coverage/lib/coverage-map.cjs:68
↓ 106 callers
Function
assertRejectsWithHardhatError
( op: (() => Promise<any>) | Promise<any>, descriptor: ErrorDescriptorT, messageArguments: HardhatError<
packages/hardhat-test-utils/src/hardhat-error.ts:85
↓ 104 callers
Function
createHardhatRuntimeEnvironment
( config: HardhatUserConfig, userProvidedGlobalOptions: Partial<GlobalOptions> = {}, projectRoot?: strin
packages/hardhat/src/internal/hre-initialization.ts:36
↓ 96 callers
Function
buildModule
( moduleId: ModuleIdT, moduleDefinitionFunction: ( m: IgnitionModuleBuilder, ) => IgnitionModuleResu
packages/ignition-core/src/build-module.ts:20
↓ 92 callers
Method
contract
* Deploy a contract. * * @param contractName - The name of the contract to deploy * @param args - The arguments to pass to the contract const
packages/ignition-core/src/types/module-builder.ts:270
↓ 90 callers
Function
ensureError
( thrown: unknown, ErrorType?: new (...args: any[]) => ErrorT, )
packages/hardhat-utils/src/error.ts:62
↓ 84 callers
Method
getTask
* Returns a task by its id, throwing if it doesn't exist.
packages/hardhat/src/types/tasks.ts:555
↓ 81 callers
Method
run
* Runs a task.
packages/hardhat/src/types/tasks.ts:540
↓ 79 callers
Function
log
(msg: string)
scripts/lint-file.ts:156
↓ 78 callers
Function
isObject
( value: unknown, )
packages/hardhat-utils/src/lang.ts:70
↓ 72 callers
Function
assertIgnitionInvariant
( invariant: boolean, description: string, )
packages/ignition-core/src/internal/utils/assertions.ts:3
↓ 70 callers
Function
exists
( absolutePath: string, options: { followSymlinks?: boolean } = {}, )
packages/hardhat-utils/src/fs.ts:844
↓ 66 callers
Method
build
* Builds the NewTaskDefinition.
packages/hardhat/src/types/tasks.ts:354
↓ 60 callers
Method
resolve
( contract: string | undefined, deployedBytecode: Bytecode, )
packages/hardhat-verify/src/internal/contract.ts:57
↓ 60 callers
Method
toString
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/path.cjs:68
↓ 51 callers
Method
deploy
( ignitionModule: IgnitionModule< ModuleIdT, ContractNameT, IgnitionModuleResultsT >
packages/hardhat-ignition-viem/src/types.ts:19
↓ 50 callers
Method
create
( options: | CreateEtherscanOptions | CreateBlockscoutOptions | CreateSourcifyOptions,
packages/hardhat-verify/src/internal/types.ts:76
↓ 49 callers
Method
create
* Creates a new network connection based on the provided parameters. * * @param networkOrParams The network name or connection parameters. When
packages/hardhat/src/types/network.ts:68
↓ 48 callers
Function
remove
(absolutePath: string)
packages/hardhat-utils/src/fs.ts:983
↓ 45 callers
Method
call
* Call a contract function. * * @param contractFuture - The contract to call * @param functionName - The name of the function to call * @p
packages/ignition-core/src/types/module-builder.ts:350
↓ 45 callers
Function
useTestProjectTemplate
( template: TestProjectTemplate, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/resolver/helpers.ts:93
↓ 44 callers
Function
assertThrowsHardhatError
( f: () => any, descriptor: ErrorDescriptorT, messageArguments: HardhatError<ErrorDescriptorT>["messageA
packages/hardhat-test-utils/src/hardhat-error.ts:55
↓ 43 callers
Method
setAction
* Sets the action of the task. * * It must be provided as a lazy import function that returns a module with * a default export, like `() => i
packages/hardhat/src/types/tasks.ts:221
↓ 39 callers
Function
createDebug
(namespace: string)
packages/hardhat-utils/src/debug.ts:52
↓ 37 callers
Function
useEphemeralFixtureProject
(projectName: string)
packages/hardhat-test-utils/src/fixture-projects.ts:42
↓ 36 callers
Function
readJsonFile
(absolutePathToFile: string)
packages/hardhat-utils/src/fs.ts:400
↓ 36 callers
Function
writeJsonFile
( absolutePathToFile: string, object: T, )
packages/hardhat-utils/src/fs.ts:499
↓ 35 callers
Function
bytesToHexString
(bytes: Uint8Array)
packages/hardhat-utils/src/hex.ts:97
↓ 35 callers
Function
task
( id: string | string[], description: string = "", )
packages/hardhat/src/internal/core/config.ts:43
↓ 34 callers
Method
close
* Closes the Ethereum JSON-RPC server. * * @returns A promise that resolves once shutdown is finished.
packages/hardhat/src/types/network.ts:150
↓ 34 callers
Function
next
( _context: any, _compilerConfig: SolidityCompilerConfig, )
packages/hardhat-solx/test/hook-handlers/solidity.ts:41
↓ 33 callers
Function
definePlugin
(plugin: HardhatPlugin)
packages/hardhat/src/plugins.ts:22
↓ 33 callers
Function
numberToHexString
(value: number | bigint)
packages/hardhat-utils/src/hex.ts:13
↓ 32 callers
Method
compile
(input: CompilerInput)
packages/hardhat/src/types/solidity/compiler.ts:9
↓ 30 callers
Method
deployContract
( name: StringWithArtifactContractNamesAutocompletion, signerOrOptions?: ethers.Signer | DeployContrac
packages/hardhat-ethers/src/types.ts:60
↓ 30 callers
Function
getHRE
( project: TestProject, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:17
↓ 30 callers
Function
useFixtureProject
( projectName: string, changeDirTo?: string, )
packages/hardhat-test-utils/src/fixture-projects.ts:15
↓ 29 callers
Method
getParameter
* A parameter whose value can be set at deployment. * * @param parameterName - The name of the parameter * @param defaultValue - The default
packages/ignition-core/src/types/module-builder.ts:253
↓ 29 callers
Method
runHandlerChain
* Runs the existing handlers of a hook in a chained fashion. * * This chain has the following priority order: * - Dynamically registered han
packages/hardhat/src/types/hooks.ts:327
↓ 29 callers
Function
toBigInt
(value: number | string | bigint)
packages/hardhat-utils/src/bigint.ts:40
↓ 28 callers
Function
createConfig
( configFilePath, options = { onlyHardhatError: true, enforceHardhatTestUtils: true }, )
packages/config/eslint.config.js:28
↓ 27 callers
Function
assertRejects
( op: (() => Promise<any>) | Promise<any>, condition?: (error: Error) => boolean, conditionDescription:
packages/hardhat-test-utils/src/errors.ts:15
↓ 27 callers
Method
getAccount
* Returns an account runtime value representing the * Hardhat account the underlying transactions for a * future will be sent from. * * @p
packages/ignition-core/src/types/module-builder.ts:238
↓ 27 callers
Method
getSnapshot
()
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:68
↓ 27 callers
Method
readArtifact
* Reads an artifact. * * @param contractNameOrFullyQualifiedName The name of the contract. * It can be a contract bare contract name (e.g.
packages/hardhat/src/types/artifacts.ts:74
↓ 26 callers
Method
getSigners
()
packages/hardhat-ethers/src/internal/hardhat-helpers/hardhat-helpers.ts:54
↓ 26 callers
Method
sendTransaction
( tx: TransactionRequest, )
packages/hardhat-ethers/src/internal/signers/signers.ts:174
↓ 25 callers
Method
write
(str)
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/file-writer.cjs:77
↓ 24 callers
Method
_throwErrorWithStackTrace
( message: string, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1036
↓ 24 callers
Function
next
(nextConfig: HardhatUserConfig)
packages/hardhat/test/internal/builtin-plugins/network-manager/hook-handlers/config.ts:31
↓ 24 callers
Method
on
( ethersEvent: ProviderEvent, listener: Listener, )
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:566
↓ 24 callers
Function
useEphemeralIgnitionProject
(fixtureProjectName: string)
packages/hardhat-ignition/test/test-helpers/use-ignition-project.ts:82
↓ 23 callers
Function
ensureNodeErrnoExceptionError
( thrown: unknown, )
packages/hardhat-utils/src/error.ts:95
↓ 23 callers
Method
flat
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:228
↓ 22 callers
Method
#getImpl
()
packages/hardhat-network-helpers/src/internal/network-helpers/lazy-network-helpers.ts:130
↓ 22 callers
Method
addFlag
* Adds an option of flag type and default value false.
packages/hardhat/src/types/tasks.ts:272
↓ 22 callers
Function
createTmpDir
( nameHint: string, scope: "test" | "describe", )
packages/hardhat-test-utils/src/fs.ts:103
↓ 22 callers
Function
isFuture
(potential: unknown)
packages/ignition-core/src/type-guards.ts:76
↓ 22 callers
Method
mine
* Mines a specified number of blocks with an optional time interval between them. * * @param blocks The number of blocks to mine. Defaults to 1
packages/hardhat-network-helpers/src/types.ts:104
↓ 21 callers
Function
initializeNetwork
( config: Partial<EdrNetworkUserConfig> = {}, )
packages/hardhat-network-helpers/test/helpers/helpers.ts:10
↓ 21 callers
Method
throwIfNotDevelopmentNetwork
()
packages/hardhat-network-helpers/src/internal/network-helpers/network-helpers.ts:168
↓ 21 callers
Method
useModule
* Allows you to deploy then use the results of another module within this * module. * * @param ignitionSubmodule - The submodule to use *
packages/ignition-core/src/types/module-builder.ts:568
↓ 21 callers
Function
writeUtf8File
( absolutePathToFile: string, data: string, flag?: string, )
packages/hardhat-utils/src/fs.ts:611
↓ 20 callers
Method
addOption
* Adds an option to the task. * * A task option is one that is used as `--<name> value` in the CLI. * * The type of the argument defaults
packages/hardhat/src/types/tasks.ts:254
↓ 20 callers
Function
getAllFilesMatching
( dirFrom: string, matches?: (absolutePathToFile: string) => Promise<boolean> | boolean, directoryFilter
packages/hardhat-utils/src/fs.ts:314
↓ 20 callers
Method
toString
()
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts:501
↓ 19 callers
Method
delete
* Deletes the cached value associated to the key, if any. Note that this does * not cancel any ongoing operation. Callers that already observed the
packages/hardhat-utils/src/synchronization.ts:797
↓ 19 callers
Method
getBuildInfoForSourceFile
( snapshot: Snapshot, source: string, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:218
↓ 19 callers
Method
isHardhatError
( other: unknown, descriptor?: ErrorDescriptor, )
packages/hardhat-errors/src/errors.ts:130
↓ 18 callers
Function
addChaiMatchers
()
packages/hardhat-ethers-chai-matchers/src/internal/add-chai-matchers.ts:22
↓ 18 callers
Function
getFuturesFromModule
(module: IgnitionModule)
packages/ignition-core/src/internal/utils/get-futures-from-module.ts:7
↓ 17 callers
Function
assertFileCounts
( snapshot: Snapshot, buildInfoCount: number, artifactCount: number, typefileCount: number, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:246
↓ 17 callers
Function
buildAssert
(negated: boolean, ssfi: Ssfi)
packages/hardhat-ethers-chai-matchers/src/internal/utils/build-assert.ts:21
↓ 17 callers
Function
getHardhatVersion
()
packages/hardhat/src/internal/utils/package.ts:16
↓ 17 callers
Function
getRequestParams
( requestArguments: RequestArguments, )
packages/hardhat/src/internal/builtin-plugins/network-manager/json-rpc.ts:133
↓ 17 callers
Method
library
* Deploy a library. * * @param libraryName - The name of the library to deploy * @param options - The options for the deployment * * @e
packages/ignition-core/src/types/module-builder.ts:308
↓ 17 callers
Function
readUtf8File
( absolutePathToFile: string, )
packages/hardhat-utils/src/fs.ts:580
↓ 17 callers
Function
readdir
(absolutePathToDir: string)
packages/hardhat-utils/src/fs.ts:689
↓ 17 callers
Function
resolveFromRoot
(root: string, target: string)
packages/hardhat-utils/src/path.ts:16
↓ 17 callers
Method
staticCall
* Statically call a contract function and return the result. * * This allows you to read data from a contract without sending a transaction.
packages/ignition-core/src/types/module-builder.ts:381
↓ 16 callers
Method
addVariadicArgument
* Adds a variadic positional argument to the task. * * A variadic argument is a positional argument that can have multiple * values. For exam
packages/hardhat/src/types/tasks.ts:338
↓ 16 callers
Method
contractAt
* Create a future for an existing deployed contract so that it can be * referenced in subsequent futures. * * The resulting future can be use
packages/ignition-core/src/types/module-builder.ts:433
↓ 16 callers
Function
getUnprefixedHexString
(hexString: string)
packages/hardhat-utils/src/hex.ts:168
↓ 16 callers
Method
send
* @deprecated * Sends a JSON-RPC request. This method is present for backwards compatibility * with the Legacy Provider API. Prefer using {@link
packages/hardhat/src/types/providers.ts:74
↓ 15 callers
Function
assertResponseType
( method: string, response: unknown, assertion: boolean, )
packages/ignition-core/src/internal/execution/jsonrpc-client.ts:828
↓ 15 callers
Method
connect
* Creates a new network connection based on the provided parameters. * * @deprecated Use {@link NetworkManager.create} or * {@link NetworkMan
packages/hardhat/src/types/network.ts:88
↓ 15 callers
Method
exclusiveRun
* Acquires the mutex, running the provided function exclusively, * and releasing it afterwards. * * @param f The function to run. * @retur
packages/hardhat-utils/src/synchronization.ts:590
↓ 15 callers
Function
formatTaskId
(taskId: string | string[])
packages/hardhat/src/internal/core/tasks/utils.ts:3
↓ 15 callers
Function
getKeystoreType
(dev: boolean)
packages/hardhat-keystore/src/internal/utils/get-keystore-type.ts:1
↓ 15 callers
Function
hexStringToBytes
(hexString: string)
packages/hardhat-utils/src/hex.ts:111
↓ 15 callers
Function
isAccountRuntimeValue
( potential: unknown, )
packages/ignition-core/src/type-guards.ts:353
↓ 15 callers
Method
latest
* Returns the timestamp of the latest block. * * @return The timestamp of the latest block. * * @example * const { networkHelpers } = a
packages/hardhat-network-helpers/src/types.ts:283
↓ 15 callers
Method
pkg
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:254
↓ 15 callers
Function
setupMockArtifactResolver
(artifacts?: { [key: string]: Artifact; })
packages/ignition-core/test/helpers.ts:43
↓ 15 callers
Function
sleep
(seconds: number)
packages/hardhat-utils/src/lang.ts:82
↓ 14 callers
Method
emit
* Assert that executing a contract function emits a specific event. * * The transaction is awaited and its receipt is fetched; the logs in the r
packages/hardhat-viem-assertions/src/types.ts:49
↓ 14 callers
Method
getBlockNumber
()
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:171
next →
1–100 of 3,947, ranked by callers