npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@symbioticfi/relay-contracts

v1.0.0-rc.4

Published

Symbiotic Relay smart contracts allowing construction of validator set using various mechanics, verification and management of operators' keys of various types, aggregated signatures verification, and validator set's running.

Readme

[!WARNING] The SDK is a work in progress and is currently under audits. Breaking changes may occur in SDK updates as well as backward compatibility is not guaranteed. Use with caution.

Symbiotic Relay Smart Contracts

Ask DeepWiki codecov

Overview

Symbiotic Relay is a peer-to-peer side-network designed to collect and aggregate signatures from validators, maintain validator sets on the settlement contract.

To achieve that, Symbiotic provides a set of predefined smart contracts, in general, representing the following modules:

  • VotingPowerProvider - provides the basic data regarding operators, vaults and their voting power, it allows constructing various onboarding schemes such as:

  • KeyRegistry - verifies and manages operators' keys; currently, these key types are supported:

  • ValSetDriver - is used by the off-chain part of the Symbiotic Relay for validator set deriving and maintenance

  • Settlement - requires a compressed validator set (header) to be committed each epoch, but allows verifying signatures made by the validator set; currently, it supports the following verification mechanics:

    • SimpleVerifier - requires the whole validator set to be inputted on the verification, but in a compressed and efficient way, so that it is the best choice to use up to around 125 validators
    • ZKVerifier - uses ZK verification made with gnark, allowing larger validator sets with an almost constant verification gas cost

Examples

Can be found here.

Usage

Dependencies

Prerequisites

Clone the repository

git clone --recurse-submodules https://github.com/symbioticfi/relay-contracts.git

Deploy Your Relay

The deployment tooling can be found at script/ folder. It consists of RelayDeploy.sol Foundry script template relay-deploy.sh bash script (the Relay smart contracts use external libraries for their implementations, so that it's not currently possible to use solely Foundry script for multi-chain deployment).

  • RelayDeploy.sol - abstract base that wires common Symbiotic core helpers and exposes the four deployment hooks: KeyRegistry, VotingPowerProvider, Settlement, and ValVetDriver
  • relay-deploy.sh - orchestrates per-contract multi-chain deployments (uses Python inside to parse toml file)

The script deploys Relay modules under OZ's TransparentUpgradeableProxy using CreateX (it provides better control for production deployments and more simplified approaches for development).

Dependencies

Deployment

  1. Implement your MyRelayDeploy.sol (see example) - this Foundry script should include the deployment configuration of your Relay modules

    • you need to implement all virtual functions of RelayDeploy.sol
    • in constructor, need to input the path of the toml file
    • you are provided with additional helpers such as getCore(), getKeyRegistry(), getVotingPowerProvider(), etc. (see full list in RelayDeploy.sol)
  2. Implement your my-relay-deploy.toml (see example) - this configuration file should include RPC URLs that will be needed for the deployment, and which modules should be deployed on which chains

    • do not replace [1234567890] placeholder with endpoint_url = ""
    • the contracts are deployed in such order:
      1. KeyRegistry
      2. VotingPowerProvider
      3. Settlement
      4. ValSetDriver
  3. Execute the deployment script, e.g.:

    ./script/relay-deploy.sh ./script/examples/MyRelayDeploy.sol ./script/examples/my-relay-deploy.toml --broadcast --ledger

    Basic form is ./script/relay-deploy.sh <FoundryScript> <TomlConfig> <Any Foundry Flags>

At the end, your toml file will contain the addresses of the deployed Relay modules.

Build, Test, and Format

forge build
forge test
forge fmt

Configure environment

Create .env based on the template:

ETH_RPC_URL=
ETHERSCAN_API_KEY=

Security

Security audits can be found here.