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
↓ 3 callers
Method
artifactExists
* Returns true if an artifact exists. * * This function doesn't throw if the name is not unique, this means that * this method may return `tr
packages/hardhat/src/types/artifacts.ts:99
↓ 3 callers
Function
assertCanConvertToBigInt
( value: any, variableName: string, )
packages/hardhat-ethers/src/internal/assertion.ts:3
↓ 3 callers
Function
assertGetNonceSyncResult
( { ignitionModule, deploymentState = deploymentStateReducer(), transactionCountEntries = {},
packages/ignition-core/test/execution/nonce-management/get-nonce-sync-messages.ts:783
↓ 3 callers
Function
assertHexString
(hexString: string)
packages/hardhat-network-helpers/src/internal/assertions.ts:7
↓ 3 callers
Method
authorize
(auth: AuthorizationRequest)
packages/hardhat-ethers/src/internal/signers/signers.ts:100
↓ 3 callers
Method
balancesHaveChanged
( txHash: Hash | Promise<Hash>, changes: Array<{ address: Address; amount: bigint; }>,
packages/hardhat-viem-assertions/src/internal/viem-assertions.ts:32
↓ 3 callers
Method
bar
()
packages/hardhat-utils/test/lang.ts:763
↓ 3 callers
Method
batch
( module: IgnitionModule, deploymentState: DeploymentState, )
packages/ignition-core/src/internal/batcher.ts:24
↓ 3 callers
Function
buildDependencyGraph
( rootFiles: string[], projectRoot: string, readFile: (absPath: string) => Promise<string>, hookManage
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/dependency-graph-building.ts:18
↓ 3 callers
Function
canonicalizeStructs
( structs: CollectedStruct[], selectedSources: Set<string>, )
packages/hardhat/src/internal/builtin-plugins/solidity-test/eip712/canonicalize.ts:41
↓ 3 callers
Function
capitalize
(str: string)
packages/hardhat-utils/src/string.ts:30
↓ 3 callers
Function
captureError
(fn: () => Promise<unknown>)
packages/hardhat/test/internal/cli/telemetry/error-classification/helpers.ts:13
↓ 3 callers
Method
changeEtherBalance
* Assert that the ether balance of an address changed by a specific amount. * @param ethers The Hardhat ethers instance used in the test.
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:130
↓ 3 callers
Method
changeTokenBalance
* Assert that an ERC20 token balance of an address changed by a specific amount. * @param ethers The Hardhat ethers instance used in the test.
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:175
↓ 3 callers
Method
changeTokenBalances
* Assert that ERC20 token balances of multiple addresses changed by specific amounts. * @param ethers The Hardhat ethers instance used in the t
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:197
↓ 3 callers
Function
cleanup
()
packages/hardhat-utils/test/synchronization.ts:78
↓ 3 callers
Method
cleanupArtifacts
* Analyzes the project and cleans up the artifacts by: * - Removing any existing artifact of non-existent contracts. * - Removing any unreacha
packages/hardhat/src/types/solidity/build-system.ts:448
↓ 3 callers
Method
clearTracedHashes
* Clear the dedup set (e.g. on snapshot revert so replayed txs are traced again).
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/utils/trace-output.ts:125
↓ 3 callers
Function
color
(text: string)
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/utils/trace-formatters.ts:105
↓ 3 callers
Function
compareVersions
(a: string, b: string)
scripts/verdaccio/helpers/version.ts:50
↓ 3 callers
Function
copyRequest
( req: TransactionRequest, )
packages/hardhat-ethers/src/internal/ethers-utils/ethers-utils.ts:35
↓ 3 callers
Function
cpuProfFlags
( profileDir: string, sampleRateHz: number, )
scripts/profiler/helpers/js-prof.ts:12
↓ 3 callers
Method
create
( networkOrParams?: NetworkConnectionParams<ChainTypeT> | string, )
packages/hardhat/src/internal/builtin-plugins/network-manager/network-manager.ts:103
↓ 3 callers
Function
createContractInstance
( _contractName: ContractName, publicClient: PublicClient, walletClient: WalletClient, abi: ViemAbi,
packages/hardhat-viem/src/internal/contracts.ts:220
↓ 3 callers
Function
createErrorContext
(error: Error)
packages/hardhat/src/internal/cli/telemetry/error-classification/helpers.ts:33
↓ 3 callers
Function
createExecutionStateCompleteMessageForExecutionsWithOnchainInteractions
( exState: DeploymentExecutionState | CallExecutionState | SendDataExecutionState, result: Deploym
packages/ignition-core/src/internal/execution/future-processor/helpers/messages-helpers.ts:74
↓ 3 callers
Function
createHre
()
packages/ignition-core/test-integrations/helpers/create-hre.ts:22
↓ 3 callers
Function
createPeakRssRecorder
( method: PeakRssMethod | undefined, memPath: string, )
scripts/benchmark/helpers/peak-rss.ts:259
↓ 3 callers
Function
createSuiteResult
( contractNameOrFqn: string, testResults: TestResult[], )
packages/hardhat/test/internal/builtin-plugins/gas-analytics/suite-result-helpers.ts:105
↓ 3 callers
Method
createUnsavedKeystore
({ masterKey, salt, }: { masterKey: Uint8Array; salt: Uint8Array; })
packages/hardhat-keystore/src/internal/loaders/keystore-file-loader.ts:57
↓ 3 callers
Method
customApiCall
* Makes a custom API call to the Etherscan API with specified * parameters. * * This method is designed for advanced use cases where plugins
packages/hardhat-verify/src/internal/etherscan.types.ts:254
↓ 3 callers
Method
cwrap
(ident: string, returnType: string | null, argTypes: string[])
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/solcjs-wrapper.ts:18
↓ 3 callers
Function
decode
( contractName: keyof typeof staticCallResultFixtures, functionName: keyof (typeof staticCallResul
packages/ignition-core/test/execution/abi.ts:563
↓ 3 callers
Function
decodeError
( returnData: string, customErrorReported: boolean, decodeCustomError?: ( returnData: string, ) =>
packages/ignition-core/src/internal/execution/abi.ts:427
↓ 3 callers
Function
decodeSimulationResult
( strategyGenerator: DeploymentStrategyGenerator | CallStrategyGenerator, exState: DeploymentExecution
packages/ignition-core/src/internal/execution/future-processor/helpers/decode-simulation-result.ts:23
↓ 3 callers
Function
deployContract
({ hre, client, accounts, }: { hre: HardhatRuntimeEnvironment; client: EIP11
packages/ignition-core/test-integrations/internal/execution/jsonrpc-client.ts:20
↓ 3 callers
Method
deploymentComplete
( event: DeploymentCompleteEvent, )
packages/hardhat-ignition/src/helpers/pretty-event-handler.ts:320
↓ 3 callers
Function
directStructDeps
* Returns the names of all struct dependencies referenced by `struct`'s * members. Considers the base type of arrays. Members whose base type does no
packages/hardhat/src/internal/builtin-plugins/solidity-test/eip712/canonicalize.ts:146
↓ 3 callers
Function
disableConsole
()
packages/hardhat-test-utils/src/console.ts:20
↓ 3 callers
Method
displayKeyNotFoundErrorMessage
( key: string, dev: boolean, )
packages/hardhat-keystore/src/internal/ui/user-display-messages.ts:40
↓ 3 callers
Method
emit
* Assert that a transaction emits a specific event. * @param contract The contract that emits the event. * @param eventName The name of
packages/hardhat-ethers-chai-matchers/src/type-extensions.ts:23
↓ 3 callers
Method
emitArtifacts
* Emits the artifacts of the given compilation job. * * When `solidity.splitTestsCompilation` is `false`, this method rejects * `scope: "test
packages/hardhat/src/types/solidity/build-system.ts:410
↓ 3 callers
Function
encode
Encodes and returns the result without the "0x" prefix, for readability.
packages/hardhat-utils/test/abi.ts:29
↓ 3 callers
Function
encodeArguments
( parameters: readonly AbiParameter[], values: string[], name: string, )
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/abi/encode.ts:25
↓ 3 callers
Function
encodeConstructorArgs
( abi: AbiFragment[], constructorArgs: unknown[], contract: string, )
packages/hardhat-verify/src/internal/constructor-args.ts:24
↓ 3 callers
Function
encodeStackTraceEntry
( stackTraceEntry: SolidityStackTraceEntry, )
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts:99
↓ 3 callers
Function
encryptUtf8String
({ encryptionKey, value, }: { encryptionKey: Uint8Array; value: string; })
packages/hardhat-keystore/src/internal/keystores/encryption.ts:244
↓ 3 callers
Function
ensureScenarioInitialized
( e2eCloneDirectory: string, scenarioPath: string, useLocal: UseLocal, forceCheckout: ForceCheckout,
scripts/end-to-end/helpers/scenario-setup.ts:16
↓ 3 callers
Function
estimateCompilationJobCost
(job: CompilationJob)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compilation-job-cost.ts:9
↓ 3 callers
Function
execute
( command: string, options: RunOptions, recorder?: PeakRssRecorder, )
scripts/benchmark/helpers/runner.ts:507
↓ 3 callers
Function
exitIfNodeVersionNotSupported
()
packages/hardhat/src/internal/cli/node-version.ts:45
↓ 3 callers
Function
extractDocsUrlsFromFrontMatter
(frontMatter: null | string)
scripts/lib/changesets.ts:54
↓ 3 callers
Function
extractFunctionGasSnapshots
( suiteResults: SuiteResult[], )
packages/hardhat/src/internal/builtin-plugins/gas-analytics/function-gas-snapshots.ts:82
↓ 3 callers
Function
extractSnapshotCheatcodes
( suiteResults: SuiteResult[], )
packages/hardhat/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.ts:155
↓ 3 callers
Function
fetch
(prefix: string[])
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/fetch/index.ts:6
↓ 3 callers
Function
fetch
(scenarioWorkingDir: string, repo: string, ref: string)
scripts/end-to-end/subcommands/init.ts:340
↓ 3 callers
Method
fileExists
(absolutePath: string)
packages/hardhat-keystore/src/internal/types.ts:38
↓ 3 callers
Function
findCharClassEnd
* Returns the index of the `]` that closes the character class opened at * `start`, or -1 if none is found. E.g. for `a[bc]d` starting at 1, returns
packages/hardhat/src/internal/utils/glob.ts:118
↓ 3 callers
Function
findClosestHardhatConfig
(from?: string)
packages/hardhat/src/internal/config-loading.ts:54
↓ 3 callers
Function
findUp
( fileName: string, from?: string, )
packages/hardhat-utils/src/fs.ts:1047
↓ 3 callers
Function
format
(v: string | RegExp | Function | undefined)
packages/hardhat-verify/test/utils.ts:91
↓ 3 callers
Function
formatArtifactId
( artifactId: ArtifactId, sourceNameToUserSourceName: Map<string, string>, )
packages/hardhat/src/internal/builtin-plugins/solidity-test/formatters.ts:8
↓ 3 callers
Function
formatFailureIndex
(index: number)
packages/hardhat-node-test-reporter/src/formatting.ts:151
↓ 3 callers
Function
formatInferredSolcVersion
(v: InferredSolcVersion)
packages/hardhat-verify/src/internal/metadata.ts:84
↓ 3 callers
Function
formatRemappingReference
(remapping: UserRemappingReference)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/resolver/error-messages.ts:202
↓ 3 callers
Function
formatTable
(items: TableItem[])
packages/hardhat-utils/src/format.ts:86
↓ 3 callers
Function
formatTraces
( traces: CallTrace[], prefix: string, // Allow passing a custom colorize function for testing purposes
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/utils/trace-formatters.ts:24
↓ 3 callers
Function
generatePaths
(packageName: string)
packages/hardhat-utils/src/internal/global-dir.ts:10
↓ 3 callers
Function
getAbiSelector
( signature: AbiFunctionSignature, )
packages/hardhat-utils/src/abi.ts:361
↓ 3 callers
Function
getAccounts
( provider: EthereumProvider, )
packages/hardhat-viem/src/internal/accounts.ts:6
↓ 3 callers
Function
getActorFragment
(pluginId: string | undefined)
packages/hardhat/src/internal/core/tasks/utils.ts:11
↓ 3 callers
Method
getAddress
( searchedPath: string, )
packages/hardhat-ledger/test/helpers/eth-mocked.ts:107
↓ 3 callers
Method
getAllArtifactPaths
* Returns all artifact paths in the project. * * @returns A readonly set of absolute paths to all artifact files.
packages/hardhat/src/types/artifacts.ts:111
↓ 3 callers
Method
getAllRemappings
* Returns a set with all the remappings that are present in the graph.
packages/hardhat/src/types/solidity/dependency-graph.ts:70
↓ 3 callers
Function
getBalance
( provider: EthereumProvider, address: string, )
packages/hardhat-network-helpers/test/helpers/helpers.ts:34
↓ 3 callers
Method
getBalance
( _address: string, _blockTag: "latest" | "pending", )
packages/ignition-core/test/execution/future-processor/utils.ts:127
↓ 3 callers
Function
getBaseDispatcherOptions
( timeout: number = DEFAULT_TIMEOUT_IN_MILLISECONDS, isTestDispatcher: boolean = false, )
packages/hardhat-utils/src/internal/request.ts:319
↓ 3 callers
Function
getBuildInfoAndOutput
( artifacts: ArtifactManager, contract: string, )
packages/hardhat-verify/src/internal/artifacts.ts:40
↓ 3 callers
Function
getCallerRelativePath
(depth: number = 5)
packages/hardhat/src/internal/using-hardhat2-plugin-errors.ts:64
↓ 3 callers
Function
getChainGenesisState
( hardforkName: L1HardforkName | OpHardforkName, chainType: ChainType, )
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/genesis-state.ts:178
↓ 3 callers
Function
getChainId
(provider: EthereumProvider)
packages/hardhat-verify/src/internal/chains.ts:7
↓ 3 callers
Function
getCheatcodeSuggestion
(cheatcode: string)
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts:38
↓ 3 callers
Method
getChildren
()
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:70
↓ 3 callers
Method
getCode
( address: AddressLike, blockTag?: BlockTag | undefined, )
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:259
↓ 3 callers
Function
getDefaultParams
(provider: EthereumProvider)
packages/hardhat-viem/src/internal/clients.ts:182
↓ 3 callers
Method
getDependencies
* Returns the set of dependencies of the given file. * * @param file The file to get the dependencies of. It must be present in the * graph.
packages/hardhat/src/types/solidity/dependency-graph.ts:34
↓ 3 callers
Method
getDependenciesFor
* Get the dependencies, if A depends on B, A's dependencies includes B * @param from - the future to get the list of dependencies for * @returns
packages/ignition-core/src/internal/utils/adjacency-list.ts:51
↓ 3 callers
Function
getEventArgumentFromReceipt
( receipt: TransactionReceipt, emitterArtifact: Artifact, emitterAddress: string, eventName: string,
packages/ignition-core/src/internal/execution/abi.ts:379
↓ 3 callers
Method
getFunction
()
packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts:419
↓ 3 callers
Function
getGlobalEdrContext
()
packages/hardhat/src/internal/edr/context.ts:19
↓ 3 callers
Function
getGlobalHelpString
( rootTasks: Map<string, Task>, globalOptionDefinitions: GlobalOptionDefinitions, { command = "hardhat"
packages/hardhat/src/internal/cli/help/get-global-help-string.ts:14
↓ 3 callers
Function
getHelpString
( task: Task, globalOptionDefinitions: GlobalOptionDefinitions, { command = "hardhat" }: { command?: "ha
packages/hardhat/src/internal/cli/help/get-help-string.ts:16
↓ 3 callers
Function
getHre
()
packages/hardhat/src/internal/builtin-plugins/gas-analytics/helpers/compat.ts:16
↓ 3 callers
Function
getHre
()
packages/hardhat/src/internal/builtin-plugins/coverage/helpers/compat.ts:16
↓ 3 callers
Function
getLongestNameLength
( tasks: Array<{ name: string; shortName?: string }>, )
packages/hardhat/src/internal/cli/help/utils.ts:120
↓ 3 callers
Method
getNetworkFees
()
packages/ignition-core/test/execution/future-processor/utils.ts:111
↓ 3 callers
Method
getNonce
(blockTag?: BlockTag | undefined)
packages/hardhat-ethers/src/internal/signers/signers.ts:134
↓ 3 callers
Function
getNthColumn
(n)
packages/hardhat-vendored/src/coverage-module/istanbul-reports/lib/html/assets/sorter.js:25
↓ 3 callers
Method
getNumberOfCalls
(method: string)
packages/hardhat/test/internal/builtin-plugins/network-manager/request-handlers/ethereum-mocked-provider.ts:27
↓ 3 callers
Function
getPackageManager
()
packages/hardhat/src/internal/cli/init/package-manager.ts:68
← previous
next →
601–700 of 4,382, ranked by callers