EIP-2535 Diamonds
Subscribe
Sign in
Home
Archive
About
More
return
;
New
Top
Discussion
Facets Hold No State Variable Data. All State Variable Data is Stored in a Diamond Proxy Contract
A diamond proxy contract is the smart contract with the fallback function that delegates function calls to facets. Hereās a link to a diamond proxyā¦
Nick Mudge š
Mar 19
3
Comment
Share
Share this post
Facets Hold No State Variable Data. All State Variable Data is Stored in a Diamond Proxy Contract
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
ERC1155 and EIP2535 Diamonds
ERC1155 is a powerful and flexible token standard. Its functionality includes the following: Batch transfer functions are part of the ERC1155 standardā¦
Nick Mudge š
Feb 17
5
Comment
Share
Share this post
ERC1155 and EIP2535 Diamonds
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Example of Adding New State Variables in Diamond Upgrade
The purpose of this article is to show how to add new state variables to an already deployed diamond and use them.
Nick Mudge š
Jan 31
4
Comment
Share
Share this post
Example of Adding New State Variables in Diamond Upgrade
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Constructor Functions Don't Work in Facets
Constructor functions are used to set state variables in the contract storage of a contract that is being deploy. But realize that a facet doesnāt readā¦
Nick Mudge š
Jan 30
3
Comment
Share
Share this post
Constructor Functions Don't Work in Facets
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Basics of Smart Contract Gas Optimization with Solidity
Gas optimization is a matter of doing what is cheap and avoiding what is expensive in terms of gas costs on EVM blockchains
Nick Mudge š
Jan 25
3
Comment
Share
Share this post
Basics of Smart Contract Gas Optimization with Solidity
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
How EIP2535 Diamonds Reduces Gas Costs for Smart Contract Systems
A diamond has a fixed gas cost for any amount of cross contract interaction under its control.
Nick Mudge š
Jan 22
4
Comment
Share
Share this post
How EIP2535 Diamonds Reduces Gas Costs for Smart Contract Systems
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
EIP-2535 Diamonds in Detail
Simple Summary EIP-2535 Diamonds is a standard for creating modular smart contract systems that can be extended in production. Enables people to writeā¦
Nick Mudge š
Nov 18, 2021
2
Comment
Share
Share this post
EIP-2535 Diamonds in Detail
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
AppStorage Pattern for State Variables in Solidity
I have written about the diamond storage pattern for organizing contract state variables in proxy contracts and diamonds. As a quick refresher, a stateā¦
Nick Mudge š
Nov 5, 2021
2
Comment
Share
Share this post
AppStorage Pattern for State Variables in Solidity
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Common Diamond Errors
1. A state variable in AppStorage has the wrong value A state variable in AppStorage has the wrong value or the value 0 when it should not. This isā¦
Nick Mudge š
Nov 5, 2021
3
Comment
Share
Share this post
Common Diamond Errors
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
How to Share Functions Between Facets of a Diamond
There are a number of ways to share or reuse functions between facets of an Ethereum diamond. The best way I have found is to write internal functionsā¦
Nick Mudge š
Sep 24, 2021
2
Comment
Share
Share this post
How to Share Functions Between Facets of a Diamond
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Diamond Upgrades
EIP-2535 Diamonds specifies the ādiamondCutā function which is used to add/replace/remove any number of facets and functions to a diamond in a singleā¦
Nick Mudge š
Jul 26, 2021
3
Comment
Share
Share this post
Diamond Upgrades
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
Understanding delegatecall And How to Use It Safely
Some developers are afraid of ādelegatecallā because they have been told it is ādangerousā. Fear and danger come from not understanding how somethingā¦
Nick Mudge š
Jul 24, 2021
13
Comment
1
Share
Share this post
Understanding delegatecall And How to Use It Safely
eip2535diamonds.substack.com
Copy link
Twitter
Facebook
Email
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts