Solarity Solidity Library
Last updated Jun 26, 2026
395
Stars
43
Forks
2
Issues
0
Stars/day
Attention Score
92
Language breakdown
No language data available.
โธ Files
click to expand
README
Solarity Solidity Library
Solidity contracts and utilities that go far beyond mediocre solidity.
Contracts
contracts
โโโ access
โ โโโ AMerkleWhitelisted โ "Whitelists via Merkle proofs"
โ โโโ AMultiOwnable โ "Multiple owners with the equal access level"
โ โโโ ARBAC โ "A powerful implementation of a true RBAC"
โ โโโ extensions
โ โโโ ARBACGroupable โ "Groupable extension of ARBAC"
โโโ accountโabstraction
โ โโโ AAccountRecovery โ "ERC-7947 account recovery base implementation"
โ โโโ ARecoverableAccount โ "All-in-one account with batching, gas sponsorship, and recovery"
โโโ bridge
โ โโโ batcher
โ โ โโโ Batcher โ "Batch calls execution during bridge redemption"
โ โโโ handlers
โ โ โโโ ERC20Handler โ "ERC-20 bridging (liquidity pool, mint-and-burn, or USDC-specific)"
โ โ โโโ MessageHandler โ "Arbitrary cross-chain message dispatch and redemption"
โ โ โโโ NativeHandler โ "Native asset bridging"
โ โโโ ABridge โ "Simple and modular arbitrary message bridge with batching logic"
โโโ contractsโregistry
โ โโโ AContractsRegistry โ "Reference registry implementation of ERC-6224 pattern"
โ โโโ ADependant โ "Reference dependant implementation of ERC-6224 pattern"
โ โโโ pools
โ โโโ APoolContractsRegistry โ "Adaptation of ERC-6224 for factory-like contracts"
โ โโโ APoolFactory โ "Factory implementation for a pooled registry"
โโโ diamond
โ โโโ ADiamondStorage โ "The storage part of ERC-2535 diamond"
โ โโโ Diamond โ "Revised ERC-2535 diamond implementation"
โ โโโ utils
โ โโโ DiamondERC165 โ "ERC-165 introspection for diamond facets"
โโโ finance
โ โโโ staking
โ โ โโโ AStaking โ "Flexible rewards staking implementation"
โ โ โโโ AValueDistributor โ "Efficient distribution algorithm implementation"
โ โโโ vesting
โ โโโ AVesting โ "Linear and exponential vesting implementation"
โโโ libs
โ โโโ arrays
โ โ โโโ ArrayHelper โ "Common functions to work with arrays"
โ โ โโโ Paginator โ "Return array slices from view function"
โ โโโ bitcoin
โ โ โโโ BlockHeader โ "Parse and format Bitcoin block headers"
โ โ โโโ TxMerkleProof โ "Verify transaction inclusion in Bitcoin block"
โ โ โโโ TxParser โ "Parse and format Bitcoin transactions"
โ โโโ bn
โ โ โโโ U512 โ "A hyperoptimized uint512 implementation"
โ โโโ crypto
โ โ โโโ EC256 โ "Weierstrass elliptic curve arithmetic over a 256-bit prime field"
โ โ โโโ ED256 โ "Twisted Edwards elliptic curve arithmetic over a 256-bit prime field"
โ โ โโโ ECDSA256 โ "ECDSA verification over any 256-bit curve"
โ โ โโโ ECDSA384 โ "ECDSA verification over any 384-bit curve"
โ โ โโโ ECDSA512 โ "ECDSA verification over any 512-bit curve"
โ โ โโโ Schnorr256 โ "Schnorr + adaptor signature verification over any 256-bit curve"
โ โ โโโ RSASSAPSS โ "RSASSA-PSS signature verification with MGF1"
โ โโโ dataโstructures
โ โ โโโ AvlTree โ "AVL tree implementation with an iterator traversal"
โ โ โโโ CartesianMerkleTree โ "CMT reference implementation"
โ โ โโโ DynamicSet โ "Set for strings and bytes"
โ โ โโโ IncrementalMerkleTree โ "IMT implementation with flexible tree height"
โ โ โโโ IndexedMerkleTree โ "IndexedMT implementation"
โ โ โโโ PriorityQueue โ "Max queue heap implementation"
โ โ โโโ SparseMerkleTree โ "SMT optimized implementation"
โ โ โโโ memory
โ โ โโโ Vector โ "A pushable memory array"
โ โโโ utils
โ โ โโโ DecimalsConverter โ "Simplify interaction with ERC-20 decimals"
โ โ โโโ EndianConverter โ "Convert between little-endian and big-endian formats"
โ โ โโโ MemoryUtils โ "Functions for memory manipulation"
โ โ โโโ ReturnDataProxy โ "Bypass extra returndata copy when returning data"
โ โ โโโ Typecaster โ "Cast between various Solidity types"
โ โโโ zkp
โ โโโ Groth16VerifierHelper โ "Simplify integration with Groth16 proofs"
โ โโโ PlonkVerifierHelper โ "Simplify integration with Plonk proofs"
โโโ proxy
โ โโโ adminable
โ โโโ AdminableProxy โ "A slight modification of a transparent proxy"
โ โโโ AdminableProxyUpgrader โ "A slight modification of a proxy admin"
โโโ tokens
โ โโโ ASBT โ "A minimal implementation of an SBT"
โโโ utils
โ โโโ ABlockGuard โ "Protect against flashloans"
โ โโโ ADeployerGuard โ "Prevent proxy initialization frontrunning"
โ โโโ Globals โ "Some commonly used constants"
โโโ presets โ "Presets for the library contracts"
โโโ interfaces โ "Interfaces for the library contracts"
โโโ mock โ "Mocks for testing purposes"
Built with courage and aspiration to perfection.
[!TIP]
The library is designed to work cohesively with hardhat-zkit and circom-lib packages.
Installation
npm install @solarity/solidity-lib
The latest stable version is always in the master branch.
Documentation
Check out the project's documentation with broad explanations and usage examples of every contract. Full natspec guides are also available in the source code.
Contributing
We are open to any mind-blowing ideas! Please take a look at our contributing guidelines to get involved.
License
The library is released under the MIT License.
๐ More in this category