Socket
Book a DemoInstallSign in
Socket

@sablier/evm-utils

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sablier/evm-utils

Utilities solidity files used across Sablier's smart contracts

1.0.0-beta.1
beta
latest
Source
npmnpm
Version published
Weekly downloads
21
5%
Maintainers
4
Weekly downloads
 
Created
Source

Sablier EVM Utils Github Actions Coverage Foundry Discord

This repository contains the following two sets of contracts:

Sablier comptroller

Its a standalone contract with the following responsibilities:

  • Handles state variables, setters and getters, and calculations using external oracles to manage fees across all the Sablier protocols.
  • Authority over admin functions across Sablier protocols.

Utility contracts

Its a collection of smart contracts used across various Sablier Solidity projects. The motivation behind this is to reduce code duplication. The following projects imports these contracts:

In-depth documentation is available at docs.sablier.com.

Repository Structure

This repo contains the following subdirectories:

Install

Node.js

This is the recommended approach.

Install using your favorite package manager, e.g., with Bun:

bun add @sablier/evm-utils

Git Submodules

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

Usage

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";

contract MyContract is Adminable, Batch, NoDelegateCall {
    constructor(address initialAdmin) 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(uint256 newFee) public onlyAdmin { }
}

License

See LICENSE.md.

Keywords

blockchain

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.