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 ✨ ## Checklist Ensure you completed **all of the steps** below before submitting your pull request: - [x] Ran `forge fmt`? - [x] Ran `forge snapshot`? - [x]...

Same concept like DynamicBufferLib, and LibRLP but only for 32-byte chunks. ```solidity struct DynamicArray { uint256[] data; } // Returns a new empty array. No slots reserved. function p() internal...

## Description To prepare for https://github.com/Vectorized/solady/issues/1069. This is breaking in internal API. I feel `p` is more natural than having `l`, `a`, `b`, etc. if the struct name is different....

## Description We will use this branch as the working draft. ## Checklist Ensure you completed **all of the steps** below before submitting your pull request: - [x] Ran `forge...

The Solidity `payable` modifier essentially puts function calls into their default state without extra security checks for rejecting `msg.value`. Saving a small amount of gas. This Solady issue is raised...

## Description Optimized address to hex string with some fancy bit operations. Has a fairly large gas trade-off ~360 bytes more by the looks of it, open questions: - worth...

Weiroll is really neat but https://github.com/weiroll/weiroll is unmaintained and outdated I think it would be great if Solady would ship with a (custom) version of Weiroll or a new novel...

## Description This pull request introduces an optimized version of `EnurableMapLib` designed for scenarios where both the key and value can fit into a single slot. Currently, it supports `address`...

Compare what you have to other libraries such as OZ so it can be easier to see if Solady is appropriate for usage and can be migrated to. codemods enable...

https://github.com/ithacaxyz/odyssey-examples/tree/main/chapter1/eof ## Primer EOF disables a number of opcodes. Right now, if your contract contains any of those it will get compiled but will not be deployable. The banned opcodes...