Coder Social home page Coder Social logo

lagrange-node's Introduction

Lagrange Node

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

Table of Contents

Architecture

The Lagrange 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

lagrange-node's People

Contributors

cool-develope avatar dependabot[bot] avatar mastereng12 avatar kashishshah avatar mnlesane avatar mergify[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.