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
↓ 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:961
↓ 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
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
↓ 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:822
↓ 3 callers
Method
#downloadConfiguredCompilers
(quiet = false)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts:1344
↓ 3 callers
Method
#getBuildProfile
(buildProfileName: string = DEFAULT_BUILD_PROFILE)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts:851
↓ 3 callers
Method
#getCompilerBuild
(version: string)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts:270
↓ 3 callers
Method
#getCompilerListPath
()
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts:295
↓ 3 callers
Method
#getDataPath
(id: string)
packages/hardhat/src/internal/builtin-plugins/coverage/coverage-manager.ts:87
↓ 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:321
↓ 3 callers
Method
#isHardhatNetwork
()
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:1034
↓ 3 callers
Method
#toRpcSig
(sig: Signature)
packages/hardhat-ledger/src/internal/handler.ts:583
↓ 3 callers
Method
_assertValidAddress
( address: | string | AddressResolvableFuture | ModuleParameterRuntimeValue<string>
packages/ignition-core/src/internal/module-builder.ts:1228
↓ 3 callers
Method
_assertValidArtifact
( artifact: Artifact, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1184
↓ 3 callers
Method
_assertValidCallableContract
( contract: CallableContractFuture<string>, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1195
↓ 3 callers
Method
_assertValidFunctionName
( functionName: string, func: (...[]: any[]) => any, )
packages/ignition-core/src/internal/module-builder.ts:1094
↓ 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:253
↓ 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:941
↓ 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:188
↓ 3 callers
Method
addChild
(child)
packages/hardhat-vendored/src/coverage-module/istanbul-lib-report/lib/summarizer-factory.cjs:34
↓ 3 callers
Method
addData
(data: CoverageData)
packages/hardhat/src/internal/builtin-plugins/coverage/types.ts:16
↓ 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:285
↓ 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
↓ 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:100
↓ 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:738
↓ 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:33
↓ 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
buildUtilsTask
( builder: NewTaskDefinitionBuilder<TaskArgumentsT>, action: LazyActionObject<NewUtilsTaskActionFunction<T
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/utils-task.ts:20
↓ 3 callers
Function
bytesIncludesUtf8String
( haystack: Uint8Array, needle: string, )
packages/hardhat-utils/src/bytes.ts:72
↓ 3 callers
Function
bytesToUtf8String
(bytes: Uint8Array)
packages/hardhat-utils/src/bytes.ts:58
↓ 3 callers
Function
calculateBatchDisplay
(state: UiState)
packages/hardhat-ignition/src/internal/ui/helpers/calculate-batch-display.ts:5
↓ 3 callers
Function
canonicalizeStructs
( structs: CollectedStruct[], selectedNames: Set<string>, )
packages/hardhat/src/internal/builtin-plugins/solidity-test/eip712/canonicalize.ts:31
↓ 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:132
↓ 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:176
↓ 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:198
↓ 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:457
↓ 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
Method
create
( networkOrParams?: NetworkConnectionParams<ChainTypeT> | string, )
packages/hardhat/src/internal/builtin-plugins/network-manager/network-manager.ts:100
↓ 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:
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
createSuiteResult
( contractNameOrFqn: string, testResults: TestResult[], )
packages/hardhat/test/internal/builtin-plugins/gas-analytics/suite-result-helpers.ts:94
↓ 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:255
↓ 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: | DeploymentExecuti
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
destroy
()
packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts:116
↓ 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:126
↓ 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:25
↓ 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:419
↓ 3 callers
Function
encodeConstructorArgs
( abi: JsonFragment[], constructorArgs: unknown[], contract: string, )
packages/hardhat-verify/src/internal/constructor-args.ts:21
↓ 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
estimateCompilationJobCost
(job: CompilationJob)
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/compilation-job-cost.ts:9
↓ 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:74
↓ 3 callers
Function
extractSnapshotCheatcodes
( suiteResults: SuiteResult[], )
packages/hardhat/src/internal/builtin-plugins/gas-analytics/snapshot-cheatcodes.ts:139
↓ 3 callers
Function
fetch
(prefix: string[])
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/fetch/index.ts:6
↓ 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:1075
↓ 3 callers
Function
format
(v: string | RegExp | Function | undefined)
packages/hardhat-verify/test/utils.ts:82
↓ 3 callers
Function
formatArtifactId
( artifactId: ArtifactId, sourceNameToUserSourceName: Map<string, string>, )
packages/hardhat/src/internal/builtin-plugins/solidity-test/formatters.ts:3
↓ 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:196
↓ 3 callers
Function
formatTable
(items: TableItem[])
packages/hardhat-utils/src/format.ts:89
← previous
next →
501–600 of 3,947, ranked by callers