crane-utilities
Installation
SKILL.md
Crane Utility Libraries
Crane provides utility libraries for collections, math, cryptography, and common operations.
Collections (Sets)
Diamond storage-compatible set implementations for unique value collections.
Available Set Types
| Type | File | Use Case |
|---|---|---|
AddressSet |
AddressSetRepo.sol |
Unique addresses (operators, whitelist) |
Bytes32Set |
Bytes32SetRepo.sol |
Unique hashes, identifiers |
Bytes4Set |
Bytes4SetRepo.sol |
Function selectors, interface IDs |
StringSet |
StringSetRepo.sol |
Unique strings |
UInt256Set |
UInt256SetRepo.sol |
Unique numeric IDs |