solady
solady copied to clipboard
Optimized Solidity snippets.
As of #594 . For efficiency and to be similar to OZ. This notice will be kept up for a while.
See: #523 This notice will be kept up for a while.
Feel free to pick it up as and when you like. ```solidity // Should we even? This is pretty hard. function parseWad(string memory s) internal pure returns (uint256) ```
Target EVM will still be Paris. For maximum backwards compatibility. At least until Solidty offers an irresistible feature that allows library authors to write performant, concise code (e.g. macros). Basically...
When a method such as `transfer(address, uint256)` is defined the Solidity compiler will add the following runtime checks: 1. calldatasize is at least 68 bytes long (4 selector, 64-bytes ABI-encoded...
BUT, what about: Solady-style implementation of Diamond Storage. You've ADMITTED Diamond Storage is good, you basically use it across all these libraries (and the A contract), and in ERC721 you've...
### Background OZ is making their own implementation of CWIA which uses the `extcodecopy` pattern. To bypass the 4337 storage restrictions. Also, cuz of that 2771 meta-transactions thingy. ___________________________ ###...
## Description I moved the `PRNG` and `LazyShuffler` structs outside of `library LibPRNG` so that they could be individually imported and you didn't always have to type `LibPRNG.PRNG`. **Note:** This...
What exactly is Milady? https://github.com/Vectorized/solady/blob/3e8031b16417154dc2beae71b7b45f415d29566b/src/Milady.sol