API Reference
API Reference
This section contains the complete API reference for the OpenZeppelin Foundry Upgrades library.
Core Libraries
Upgrades
Library for deploying and managing upgradeable contracts from Forge scripts or tests. Requires OpenZeppelin Contracts v5 or higher.
LegacyUpgrades
Library for managing upgradeable contracts from Forge scripts or tests. Only for upgrading existing deployments using OpenZeppelin Contracts v4.
Defender
Library for interacting with OpenZeppelin Defender from Forge scripts or tests.
Options
Configuration options and structs used throughout the upgrade libraries.
Internal Libraries
Core
Internal helper methods to validate/deploy implementations and perform upgrades.
DefenderDeploy
Internal helper methods for Defender deployments.
Utils
Internal helper methods used by Upgrades and Defender libraries.
StringFinder
String manipulation utilities.
Versions
Version management utilities.
Interfaces
IProxyAdmin
Interface for proxy admin contracts.
IUpgradeableBeacon
Interface for upgradeable beacon contracts.
IUpgradeableProxy
Interface for upgradeable proxy contracts.