SolidityDev (@SolidityDev99) header
SolidityDev (@SolidityDev99) profile picture

Dev @threesigmaxyz https://teapawt.org/t.co/cyD1bbfhzI

Joined February 2023
This week, I had the opportunity to dig around Optimism's Fault Proof Alpha codebase, trying to catch something for their bounty. A few hours in, I stumbled upon a new concept for me called ClonesWith ImmutableArgs which took me a few hours to fully grasp. 1/10
1
2
115
In terms of implementation, for this system to work the proxy should be deployed with the extra code (which adds its immutable variables to the calldata) and the implementation should inherit some helper functions to allow the it to access the variables in calldata. 9/10
1
2
67
A great example of such a helper contract which can be inherited by the implementation is: github.com/ethereum-optimism… 10/10
2
40
In order to safely interact with contracts and verify their source code, the Solidity compiler automatically generates the contract metadata: a file containing information about the compiler version, the sources used, the ABI and NatSpec documentation. 1/8
1
1
134
Automatic Interface Generation and NatSpec - By retrieving the metadata file, anyone can access the ABI and NatSpec user documentation, which can be used to automatically generate a user interface for the contract with human-readable function descriptors. 8/8
1
123
Source: Contract Metadata — Solidity 0.8.17 documentation docs.soliditylang.org/en/v0.…
72