Skip to content

chuangjinglu/lsc-node

This branch is 1 commit ahead of Lagrange-Labs/lsc-node:refs/heads/develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e509086 · Jan 24, 2025
Oct 22, 2024
Oct 24, 2024
Oct 22, 2024
Oct 22, 2024
Oct 22, 2024
Jan 24, 2025
May 20, 2024
Oct 22, 2024
Jan 24, 2025
Jul 11, 2024
Mar 8, 2024
Oct 22, 2024
Oct 22, 2024
Jan 24, 2025
Nov 14, 2024
Oct 22, 2024
Oct 22, 2024
Apr 21, 2024
Dec 23, 2024
Mar 23, 2023
Nov 15, 2024
Apr 11, 2024
Nov 15, 2024
Jul 25, 2024
Apr 5, 2023
Nov 13, 2024
Jan 13, 2025
Jan 13, 2025
May 14, 2024

Repository files navigation

Lagrange State Committee Node

This is the LSC Node, a node that can be used to run a Lagrange State Committee network.

Table of Contents

Architecture

The LSC Node consists of the following components:

  • Sequencer
  • AVS-Synchronizer
  • gRPC Sequencer Server
  • gRPC Client Node

Here is the diagram of the architecture:

Installation

Prerequisites

This project is written in Go 1.21. You can download it from here.

Build

To build the project, run the following command:

make build

This will create a binary called lagrange-node in the dist directory.

Usage

  • To run the sequencer, run the following command:

    ./dist/lagrange-node run-sequencer -c <config-file>
  • To run the gRPC sequencer server, run the following command:

    ./dist/lagrange-node run-server -c <config-file>
  • To join a network and run the client node, run the following command:

    ./dist/lagrange-node run-client -c <config-file>

Migration Tool

The migration tool is used to migrate the database schema. To run the migration tool, run the following command:

go run ./cmd/migrate/... up/down -u <database_url> -s <step>

Test & Useful Commands

Here are the commands to run the tests:

# Run unit-tests
make test
# Run the local network
make localnet-start
# Stop the local network
make stop
# Generate the protobuf files
make proto-gen
# Build the docker image
make docker-build
# Install linter
make install-linter
# Lint the codebase
make lint

License

This project is licensed under the XXXX.

⬆️ Back to Top

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.3%
  • Other 1.7%