Coder Social home page Coder Social logo

massa-proto's Introduction

Massa proto

This repository contains Protobuf files for Massa blockchain.

Using Docker

Build image

docker build -t massaprotobuild:latest .

Run image

docker run --rm --name protobuild -v ./:/opt massaprotobuild

OR

Requirements

Make sure you have the following latest versions of the required tools:

Please ensure that you have the required versions or newer to guarantee compatibility and access to the latest features.

Project build

You can lint, format and update the generated documentation from protobuf files by running:

./build.sh

For Windows users run:

./build.bat

If you encounter issues with the format command on Windows, please refer to this issue on the buf GitHub repository for potential solutions and workarounds.

Postman integration

You can easily import APIs collections from Massa's Postman workspace and start testing and exploring the provided functionalities by Massa API's.

VSCode settings

1- Install vscode-proto3 extension.

2- The following settings contain a protoc configuration block with Java generation output:

{
    "protoc": {  // Specifies the configuration for the protoc plugin.
        "path": "/PATH/TO/PROTOC",  // Sets the path to the protoc binary that will be used to compile the protobuf files.
        "compile_on_save": true,  // Enables automatic compilation of protobuf files when they are saved.
        "options": [  // Specifies the command line options that will be passed to protoc.
            "{workspaceRoot}/proto/**/*.proto",  // Specifies the path to the protobuf files that should be compiled.
            "--proto_path=${workspaceRoot}/proto/",  // Specifies the directory to search for imported protobuf files.
            "--proto_path=${workspaceRoot}/proto/commons",  // Specifies the directory to search for imported common protobuf files.
            "--proto_path=${workspaceRoot}/proto/third_party",  // Specifies the directory to search for imported third_party protobuf files.
            "--java_out=${workspaceRoot}/gen/",  // Generates Java code from the protobuf files.
        ]
    }
}

3- Add the snippet above to .vscode/settings.json.

massa-proto's People

Contributors

aoudiamoncef avatar bilboquet avatar jwmdev avatar leo-besancon 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.