solady icon indicating copy to clipboard operation
solady copied to clipboard

Optimized Solidity snippets.

Results 60 solady issues
Sort by recently updated
recently updated
newest added

## Description ### Summary Adds a gas-lean circular (ring) buffer for bytes32: LibCircularBuffer. Highlights - Packed meta (1 slot): cap:64 | size:64 | head:128 (head masked to 128b). - Power-of-two...

# 💡 Proposed Feature Add a helper function like the following to the DateTimeLib library to convert a UNIX timestamp into a human-readable ISO 8601-style string. I'm a bit conflicted...

I have notifications enabled for this repository and often see issues/PRs opened for simple typos. To reduce this noise and automate detection, I’d like to suggest adding [crate-ci/typos](https://github.com/crate-ci/typos) to the...

I follow the UUPS pattern demo here: https://github.com/Vectorized/solady/blob/main/test/UUPSUpgradeable.t.sol But it seems it doesn't have the conflicts check. If we modify the slot structure in new implementation, it will cause severe...

- A single hyperdense structured file that an LLM can parse, to teach it all it needs to know on _how to use Solady_. - Markdown formatted, but in `.txt`,...

OZ is adding it to 5.5.0, would love a Solady alternative. Useful for historical Ethereum proofs (block headers, accounts, account storage, txs, tx logs) which is particularly useful now given...

you can change the `_givePermit2InfiniteAllowance()` function to `doesAddressHasInfiniteAllowance(address spender) returns (bool)` and in the default implementation return `spender == PERMIT2` this makes it simple to add to this list

Consider publishing test utils etc. as another package. It's not available on npm. Others including me will find `SoladyTest` and `Brutalizer` useful. It seems the only way to import it...

In the future, when the `CLZ` opcode https://eips.ethereum.org/EIPS/eip-7939 is added, many algorithms in Solady can be drastically improved upon. Libraries such as `LibBit`, `LibBytes`, `LibString`, `FixedPointMathLib`, `LibZip` can see a...

## Description Add `set` and `delete_` functions to simplify handling of bytes and string storage references in `LibBytes` and `LibString`. These changes enable efficient and memory-safe operations when assigning or...