Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@openzeppelin/hardhat-upgrades@3.9.1
Changelog
3.9.1 (2025-06-12)
"@nomicfoundation/hardhat-ethers": "^3.0.6"
"@nomicfoundation/hardhat-verify": "^2.0.14"
"hardhat": "^2.24.1"
3.9.0 (2025-01-13)
3.8.0 (2024-12-19)
deployProxy
,upgradeProxy
,deployBeaconProxy
, anddefender.deployContract
. (#1099)3.7.0 (2024-12-04)
proxyFactory
anddeployFunction
options which can be used to deploy a custom proxy contract. (#1104)3.6.0 (2024-11-25)
3.5.0 (2024-10-10)
3.4.0 (2024-09-23)
Potentially breaking changes
initialOwner
is not a ProxyAdmin contract when deploying a transparent proxy. (#1083)3.3.0 (2024-09-16)
metadata
option. (#1079)3.2.1 (2024-07-31)
3.2.0 (2024-06-24)
defender.proposeUpgrade
from Defender legacy. Defender users should usedefender.proposeUpgradeWithApproval
instead. (#1041)3.1.1 (2024-06-03)
constructorArgs
option, support arbitrary constructor arguments. (#1029)3.1.0 (2024-04-22)
licenseType
andskipLicenseType
options. (#1013)Breaking changes
// SPDX-License-Identifier: UNLICENSED
according to Solidity docs, or set thelicenseType
option to"None"
.3.0.5 (2024-03-08)
admin.transferProxyAdminOwnership
. (#978)3.0.4 (2024-02-27)
3.0.3 (2024-02-06)
3.0.2 (2024-01-09)
3.0.1 (2023-12-20)
txOverrides
option with Defender. (#951)3.0.0 (2023-12-11)
initialOwner
option when deploying a transparent proxy or beacon. If not set, the externally owned account used during deployment will be the default owner for the transparent proxy's admin or the beacon, respectively.@nomicfoundation/hardhat-verify
to v2.0.0 or higher. (#937)Breaking changes
deployProxy
,deployBeacon
,deployBeaconProxy
: Deploys proxy contracts from OpenZeppelin Contracts 5.0.deployProxy
:deployProxyAdmin
: Removed, since proxy admins are deployed automatically by transparent proxies.admin.changeProxyAdmin
: Not supported with admins or proxies from OpenZeppelin Contracts 5.0. Only supported for previously deployed admins and proxies from OpenZeppelin Contracts 4.x or below.admin.transferProxyAdminOwnership
: This function no longer uses the proxy admin from the network file. It now requires aproxyAddress
argument to be passed in.@nomicfoundation/hardhat-verify
v1.x and@nomicfoundation/hardhat-toolbox
v3.x are no longer supported with this plugin. If you are using these packages, update them to@nomicfoundation/hardhat-verify
v2.x and@nomicfoundation/hardhat-toolbox
v4.x.2.5.0 (2023-12-04)
defender.getDeployApprovalProcess
anddefender.getUpgradeApprovalProcess
functions. (#934)defender.getDefaultApprovalProcess
function. This function is equivalent todefender.getUpgradeApprovalProcess
.Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.
2.4.3 (2023-11-28)
@openzeppelin/upgrades-core
. (#930)2.4.2 (2023-11-28)
upgradeProxy
from an implementation that has a fallback function and is not using OpenZeppelin Contracts 5.0. (#926)2.4.1 (2023-11-14)
Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.
2.4.0 (2023-11-13)
createFactoryAddress
option for Defender deployments. (#920)Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.
2.3.3 (2023-10-12)
2.3.2 (2023-10-11)
2.3.1 (2023-09-28)
2.3.0 (2023-09-27)
2.2.1 (2023-08-18)
2.2.0 (2023-08-17)
Note: Functions that were for OpenZeppelin Platform have breaking changes since the previous release and have been renamed for OpenZeppelin Defender. See (#863) for details. OpenZeppelin Defender deployments is in beta and its functionality is subject to change.
2.1.1 (2023-08-08)
hardhat-verify
. (#857)2.1.0 (2023-08-03)
txOverrides
option for overriding transaction parameters. (#852)2.0.2 (2023-07-26)
2.0.1 (2023-07-12)
2.0.0 (2023-07-05)
ethers
v6 andhardhat-ethers
v3. (#817)hardhat-verify
for proxy verification. (#829)Breaking changes
This new major version requires
ethers
v6 and@nomicfoundation/hardhat-ethers
v3 as peer dependencies.For Etherscan verification, it also requires
@nomicfoundation/hardhat-verify
.How to update from a previous version
Update your existing project according to Hardhat Toolbox v3's release notes.
Then update this plugin, for example:
npm install @openzeppelin/hardhat-upgrades@latest
1.28.0 (2023-06-14)
walletId
option torelayerId
for OpenZeppelin Platform deployments. Update dependencies. (#806)Note: OpenZeppelin Platform is in beta and its functionality is subject to change.
1.27.0 (2023-05-26)
salt
option for deployments on OpenZeppelin Platform. (#799)redeployImplementation
option, deprecateuseDeployedImplementation
. (#804)Note: OpenZeppelin Platform is in beta and its functionality is subject to change.
1.26.0 (2023-05-15)
Note: Some OpenZeppelin Platform functions have breaking changes since the previous release. See (#791) for details. OpenZeppelin Platform is in beta and its functionality is subject to change.
1.25.3 (2023-05-12)
1.25.2 (2023-05-12)
1.25.1 (2023-05-10)
platform.deployContract
. (#793)1.25.0 (2023-05-08)
Note: OpenZeppelin Platform is in beta and its functionality is subject to change.
1.24.0 (2023-05-03)
admin
functions. (#784)1.23.1 (2023-04-26)
verify
to fall back to hardhat-etherscan if proxy bytecode does not match. (#752)1.23.0 (2023-04-26)
prepareUpgrade
from an implementation address. (#777)1.22.1 (2023-01-18)
1.22.0 (2022-12-15)
verify
to verify beacons. (#695)1.21.0 (2022-09-27)
1.20.1 (2022-09-26)
verify:verify
subtask from hardhat-etherscan. (#619)Breaking change: To verify a proxy on Etherscan programmatically from a Hardhat script, call
verify:verify
instead ofverify
:1.20.0 (2022-08-08)
1.19.1 (2022-07-26)
debug
andethers
. (#600)upgradeProxy
. (#604)1.19.0 (2022-06-16)
proposeUpgrade
. (#554)1.18.3 (2022-06-14)
1.18.2 (2022-06-14)
verify
to be compatible with latest version of hardhat-etherscan. (#592)1.18.1 (2022-06-03)
1.18.0 (2022-05-31)
1.17.0 (2022-03-29)
forceImport
, fix importing UUPS proxy with admin (#550)1.16.1 (2022-03-15)
1.16.0 (2022-03-08)
unsafeSkipStorageCheck
to skip storage layout compatibility check during upgrades. (#495)1.15.0 (2022-03-01)
forceImport
function to import an existing proxy or beacon. (#517)1.14.0 (2022-01-31)
timeout
andpollingInterval
. (#55)1.13.0 (2022-01-12)
1.12.1 (2022-01-06)
1.12.0 (2021-10-28)
upgradeToAndCall
to batch a function call into the upgrade transaction. (#443)1.11.0 (2021-10-22)
1.10.0 (2021-08-25)
erc1967
module. (#413)1.9.0 (2021-06-29)
unsafeAllowRenames
to configure storage layout check to allow variable renaming.1.8.2 (2021-05-13)
deployTransaction
assignment indeployProxy
as a fix for congested networks.1.8.1 (2021-05-13)
deployTransaction
assignment inupgradeProxy
.1.8.0 (2021-05-12)
Support passing contract instance to
upgradeProxy
andprepareUpgrade
.Enable awaiting until a proxy upgrade is mined:
const v2 = await upgrades.upgradeProxy(proxy, ContractV2);
await v2.deployed();
1.7.0 (2021-04-29)
1.6.0 (2021-01-27)
1.5.0 (2021-01-15)
upgrades.admin.getInstance()
to retrieve the instance ofProxyAdmin
that is in use. (#274)1.4.3 (2020-12-16)
unsafeAllowCustomTypes
flag that would cause other storage layout incompatibilities to be ignored. (#259)Users of this flag are advised to update to this version.
1.4.2 (2020-12-04)
1.4.1 (2020-11-30)
admin
to the TypeScript type forhre.upgrades
.1.4.0 (2020-11-24)
silenceWarnings
to emit a single warning and silence all subsequent ones. (#228)1.3.1 (2020-11-18)
args
indeployProxy
when it's an empty array.1.3.0 (2020-11-13)
1.2.1 (2020-10-21)
initializer: false
. (#204)1.2.0 (2020-10-16)
unsafeAllowLinkedLibraries
to allow deployment of contracts with linked libraries. (#182)1.1.1 (2020-10-08)
1.1.0 (2020-09-18)
1.0.2 (2020-09-01)
src
directory in npm packages. (#150)1.0.1 (2020-08-20)
deployProxy
. (#129, #133)