Giter VIP home page Giter VIP logo

ethdenver-aa's People

Contributors

kopy-kat avatar mobaioumy avatar olivert1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ethdenver-aa's Issues

Great to see this

Great to see this implementation that uses EIP-2535 Diamonds!

I noticed something that I would like to address. I noticed on twitter the description of this project using "using (modified) Diamond Proxies (ERC-2535).". And I noticed in the README the text, " we created a custom implementation of diamond proxies".

The diamond reference implementations are not the standard, they are only working (and security audited) examples of implementations of EIP-2535. The standard can be implemented in various ways with various different functionality. There is no such thing as a "custom" implementation of EIP-2535 Diamonds. There is only implementations that implement the standard or don't.

If you take an existing diamond reference implementation, like you did, and make your own changes to it, that does not mean that you created a "modified" or "custom" diamond proxy. Because a reference implementation is just an example of an implementation and the standard is VERY flexible. As long as you follow the Implementation Points stated in the standard then your implementation is a standard implementation of EIP-2535 Diamonds.

I looked briefly at your code and I only saw one deviation of the standard which is that you did not add the "immutable" functions to the diamond. Immutable functions are external functions that are defined directly in the diamond proxy or inherited. They also need to be added to the diamond using diamondCut. This is an interoperability point --- the loupe functions and DiamondCut event will be missing data if you don't do this -- and it is a security point. This is an easy fix: add your immutable functions to the diamond, just like you would any other external functions. But you will find that a better design is to move all your external functions to their own facet that is only deployed once. That design reduces the cost of deploying diamonds (because you can just reuse already deployed facets) and gives you more flexibility to add/replace external functions.

Check out this article about EIP-2535 Diamonds compliance: https://eip2535diamonds.substack.com/p/compliance-with-eip-2535-diamonds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.