Skip to content

jito-foundation/restaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

188 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jito Staking Manager (JSM)

Build Status License codecov PRs Welcome

Jito Restaking is a next-generation restaking platform for Solana and SVM environments.

Table of Contents

Features

  • Universal framework for staking, restaking, and liquid restaking
  • VRT construction and management
  • Flexible NCN and operator management

Documentation

The comprehensive documentation for Stakenet has moved to jito.network/docs/restaking/jito-restaking-overview. The source files are maintained in the Jito Omnidocs repository.

SDKs

We provide TypeScript SDKs for interacting with the Jito Restaking system:

Installation

git clone https://github.com/jito-foundation/restaking.git
cd restaking
cargo-build-sbf

Usage

Quickstart

To create a vault, mint vrt, and delegate to an operator, follow this guide.

Building the software

cargo-build-sbf

Building the IDLs and client code

# Build the shank CLI tool
cargo b --release -p jito-shank-cli && ./target/release/jito-shank-cli
# Generate the client code
yarn generate-clients
# Rebuild the entire project
cargo b --release

Running Tests

If you haven't installed cargo-nextest yet, it's recommended to install it. You find the installation instructions here.

Outside of SVM

cargo nextest run

Testing using the SVM environment

cargo-build-sbf && SBF_OUT_DIR=$(pwd)/target/sbf-solana-solana/release cargo nextest run --all-features

Releasing

./release

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  • Fork the project
  • Create your feature branch (git checkout -b username/feature_name)
  • Commit your changes (git commit -m 'Add some feature')
  • Push to the branch (git push origin username/feature_name)
  • Open a Pull Request

Security Audits

Group Date Commit
Offside 2024-11-20 60b3884
Ottersec 2024-10-25 f04242f
Certora 2024-10-29 ecbe19a
Certora 2024-12-23 3fdcd88

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.