Skip to content

gokhanaltun/solidity-upgradable-proxy-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Simple Upgradable Proxy Contract

This example demonstrates a simplified upgradable proxy pattern written in Solidity. It is designed solely to showcase the basic mechanism of the pattern, without implementing security checks or other optimizations.

Upgradable contracts are used to overcome the limitations of immutable smart contracts on the blockchain. The proxy pattern allows us to separate the logic of a contract into a different contract, enabling upgrades to the logic contract without affecting the stored data, thus maintaining data persistence while adding new functionalities.

Test

To run the tests, use the following command:

forge test -vvv

Warning

This example is only intended to demonstrate the working principle of the upgradable proxy pattern. In real-world projects, proper security measures and validations must be applied.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published