-
Notifications
You must be signed in to change notification settings - Fork 0
/
eip-1167.md
21 lines (12 loc) · 1.78 KB
/
eip-1167.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## Summary
The ERC-1167: Minimal Proxy Contract is a standard for cloning contract functionality in a simple and cost-effective way. It specifies a minimal bytecode implementation that delegates all calls to a fixed address, allowing users and third-party tools to easily discover and depend on the behavior of the code at the destination contract. This implementation forwards all calls and gas to the implementation contract and relays the return value back to the caller. The standard clone contract bytecode is provided, with the bytes at indices 10-29 replaced with the 20 byte address of the master functionality contract. The goals of this effort have been to support inexpensive deployment and clone initialization in creation transactions, as well as to maintain a private reputation of contracts and keep track of which tokens and gas prices are used for deploying transactions. A reference implementation of the standard clone contract can be found on the optionality/clone-factory GitHub repository.
## Videos
- [Example Video Title](https://www.youtube.com/watch?v=TDGq4aeevgY)
## Projects
- [Example Project Name](https://xxxx.xxx/xxxxx) Project Description (one sentence) ![this is an img's alt for the project logo](https://xxxx.xxx/project-logo.xxx)
## Further Reading
- [Example Article Title](https://xxxx.xxx/xxxxx) ![this is an img's alt for the article cover](https://xxxx.xxx/article-cover.xxx)
- [Deep dive into the Minimal Proxy contract](https://blog.openzeppelin.com/deep-dive-into-the-minimal-proxy-contract)
- [EIP-1167: Minimal Proxy Standard with Initialization (Clone pattern)](https://www.rareskills.io/post/eip-1167-minimal-proxy-standard-with-initialization-clone-pattern)
## Related EIPs
- [ERC-6551][ERC-6551: Non-fungible Token Bound Accounts](https://eip.fun/eips/eip-6551)