⚠️ DEPRECATED – DO NOT USEThis repository is no longer maintained and is deprecated.
It may contain outdated, insecure, or vulnerable code and should not be used in production or as a dependency in any project.
The repository is retained solely for historical reference. No support, updates, or security patches will be provided.
solidity-utils is a utility package for the development of smart contracts written in Solidity. It includes useful contracts, interfaces and libraries, bringing some test tools as well.
-
Dust Collector: collects small amounts of leftover tokens or ETH (also known as "dust") and transfers them to a designated recipient.
-
Governable: provides a mechanism for managing a governor role, which has the authority to administrate the contract.
-
OnlyEOA: validates whether a caller is an externally owned account (EOA) or not.
-
Pausable: provides pausable functionalities to a given contract.
-
Roles: manages roles for interactions with a smart contract, leveraging OpenZeppelin's AccessControl.
- IBaseErrors: provides a set of custom error messages that helps to catch and handle errors that may occur during contract execution.
- Create2Address: deterministically computes a contract address using the
Create2opcode.
- DSTestPlus: includes utility functions for measuring gas consumption, labeling addresses, mocking contracts, simulating time, computing a contract address using Create2, and more. It extends the DSTest contract.