https://github.com/k1-r1/transparantproxyupgrades
This repo uses the Transparent Proxy pattern for upgrading smart contracts.
https://github.com/k1-r1/transparantproxyupgrades
brownie open-zeppelin proxy-contract python smart-contracts solidity
Last synced: about 1 year ago
JSON representation
This repo uses the Transparent Proxy pattern for upgrading smart contracts.
- Host: GitHub
- URL: https://github.com/k1-r1/transparantproxyupgrades
- Owner: K1-R1
- Created: 2022-02-12T21:39:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-12T23:54:51.000Z (about 4 years ago)
- Last Synced: 2025-01-21T16:46:34.812Z (about 1 year ago)
- Topics: brownie, open-zeppelin, proxy-contract, python, smart-contracts, solidity
- Language: Solidity
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TransparantProxyUpgrades
This repo uses the Transparent Proxy pattern for upgrading smart contracts. It uses most of the code from openzeppelin's repo, and adds brownie scripts on top.
This repo contains deployment scripts that will:
1. Deploy a `Box` implementation contract
2. Deploy a `ProxyAdmin` contract to be the admin of the proxy
3. Deploy a `TransparentUpgradeableProxy` to be the proxy for the implementations
Then, the upgrade script will:
4. Deploy a new Box implementation `BoxV2`
5. Upgrade the proxy to point to the new implementation contract.
6. Then it will call a function only `BoxV2` can call
The contract is designed to be deployed to:
- Rinkeby test network
The contract has been unit tested locally, with intergration testing performed on Rinkeby.
## Made with
- solidity
- python
- brownie
### This repo is a project created during the course;
- smartcontractkit/full-blockchain-solidity-course-py