MCPcopy Create free account

hub / github.com/NomicFoundation/hardhat / functions

Functions3,947 in github.com/NomicFoundation/hardhat

↓ 167 callersMethodget
* Returns the raw value of the configuration variable.
packages/hardhat/src/types/config.ts:23
↓ 159 callersMethodrequest
(args: RequestArguments)
packages/ignition-core/src/types/provider.ts:17
↓ 141 callersFunctionassertHardhatInvariant
( invariant: boolean, message: string, )
packages/hardhat-errors/src/errors.ts:232
↓ 114 callersMethodfilter
* 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 callersFunctionassertRejectsWithHardhatError
( op: (() => Promise<any>) | Promise<any>, descriptor: ErrorDescriptorT, messageArguments: HardhatError<
packages/hardhat-test-utils/src/hardhat-error.ts:85
↓ 104 callersFunctioncreateHardhatRuntimeEnvironment
( config: HardhatUserConfig, userProvidedGlobalOptions: Partial<GlobalOptions> = {}, projectRoot?: strin
packages/hardhat/src/internal/hre-initialization.ts:36
↓ 96 callersFunctionbuildModule
( moduleId: ModuleIdT, moduleDefinitionFunction: ( m: IgnitionModuleBuilder, ) => IgnitionModuleResu
packages/ignition-core/src/build-module.ts:20
↓ 92 callersMethodcontract
* 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 callersFunctionensureError
( thrown: unknown, ErrorType?: new (...args: any[]) => ErrorT, )
packages/hardhat-utils/src/error.ts:62
↓ 84 callersMethodgetTask
* Returns a task by its id, throwing if it doesn't exist.
packages/hardhat/src/types/tasks.ts:555
↓ 81 callersMethodrun
* Runs a task.
packages/hardhat/src/types/tasks.ts:540
↓ 79 callersFunctionlog
(msg: string)
scripts/lint-file.ts:156
↓ 78 callersFunctionisObject
( value: unknown, )
packages/hardhat-utils/src/lang.ts:70
↓ 72 callersFunctionassertIgnitionInvariant
( invariant: boolean, description: string, )
packages/ignition-core/src/internal/utils/assertions.ts:3
↓ 70 callersFunctionexists
( absolutePath: string, options: { followSymlinks?: boolean } = {}, )
packages/hardhat-utils/src/fs.ts:844
↓ 66 callersMethodbuild
* Builds the NewTaskDefinition.
packages/hardhat/src/types/tasks.ts:354
↓ 60 callersMethodresolve
( contract: string | undefined, deployedBytecode: Bytecode, )
packages/hardhat-verify/src/internal/contract.ts:57
↓ 60 callersMethodtoString
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/path.cjs:68
↓ 51 callersMethoddeploy
( ignitionModule: IgnitionModule< ModuleIdT, ContractNameT, IgnitionModuleResultsT >
packages/hardhat-ignition-viem/src/types.ts:19
↓ 50 callersMethodcreate
( options: | CreateEtherscanOptions | CreateBlockscoutOptions | CreateSourcifyOptions,
packages/hardhat-verify/src/internal/types.ts:76
↓ 49 callersMethodcreate
* 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 callersFunctionremove
(absolutePath: string)
packages/hardhat-utils/src/fs.ts:983
↓ 45 callersMethodcall
* 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 callersFunctionuseTestProjectTemplate
( template: TestProjectTemplate, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/resolver/helpers.ts:93
↓ 44 callersFunctionassertThrowsHardhatError
( f: () => any, descriptor: ErrorDescriptorT, messageArguments: HardhatError<ErrorDescriptorT>["messageA
packages/hardhat-test-utils/src/hardhat-error.ts:55
↓ 43 callersMethodsetAction
* 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 callersFunctioncreateDebug
(namespace: string)
packages/hardhat-utils/src/debug.ts:52
↓ 37 callersFunctionuseEphemeralFixtureProject
(projectName: string)
packages/hardhat-test-utils/src/fixture-projects.ts:42
↓ 36 callersFunctionreadJsonFile
(absolutePathToFile: string)
packages/hardhat-utils/src/fs.ts:400
↓ 36 callersFunctionwriteJsonFile
( absolutePathToFile: string, object: T, )
packages/hardhat-utils/src/fs.ts:499
↓ 35 callersFunctionbytesToHexString
(bytes: Uint8Array)
packages/hardhat-utils/src/hex.ts:97
↓ 35 callersFunctiontask
( id: string | string[], description: string = "", )
packages/hardhat/src/internal/core/config.ts:43
↓ 34 callersMethodclose
* Closes the Ethereum JSON-RPC server. * * @returns A promise that resolves once shutdown is finished.
packages/hardhat/src/types/network.ts:150
↓ 34 callersFunctionnext
( _context: any, _compilerConfig: SolidityCompilerConfig, )
packages/hardhat-solx/test/hook-handlers/solidity.ts:41
↓ 33 callersFunctiondefinePlugin
(plugin: HardhatPlugin)
packages/hardhat/src/plugins.ts:22
↓ 33 callersFunctionnumberToHexString
(value: number | bigint)
packages/hardhat-utils/src/hex.ts:13
↓ 32 callersMethodcompile
(input: CompilerInput)
packages/hardhat/src/types/solidity/compiler.ts:9
↓ 30 callersMethoddeployContract
( name: StringWithArtifactContractNamesAutocompletion, signerOrOptions?: ethers.Signer | DeployContrac
packages/hardhat-ethers/src/types.ts:60
↓ 30 callersFunctiongetHRE
( project: TestProject, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:17
↓ 30 callersFunctionuseFixtureProject
( projectName: string, changeDirTo?: string, )
packages/hardhat-test-utils/src/fixture-projects.ts:15
↓ 29 callersMethodgetParameter
* 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 callersMethodrunHandlerChain
* 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 callersFunctiontoBigInt
(value: number | string | bigint)
packages/hardhat-utils/src/bigint.ts:40
↓ 28 callersFunctioncreateConfig
( configFilePath, options = { onlyHardhatError: true, enforceHardhatTestUtils: true }, )
packages/config/eslint.config.js:28
↓ 27 callersFunctionassertRejects
( op: (() => Promise<any>) | Promise<any>, condition?: (error: Error) => boolean, conditionDescription:
packages/hardhat-test-utils/src/errors.ts:15
↓ 27 callersMethodgetAccount
* 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 callersMethodgetSnapshot
()
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:68
↓ 27 callersMethodreadArtifact
* 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 callersMethodgetSigners
()
packages/hardhat-ethers/src/internal/hardhat-helpers/hardhat-helpers.ts:54
↓ 26 callersMethodsendTransaction
( tx: TransactionRequest, )
packages/hardhat-ethers/src/internal/signers/signers.ts:174
↓ 25 callersMethodwrite
(str)
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/file-writer.cjs:77
↓ 24 callersMethod_throwErrorWithStackTrace
( message: string, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1036
↓ 24 callersFunctionnext
(nextConfig: HardhatUserConfig)
packages/hardhat/test/internal/builtin-plugins/network-manager/hook-handlers/config.ts:31
↓ 24 callersMethodon
( ethersEvent: ProviderEvent, listener: Listener, )
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:566
↓ 24 callersFunctionuseEphemeralIgnitionProject
(fixtureProjectName: string)
packages/hardhat-ignition/test/test-helpers/use-ignition-project.ts:82
↓ 23 callersFunctionensureNodeErrnoExceptionError
( thrown: unknown, )
packages/hardhat-utils/src/error.ts:95
↓ 23 callersMethodflat
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:228
↓ 22 callersMethod#getImpl
()
packages/hardhat-network-helpers/src/internal/network-helpers/lazy-network-helpers.ts:130
↓ 22 callersMethodaddFlag
* Adds an option of flag type and default value false.
packages/hardhat/src/types/tasks.ts:272
↓ 22 callersFunctioncreateTmpDir
( nameHint: string, scope: "test" | "describe", )
packages/hardhat-test-utils/src/fs.ts:103
↓ 22 callersFunctionisFuture
(potential: unknown)
packages/ignition-core/src/type-guards.ts:76
↓ 22 callersMethodmine
* 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 callersFunctioninitializeNetwork
( config: Partial<EdrNetworkUserConfig> = {}, )
packages/hardhat-network-helpers/test/helpers/helpers.ts:10
↓ 21 callersMethodthrowIfNotDevelopmentNetwork
()
packages/hardhat-network-helpers/src/internal/network-helpers/network-helpers.ts:168
↓ 21 callersMethoduseModule
* 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 callersFunctionwriteUtf8File
( absolutePathToFile: string, data: string, flag?: string, )
packages/hardhat-utils/src/fs.ts:611
↓ 20 callersMethodaddOption
* 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 callersFunctiongetAllFilesMatching
( dirFrom: string, matches?: (absolutePathToFile: string) => Promise<boolean> | boolean, directoryFilter
packages/hardhat-utils/src/fs.ts:314
↓ 20 callersMethodtoString
()
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts:501
↓ 19 callersMethoddelete
* 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 callersMethodgetBuildInfoForSourceFile
( snapshot: Snapshot, source: string, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:218
↓ 19 callersMethodisHardhatError
( other: unknown, descriptor?: ErrorDescriptor, )
packages/hardhat-errors/src/errors.ts:130
↓ 18 callersFunctionaddChaiMatchers
()
packages/hardhat-ethers-chai-matchers/src/internal/add-chai-matchers.ts:22
↓ 18 callersFunctiongetFuturesFromModule
(module: IgnitionModule)
packages/ignition-core/src/internal/utils/get-futures-from-module.ts:7
↓ 17 callersFunctionassertFileCounts
( snapshot: Snapshot, buildInfoCount: number, artifactCount: number, typefileCount: number, )
packages/hardhat/test/internal/builtin-plugins/solidity/build-system/partial-compilation/helpers.ts:246
↓ 17 callersFunctionbuildAssert
(negated: boolean, ssfi: Ssfi)
packages/hardhat-ethers-chai-matchers/src/internal/utils/build-assert.ts:21
↓ 17 callersFunctiongetHardhatVersion
()
packages/hardhat/src/internal/utils/package.ts:16
↓ 17 callersFunctiongetRequestParams
( requestArguments: RequestArguments, )
packages/hardhat/src/internal/builtin-plugins/network-manager/json-rpc.ts:133
↓ 17 callersMethodlibrary
* 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 callersFunctionreadUtf8File
( absolutePathToFile: string, )
packages/hardhat-utils/src/fs.ts:580
↓ 17 callersFunctionreaddir
(absolutePathToDir: string)
packages/hardhat-utils/src/fs.ts:689
↓ 17 callersFunctionresolveFromRoot
(root: string, target: string)
packages/hardhat-utils/src/path.ts:16
↓ 17 callersMethodstaticCall
* 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 callersMethodaddVariadicArgument
* 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 callersMethodcontractAt
* 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 callersFunctiongetUnprefixedHexString
(hexString: string)
packages/hardhat-utils/src/hex.ts:168
↓ 16 callersMethodsend
* @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 callersFunctionassertResponseType
( method: string, response: unknown, assertion: boolean, )
packages/ignition-core/src/internal/execution/jsonrpc-client.ts:828
↓ 15 callersMethodconnect
* 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 callersMethodexclusiveRun
* 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 callersFunctionformatTaskId
(taskId: string | string[])
packages/hardhat/src/internal/core/tasks/utils.ts:3
↓ 15 callersFunctiongetKeystoreType
(dev: boolean)
packages/hardhat-keystore/src/internal/utils/get-keystore-type.ts:1
↓ 15 callersFunctionhexStringToBytes
(hexString: string)
packages/hardhat-utils/src/hex.ts:111
↓ 15 callersFunctionisAccountRuntimeValue
( potential: unknown, )
packages/ignition-core/src/type-guards.ts:353
↓ 15 callersMethodlatest
* 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 callersMethodpkg
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:254
↓ 15 callersFunctionsetupMockArtifactResolver
(artifacts?: { [key: string]: Artifact; })
packages/ignition-core/test/helpers.ts:43
↓ 15 callersFunctionsleep
(seconds: number)
packages/hardhat-utils/src/lang.ts:82
↓ 14 callersMethodemit
* 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 callersMethodgetBlockNumber
()
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:171
next →1–100 of 3,947, ranked by callers