<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexe Spataru on Medium]]></title>
        <description><![CDATA[Stories by Alexe Spataru on Medium]]></description>
        <link>https://medium.com/@urataps?source=rss-a446dde30b01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NV9zkgw7UCIFRxbP3peTZg.jpeg</url>
            <title>Stories by Alexe Spataru on Medium</title>
            <link>https://medium.com/@urataps?source=rss-a446dde30b01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:14:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@urataps/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fuel Hacker House: Istanbul Edition]]></title>
            <link>https://medium.com/@urataps/fuel-hacker-house-istanbul-edition-abb533b45828?source=rss-a446dde30b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/abb533b45828</guid>
            <dc:creator><![CDATA[Alexe Spataru]]></dc:creator>
            <pubDate>Sun, 03 Dec 2023 22:28:10 GMT</pubDate>
            <atom:updated>2023-12-03T23:07:44.303Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TXSlZd8oHtRjU8K9wbOAfQ.png" /></figure><p>The adventure began on the 14th, with the journey from Istanbul Airport proving longer than the flight itself. Amidst the flurry of taxi pushers, I opted for the metro — a decision that led me on a scenic detour, complete with a cat casually lounging on barrels at the metro entrance. A classic Istanbul welcome!</p><p>Finally, I made it to Devconnect at the Congress Center, a seven-story subterranean fortress of tech and innovation. The place buzzed with a blend of focused coders, animated strategists, and casual chats over coffee, all punctuated by the occasional sight of a cat or the Turkish ice cream vendor’s attempts at English.</p><p>The real journey, however, began as I ventured to the Fuel Network Hacker House, hosted by Supermoon Camp. Here, the essence of the event was to immerse into Fuel’s technology. The hotel, warm and welcoming, became a melting pot of ideas and innovation.</p><p>Fuel’s workshops were an eye-opener. They introduced us to the unique aspects of the Fuel blockchain, particularly its UTXO model that enables parallel transaction execution. This model, they explained, is akin to breaking and re-stuffing piggy banks for each transaction — a novel approach ensuring efficiency and security.</p><p>The Fuel team’s dedication to smoothing the developer experience was evident, especially for those transitioning from Ethereum. The SDK workshop was a highlight, showcasing how Fuel simplifies interactions with tokens and smart contracts.</p><p>Amidst the learning, there were moments of lightheartedness — camera crews capturing candid shots and interviews that allowed us to share our experiences and ongoing projects.</p><p>The following days were a whirlwind of conferences and parties, from EVM Summit to L2 Days, interspersed with networking (with humans and cats alike). While I missed out on rAAVE, the Avalanche party with its energetic DJ and free drinks was a blast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*1lVC8oYqkP-wJz7-Vv1fPQ.png" /><figcaption>Hacker House entrance when rain captured Istanbul.</figcaption></figure><p>A highlight was the rooftop event at the hacker house, offering breathtaking views of Istanbul at sunset. Here, I mingled with Fuel’s global team and like-minded builders, sharing insights and, inadvertently, the news of my upcoming birthday.</p><p>Even on my birthday, celebrated with a surprise cake from the Fuel and Supermoon team, my mind was on understanding predicates — a complex but fascinating feature of Fuel’s blockchain architecture.</p><p>The anticipation for the ETH Global hackathon was palpable. This was where the theoretical met the practical. The grueling coding sessions, fueled by caffeine and techno, were a testament to the drive and dedication that the web3 environment fosters.</p><p>The hackathon was a race against time, balancing coding with family calls and judges’ queries. The front-end development was challenging but rewarding.</p><p>My project demonstrated the potential of integrating a module marketplace for the Safe{CORE} {Protocol} where each plugin is represented as a rentable NFT, thus introducing a Software as a Service (SaaS) mechanic to smart contracts. The culmination of the event was exhilarating — winning the first prize for Safe and other bounties, a testament to the solo hacker spirit amid a sea of 1400 participants.</p><p>As the hackathon finished, I was fortunate to connect with the CEO of sprk.fi, who was leveraging Fuel’s predicate concept for a fast order book. Their discussion on Fuel’s optimistic rollups and the UTXO model’s ability to process transactions in parallel was intellectually invigorating, providing deep insights into the potential of Fuel’s technology.</p><p>Despite the exhaustion, the final dinner with the Fuel and Supermoon team was a delightful experience, filled with fine dining and engaging conversations. As I departed Istanbul, with a brief but memorable visit to Hagia Sophia, the experience at the Fuel Hacker House lingered in my mind. It was a profound journey into the world of blockchain, shaped by the innovative spirit and technological prowess. Returning to Romania, I carried with me not just memories, but a deeper understanding and appreciation for the transformative power of blockchain technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMBsW0Qbc1YD7Bdaw0Zjkw.png" /></figure><p>The Fuel Hacker House in Istanbul was a transformative experience, blending immersive learning with practical application of Fuel’s blockchain technology. This journey was more than an educational venture; it was a catalyst, inspiring us to integrate Fuel’s efficiencies and capabilities into our blockchain solutions, poised to redefine what’s possible in the tech landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abb533b45828" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diamond Foundry — A Unified Toolset for Web3 Builders]]></title>
            <link>https://coinsbench.com/diamond-foundry-a-unified-toolset-for-web3-builders-d4073b6671ea?source=rss-a446dde30b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4073b6671ea</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Alexe Spataru]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 15:56:13 GMT</pubDate>
            <atom:updated>2023-05-24T09:34:13.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKnNH5mKn5n_fBQdgooLBw.png" /></figure><h3>Diamond Foundry — A Unified Toolset for Web3 Builders</h3><p>Hello dear reader, if you clicked on this article, it means you want to build something for the decentralized world. But for it to have an impact, you need a set of tools that fits your level of expertise.</p><p>In the previous article, we explored the concept of a <a href="https://medium.com/@alexeluca.spataru/transforming-web3-through-a-diamond-management-system-d2efa560ea7f">Diamond Management System</a>, a modular protocol that allows the creation of smart contracts without coding skills, which also gives the possibility to introduce unparalleled complexity. Similarly, it facilitates the re-usability of code and automated deployment through a <a href="https://medium.com/@alexeluca.spataru/achieving-universal-and-reusable-smart-contracts-via-erc2535-diamond-proxy-standard-ba4c9f5ac5bc">Facet Registry and Diamond Factory</a>, so that developers and auditors can contribute to a curated list of templates that can be appended to your smart contract.</p><p>This article follows up with the introduction of <a href="https://github.com/Forgenie/diamond-foundry">Diamond Foundry</a>, an open-source framework, currently in development, which is used by builders, enriched with functionality by developers, and secured with meticulous attention to detail by auditors. It invites the community to join our efforts in developing and making it useful, while also contributing with feedback on potential functionalities to be implemented in the future.</p><h3>Problem</h3><p>Interest in smart contracts rises up since a significant amount of value is already being held in DeFi protocols, <a href="https://defillama.com/">around 52bln in April 2023 according to DeFiLlama</a>, and weekly <a href="https://defillama.com/nfts/marketplaces">volume on NFT marketplaces</a> such as Blur and OpenSea that includes hundreds of millions of dollars. The total daily active addresses on the Ethereum network <a href="https://dune.com/agaperste/The-State-of-Ethereum-Network">exceeds 300k as of today</a>. The industry is evolving fast and has the opportunity to completely revolutionize our financial systems if it hasn’t been done already.</p><p>There are a lot of auditors and bug-bounty programs in the industry such as <a href="https://immunefi.com/">ImmuneFi</a>, <a href="https://code4rena.com/">code4rena</a>, and <a href="https://www.sherlock.xyz/">sherlock.xyz</a>, but the ecosystem is still suffering from hacks and loss of assets. That is unacceptable if we want to make the technology more accessible to the general public. One significant fact that hinders adoption is that people do not fully understand crypto or are scared their funds might be stolen. We need to fix that if we want to foster a decentralized economy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*prhkkRCO4sCpY2_x.png" /><figcaption>Total value stolen in blockchains (source: Chainanalysis)</figcaption></figure><p>To solve the security problem we need to write better smart contracts and audit them thoroughly, but this is challenging since code cannot be simply altered after deployment, and performing good audits costs a lot of money, which by the way does not guarantee anything but only <a href="https://medium.com/coinmonks/smart-contract-audit-what-it-is-and-what-to-expect-da0aa882469c">show what risks were found and mitigated</a>. Because of that, projects are forced to use upgradeable Proxy contracts, which separate the implementation code from one that actually executes it. But using a Proxy compromises decentralization and requires knowing advanced storage techniques where upgrades have to be done in a <a href="https://docs.openzeppelin.com/contracts/4.x/api/proxy#TransparentUpgradeableProxy">transparent and well-thought manner</a>.</p><p>At the same time, for increasing adoption, we need better user experience, also for apps and services that provide infrastructure and tooling. For somebody to reuse a smart contract, they need to copy-paste it into Remix or a similar IDE, deploy it, and worry about any errors that come along the way. It would be much easier if functionality is available on-chain and you could simply append it to your smart contract.</p><p><a href="https://betterprogramming.pub/3-no-code-platforms-to-build-and-deploy-smart-contracts-11a51196796a">There are already some no-code platforms</a> that provide you with ready-to-use smart contracts but they are not that flexible and friendly to non-tech users. More specifically, the user is still exposed to raw hexadecimal data and Solidity snippets which might be scary for first-comers. Similarly, functionality is composed in a big chunky contract that might contain something you don’t need. A better approach would be to gradually add or remove functionality as your application grows.</p><h3>Diamond Smart Contracts</h3><p>A different solution to increase the level of re-usability and modularity, which also provides means to upgrade or turn certain functionality immutable at will, is possible through the <a href="https://eips.ethereum.org/EIPS/eip-2535">EIP2535 Diamond Proxy Standard</a>, which in simple terms, is a way to create modular and upgradeable smart contracts on the Ethereum blockchain. These contracts can be extended or modified after deployment without limitations on size or functionality</p><p>Similarly, it increases transparency by tracking the history of upgrades on-chain and organizes data in an isolated manner to avoid fragmentation problems.</p><p>Imagine a diamond as a central hub that can connect to multiple, independent contracts called facets. Each facet offers specific functions, similar to how apps use different packages as dependencies. The diamond can interact with these facets to access their functions and share information in a gas-efficient manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*H9XPiU3In-mxfZtV.png" /><figcaption>Diamond Proxy Architecture Overview (source EIP2535)</figcaption></figure><p>There are several advantages to using Diamond Proxies:</p><ol><li><strong>Single address for unlimited functionality</strong>, making it easier to deploy, test, and integrate with other contracts and user interfaces.</li><li><strong>No maximum contract size</strong>, allowing for extensive and related functionalities within a single contract.</li><li><strong>Systematic organization of contract code and data</strong>, enabling efficient connections between different functionalities, also by replacing expensive external calls with internal ones.</li><li><strong>Upgradable functionality</strong>, allowing for seamless updates without redeploying existing features, also by initializing some state.</li><li><strong>Possibility of creating immutable diamonds</strong> or making an upgradeable diamond immutable later on, performed by removing the diamondCut function.</li><li><strong>Reusing deployed contracts</strong> to create new diamonds, which fosters the creation of on-chain platforms and libraries and avoids the need of re-deployment.</li></ol><h3>The Web3 Sistine Chapel</h3><blockquote>You might have a great idea, but without a brush you can’t paint the Sistine Chapel.</blockquote><p>However that is not all it takes to reach success, you have to come up with an innovative concept that solves a real problem and gives value to the community, as well as have a vision for how it will evolve in the future. Similarly, Michelangelo had to come up with novel ideas on how to depict stories from the Bible in order to create a cohesive visual narrative and make them memorable for every visitor.</p><p>He also had to (unlawfully) spend countless nights studying anatomy on real human bodies, besides researching architecture and artistic techniques for having a deep understanding of his subjects. Likewise, when building a web3 app, you need to research blockchain technology, smart contracts, and decentralized protocols to make informed decisions about the app’s architecture and functionality.</p><p>Before starting the actual painting, Michelangelo designed numerous sketches and studies, planning the layout and composition of the frescoes. In the same way, the web3 app development process involves creating or using other templates, prototypes, and open-source libraries to design the protocol and user interface.</p><p>Michelangelo also worked with assistants who helped him prepare the plaster and mix colors, architects who designed the scaffoldings, as well as random people that gave feedback. Building a web3 app also requires collaboration between users, developers, auditors, designers, and other stakeholders to bring the vision to life. Besides that, you need to use a set of tools to deploy, manage and secure your smart contracts, which are problematic to grasp if you don’t have the technical knowledge.</p><p>As Michelangelo worked on the frescoes, he constantly refined his technique and made adjustments to the composition. When developing a web3 app, continuous iteration, testing, auditing, and refinement are necessary to optimize performance and user experience. Sometimes that cannot be possible due to the immutability of blockchains, but you can still perform upgrades as long as you don’t sacrifice decentralization and security.</p><p>The completed Sistine Chapel ceiling is one of the most significant masterpieces of Western art, which is considered ground truth by the majority of people. Similarly, a successful web3 application or protocol should aim to leave a lasting impact on the community that can provide feedback and rate the value it brings to the ecosystem.</p><p>Overall, the process involves vision, research, the use of tools, iteration, collaboration, and community feedback. All of that takes time and resources, and if both exist in limited proportions, great ideas will not come to the surface or not have the same outcome. We can speed up the adoption if we share the knowledge, build together and re-use what others have built.</p><blockquote>The path to decentralization involves using decentralized tools.</blockquote><h3>Diamond Foundry: A Palette for your Masterpiece</h3><p>You have to always be passionate about pushing the boundaries of creativity. In the realm of blockchains, you have the opportunity to empower the decentralized economy, but almost everything that is developed in web3 is a smart contract.</p><p>Since not everyone has chosen the programming path, yet still can contribute to the development of blockchain technology in some way, we need a simple, yet powerful platform backed by a decentralized protocol for bringing those ideas to reality.</p><p><a href="https://github.com/Forgenie/diamond-foundry">Diamond Foundry</a> leverages the powerful <a href="https://book.getfoundry.sh/">Foundry framework</a> and <a href="https://eips.ethereum.org/EIPS/eip-2535">EIP2535 Diamond Proxies</a> to provide the smart contract primitives for the modular system behind such a protocol. Within it, we’ve taken EIP2535 Diamonds and infused it with incremental immutability, resulting in a flexible level of control over what functionality can or cannot be upgraded.</p><p>Similarly, we introduced the basic notion of an audit, i.e. a set of validation checks that have to pass before some functionality is finalized and pushed to the main branch, such as linting, building, testing, and static analysis, which is a fancy word for bug-detection tools like <a href="https://github.com/crytic/slither/wiki/">slither</a>. We aim to increase the formal verification tooling in the future and perform real audits.</p><p>Currently, the repository contains the Base facets, a bare minimum for complying with the EIP2535 Standard, also a Diamond Factory, which automates deployment and enables easier initialization, and the Facet Registry, which will contain a curated list of re-usable smart contract code from various libraries such as <a href="https://github.com/OpenZeppelin/openzeppelin-contracts">OpenZeppelin</a>, <a href="https://github.com/solidstate-network/solidstate-solidity">SolidState</a>, <a href="https://github.com/chiru-labs/ERC721A">ERC721A</a>, <a href="https://github.com/smartcontractkit/chainlink">Chainlink</a>, <a href="https://github.com/transmissions11/solmate">solmate</a> and many more. We invite you to contribute or simply track our progress as we move forward.</p><p>After countless hours of dedication, innovation, and collaboration we want to create an environment that fosters growth, security, flexibility, and ease of use in smart contract development. We believe this is possible by enabling automatic upgrades for Facets and <a href="https://eips.ethereum.org/EIPS/eip-165">Introspection</a> handling for Diamonds by delegating straight to the Facet Registry. Similarly, we want to introduce the flexibility of allowing customizable fallback functions for Diamonds, which are non-re-entrant by default.</p><p>Besides that, we want to add the ability to easily create functionality by calling a function in the Diamond Factory that creates a Diamond which collects functionality of multiple Facets of your choice, and then can be added to the Facet Registry as a Facet itself! In this way, one can build custom contracts without coding knowledge, only by just calling a smart contract function.</p><p>The ultimate goal is to simplify and democratize the development of smart contracts by making them more accessible to a wide range of web3 builders (i.e. NFT creators, DAOs, web3 companies &amp; entrepreneurs, etc.), which do not necessarily have to possess any coding or technical knowledge. Anyone should be able to create a smart contract for the inclined use case, therefore increasing the diversification in the blockchain ecosystem and its adoption rate.</p><p>So, dear reader, if you’ve gone this far, it wasn’t for nothing.</p><p>With limitless potential, streamlined organization, and seamless integration, Diamond Smart Contracts are set to redefine the landscape of decentralized applications. Join the movement today and unlock the potential of your blockchain projects. Act now and be at the forefront of this cutting-edge technology by using the <a href="https://github.com/Forgenie/diamond-foundry">Diamond Foundry</a>!</p><ul><li><strong>If you are a web3 builder</strong><em>:</em> Create a unique <strong>Diamond</strong> and customize it to your preference by adding, replacing, or removing <strong>Facets </strong>through the diamondCut function. You can transfer the <strong>Diamond</strong>, instead of abandoning the project, the new web3 builder can continue your work.</li><li><strong>If you are a smart contract developer</strong><em>:</em> Create and deploy a <a href="https://medium.com/o/fJFWTFwtdtupwcFbwHzj/s/bAFfS2QPJJjYJxtwQw0y/forgenie-protocol/facets"><strong>Facet</strong></a> for others to use after adding in the Facet Registry. Respect the code guidelines and test thoroughly all the provided functionality.</li><li><strong>If you are an auditor</strong><em>: </em>Review code, open up discussions, find bugs, and provide feedback and suggestions for improvements.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*MUQp_Fmdik9x42vragQ0gQ.png" /><figcaption>Forgenie Protocol</figcaption></figure><p>This framework will be used as a base layer of Forgenie Protocol that also provides incentives for developers and auditors to provide functionality and secure the ecosystem.</p><h4>Socials</h4><ul><li><a href="https://www.linkedin.com/company/forgenie-labs/">LinkedIn</a></li><li><a href="https://t.me/Forgenie">Telegram</a></li><li><a href="https://twitter.com/ForgenieLabs">Twitter</a></li><li><a href="https://github.com/Forgenie">Github</a></li></ul><h4>Disclaimer</h4><p>Please note that Diamond Foundry framework is part of a project called <a href="https://forgenie.com/">Forgenie,</a> is developed in public and not yet ready to be used in production. Use at your own risk.</p><p>The article displays our vision and invites the community to join our channels, contribute and provide feedback, so that together we can solve real-world problems and bring the blockchain technology closer to wide-spread adoption.</p><p>A separate medium channel for Forgenie will be created in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4073b6671ea" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/diamond-foundry-a-unified-toolset-for-web3-builders-d4073b6671ea">Diamond Foundry — A Unified Toolset for Web3 Builders</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Achieving Universal and Reusable Smart Contracts via ERC2535 Diamond Proxy Standard]]></title>
            <link>https://coinsbench.com/achieving-universal-and-reusable-smart-contracts-via-erc2535-diamond-proxy-standard-ba4c9f5ac5bc?source=rss-a446dde30b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba4c9f5ac5bc</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Alexe Spataru]]></dc:creator>
            <pubDate>Sat, 25 Mar 2023 16:01:34 GMT</pubDate>
            <atom:updated>2023-04-24T16:27:38.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*ugRV5quaSFfLGBPERhNZAQ.png" /></figure><p>Smart contracts revolutionized the blockchain ecosystem by enabling a wide range of decentralized applications (dApps) for various purposes. However, their complexity and the need for skilled developers and auditors hinder the mass adoption.</p><p>This article explores the concept of universal and reusable smart contracts using a <a href="https://medium.com/@alexeluca.spataru/transforming-web3-through-a-diamond-management-system-d2efa560ea7f">Diamond Management System</a>, and how it can be structured to allow cooperation between developers, auditors, and non-technical users alike. The aim is to create a more accessible and efficient protocol for building and managing smart contracts across the web3 landscape.</p><p>By having a Diamond Factory for users, and a Facet Registry for developers and auditors, along with a DAO representing the whole community, it is possible to create a system that is both flexible and secure, while also making it easy for non-technical enthusiasts to create their own smart contracts without any coding skills.</p><h3>Universal &amp; Reusable Smart Contracts</h3><p>Smart Contracts are the back-bone of all decentralized applications (dApps), i.e. fungible (ERC20) and non-fungible tokens (NFT), DeFi exchanges, DAO governance systems, Smart wallets, Oracles, Marketplaces and other protocols that operate with assets of billions in value.</p><p>One aspect that hinders adoption is that smart contracts are hard to learn, develop and audit, and besides that there is a huge demand for building them. At the same time, the Ethereum network is congested with <a href="https://www.cs.umd.edu/users/dml/papers/ethereum_imc18.pdf">highly homogeneous code used only in a small portion</a>, therefore node providers have to <a href="https://etherscan.io/chartsync/chaindefault">store redundant information</a>. Certainly, the blockchain ecosystem would benefit from a way to create and reuse trusted smart contracts, which decreases the network load and speeds up the development of dApps.</p><h3>Diamond Management System: A Solution</h3><p>In the <a href="https://medium.com/@alexeluca.spataru/transforming-web3-through-a-diamond-management-system-d2efa560ea7f">previous article</a>, the notion of a Diamond Management System was introduced, which allows us to basically create an on-chain library for smart contracts that can be extended with the modular system described in the <a href="https://eips.ethereum.org/EIPS/eip-2535">ERC2353 Diamond Proxy Standard</a>.</p><p>Using this standard we can achieve universal and reusable smart contracts that can be created by anyone given a library of powerful and secure template-like contracts called Facets.</p><p>However, for this to be possible the ecosystem has to be backed by a community of developers, that write the functionality, and one consisting of auditors that review and provide feedback on security vulnerabilities and disallow the use of malicious contracts.</p><p>This article describes in more detail how such a protocol can be structured and provides technical insights that can be helpful for on-boarding future smart contract developers and auditors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*oMf_r1oEdoyvLVIeEAe1eg.jpeg" /><figcaption>An ecosystem for creating universal and reusable smart contracts.</figcaption></figure><p>At its core, the protocol is built around two key concepts: the Diamond Factory and the Facet Registry. The factory is responsible for creating new Diamond proxies and interacting with the registry on adding or removing the Facets correctly. At the same time, the Diamond Factory has to abstract away the process of customizing the Diamond, in order to batch multiple upgrades into a single transaction and protect the user from accidentally messing up some state.</p><p>At its level, the Facet Registry is responsible for keeping track of the implementation addresses of Facets and their type of behavior, as it would be better to handle <a href="https://eips.ethereum.org/EIPS/eip-165">smart contract introspection</a> automatically and don’t let non-technical users worry about it. Similarly, the Facets can include initializers (i.e. if they are stateful) as well as custom migration and upgrade methods, which a Diamond proxy calls on its behalf to set up the initial state for some variables. Therefore, the user also doesn’t have to know the intrinsics of <a href="https://medium.com/1milliondevs/new-storage-layout-for-proxy-contracts-and-diamonds-98d01d0eadb">App or Diamond Storage</a> and the risks of overwriting state.</p><h3>The Role of Developers and Auditors in the Ecosystem</h3><p>Within the protocol, smart contract developers and auditors cooperate in various methods, first by proposing a <a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests">PR</a> of the Facet on GitHub and submitting an <a href="https://en.wikipedia.org/wiki/Request_for_Comments">RFC</a> on the governance forum, then through feedback, validation, and voting such that finally a Facet is registered and can be used within a Diamond.</p><p>To further protect the community of builders using these Facets, an auditor role requires a decent amount of hard work and is reserved for the ones with the most capable craftsmanship skills and attention to detail.</p><p>On the other hand, anyone who knows Solidity can propose Facets with interesting functionality, as long as it is up to the rules specified in the protocol (e.g. code conventions, no duplicates, passes tests, etc.). In this way, the ecosystem allows diversification and new opportunities for engineers to manifest, and possibly even earn rewards based on their contributions (the incentive mechanism will be described in future articles).</p><h3>Building Custom Smart Contracts with Diamonds and Facets</h3><p>When a new Diamond proxy is created, it is constructed from a set of Base Facets stored in the Registry, some of which are mandatory in order to correspond with <a href="https://eips.ethereum.org/">Ethereum standards</a>. After deployment, the user has the choice to extend the functionality of these base facets or add more on top of them, i.e. a base facet for creating ERC20 tokens, ERC721 tokens, ERC1155 tokens, ERC-4337 Smart Accounts, DAO governors, etc.</p><p>For example, if a user wants to create an NFT collection of <a href="https://eips.ethereum.org/EIPS/eip-5192">soul-bound tokens</a>, then she/he creates a diamond with the ERC721 base Facet and adds another Facet implementing the soul-bound functionality, which of course has gone through the entire validation process and is listed on the Facet Registry.</p><p>After adding the Facet to your Diamond Proxy, it will automatically start delegating calls to that new Facet, thus supporting its functionality, all of that without requiring any coding or learning activities on the behalf of the user.</p><h3>The DAO: A Community-Driven Approach</h3><p>Essentially, the ecosystem behind the protocol is backed by a community of web3 users and builders, smart contract developers, and auditors that constitute the DAO (<strong>D</strong>ecentralized <strong>A</strong>utonomous <strong>O</strong>rganization). Each peer participates in establishing decisions regarding the protocol depending on their technical expertise.</p><p>Users vote for a list of the most wanted functionality, developers vote for their auditors, which at their level vote for the upgrades within the protocol, and everyone votes for expenses of the DAO treasury and the next directions for involving the larger community.</p><h3>Conclusion</h3><p>Let’s work together to shape the future of smart contract development and management. Share your thoughts, feedback, and ideas with us on <a href="https://twitter.com/ForgenieLabs">Twitter</a> and <a href="http://t.me/Forgenie">Telegram</a>, and join the conversation as we refine the Diamond Management System .</p><p>Don’t forget to follow my channel for updates on future articles and discussions.</p><p>Your input is invaluable in creating a more accessible and efficient blockchain ecosystem for everyone..</p><p>Hope this was helpful and interesting for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba4c9f5ac5bc" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/achieving-universal-and-reusable-smart-contracts-via-erc2535-diamond-proxy-standard-ba4c9f5ac5bc">Achieving Universal and Reusable Smart Contracts via ERC2535 Diamond Proxy Standard</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming Web3 through a Diamond Management System]]></title>
            <link>https://medium.com/@urataps/transforming-web3-through-a-diamond-management-system-d2efa560ea7f?source=rss-a446dde30b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2efa560ea7f</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[diamonds]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Alexe Spataru]]></dc:creator>
            <pubDate>Wed, 15 Mar 2023 23:12:44 GMT</pubDate>
            <atom:updated>2023-04-17T17:27:11.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*0cjTtjXZKSiyHgeCI57d3A.png" /></figure><p>Let’s face it, smart contract programming is hard. Not everybody has the audacity to learn the Ethereum Virtual Machine and <a href="https://eips.ethereum.org/">EIP</a> standards, as well as the most important security practices and cryptographic mechanisms. But a lot of people want to create something in web3. Be that from a monetary incentive or simply just out of curiosity.</p><p>The same was happening with the early stages of the internet too. Businesses faced the need to invest in digitization because everybody was using the internet, so they either hired a web development agency or used a Content Management System, such as WordPress, Wix, Squarespace, etc., to create their website.</p><p>Imagine there would exist something like that for web3!</p><p>Imagine you wouldn’t have to write a token or NFT collection contract, worry about compatibility with marketplaces and blockchain explorers, create claiming methods for your users, and on top of that pay exorbitant amounts of money to get your smart contracts audited, just to be sure.</p><p>Imagine there was all of that already implemented on the network and you could simply append it to your smart contract embedded into your web3 application.</p><p>The way to make it possible is through the <em>ERC-2535: Diamonds, Multi-Facet Proxy</em> standard, whose review finished in October 2022 and is beautifully outlined <a href="https://eips.ethereum.org/EIPS/eip-2535">here</a> by Nick Mudge.</p><p>Basically, it describes a modular smart contract system that lives at a single address and can be extended after deployment in an isolated manner. It can be seen as a facade over multiple functionality components to whom it delegates its execution. The components, called Facets, do not actually store any data, but they tell the calling proxy how and where to store it. A handsome feature of these Facets is that they can be Diamonds themselves, meaning you can organize functionality and essentially create an on-chain library that can be used by anyone.</p><p>But for more non-tech-savvy readers, better imagine a true diamond composed of multiple parts and the parts themselves composed of their own parts, and after intense time under the pressure, a structured pattern emerges. The one that makes us be fascinated from the colorful rays shining from this magnificent artifact, so fascinated that we put an incredible price for it.</p><p>But wait, something is missing, right?</p><p>The value of a diamond is usually determined by its clarity, uniqueness, and solidity (pun intended). How these properties can be identified in a smart contract? Let’s break it out in the following way:</p><ul><li><strong>A clear smart contract</strong> has enough view methods that provide either introspective or general data.</li><li><strong>A unique smart contract </strong>has neither more nor less complexity required for its purpose, and it is provided in a special way.</li><li><strong>A solid smart contract</strong> is battle-tested, heavily audited, and considered secure to a significant degree.</li></ul><p>Currently, there is a multitude of phenomenal projects using Diamond proxies, some of them outlined below (and more can be found at <a href="https://github.com/mudgen/awesome-diamonds">awesome-diamonds</a>), which emphasize themselves by supporting a wide range of complexity or as an aggregation tool of other protocols. You can’t be more excited about its future and what it means for web3!</p><ul><li>Aavegotchi — a pixelated universe of ghosts, where you collect items and participate in various activities, i.e. games, events, raffles, lending, governance, staking, and many more.</li><li>LI.FI — a cross-chain DeFi protocol for swapping and bridging assets that brings us one step closer to interoperability and widespread adoption.</li><li>Geo Web — a network that connects the physical world to the decentralized space, meaning you have the virtual representation of your house which you can own for example.</li></ul><p>So, how to build useful projects that solve real problems, without any knowledge of smart contract development?</p><p>We are working on a protocol that allows you to bypass any limits and basically create any smart contract you want, from the available library of templates, delivered and reviewed by a community of developers. The protocol provides incentives for smart contract creators and auditors to earn while providing secure upgrades and functionality to non-technical users. In the end, the ultimate goal is to improve the ease of use and accessibility of smart contracts, meaning creating your token, NFT collection, DAO, and web3 community. And the most beautiful part about it is that you can do basically anything, even transfer it to other people or turn your smart contract immutable.</p><p>All of that using Diamonds and Facets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXmA36eWl61IHk9XJj2Bow.png" /><figcaption>Possible customization opportunities.</figcaption></figure><p>If you have any cool ideas and you want to collaborate, reach out at <a href="http://t.me/Forgenie">Telegram</a>, or you can simply follow me on <a href="https://twitter.com/ForgenieLabs">Twitter</a>.</p><p>Follow my medium channel to know the latest updates.</p><p>Any feedback is appreciated!</p><p>Happy forging,<br>urataps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2efa560ea7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>