Giter Site home page Giter Site logo

allfi / blockscout-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blockscout/blockscout-rs

0.0 0.0 0.0 5.39 MB

License: MIT License

Shell 0.90% JavaScript 0.01% Python 0.58% Rust 80.85% TypeScript 5.64% CSS 0.05% Smarty 0.05% Dockerfile 0.36% Solidity 10.75% Yul 0.20% Just 0.60%

blockscout-rs's Introduction

Blockscout Rust Services

A set of services used by Blockscout blockchain explorer, written in Rust.

Services

  1. blockscout-ens - indexed data of domain name service for blockscout instances.

  2. da-indexer - collects blobs from different DA solutions (e.g, Celestia)

  3. eth-bytecode-db - Ethereum Bytecode Database. Cross-chain smart-contracts database used for automatic contracts verification

  4. proxy-verifier - backend for the standalone multi-chain verification service

  5. scoutcloud - API to deploy and manage blockscout instances

  6. sig-provider - aggregator of ethereum signatures for transactions and events

  7. smart-contract-verifier - smart-contracts verification

  8. stats - service designed to calculate and present statistical information from a Blockscout instance

  9. user-ops-indexer - service designed to index, decode and serve user operations as per the ERC-4337 standard

  10. visualizer - service for evm visualization such as:

    1. Solidity contract visualization using sol2uml

Running and configuring services

Services are distributed as docker images. For each service you can find information about packages and their recent releases inside service directories.

You can configure your app by passing necessary environment variables when starting the container. Configuration variables common for all services can be found here. See full list of ENVs and their description inside service directories.

docker run -p 8050:8050 --env-file <path-to-your-env-file> ghcr.io/blockscout/{service-name}:latest 

Alternatively, you can build your own docker images or compile them directly from sources. Some of such options are described in build.

Project Layouts

Most of the projects consist of 3 main parts:

  1. {service-name}-proto - defines the gRPC proto file with all API related data. Defines mapping HTTP/JSON requests and their parameters to those gRPC methods.

  2. {service-name}-logic - the crate with the implementation of the main business logic.

    Note: previously the logic crate was named as {service-name}; some services still use that convention

  3. {service-name}-server - initialize the server using the defined API. Using the methods from “{service-name}-logic” to handle incoming requests.

The separation on "logic" and "server" crates is designed to separate functional and transport layers. For now, "server" crates contain gRPC and HTTP as the transport layer. It was assumed, that users may want to implement their own APIs, for which the library with functional logic might be used.

Crates that require database connection may also have additional sea-orm defined crates:

  1. {service-name}-migration - contains migrations for the database
  2. {service-name}-entity - contains the entity files generated from the schema

Contributing

We appreciate your support. Before writing code and submiting pull request, please read contributing instructions.

License

This project is primarily distributed under the terms of the MIT license. See LICENSE-MIT for details.

blockscout-rs's People

Contributors

alik-agaev avatar allfi avatar bragov4ik avatar chn1807 avatar igorbarinov avatar itinance avatar k1rill-fedoseev avatar kuksag avatar leviska avatar lok52 avatar nedondev avatar nzenchik avatar rimrakhimov avatar sevenzing avatar sharafitdinova avatar tuguu-2go avatar vbaranov 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.