Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency @openzeppelin/hardhat-upgrades to v3 #81

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 24, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@openzeppelin/hardhat-upgrades (source) ^1.16.1 -> ^3.0.0 age adoption passing confidence

Release Notes

OpenZeppelin/openzeppelin-upgrades (@​openzeppelin/hardhat-upgrades)

v3.2.0

Compare Source

  • Breaking change: Remove defender.proposeUpgrade from Defender legacy. Defender users should use defender.proposeUpgradeWithApproval instead. (#​1041)

v3.1.1

Compare Source

  • Defender: Fix proxy deployments when using constructorArgs option, support arbitrary constructor arguments. (#​1029)

v3.1.0

Compare Source

  • Defender: Fix handling of license types for block explorer verification, support licenseType and skipLicenseType options. (#​1013)
Breaking changes
  • When deploying through Defender, if your contract does not have an SPDX license identifier, the verified source code on Etherscan will no longer show any license type.
    • If you want the license type to appear as "None", either set your contract to have // SPDX-License-Identifier: UNLICENSED according to Solidity docs, or set the licenseType option to "None".

v3.0.5

Compare Source

  • Simplify console logging for admin.transferProxyAdminOwnership. (#​978)
  • Support private networks and forked networks with Defender. (#​989)

v3.0.4

Compare Source

  • Support externally linked libraries for Defender deployments. (#​960)

v3.0.3

Compare Source

  • Support Defender deployments using EOA or Safe. (#​967)

v3.0.2

Compare Source

  • Support proxy verification on Snowtrace. (#​954)

v3.0.1

Compare Source

  • Update dependency on undici. (#​948)
  • Update Defender SDK, support txOverrides option with Defender. (#​951)

v3.0.0

Compare Source

  • Deploy proxies from OpenZeppelin Contracts 5.0. (#​919)
  • Support 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.
  • Update optional peer dependency on @nomicfoundation/hardhat-verify to v2.0.0 or higher. (#​937)
    • Note: Fully verifying proxies is only supported with Etherscan at the moment. The Hardhat Upgrades plugin does not currently assist with Sourcify verification for proxies.
Breaking changes
  • deployProxy, deployBeacon, deployBeaconProxy: Deploys proxy contracts from OpenZeppelin Contracts 5.0.
  • deployProxy:
    • Deploying a transparent proxy automatically causes a new proxy admin contract to be deployed along with the proxy.
    • New transparent proxy deployments no longer use an existing proxy admin, even if one was previously recorded in the network file.
    • New proxy admins are no longer recorded in the network file.
  • 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 a proxyAddress 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.

v2.5.1

Compare Source

  • Update Defender SDK, support txOverrides option with Defender. (#​951)

v2.5.0

Compare Source

  • Add defender.getDeployApprovalProcess and defender.getUpgradeApprovalProcess functions. (#​934)
  • Deprecate defender.getDefaultApprovalProcess function. This function is equivalent to defender.getUpgradeApprovalProcess.

Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.

v2.4.3

Compare Source

  • Bump dependency on @openzeppelin/upgrades-core. (#​930)

v2.4.2

Compare Source

  • Fix upgradeProxy from an implementation that has a fallback function and is not using OpenZeppelin Contracts 5.0. (#​926)

v2.4.1

Compare Source

  • Update Defender SDK. (#​924)
  • Throw error if not using a relayer for deployments, until other types of deployments are supported.

Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.

v2.4.0

Compare Source

  • Add createFactoryAddress option for Defender deployments. (#​920)

Note: OpenZeppelin Defender deployments is in beta and its functionality is subject to change.

v2.3.3

Compare Source

  • Update OpenZeppelin Defender deployments to use Defender SDK (#​888)

v2.3.2

Compare Source

  • Fix Hardhat compile error when using Solidity 0.5.x. (#​892)

v2.3.1

Compare Source

  • Check for non-zero admin address when importing transparent proxy. (#​887)

v2.3.0

Compare Source

  • Support new upgrade interface in OpenZeppelin Contracts 5.0. (#​883)
  • Support importing and upgrading 5.0 proxies.
    • Note: Deploying 5.0 proxies is not supported yet.
  • Add validations for namespaced storage layout. (#​876)

v2.2.1

Compare Source

  • Allow using proxy with different admin address than manifest. (#​859)

v2.2.0

Compare Source

  • Rename Platform to Defender. (#​863)

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.

v2.1.1

Compare Source

  • Use public Etherscan API from hardhat-verify. (#​857)

v2.1.0

Compare Source

  • Add txOverrides option for overriding transaction parameters. (#​852)

v2.0.2

Compare Source

  • Enable storage layout for overrides from Hardhat config. (#​851)

v2.0.1

Compare Source

  • Update OpenZeppelin Platform client dependencies. (#​845)

v2.0.0

Compare Source

  • Use ethers v6 and hardhat-ethers v3. (#​817)
  • Use hardhat-verify for proxy verification. (#​829)
  • Remove address override for deployments. (#​832)
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

v1.28.0

Compare Source

  • Breaking change: Rename walletId option to relayerId for OpenZeppelin Platform deployments. Update dependencies. (#​806)

Note: OpenZeppelin Platform is in beta and its functionality is subject to change.

v1.27.0

Compare Source

  • Support salt option for deployments on OpenZeppelin Platform. (#​799)
  • Add redeployImplementation option, deprecate useDeployedImplementation. (#​804)

Note: OpenZeppelin Platform is in beta and its functionality is subject to change.

v1.26.0

Compare Source

  • Breaking change: Improve OpenZeppelin Platform functions. (#​791)

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.

v1.25.3

Compare Source

  • Add missing file in package. (#​797)

v1.25.2

Compare Source

  • Use proxies from OpenZeppelin Contracts 4.8.3. (#​795)

v1.25.1

Compare Source

  • Fix type error with platform.deployContract. (#​793)

v1.25.0

Compare Source

  • Enable using OpenZeppelin Platform for deployments. (#​763)

Note: OpenZeppelin Platform is in beta and its functionality is subject to change.

v1.24.0

Compare Source

  • Support custom signer for admin functions. (#​784)

v1.23.1

Compare Source

  • Enable verify to fall back to hardhat-etherscan if proxy bytecode does not match. (#​752)

v1.23.0

Compare Source

  • Support prepareUpgrade from an implementation address. (#​777)

v1.22.1

Compare Source

  • Handle getLogs error for Blockscout explorer. (#​706)

v1.22.0

Compare Source

  • Enable verify to verify beacons. (#​695)

v1.21.0

Compare Source

  • Include solc version in storage layouts in manifest files. (#​662)

v1.20.1

Compare Source

  • Override verify:verify subtask from hardhat-etherscan. (#​619)

Breaking change: To verify a proxy on Etherscan programmatically from a Hardhat script, call verify:verify instead of verify:

await hre.run("verify:verify", {
  address: PROXY_ADDRESS,
});

v1.20.0

Compare Source

  • Provide granular functions to allow more customizable deployments. (#​580)

v1.19.1

Compare Source

  • Add dependencies on debug and ethers. (#​600)
  • Improve check for admin contract in upgradeProxy. (#​604)

v1.19.0

Compare Source

  • Return ethers transaction response with proposeUpgrade. (#​554)

v1.18.3

Compare Source

  • Fix dependency on hardhat-etherscan.

v1.18.2

Compare Source

  • Update verify to be compatible with latest version of hardhat-etherscan. (#​592)

v1.18.1

Compare Source

  • Fix task redefinition error with hardhat-etherscan. (#​586)

v1.18.0

Compare Source

  • Support verifying a proxy on Etherscan using Hardhat. (#​579)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@marc-aurele-besner marc-aurele-besner deleted the renovate/openzeppelin-hardhat-upgrades-3.x branch June 26, 2024 23:58
Copy link
Contributor Author

renovate bot commented Jun 26, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant