Skip to content

[AUTOMATION] deploy autowrap with burned owner keys, switch to hardhat-verify#2104

Merged
d10r merged 6 commits intodevfrom
autowrap-hh
Sep 1, 2025
Merged

[AUTOMATION] deploy autowrap with burned owner keys, switch to hardhat-verify#2104
d10r merged 6 commits intodevfrom
autowrap-hh

Conversation

@d10r
Copy link
Collaborator

@d10r d10r commented Aug 28, 2025

  • Autowrap: call renounceOwnership() after deployment.

  • metadata update of new autowrap deployment on Base

  • Replaced @nomiclabs/hardhat-etherscan with @nomicfoundation/hardhat-verify for etherscan v2 compatibility.
    Since the v1 etherscan API key becomes defunct anyway, the env vars for v2 api keys was renamed to ETHERSCAN_API_V2_KEY.
    Also updated all hardhat related packages to the latest version compatible with hardhat v2 and ethers v5.

@github-actions
Copy link

github-actions bot commented Aug 28, 2025

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was simplified (inlined into the deploy script) because if burning the owner keys, there's no future path for adding more strategies.

"hardhat": "^2.22.9",
"hardhat-deploy": "^0.12.4",
"hardhat": "^2.26.1",
"hardhat-deploy": "^1.0.4",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The switch from v0 to v1 did not come with API breakage according to the changelog

"eslint-plugin-prettier": "^5.2.1",
"hardhat": "^2.22.9",
"hardhat-deploy": "^0.12.4",
"hardhat": "^2.26.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implies dropped node18 support. But with ethereum-contracts already having dropped that, should be ok.

"@nomicfoundation/hardhat-ethers": "^3.0.7",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@nomicfoundation/hardhat-ethers": "^3.1.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardhat-ethers v3 requires hardhat v2 and ethers v6.
There's also hardhat-ethers v4, but it requires hardhat v3.
ethereum-contracts package still uses ethers v5, thus has an overriding import of hardhat-ethers v2 which depends on ethers v5.

@codecov
Copy link

codecov bot commented Aug 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@d10r d10r marked this pull request as ready for review August 29, 2025 10:57
@d10r d10r changed the title [WIP] deploy autowrap with burned owner keys, switch to hardhat-verify [AUTOMATION] deploy autowrap with burned owner keys, switch to hardhat-verify Aug 29, 2025
@@ -11,7 +11,6 @@
./autowrap/package.json
./autowrap/contracts
./autowrap/test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about ./deploy/deploy.js

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my understanding here is that the nix env is only used for building and testing (with foundry), while deploy.js is a hardhat based deploy script. Is that correct or should deploy.js be included (anyway)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, if deploy.js is not used in testing flow, then it's not required.

@d10r d10r merged commit 4e3bf87 into dev Sep 1, 2025
47 of 49 checks passed
@d10r d10r deleted the autowrap-hh branch September 1, 2025 09:40
@github-actions
Copy link

github-actions bot commented Sep 1, 2025

XKCD Comic Relif

Link: https://xkcd.com/2104
https://xkcd.com/2104

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.

3 participants