Solady is an open-source repository containing highly-optimized Solidity snippets. It offers efficient implementations of commonly-used libraries, such as MerkleProofLib, alongside cutting-edge features like LibZip. By thoughtfully encapsulating low-level inline assembly within flexible APIs, Solady simplifies the process of writing clean and efficient Solidity code. More than just a library, Solady also serves as a learning resource and experimental laboratory for pioneering gas-optimization techniques. Solady is used in the codebases of Optimism and Coinbase. With respect to the OP stack, Solady contributes in the following ways: Provides a Solidity and JavaScript implementation of FastLZ compression algorithm, which is used for more accurate gas estimations in the Fjord upgrade. The JavaScript code is very minimal, allowing for it's easy translation into Go. Various other utilities such as bytecode proxies and string operations.
智能合约开发和工具链
Solady
教育 · Solidity · 燃料优化 · Foundry · Hardhat