Utils

Smart contract Utils utilities and implementations

import "@openzeppelin/src/internal/Utils.sol";
import "@openzeppelin/src/internal/Utils.sol";

Internal helper methods used by Upgrades and Defender libraries.

getFullyQualifiedName(string contractName, string outDir) → string

internal

#

Gets the fully qualified name of a contract.

getContractInfo(string contractName, string outDir) → struct ContractInfo

internal

#

Gets information about a contract from its Foundry artifact.

getBuildInfoFile(string sourceCodeHash, string contractName, string outDir) → string

internal

#

getOutDir() → string

internal

#

Gets the output directory from the FOUNDRY_OUT environment variable, or defaults to "out" if not set.

toBashCommand(string[] inputs, string bashPath) → string[]

internal

#

Converts an array of inputs to a bash command.

runAsBashCommand(string[] inputs) → struct VmSafe.FfiResult

internal

#

Runs an arbitrary command using bash.

On this page