Skip to content

Practical demo implementation of EIP-1167: Minimal Proxy Contract

Notifications You must be signed in to change notification settings

PeakyCryptos/customizableERC20Clones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clone Pattern Demo

Inspired by the OpenZeppelin workshop video

This project was created to showcase the gas efficiency of deploying customizable contracts that would point to a common fixed implementation. The most efficient known way to do this is via EIP-1167: Minimal Proxy Contract.

Unlike other proxy standards which include upgrade functionality in either the proxy itself or the implementation, this methodology is meant to have a static implementation address that can never be changed. The purpose of this contract is to solely act as the call forwarder/storage. Which is achievied via delegate calls onto the implementation contract.

The ERC20 contract which was used is a custom contract which adds functionality to OpenZeppelin's ERC20 Capped contract. Allowing for customization of the owner, name, symbol, and max supply.

Gas Efficiency Breakdown

image

About

Practical demo implementation of EIP-1167: Minimal Proxy Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published