Upgradable contracts (part-1)

In Part-1, we see what is Upgradable contract

One of the basic rules of EVM is that once a contract is deployed, it cannot be changed. Instead, an upgradable smart contract uses a special proxy pattern. The latter involves deploying proxy co…


This content originally appeared on DEV Community and was authored by chandramarch18

In Part-1, we see what is Upgradable contract

One of the basic rules of EVM is that once a contract is deployed, it cannot be changed. Instead, an upgradable smart contract uses a special proxy pattern. The latter involves deploying proxy contracts and implementation contracts (logic contracts).

  • User interacts with proxy contract that intiates fallback function that deligates call to contract implementation(V1).
  • Proxy contract has upgrade function to deligate call to new contract implementation(V2).
  • For security purpose, upgrade function should be invoked by only Admin.
  • Admin interacts with proxy admin contract which interm calls upgrade function of the proxy

image 1

image 2

image3


This content originally appeared on DEV Community and was authored by chandramarch18


Print Share Comment Cite Upload Translate Updates
APA

chandramarch18 | Sciencx (2022-04-16T13:49:30+00:00) Upgradable contracts (part-1). Retrieved from https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/

MLA
" » Upgradable contracts (part-1)." chandramarch18 | Sciencx - Saturday April 16, 2022, https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/
HARVARD
chandramarch18 | Sciencx Saturday April 16, 2022 » Upgradable contracts (part-1)., viewed ,<https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/>
VANCOUVER
chandramarch18 | Sciencx - » Upgradable contracts (part-1). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/
CHICAGO
" » Upgradable contracts (part-1)." chandramarch18 | Sciencx - Accessed . https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/
IEEE
" » Upgradable contracts (part-1)." chandramarch18 | Sciencx [Online]. Available: https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/. [Accessed: ]
rf:citation
» Upgradable contracts (part-1) | chandramarch18 | Sciencx | https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.