- Notifications
You must be signed in to change notification settings - Fork0
🔗 Shared Solidity utilities
License
Unknown and 2 other licenses found
Licenses found
sablier-labs/evm-utils
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains the following two sets of contracts:
Its a standalone contract with the following responsibilities:
- Handles state variables, setters and getters, and calculations using external oracles to manage fees across all theSablier protocols.
- Authority over admin functions across Sablier protocols.
Its a collection of smart contracts used across various Sablier Solidity projects. The motivation behind this is toreduce code duplication. The following projects imports these contracts:
In-depth documentation is available atdocs.sablier.com.
This repo contains the following subdirectories:
src/interfaces
: Interfaces to be used by external projects.src/mocks
: Mock contracts used by external projects in tests.src/tests
: Helper contracts used by external projects in tests and deployment scripts.
This is the recommended approach.
Install using your favorite package manager, e.g., with Bun:
bun add @sablier/evm-utils
This installation method is not recommended, but it is available for those who prefer it.
First, install the submodule using Forge:
forge install --no-commit sablier-labs/evm-utils
import { Adminable }from"@sablier/evm-utils/src/Adminable.sol";import { Batch }from"@sablier/evm-utils/src/Batch.sol";import { NoDelegateCall }from"@sablier/evm-utils/src/NoDelegateCall.sol";contractMyContractisAdminable,Batch,NoDelegateCall {constructor(addressinitialAdmin)Adminable(initialAdmin) { }// Use the `noDelegateCall` modifier to prevent delegate calls.function foo()public noDelegateCall { }// Use the `onlyAdmin` modifier to restrict access to the admin.function editFee(uint256newFee)public onlyAdmin { }}
SeeLICENSE.md.
About
🔗 Shared Solidity utilities
Topics
Resources
License
Unknown and 2 other licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.