Soledge
Solidity snippets too edgy to be in Solady
Install / Use
/learn @Vectorized/SoledgeREADME
<img src="logo.svg" alt="soledge" height="70"/>
Solidity snippets too edgy to be in Solady.
For a future of EVMs fragmentation, where the latest opcodes are not supported on most L2s for years even after their inception on mainnet.
Installation
To install with Foundry:
forge install vectorized/soledge
To install with Hardhat:
npm install soledge
Contracts
The Solidity smart contracts are located in the src directory.
utils
├─ LibT — "Transient storage helper"
├─ ReentrancyGuard — "Reentrancy guard mixin"
└─ LibString - "Library for converting numbers into strings and other string operations"
Directories
src — "Solidity smart contracts"
test — "Foundry Forge tests"
Contributing
Feel free to make a pull request.
Guidelines same as Solady's.
Safety
This is experimental software and is provided on an "as is" and "as available" basis.
We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.
While Soledge has been heavily tested, there may be parts that may exhibit unexpected emergent behavior when used with other code, or may break in future Solidity versions.
Please always include your own thorough tests when using Soledge to make sure it works correctly with your code.
Upgradability
Most contracts in Soledge are compatible with both upgradeable and non-upgradeable (i.e. regular) contracts.
Please call any required internal initialization methods accordingly.
EVM Compatibility
Some parts of Soledge may not be compatible with chains with partial EVM equivalence.
Please always check and test for compatibility accordingly.
Acknowledgements
This repository is inspired by or directly modified from many sources, primarily:
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
