See you in the mempool
libevm / cpo Goto Github PK
View Code? Open in Web Editor NEWChief Proxy Operator
License: Do What The F*ck You Want To Public License
Chief Proxy Operator
License: Do What The F*ck You Want To Public License
See you in the mempool
I am testing this repo out and I am observing around 2.8K gas overhead (difference between calling logic contract directly vs via proxy).
This is significantly larger than the numbers below reported here https://forum.openzeppelin.com/t/a-more-gas-efficient-upgradeable-proxy-by-not-using-storage/4111
Proxy | Gas cost | Gas overhead |
---|---|---|
OpenZeppelin Transparent | 29815 | 2770 |
Dharma Beacon | 29752 | 2707 |
EIP-1882 UUPS | 28679 | 1634 |
Storageless Beacon | 28629 | 1584 |
I am wondering if there is something that I did wrong.
My compiler setting:
Solc 0.8.17
via_ir = true
optimizer = true
optimizer_runs = 2000
Can other users share their overhead number ?
Thanks
I have called self-destruct on a proxy contract. It sends all remaining ether balance to CPO and now I am having trouble retrieving it from CPO.
That is my mistake... as I should either extend the CPO with a withdraw function or withdraw all ether from proxy before calling self-destruct
Anything I can do to recover the ether sent to CPO at this point ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.