Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/decentralisedme/upgrades

Example of how Proxies can be use in order to "upgrede" an existing smart contract. Interesting to see how all the txns are performed via Proxy, there is no trace on the implemented smart contracts
https://github.com/decentralisedme/upgrades

Last synced: about 2 months ago
JSON representation

Example of how Proxies can be use in order to "upgrede" an existing smart contract. Interesting to see how all the txns are performed via Proxy, there is no trace on the implemented smart contracts

Awesome Lists containing this project

README

        

Lesson 12 from PatrickAlphaC:
- https://github.com/smartcontractkit/full-blockchain-solidity-course-py

Two contracts have been created:
1. Box >> retrieve and store functions
2. BoxV2 >> retrieve, store and increment functions

We want:
1. deploy Box
2. store some value
3. Upgrade From Box => BoxV2
4. Increment the already stored value

This is peroformed via OpenZeppelin proxy contracts:
- ProxyAdmin
- TransparentUpradeableProxy

The contracts have been deployed and verified in Rinkeby and as result Upgrade + Store + Increment have all been done via proxy, as you can see:
- https://rinkeby.etherscan.io/address/0x13ff473c6253966a6b3454e0c00ab70f14470e6f

Tests have been run as well.