How openzeppelin/openzeppelin-contracts works
OpenZeppelin Contracts is a Solidity library for secure smart-contract development; its README highlights token standards, access control, and reusable utilities. The principal user workflow is to import a library contract into an application, then compile and use that application. The provided tree and source excerpts mainly expose supporting Hardhat integrations rather than the Solidity library itself, so this map focuses on those visible integrations. Edges are limited to relationships shown in excerpts, the source index, or README; the library’s Solidity modules are not represented because their paths are absent.
Main entry points: hardhat.config.ts Hardhat Config · network.ts Connection Helpers · generate-exposed-contracts.ts Generate Exposed · plugin.ts Exposed Plugin
Components 20
Exposed Contracts
- Exposed Plugin
hardhat/hardhat-exposed/plugin.ts - Generate Exposed
hardhat/hardhat-exposed/tasks/generate-exposed-contracts.ts - Contract Exposure
hardhat/hardhat-exposed/internal/expose.ts - Generation Manifest
hardhat/hardhat-exposed/internal/manifest.ts
Network Helpers
- Helpers Plugin
hardhat/hardhat-oz-contracts-helpers/plugin.ts - Connection Helpers
hardhat/hardhat-oz-contracts-helpers/hook-handlers/network.ts - Account Helpers
hardhat/hardhat-oz-contracts-helpers/internal/account.ts - Chain Formatting
hardhat/hardhat-oz-contracts-helpers/internal/chains.ts - Time Helpers
hardhat/hardhat-oz-contracts-helpers/internal/time.ts - Storage Helpers
hardhat/hardhat-oz-contracts-helpers/internal/storage.ts
Solidity Documentation
- Docgen Plugin
hardhat/hardhat-solidity-docgen/plugin.ts - Docgen Task
hardhat/hardhat-solidity-docgen/tasks/docgen.ts - Site Generator
hardhat/hardhat-solidity-docgen/internal/main.ts - Site Builder
hardhat/hardhat-solidity-docgen/internal/site.ts - NatSpec Parser
hardhat/hardhat-solidity-docgen/internal/utils/natspec.ts
Compilation Tools
- Transpiler Task
hardhat/hardhat-transpiler/tasks/transpile.ts - Yul Build Hook
hardhat/hardhat-yul/hook-handlers/solidity.ts - Yul Compiler
hardhat/hardhat-yul/internal/compile.ts
Other components
- Contract Developer
- Hardhat Config
hardhat.config.ts
Connections 19
- Contract Developer → Hardhat Config: configures
hardhat.config.ts - Hardhat Config → Exposed Plugin: loads
hardhat.config.ts - Hardhat Config → Helpers Plugin: loads
hardhat.config.ts - Hardhat Config → Docgen Plugin: loads
hardhat.config.ts - Hardhat Config → Yul Compiler: loads
hardhat.config.ts - Exposed Plugin → Generate Exposed: registers
hardhat/hardhat-exposed/plugin.ts - Generate Exposed → Contract Exposure: calls
hardhat/hardhat-exposed/tasks/generate-exposed-contracts.ts - Generate Exposed → Generation Manifest: updates
hardhat/hardhat-exposed/tasks/generate-exposed-contracts.ts - Helpers Plugin → Connection Helpers: registers
hardhat/hardhat-oz-contracts-helpers/plugin.ts - Connection Helpers → Account Helpers: uses
hardhat/hardhat-oz-contracts-helpers/hook-handlers/network.ts - Connection Helpers → Chain Formatting: uses
hardhat/hardhat-oz-contracts-helpers/hook-handlers/network.ts - Connection Helpers → Time Helpers: uses
hardhat/hardhat-oz-contracts-helpers/hook-handlers/network.ts - Connection Helpers → Storage Helpers: uses
hardhat/hardhat-oz-contracts-helpers/hook-handlers/network.ts - Docgen Plugin → Docgen Task: registers
hardhat/hardhat-solidity-docgen/plugin.ts - Docgen Task → Site Generator: calls
hardhat/hardhat-solidity-docgen/tasks/docgen.ts - Site Generator → Site Builder: builds
hardhat/hardhat-solidity-docgen/internal/main.ts - NatSpec Parser → Site Builder: reads context
hardhat/hardhat-solidity-docgen/internal/utils/natspec.ts - Transpiler Task → Hardhat Config: runs build
hardhat/hardhat-transpiler/tasks/transpile.ts - Yul Build Hook → Yul Compiler: calls
hardhat/hardhat-yul/hook-handlers/solidity.ts