solady
solady copied to clipboard
Optimized Solidity snippets.
just for `bytes32`. ``` push(bytes32 x); pop(); top(); top(uint i); clear(); size(); ```
Shanghai: April 12, 2023 Cancun: March 13, 2024 This is what ChatGPT says: > Qn: What EVM chains have adopted Shanghai, but have not adopted Cancun yet? > As of...
Happy New Year! ## Changes Updates the copyright year in license files from 2025 to 2026. This is a routine annual update to keep the copyright notices current.
## Description Adds an optional storage layout compatibility check mechanism for UUPS upgrades to prevent storage collision vulnerabilities. ### Changes - **Added** `StorageLayoutMismatch()` error to `UUPSUpgradeable.sol` - **Added** `_checkStorageLayout(address newImplementation)`...
I have a quick question about a storage-slot optimization idea. Instead of deriving a mapping slot via keccak256(owner, slot), I’m considering using the address directly under a dedicated namespace, e.g.:...
## Description Don't merge till #1505. Added `src/utils/clz` folder. ## Checklist Ensure you completed **all of the steps** below before submitting your pull request: - [x] Ran `forge fmt`? -...
## Description Replaces `mstore + keccak256` with bitwise operations for balance slot computation in ERC20. **Pattern change:** ```solidity // Before mstore(0x0c, _BALANCE_SLOT_SEED) mstore(0x00, owner) result := sload(keccak256(0x0c, 0x20)) // After...
Migrate workflows to checkout@v6 (Node 24 runtime). Min runner: v2.329.0. https://github.com/actions/checkout/releases/tag/v6.0.0
Just putting it here in case I forget.
Hello dear Vectorize ( @Vectorized ), Im Alex, solidity dev at @openfort-xyz Im happy to use with ur impl. of [webAuthn](https://github.com/vectorized/solady/blob/main/src/utils/WebAuthn.sol). Unfortunately the lib unsupported in all chains who was...