feat: add oz foundry upgrades to rev dist upgrade script - #117
Conversation
Pull Request ReviewThis PR integrates OpenZeppelin Foundry Upgrades into the repository and refactors the BSC Revenue Distributor upgrade script to use Sensitive ContentBlockchain Address:
No sensitive content detected for private keys/seed phrases or social accounts. Security Issues🟡 [MEDIUM] Potentially unsafe script-level upgrade authority simplification (confirm intended operational model)
No serious security issues detected. Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits. |
Pull Request ReviewThis PR integrates OpenZeppelin Foundry Upgrades into the repository and migrates the Revenue Distributor upgrade script to use Sensitive ContentBlockchain Address:
Security IssuesNo serious security issues detected. Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits. |
📄 Description
This PR adds Openzeppelin's Foundry Upgrades to the repo, and uses it in the Revenue Distributor upgrade script.
🧠 Rationale
Using the Openzeppelin's Foundry Upgrades library provides a safer means of upgrading proxy contracts by automating safety checks for things such as storage collisions.
🧪 Example / Testing
The pre-existing test for the Revenue Distributor has been modified to include this deploy script, which validates that it works as expected.
🧬 Changes Summary
Upgradesfoundry.tomlandunit-tests.yamlto support usingUpgrades(e.g. adding 'forge clean' and build information)