Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordaniza/OZ-Upgradeable-Foundry
Minimal Upgradeable Contract Deploy and Test with foundry
https://github.com/jordaniza/OZ-Upgradeable-Foundry
Last synced: 2 months ago
JSON representation
Minimal Upgradeable Contract Deploy and Test with foundry
- Host: GitHub
- URL: https://github.com/jordaniza/OZ-Upgradeable-Foundry
- Owner: jordaniza
- Created: 2022-07-22T12:26:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T15:59:09.000Z (over 1 year ago)
- Last Synced: 2024-08-01T01:27:31.615Z (5 months ago)
- Language: Solidity
- Homepage:
- Size: 16.6 KB
- Stars: 93
- Watchers: 1
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-upgradeability - OpenZeppelin Upgradeable Contracts With Foundry
- awesome-foundry - Upgradeable Contracts With OpenZeppelin and Foundry - A minimal set of contracts showing how to implement UUPS and Transparent Upgradeable Proxy contracts using foundry, along with testing and deployment with Forge Script. (Templates & Libraries)
README
# OpenZeppelin Upgradeable Contracts With Foundry
An example of writing and testing an Upgradeable smart contract using the OpenZeppelin UUPS Libraries.
[Here's a more complete walkthrough](https://jordaniza.com/posts/upgradeable-contracts/) of upgradeable contracts and Transparent vs. UUPS
# Deploying
```sh
# this runs the deploy script on a local network, to run for real you'll need to broadcast.
# See forge scripting for more info.
forge script DeployUUPS
```# Testing
```
forge test
```# Libraries
```sh
forge install foundry-rs/forge-std
forge install OpenZeppelin/openzeppelin-contracts
forge install OpenZeppelin/openzeppelin-contracts-upgradeable
forge install paulrberg/[email protected]```